2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
258 CONFIG_SHELL=$as_shell
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
286 as_func_ret_success () {
289 as_func_ret_failure () {
294 if as_func_success; then
298 echo as_func_success failed.
301 if as_func_failure; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 ECHO_C= ECHO_N= ECHO_T=
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 elif ln conf$$.file conf$$ 2>/dev/null; then
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
517 test -d ./-p && rmdir ./-p
521 if test -x / >/dev/null 2>&1; then
524 if ls -dL / >/dev/null 2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
558 # Remove one level of quotation (which was required for Make).
559 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
564 if test "X$1" = X--no-reexec; then
565 # Discard the --no-reexec flag, and continue.
567 elif test "X$1" = X--fallback-echo; then
568 # Avoid inline document here, it may be left over
570 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571 # Yippee, $echo works!
574 # Restart under the correct shell.
575 exec $SHELL "$0" --no-reexec ${1+"$@"}
578 if test "X$1" = X--fallback-echo; then
579 # used as fallback echo
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
591 if test -z "$ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597 echo_test_string=`eval $cmd` &&
598 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
605 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
610 # The Solaris, AIX, and Digital Unix default echo programs unquote
611 # backslashes. This makes it impossible to quote backslashes using
612 # echo "$something" | sed 's/\\/\\\\/g'
614 # So, first we look for a working echo in the user's PATH.
616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617 for dir in $PATH /usr/ucb; do
619 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
629 if test "X$echo" = Xecho; then
630 # We didn't find a better echo, so look for alternatives.
631 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633 test "X$echo_testing_string" = "X$echo_test_string"; then
634 # This shell has a builtin print -r that does the trick.
636 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637 test "X$CONFIG_SHELL" != X/bin/ksh; then
638 # If we have ksh, try running configure again with it.
639 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640 export ORIGINAL_CONFIG_SHELL
641 CONFIG_SHELL=/bin/ksh
643 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
647 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649 test "X$echo_testing_string" = "X$echo_test_string"; then
652 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653 test "X$echo_testing_string" = 'X\t' &&
654 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655 test "X$echo_testing_string" = "X$echo_test_string"; then
656 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
658 SHELL="$CONFIG_SHELL"
660 echo="$CONFIG_SHELL $0 --fallback-echo"
661 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662 test "X$echo_testing_string" = 'X\t' &&
663 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664 test "X$echo_testing_string" = "X$echo_test_string"; then
665 echo="$CONFIG_SHELL $0 --fallback-echo"
667 # maybe with a smaller string...
670 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
678 if test "$prev" != 'sed 50q "$0"'; then
679 echo_test_string=`eval $prev`
680 export echo_test_string
681 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
683 # Oops. We lost completely, so just stick with echo.
692 # Copy echo and quote the copy suitably for passing to libtool from
693 # the Makefile, instead of quoting the original, which is used later.
695 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
702 tagnames=${tagnames+${tagnames},}CXX
704 tagnames=${tagnames+${tagnames},}F77
706 exec 7<&0 </dev/null 6>&1
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710 # so uname gets run too.
711 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
716 ac_default_prefix=/usr/local
718 ac_config_libobj_dir=.
724 SHELL=${CONFIG_SHELL-/bin/sh}
726 # Identity of this package.
733 ac_unique_file="src/libsympathy.c"
734 # Factoring default headers for most tests.
735 ac_includes_default="\
737 #ifdef HAVE_SYS_TYPES_H
738 # include <sys/types.h>
740 #ifdef HAVE_SYS_STAT_H
741 # include <sys/stat.h>
747 # ifdef HAVE_STDLIB_H
752 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
757 #ifdef HAVE_STRINGS_H
758 # include <strings.h>
760 #ifdef HAVE_INTTYPES_H
761 # include <inttypes.h>
779 program_transform_name
814 LIBSYMPATHY_MAJOR_VERSION
815 LIBSYMPATHY_MINOR_VERSION
816 LIBSYMPATHY_MICRO_VERSION
818 LIBSYMPATHY_INTERFACE_VERSION_MIN
819 LIBSYMPATHY_INTERFACE_VERSION_MAX
820 LIBSYMPATHY_INTERFACE_REVISION
839 INSTALL_STRIP_PROGRAM
888 G2_HAVE_SYS_INT_TYPES_H
891 G2_TIME_WITH_SYS_TIME
896 ac_precious_vars='build_alias
913 # Initialize some variables set by options.
915 ac_init_version=false
916 # The variables have the same names as the options, with
917 # dashes changed to underlines.
925 program_transform_name=s,x,x,
933 # Installation directory options.
934 # These are left unexpanded so users can "make install exec_prefix=/foo"
935 # and all the variables that are supposed to be based on exec_prefix
936 # by default will actually change.
937 # Use braces instead of parens because sh, perl, etc. also accept them.
938 # (The list follows the same order as the GNU Coding Standards.)
939 bindir='${exec_prefix}/bin'
940 sbindir='${exec_prefix}/sbin'
941 libexecdir='${exec_prefix}/libexec'
942 datarootdir='${prefix}/share'
943 datadir='${datarootdir}'
944 sysconfdir='${prefix}/etc'
945 sharedstatedir='${prefix}/com'
946 localstatedir='${prefix}/var'
947 includedir='${prefix}/include'
948 oldincludedir='/usr/include'
949 docdir='${datarootdir}/doc/${PACKAGE}'
950 infodir='${datarootdir}/info'
955 libdir='${exec_prefix}/lib'
956 localedir='${datarootdir}/locale'
957 mandir='${datarootdir}/man'
963 # If the previous option needs an argument, assign it.
964 if test -n "$ac_prev"; then
965 eval $ac_prev=\$ac_option
971 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
975 # Accept the important Cygnus configure options, so we can diagnose typos.
977 case $ac_dashdash$ac_option in
981 -bindir | --bindir | --bindi | --bind | --bin | --bi)
983 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
986 -build | --build | --buil | --bui | --bu)
987 ac_prev=build_alias ;;
988 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
989 build_alias=$ac_optarg ;;
991 -cache-file | --cache-file | --cache-fil | --cache-fi \
992 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
993 ac_prev=cache_file ;;
994 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
995 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
996 cache_file=$ac_optarg ;;
999 cache_file=config.cache ;;
1001 -datadir | --datadir | --datadi | --datad)
1003 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1004 datadir=$ac_optarg ;;
1006 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1007 | --dataroo | --dataro | --datar)
1008 ac_prev=datarootdir ;;
1009 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1010 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1011 datarootdir=$ac_optarg ;;
1013 -disable-* | --disable-*)
1014 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1015 # Reject names that are not valid shell variable names.
1016 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1017 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1018 { (exit 1); exit 1; }; }
1019 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1020 eval enable_$ac_feature=no ;;
1022 -docdir | --docdir | --docdi | --doc | --do)
1024 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1025 docdir=$ac_optarg ;;
1027 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1029 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1030 dvidir=$ac_optarg ;;
1032 -enable-* | --enable-*)
1033 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1034 # Reject names that are not valid shell variable names.
1035 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1036 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1037 { (exit 1); exit 1; }; }
1038 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1039 eval enable_$ac_feature=\$ac_optarg ;;
1041 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1042 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1043 | --exec | --exe | --ex)
1044 ac_prev=exec_prefix ;;
1045 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1046 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1047 | --exec=* | --exe=* | --ex=*)
1048 exec_prefix=$ac_optarg ;;
1050 -gas | --gas | --ga | --g)
1051 # Obsolete; use --with-gas.
1054 -help | --help | --hel | --he | -h)
1055 ac_init_help=long ;;
1056 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1057 ac_init_help=recursive ;;
1058 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1059 ac_init_help=short ;;
1061 -host | --host | --hos | --ho)
1062 ac_prev=host_alias ;;
1063 -host=* | --host=* | --hos=* | --ho=*)
1064 host_alias=$ac_optarg ;;
1066 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1068 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1070 htmldir=$ac_optarg ;;
1072 -includedir | --includedir | --includedi | --included | --include \
1073 | --includ | --inclu | --incl | --inc)
1074 ac_prev=includedir ;;
1075 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1076 | --includ=* | --inclu=* | --incl=* | --inc=*)
1077 includedir=$ac_optarg ;;
1079 -infodir | --infodir | --infodi | --infod | --info | --inf)
1081 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1082 infodir=$ac_optarg ;;
1084 -libdir | --libdir | --libdi | --libd)
1086 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1087 libdir=$ac_optarg ;;
1089 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1090 | --libexe | --libex | --libe)
1091 ac_prev=libexecdir ;;
1092 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1093 | --libexe=* | --libex=* | --libe=*)
1094 libexecdir=$ac_optarg ;;
1096 -localedir | --localedir | --localedi | --localed | --locale)
1097 ac_prev=localedir ;;
1098 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1099 localedir=$ac_optarg ;;
1101 -localstatedir | --localstatedir | --localstatedi | --localstated \
1102 | --localstate | --localstat | --localsta | --localst | --locals)
1103 ac_prev=localstatedir ;;
1104 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1105 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1106 localstatedir=$ac_optarg ;;
1108 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1110 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1111 mandir=$ac_optarg ;;
1113 -nfp | --nfp | --nf)
1114 # Obsolete; use --without-fp.
1117 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1118 | --no-cr | --no-c | -n)
1121 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1122 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1125 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1126 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1127 | --oldin | --oldi | --old | --ol | --o)
1128 ac_prev=oldincludedir ;;
1129 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1130 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1131 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1132 oldincludedir=$ac_optarg ;;
1134 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1136 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1137 prefix=$ac_optarg ;;
1139 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1140 | --program-pre | --program-pr | --program-p)
1141 ac_prev=program_prefix ;;
1142 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1143 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1144 program_prefix=$ac_optarg ;;
1146 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1147 | --program-suf | --program-su | --program-s)
1148 ac_prev=program_suffix ;;
1149 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1150 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1151 program_suffix=$ac_optarg ;;
1153 -program-transform-name | --program-transform-name \
1154 | --program-transform-nam | --program-transform-na \
1155 | --program-transform-n | --program-transform- \
1156 | --program-transform | --program-transfor \
1157 | --program-transfo | --program-transf \
1158 | --program-trans | --program-tran \
1159 | --progr-tra | --program-tr | --program-t)
1160 ac_prev=program_transform_name ;;
1161 -program-transform-name=* | --program-transform-name=* \
1162 | --program-transform-nam=* | --program-transform-na=* \
1163 | --program-transform-n=* | --program-transform-=* \
1164 | --program-transform=* | --program-transfor=* \
1165 | --program-transfo=* | --program-transf=* \
1166 | --program-trans=* | --program-tran=* \
1167 | --progr-tra=* | --program-tr=* | --program-t=*)
1168 program_transform_name=$ac_optarg ;;
1170 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1172 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1173 pdfdir=$ac_optarg ;;
1175 -psdir | --psdir | --psdi | --psd | --ps)
1177 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1180 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1181 | -silent | --silent | --silen | --sile | --sil)
1184 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1186 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1188 sbindir=$ac_optarg ;;
1190 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1191 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1192 | --sharedst | --shareds | --shared | --share | --shar \
1194 ac_prev=sharedstatedir ;;
1195 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1196 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1197 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1199 sharedstatedir=$ac_optarg ;;
1201 -site | --site | --sit)
1203 -site=* | --site=* | --sit=*)
1206 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1208 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1209 srcdir=$ac_optarg ;;
1211 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1212 | --syscon | --sysco | --sysc | --sys | --sy)
1213 ac_prev=sysconfdir ;;
1214 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1215 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1216 sysconfdir=$ac_optarg ;;
1218 -target | --target | --targe | --targ | --tar | --ta | --t)
1219 ac_prev=target_alias ;;
1220 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1221 target_alias=$ac_optarg ;;
1223 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1226 -version | --version | --versio | --versi | --vers | -V)
1227 ac_init_version=: ;;
1230 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1231 # Reject names that are not valid shell variable names.
1232 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1233 { echo "$as_me: error: invalid package name: $ac_package" >&2
1234 { (exit 1); exit 1; }; }
1235 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1236 eval with_$ac_package=\$ac_optarg ;;
1238 -without-* | --without-*)
1239 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1240 # Reject names that are not valid shell variable names.
1241 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1242 { echo "$as_me: error: invalid package name: $ac_package" >&2
1243 { (exit 1); exit 1; }; }
1244 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1245 eval with_$ac_package=no ;;
1248 # Obsolete; use --with-x.
1251 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1252 | --x-incl | --x-inc | --x-in | --x-i)
1253 ac_prev=x_includes ;;
1254 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1255 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1256 x_includes=$ac_optarg ;;
1258 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1259 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1260 ac_prev=x_libraries ;;
1261 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1262 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1263 x_libraries=$ac_optarg ;;
1265 -*) { echo "$as_me: error: unrecognized option: $ac_option
1266 Try \`$0 --help' for more information." >&2
1267 { (exit 1); exit 1; }; }
1271 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1272 # Reject names that are not valid shell variable names.
1273 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1274 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1275 { (exit 1); exit 1; }; }
1276 eval $ac_envvar=\$ac_optarg
1277 export $ac_envvar ;;
1280 # FIXME: should be removed in autoconf 3.0.
1281 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1282 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1283 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1284 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1290 if test -n "$ac_prev"; then
1291 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1292 { echo "$as_me: error: missing argument to $ac_option" >&2
1293 { (exit 1); exit 1; }; }
1296 # Be sure to have absolute directory names.
1297 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1298 datadir sysconfdir sharedstatedir localstatedir includedir \
1299 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1300 libdir localedir mandir
1302 eval ac_val=\$$ac_var
1304 [\\/$]* | ?:[\\/]* ) continue;;
1305 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1307 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1308 { (exit 1); exit 1; }; }
1311 # There might be people who depend on the old broken behavior: `$host'
1312 # used to hold the argument of --host etc.
1313 # FIXME: To remove some day.
1316 target=$target_alias
1318 # FIXME: To remove some day.
1319 if test "x$host_alias" != x; then
1320 if test "x$build_alias" = x; then
1321 cross_compiling=maybe
1322 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1323 If a cross compiler is detected then cross compile mode will be used." >&2
1324 elif test "x$build_alias" != "x$host_alias"; then
1330 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1332 test "$silent" = yes && exec 6>/dev/null
1335 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1336 ac_ls_di=`ls -di .` &&
1337 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1338 { echo "$as_me: error: Working directory cannot be determined" >&2
1339 { (exit 1); exit 1; }; }
1340 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1341 { echo "$as_me: error: pwd does not report name of working directory" >&2
1342 { (exit 1); exit 1; }; }
1345 # Find the source files, if location was not specified.
1346 if test -z "$srcdir"; then
1347 ac_srcdir_defaulted=yes
1348 # Try the directory containing this script, then the parent directory.
1349 ac_confdir=`$as_dirname -- "$0" ||
1350 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1351 X"$0" : 'X\(//\)[^/]' \| \
1352 X"$0" : 'X\(//\)$' \| \
1353 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1373 if test ! -r "$srcdir/$ac_unique_file"; then
1377 ac_srcdir_defaulted=no
1379 if test ! -r "$srcdir/$ac_unique_file"; then
1380 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1381 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1382 { (exit 1); exit 1; }; }
1384 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1386 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1387 { (exit 1); exit 1; }; }
1389 # When building in place, set srcdir=.
1390 if test "$ac_abs_confdir" = "$ac_pwd"; then
1393 # Remove unnecessary trailing slashes from srcdir.
1394 # Double slashes in file names in object file debugging info
1395 # mess up M-x gdb in Emacs.
1397 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1399 for ac_var in $ac_precious_vars; do
1400 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1401 eval ac_env_${ac_var}_value=\$${ac_var}
1402 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1403 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1407 # Report the --help message.
1409 if test "$ac_init_help" = "long"; then
1410 # Omit some internal or obsolete options to make the list less imposing.
1411 # This message is too long to be a string in the A/UX 3.1 sh.
1413 \`configure' configures this package to adapt to many kinds of systems.
1415 Usage: $0 [OPTION]... [VAR=VALUE]...
1417 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1418 VAR=VALUE. See below for descriptions of some of the useful variables.
1420 Defaults for the options are specified in brackets.
1423 -h, --help display this help and exit
1424 --help=short display options specific to this package
1425 --help=recursive display the short help of all the included packages
1426 -V, --version display version information and exit
1427 -q, --quiet, --silent do not print \`checking...' messages
1428 --cache-file=FILE cache test results in FILE [disabled]
1429 -C, --config-cache alias for \`--cache-file=config.cache'
1430 -n, --no-create do not create output files
1431 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1433 Installation directories:
1434 --prefix=PREFIX install architecture-independent files in PREFIX
1435 [$ac_default_prefix]
1436 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1439 By default, \`make install' will install all the files in
1440 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1441 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1442 for instance \`--prefix=\$HOME'.
1444 For better control, use the options below.
1446 Fine tuning of the installation directories:
1447 --bindir=DIR user executables [EPREFIX/bin]
1448 --sbindir=DIR system admin executables [EPREFIX/sbin]
1449 --libexecdir=DIR program executables [EPREFIX/libexec]
1450 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1451 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1452 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1453 --libdir=DIR object code libraries [EPREFIX/lib]
1454 --includedir=DIR C header files [PREFIX/include]
1455 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1456 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1457 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1458 --infodir=DIR info documentation [DATAROOTDIR/info]
1459 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1460 --mandir=DIR man documentation [DATAROOTDIR/man]
1461 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1462 --htmldir=DIR html documentation [DOCDIR]
1463 --dvidir=DIR dvi documentation [DOCDIR]
1464 --pdfdir=DIR pdf documentation [DOCDIR]
1465 --psdir=DIR ps documentation [DOCDIR]
1471 --program-prefix=PREFIX prepend PREFIX to installed program names
1472 --program-suffix=SUFFIX append SUFFIX to installed program names
1473 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1476 --build=BUILD configure for building on BUILD [guessed]
1477 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1481 if test -n "$ac_init_help"; then
1486 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1487 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1488 --disable-largefile omit support for large files
1489 --disable-dependency-tracking speeds up one-time build
1490 --enable-dependency-tracking do not reject slow dependency extractors
1491 --enable-shared[=PKGS] build shared libraries [default=yes]
1492 --enable-static[=PKGS] build static libraries [default=yes]
1493 --enable-fast-install[=PKGS]
1494 optimize for fast installation [default=yes]
1495 --disable-libtool-lock avoid locking (might break parallel builds)
1498 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1499 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1500 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1501 --with-pic try to use only PIC/non-PIC objects [default=use
1503 --with-tags[=TAGS] include additional configurations [automatic]
1505 Some influential environment variables:
1506 CC C compiler command
1507 CFLAGS C compiler flags
1508 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1509 nonstandard directory <lib dir>
1510 LIBS libraries to pass to the linker, e.g. -l<library>
1511 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1512 you have headers in a nonstandard directory <include dir>
1514 CXX C++ compiler command
1515 CXXFLAGS C++ compiler flags
1516 CXXCPP C++ preprocessor
1517 F77 Fortran 77 compiler command
1518 FFLAGS Fortran 77 compiler flags
1520 Use these variables to override the choices made by `configure' or to help
1521 it to find libraries and programs with nonstandard names/locations.
1527 if test "$ac_init_help" = "recursive"; then
1528 # If there are subdirs, report their specific --help.
1529 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1530 test -d "$ac_dir" || continue
1534 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1536 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1537 # A ".." for each directory in $ac_dir_suffix.
1538 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1539 case $ac_top_builddir_sub in
1540 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1541 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1544 ac_abs_top_builddir=$ac_pwd
1545 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1546 # for backward compatibility:
1547 ac_top_builddir=$ac_top_build_prefix
1550 .) # We are building in place.
1552 ac_top_srcdir=$ac_top_builddir_sub
1553 ac_abs_top_srcdir=$ac_pwd ;;
1554 [\\/]* | ?:[\\/]* ) # Absolute name.
1555 ac_srcdir=$srcdir$ac_dir_suffix;
1556 ac_top_srcdir=$srcdir
1557 ac_abs_top_srcdir=$srcdir ;;
1559 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1560 ac_top_srcdir=$ac_top_build_prefix$srcdir
1561 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1563 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1565 cd "$ac_dir" || { ac_status=$?; continue; }
1566 # Check for guested configure.
1567 if test -f "$ac_srcdir/configure.gnu"; then
1569 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1570 elif test -f "$ac_srcdir/configure"; then
1572 $SHELL "$ac_srcdir/configure" --help=recursive
1574 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1576 cd "$ac_pwd" || { ac_status=$?; break; }
1580 test -n "$ac_init_help" && exit $ac_status
1581 if $ac_init_version; then
1584 generated by GNU Autoconf 2.61
1586 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1587 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1588 This configure script is free software; the Free Software Foundation
1589 gives unlimited permission to copy, distribute and modify it.
1593 cat >config.log <<_ACEOF
1594 This file contains any messages produced by compilers while
1595 running configure, to aid debugging if configure makes a mistake.
1597 It was created by $as_me, which was
1598 generated by GNU Autoconf 2.61. Invocation command line was
1610 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1611 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1612 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1613 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1614 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1616 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1617 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1619 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1620 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1621 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1622 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1623 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1624 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1625 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1633 test -z "$as_dir" && as_dir=.
1634 echo "PATH: $as_dir"
1650 # Keep a trace of the command line.
1651 # Strip out --no-create and --no-recursion so they do not pile up.
1652 # Strip out --silent because we don't want to record it for future runs.
1653 # Also quote any args containing shell meta-characters.
1654 # Make two passes to allow for proper duplicate-argument suppression.
1658 ac_must_keep_next=false
1664 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1665 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1666 | -silent | --silent | --silen | --sile | --sil)
1669 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1672 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1674 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1675 if test $ac_must_keep_next = true; then
1676 ac_must_keep_next=false # Got value, back to normal.
1679 *=* | --config-cache | -C | -disable-* | --disable-* \
1680 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1681 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1682 | -with-* | --with-* | -without-* | --without-* | --x)
1683 case "$ac_configure_args0 " in
1684 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1687 -* ) ac_must_keep_next=true ;;
1690 ac_configure_args="$ac_configure_args '$ac_arg'"
1695 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1696 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1698 # When interrupted or exit'd, cleanup temporary files, and complete
1699 # config.log. We remove comments because anyway the quotes in there
1700 # would cause problems or look ugly.
1701 # WARNING: Use '\'' to represent an apostrophe within the trap.
1702 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1703 trap 'exit_status=$?
1704 # Save into config.log some information that might help in debugging.
1709 ## ---------------- ##
1710 ## Cache variables. ##
1711 ## ---------------- ##
1714 # The following way of writing the cache mishandles newlines in values,
1716 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1717 eval ac_val=\$$ac_var
1721 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1722 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1725 _ | IFS | as_nl) ;; #(
1726 *) $as_unset $ac_var ;;
1731 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1732 *${as_nl}ac_space=\ *)
1734 "s/'\''/'\''\\\\'\'''\''/g;
1735 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1738 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1746 ## ----------------- ##
1747 ## Output variables. ##
1748 ## ----------------- ##
1751 for ac_var in $ac_subst_vars
1753 eval ac_val=\$$ac_var
1755 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1757 echo "$ac_var='\''$ac_val'\''"
1761 if test -n "$ac_subst_files"; then
1763 ## ------------------- ##
1764 ## File substitutions. ##
1765 ## ------------------- ##
1768 for ac_var in $ac_subst_files
1770 eval ac_val=\$$ac_var
1772 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1774 echo "$ac_var='\''$ac_val'\''"
1779 if test -s confdefs.h; then
1789 test "$ac_signal" != 0 &&
1790 echo "$as_me: caught signal $ac_signal"
1791 echo "$as_me: exit $exit_status"
1793 rm -f core *.core core.conftest.* &&
1794 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1797 for ac_signal in 1 2 13 15; do
1798 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1802 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1803 rm -f -r conftest* confdefs.h
1805 # Predefined preprocessor variables.
1807 cat >>confdefs.h <<_ACEOF
1808 #define PACKAGE_NAME "$PACKAGE_NAME"
1812 cat >>confdefs.h <<_ACEOF
1813 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1817 cat >>confdefs.h <<_ACEOF
1818 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1822 cat >>confdefs.h <<_ACEOF
1823 #define PACKAGE_STRING "$PACKAGE_STRING"
1827 cat >>confdefs.h <<_ACEOF
1828 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1832 # Let the site file select an alternate cache file if it wants to.
1833 # Prefer explicitly selected file to automatically selected ones.
1834 if test -n "$CONFIG_SITE"; then
1835 set x "$CONFIG_SITE"
1836 elif test "x$prefix" != xNONE; then
1837 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1839 set x "$ac_default_prefix/share/config.site" \
1840 "$ac_default_prefix/etc/config.site"
1845 if test -r "$ac_site_file"; then
1846 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1847 echo "$as_me: loading site script $ac_site_file" >&6;}
1848 sed 's/^/| /' "$ac_site_file" >&5
1853 if test -r "$cache_file"; then
1854 # Some versions of bash will fail to source /dev/null (special
1855 # files actually), so we avoid doing that.
1856 if test -f "$cache_file"; then
1857 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1858 echo "$as_me: loading cache $cache_file" >&6;}
1860 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1861 *) . "./$cache_file";;
1865 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1866 echo "$as_me: creating cache $cache_file" >&6;}
1870 # Check that the precious variables saved in the cache have kept the same
1872 ac_cache_corrupted=false
1873 for ac_var in $ac_precious_vars; do
1874 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1875 eval ac_new_set=\$ac_env_${ac_var}_set
1876 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1877 eval ac_new_val=\$ac_env_${ac_var}_value
1878 case $ac_old_set,$ac_new_set in
1880 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1881 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1882 ac_cache_corrupted=: ;;
1884 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1885 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1886 ac_cache_corrupted=: ;;
1889 if test "x$ac_old_val" != "x$ac_new_val"; then
1890 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1891 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1892 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1893 echo "$as_me: former value: $ac_old_val" >&2;}
1894 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1895 echo "$as_me: current value: $ac_new_val" >&2;}
1896 ac_cache_corrupted=:
1899 # Pass precious variables to config.status.
1900 if test "$ac_new_set" = set; then
1902 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1903 *) ac_arg=$ac_var=$ac_new_val ;;
1905 case " $ac_configure_args " in
1906 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1907 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1911 if $ac_cache_corrupted; then
1912 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1913 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1914 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1915 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1916 { (exit 1); exit 1; }; }
1936 ac_cpp='$CPP $CPPFLAGS'
1937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1944 ac_cpp='$CPP $CPPFLAGS'
1945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1948 if test -n "$ac_tool_prefix"; then
1949 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1950 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1953 if test "${ac_cv_prog_CC+set}" = set; then
1954 echo $ECHO_N "(cached) $ECHO_C" >&6
1956 if test -n "$CC"; then
1957 ac_cv_prog_CC="$CC" # Let the user override the test.
1959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1963 test -z "$as_dir" && as_dir=.
1964 for ac_exec_ext in '' $ac_executable_extensions; do
1965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1966 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1977 if test -n "$CC"; then
1978 { echo "$as_me:$LINENO: result: $CC" >&5
1979 echo "${ECHO_T}$CC" >&6; }
1981 { echo "$as_me:$LINENO: result: no" >&5
1982 echo "${ECHO_T}no" >&6; }
1987 if test -z "$ac_cv_prog_CC"; then
1989 # Extract the first word of "gcc", so it can be a program name with args.
1990 set dummy gcc; ac_word=$2
1991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1993 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1994 echo $ECHO_N "(cached) $ECHO_C" >&6
1996 if test -n "$ac_ct_CC"; then
1997 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2003 test -z "$as_dir" && as_dir=.
2004 for ac_exec_ext in '' $ac_executable_extensions; do
2005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2006 ac_cv_prog_ac_ct_CC="gcc"
2007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2016 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2017 if test -n "$ac_ct_CC"; then
2018 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2019 echo "${ECHO_T}$ac_ct_CC" >&6; }
2021 { echo "$as_me:$LINENO: result: no" >&5
2022 echo "${ECHO_T}no" >&6; }
2025 if test "x$ac_ct_CC" = x; then
2028 case $cross_compiling:$ac_tool_warned in
2030 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2031 whose name does not start with the host triplet. If you think this
2032 configuration is useful to you, please write to autoconf@gnu.org." >&5
2033 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2034 whose name does not start with the host triplet. If you think this
2035 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2036 ac_tool_warned=yes ;;
2044 if test -z "$CC"; then
2045 if test -n "$ac_tool_prefix"; then
2046 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2047 set dummy ${ac_tool_prefix}cc; ac_word=$2
2048 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2050 if test "${ac_cv_prog_CC+set}" = set; then
2051 echo $ECHO_N "(cached) $ECHO_C" >&6
2053 if test -n "$CC"; then
2054 ac_cv_prog_CC="$CC" # Let the user override the test.
2056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2060 test -z "$as_dir" && as_dir=.
2061 for ac_exec_ext in '' $ac_executable_extensions; do
2062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2063 ac_cv_prog_CC="${ac_tool_prefix}cc"
2064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2074 if test -n "$CC"; then
2075 { echo "$as_me:$LINENO: result: $CC" >&5
2076 echo "${ECHO_T}$CC" >&6; }
2078 { echo "$as_me:$LINENO: result: no" >&5
2079 echo "${ECHO_T}no" >&6; }
2085 if test -z "$CC"; then
2086 # Extract the first word of "cc", so it can be a program name with args.
2087 set dummy cc; ac_word=$2
2088 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2090 if test "${ac_cv_prog_CC+set}" = set; then
2091 echo $ECHO_N "(cached) $ECHO_C" >&6
2093 if test -n "$CC"; then
2094 ac_cv_prog_CC="$CC" # Let the user override the test.
2097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2101 test -z "$as_dir" && as_dir=.
2102 for ac_exec_ext in '' $ac_executable_extensions; do
2103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2104 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2105 ac_prog_rejected=yes
2109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2116 if test $ac_prog_rejected = yes; then
2117 # We found a bogon in the path, so make sure we never use it.
2118 set dummy $ac_cv_prog_CC
2120 if test $# != 0; then
2121 # We chose a different compiler from the bogus one.
2122 # However, it has the same basename, so the bogon will be chosen
2123 # first if we set CC to just the basename; use the full file name.
2125 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2131 if test -n "$CC"; then
2132 { echo "$as_me:$LINENO: result: $CC" >&5
2133 echo "${ECHO_T}$CC" >&6; }
2135 { echo "$as_me:$LINENO: result: no" >&5
2136 echo "${ECHO_T}no" >&6; }
2141 if test -z "$CC"; then
2142 if test -n "$ac_tool_prefix"; then
2143 for ac_prog in cl.exe
2145 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2146 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2149 if test "${ac_cv_prog_CC+set}" = set; then
2150 echo $ECHO_N "(cached) $ECHO_C" >&6
2152 if test -n "$CC"; then
2153 ac_cv_prog_CC="$CC" # Let the user override the test.
2155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2159 test -z "$as_dir" && as_dir=.
2160 for ac_exec_ext in '' $ac_executable_extensions; do
2161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2162 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2173 if test -n "$CC"; then
2174 { echo "$as_me:$LINENO: result: $CC" >&5
2175 echo "${ECHO_T}$CC" >&6; }
2177 { echo "$as_me:$LINENO: result: no" >&5
2178 echo "${ECHO_T}no" >&6; }
2182 test -n "$CC" && break
2185 if test -z "$CC"; then
2187 for ac_prog in cl.exe
2189 # Extract the first word of "$ac_prog", so it can be a program name with args.
2190 set dummy $ac_prog; ac_word=$2
2191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2193 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2194 echo $ECHO_N "(cached) $ECHO_C" >&6
2196 if test -n "$ac_ct_CC"; then
2197 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2203 test -z "$as_dir" && as_dir=.
2204 for ac_exec_ext in '' $ac_executable_extensions; do
2205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2206 ac_cv_prog_ac_ct_CC="$ac_prog"
2207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2216 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2217 if test -n "$ac_ct_CC"; then
2218 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2219 echo "${ECHO_T}$ac_ct_CC" >&6; }
2221 { echo "$as_me:$LINENO: result: no" >&5
2222 echo "${ECHO_T}no" >&6; }
2226 test -n "$ac_ct_CC" && break
2229 if test "x$ac_ct_CC" = x; then
2232 case $cross_compiling:$ac_tool_warned in
2234 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2235 whose name does not start with the host triplet. If you think this
2236 configuration is useful to you, please write to autoconf@gnu.org." >&5
2237 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2238 whose name does not start with the host triplet. If you think this
2239 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2240 ac_tool_warned=yes ;;
2249 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2250 See \`config.log' for more details." >&5
2251 echo "$as_me: error: no acceptable C compiler found in \$PATH
2252 See \`config.log' for more details." >&2;}
2253 { (exit 1); exit 1; }; }
2255 # Provide some information about the compiler.
2256 echo "$as_me:$LINENO: checking for C compiler version" >&5
2257 ac_compiler=`set X $ac_compile; echo $2`
2258 { (ac_try="$ac_compiler --version >&5"
2260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2261 *) ac_try_echo=$ac_try;;
2263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2264 (eval "$ac_compiler --version >&5") 2>&5
2266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267 (exit $ac_status); }
2268 { (ac_try="$ac_compiler -v >&5"
2270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2271 *) ac_try_echo=$ac_try;;
2273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2274 (eval "$ac_compiler -v >&5") 2>&5
2276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277 (exit $ac_status); }
2278 { (ac_try="$ac_compiler -V >&5"
2280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2281 *) ac_try_echo=$ac_try;;
2283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2284 (eval "$ac_compiler -V >&5") 2>&5
2286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287 (exit $ac_status); }
2289 cat >conftest.$ac_ext <<_ACEOF
2292 cat confdefs.h >>conftest.$ac_ext
2293 cat >>conftest.$ac_ext <<_ACEOF
2294 /* end confdefs.h. */
2304 ac_clean_files_save=$ac_clean_files
2305 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2306 # Try to create an executable without -o first, disregard a.out.
2307 # It will help us diagnose broken compilers, and finding out an intuition
2309 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2310 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2311 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2313 # List of possible output files, starting from the most likely.
2314 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2315 # only as a last resort. b.out is created by i960 compilers.
2316 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2318 # The IRIX 6 linker writes into existing files which may not be
2319 # executable, retaining their permissions. Remove them first so a
2320 # subsequent execution test works.
2322 for ac_file in $ac_files
2325 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2326 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2331 if { (ac_try="$ac_link_default"
2333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2334 *) ac_try_echo=$ac_try;;
2336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2337 (eval "$ac_link_default") 2>&5
2339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340 (exit $ac_status); }; then
2341 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2342 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2343 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2344 # so that the user can short-circuit this test for compilers unknown to
2346 for ac_file in $ac_files ''
2348 test -f "$ac_file" || continue
2350 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2353 # We found the default executable, but exeext='' is most
2357 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2359 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2361 # We set ac_cv_exeext here because the later test for it is not
2362 # safe: cross compilers may not add the suffix if given an `-o'
2363 # argument, so we may need to know it at that point already.
2364 # Even if this section looks crufty: it has the advantage of
2371 test "$ac_cv_exeext" = no && ac_cv_exeext=
2377 { echo "$as_me:$LINENO: result: $ac_file" >&5
2378 echo "${ECHO_T}$ac_file" >&6; }
2379 if test -z "$ac_file"; then
2380 echo "$as_me: failed program was:" >&5
2381 sed 's/^/| /' conftest.$ac_ext >&5
2383 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2384 See \`config.log' for more details." >&5
2385 echo "$as_me: error: C compiler cannot create executables
2386 See \`config.log' for more details." >&2;}
2387 { (exit 77); exit 77; }; }
2390 ac_exeext=$ac_cv_exeext
2392 # Check that the compiler produces executables we can run. If not, either
2393 # the compiler is broken, or we cross compile.
2394 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2395 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2396 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2397 # If not cross compiling, check that we can run a simple program.
2398 if test "$cross_compiling" != yes; then
2399 if { ac_try='./$ac_file'
2400 { (case "(($ac_try" in
2401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2402 *) ac_try_echo=$ac_try;;
2404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2405 (eval "$ac_try") 2>&5
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); }; }; then
2411 if test "$cross_compiling" = maybe; then
2414 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2415 If you meant to cross compile, use \`--host'.
2416 See \`config.log' for more details." >&5
2417 echo "$as_me: error: cannot run C compiled programs.
2418 If you meant to cross compile, use \`--host'.
2419 See \`config.log' for more details." >&2;}
2420 { (exit 1); exit 1; }; }
2424 { echo "$as_me:$LINENO: result: yes" >&5
2425 echo "${ECHO_T}yes" >&6; }
2427 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2428 ac_clean_files=$ac_clean_files_save
2429 # Check that the compiler produces executables we can run. If not, either
2430 # the compiler is broken, or we cross compile.
2431 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2432 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2433 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2434 echo "${ECHO_T}$cross_compiling" >&6; }
2436 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2437 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2438 if { (ac_try="$ac_link"
2440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2441 *) ac_try_echo=$ac_try;;
2443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2444 (eval "$ac_link") 2>&5
2446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447 (exit $ac_status); }; then
2448 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2449 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2450 # work properly (i.e., refer to `conftest.exe'), while it won't with
2452 for ac_file in conftest.exe conftest conftest.*; do
2453 test -f "$ac_file" || continue
2455 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2456 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2462 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2463 See \`config.log' for more details." >&5
2464 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2465 See \`config.log' for more details." >&2;}
2466 { (exit 1); exit 1; }; }
2469 rm -f conftest$ac_cv_exeext
2470 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2471 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2473 rm -f conftest.$ac_ext
2474 EXEEXT=$ac_cv_exeext
2476 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2477 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2478 if test "${ac_cv_objext+set}" = set; then
2479 echo $ECHO_N "(cached) $ECHO_C" >&6
2481 cat >conftest.$ac_ext <<_ACEOF
2484 cat confdefs.h >>conftest.$ac_ext
2485 cat >>conftest.$ac_ext <<_ACEOF
2486 /* end confdefs.h. */
2496 rm -f conftest.o conftest.obj
2497 if { (ac_try="$ac_compile"
2499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2500 *) ac_try_echo=$ac_try;;
2502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2503 (eval "$ac_compile") 2>&5
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); }; then
2507 for ac_file in conftest.o conftest.obj conftest.*; do
2508 test -f "$ac_file" || continue;
2510 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2511 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2516 echo "$as_me: failed program was:" >&5
2517 sed 's/^/| /' conftest.$ac_ext >&5
2519 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2520 See \`config.log' for more details." >&5
2521 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2522 See \`config.log' for more details." >&2;}
2523 { (exit 1); exit 1; }; }
2526 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2528 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2529 echo "${ECHO_T}$ac_cv_objext" >&6; }
2530 OBJEXT=$ac_cv_objext
2532 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2533 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2534 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2535 echo $ECHO_N "(cached) $ECHO_C" >&6
2537 cat >conftest.$ac_ext <<_ACEOF
2540 cat confdefs.h >>conftest.$ac_ext
2541 cat >>conftest.$ac_ext <<_ACEOF
2542 /* end confdefs.h. */
2555 rm -f conftest.$ac_objext
2556 if { (ac_try="$ac_compile"
2558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2559 *) ac_try_echo=$ac_try;;
2561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2562 (eval "$ac_compile") 2>conftest.er1
2564 grep -v '^ *+' conftest.er1 >conftest.err
2566 cat conftest.err >&5
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); } && {
2569 test -z "$ac_c_werror_flag" ||
2570 test ! -s conftest.err
2571 } && test -s conftest.$ac_objext; then
2574 echo "$as_me: failed program was:" >&5
2575 sed 's/^/| /' conftest.$ac_ext >&5
2580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2581 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2584 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2585 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2586 GCC=`test $ac_compiler_gnu = yes && echo yes`
2587 ac_test_CFLAGS=${CFLAGS+set}
2588 ac_save_CFLAGS=$CFLAGS
2589 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2590 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2591 if test "${ac_cv_prog_cc_g+set}" = set; then
2592 echo $ECHO_N "(cached) $ECHO_C" >&6
2594 ac_save_c_werror_flag=$ac_c_werror_flag
2595 ac_c_werror_flag=yes
2598 cat >conftest.$ac_ext <<_ACEOF
2601 cat confdefs.h >>conftest.$ac_ext
2602 cat >>conftest.$ac_ext <<_ACEOF
2603 /* end confdefs.h. */
2613 rm -f conftest.$ac_objext
2614 if { (ac_try="$ac_compile"
2616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2617 *) ac_try_echo=$ac_try;;
2619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2620 (eval "$ac_compile") 2>conftest.er1
2622 grep -v '^ *+' conftest.er1 >conftest.err
2624 cat conftest.err >&5
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); } && {
2627 test -z "$ac_c_werror_flag" ||
2628 test ! -s conftest.err
2629 } && test -s conftest.$ac_objext; then
2632 echo "$as_me: failed program was:" >&5
2633 sed 's/^/| /' conftest.$ac_ext >&5
2636 cat >conftest.$ac_ext <<_ACEOF
2639 cat confdefs.h >>conftest.$ac_ext
2640 cat >>conftest.$ac_ext <<_ACEOF
2641 /* end confdefs.h. */
2651 rm -f conftest.$ac_objext
2652 if { (ac_try="$ac_compile"
2654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2655 *) ac_try_echo=$ac_try;;
2657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2658 (eval "$ac_compile") 2>conftest.er1
2660 grep -v '^ *+' conftest.er1 >conftest.err
2662 cat conftest.err >&5
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); } && {
2665 test -z "$ac_c_werror_flag" ||
2666 test ! -s conftest.err
2667 } && test -s conftest.$ac_objext; then
2670 echo "$as_me: failed program was:" >&5
2671 sed 's/^/| /' conftest.$ac_ext >&5
2673 ac_c_werror_flag=$ac_save_c_werror_flag
2675 cat >conftest.$ac_ext <<_ACEOF
2678 cat confdefs.h >>conftest.$ac_ext
2679 cat >>conftest.$ac_ext <<_ACEOF
2680 /* end confdefs.h. */
2690 rm -f conftest.$ac_objext
2691 if { (ac_try="$ac_compile"
2693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2694 *) ac_try_echo=$ac_try;;
2696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2697 (eval "$ac_compile") 2>conftest.er1
2699 grep -v '^ *+' conftest.er1 >conftest.err
2701 cat conftest.err >&5
2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); } && {
2704 test -z "$ac_c_werror_flag" ||
2705 test ! -s conftest.err
2706 } && test -s conftest.$ac_objext; then
2709 echo "$as_me: failed program was:" >&5
2710 sed 's/^/| /' conftest.$ac_ext >&5
2715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2722 ac_c_werror_flag=$ac_save_c_werror_flag
2724 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2725 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2726 if test "$ac_test_CFLAGS" = set; then
2727 CFLAGS=$ac_save_CFLAGS
2728 elif test $ac_cv_prog_cc_g = yes; then
2729 if test "$GCC" = yes; then
2735 if test "$GCC" = yes; then
2741 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2742 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2743 if test "${ac_cv_prog_cc_c89+set}" = set; then
2744 echo $ECHO_N "(cached) $ECHO_C" >&6
2746 ac_cv_prog_cc_c89=no
2748 cat >conftest.$ac_ext <<_ACEOF
2751 cat confdefs.h >>conftest.$ac_ext
2752 cat >>conftest.$ac_ext <<_ACEOF
2753 /* end confdefs.h. */
2756 #include <sys/types.h>
2757 #include <sys/stat.h>
2758 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2759 struct buf { int x; };
2760 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2761 static char *e (p, i)
2767 static char *f (char * (*g) (char **, int), char **p, ...)
2772 s = g (p, va_arg (v,int));
2777 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2778 function prototypes and stuff, but not '\xHH' hex character constants.
2779 These don't provoke an error unfortunately, instead are silently treated
2780 as 'x'. The following induces an error, until -std is added to get
2781 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2782 array size at least. It's necessary to write '\x00'==0 to get something
2783 that's true only with -std. */
2784 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2786 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2787 inside strings and character constants. */
2789 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2791 int test (int i, double x);
2792 struct s1 {int (*f) (int a);};
2793 struct s2 {int (*f) (double a);};
2794 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2800 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2805 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2806 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2808 CC="$ac_save_CC $ac_arg"
2809 rm -f conftest.$ac_objext
2810 if { (ac_try="$ac_compile"
2812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2813 *) ac_try_echo=$ac_try;;
2815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2816 (eval "$ac_compile") 2>conftest.er1
2818 grep -v '^ *+' conftest.er1 >conftest.err
2820 cat conftest.err >&5
2821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822 (exit $ac_status); } && {
2823 test -z "$ac_c_werror_flag" ||
2824 test ! -s conftest.err
2825 } && test -s conftest.$ac_objext; then
2826 ac_cv_prog_cc_c89=$ac_arg
2828 echo "$as_me: failed program was:" >&5
2829 sed 's/^/| /' conftest.$ac_ext >&5
2834 rm -f core conftest.err conftest.$ac_objext
2835 test "x$ac_cv_prog_cc_c89" != "xno" && break
2837 rm -f conftest.$ac_ext
2842 case "x$ac_cv_prog_cc_c89" in
2844 { echo "$as_me:$LINENO: result: none needed" >&5
2845 echo "${ECHO_T}none needed" >&6; } ;;
2847 { echo "$as_me:$LINENO: result: unsupported" >&5
2848 echo "${ECHO_T}unsupported" >&6; } ;;
2850 CC="$CC $ac_cv_prog_cc_c89"
2851 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2852 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2857 ac_cpp='$CPP $CPPFLAGS'
2858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2863 # Check whether --enable-largefile was given.
2864 if test "${enable_largefile+set}" = set; then
2865 enableval=$enable_largefile;
2868 if test "$enable_largefile" != no; then
2870 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
2871 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
2872 if test "${ac_cv_sys_largefile_CC+set}" = set; then
2873 echo $ECHO_N "(cached) $ECHO_C" >&6
2875 ac_cv_sys_largefile_CC=no
2876 if test "$GCC" != yes; then
2879 # IRIX 6.2 and later do not support large files by default,
2880 # so use the C compiler's -n32 option if that helps.
2881 cat >conftest.$ac_ext <<_ACEOF
2884 cat confdefs.h >>conftest.$ac_ext
2885 cat >>conftest.$ac_ext <<_ACEOF
2886 /* end confdefs.h. */
2887 #include <sys/types.h>
2888 /* Check that off_t can represent 2**63 - 1 correctly.
2889 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2890 since some C++ compilers masquerading as C compilers
2891 incorrectly reject 9223372036854775807. */
2892 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2893 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2894 && LARGE_OFF_T % 2147483647 == 1)
2904 rm -f conftest.$ac_objext
2905 if { (ac_try="$ac_compile"
2907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2908 *) ac_try_echo=$ac_try;;
2910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2911 (eval "$ac_compile") 2>conftest.er1
2913 grep -v '^ *+' conftest.er1 >conftest.err
2915 cat conftest.err >&5
2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917 (exit $ac_status); } && {
2918 test -z "$ac_c_werror_flag" ||
2919 test ! -s conftest.err
2920 } && test -s conftest.$ac_objext; then
2923 echo "$as_me: failed program was:" >&5
2924 sed 's/^/| /' conftest.$ac_ext >&5
2929 rm -f core conftest.err conftest.$ac_objext
2931 rm -f conftest.$ac_objext
2932 if { (ac_try="$ac_compile"
2934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2935 *) ac_try_echo=$ac_try;;
2937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2938 (eval "$ac_compile") 2>conftest.er1
2940 grep -v '^ *+' conftest.er1 >conftest.err
2942 cat conftest.err >&5
2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); } && {
2945 test -z "$ac_c_werror_flag" ||
2946 test ! -s conftest.err
2947 } && test -s conftest.$ac_objext; then
2948 ac_cv_sys_largefile_CC=' -n32'; break
2950 echo "$as_me: failed program was:" >&5
2951 sed 's/^/| /' conftest.$ac_ext >&5
2956 rm -f core conftest.err conftest.$ac_objext
2960 rm -f conftest.$ac_ext
2963 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
2964 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
2965 if test "$ac_cv_sys_largefile_CC" != no; then
2966 CC=$CC$ac_cv_sys_largefile_CC
2969 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
2970 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
2971 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
2972 echo $ECHO_N "(cached) $ECHO_C" >&6
2975 cat >conftest.$ac_ext <<_ACEOF
2978 cat confdefs.h >>conftest.$ac_ext
2979 cat >>conftest.$ac_ext <<_ACEOF
2980 /* end confdefs.h. */
2981 #include <sys/types.h>
2982 /* Check that off_t can represent 2**63 - 1 correctly.
2983 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2984 since some C++ compilers masquerading as C compilers
2985 incorrectly reject 9223372036854775807. */
2986 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2987 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2988 && LARGE_OFF_T % 2147483647 == 1)
2998 rm -f conftest.$ac_objext
2999 if { (ac_try="$ac_compile"
3001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3002 *) ac_try_echo=$ac_try;;
3004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3005 (eval "$ac_compile") 2>conftest.er1
3007 grep -v '^ *+' conftest.er1 >conftest.err
3009 cat conftest.err >&5
3010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011 (exit $ac_status); } && {
3012 test -z "$ac_c_werror_flag" ||
3013 test ! -s conftest.err
3014 } && test -s conftest.$ac_objext; then
3015 ac_cv_sys_file_offset_bits=no; break
3017 echo "$as_me: failed program was:" >&5
3018 sed 's/^/| /' conftest.$ac_ext >&5
3023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3024 cat >conftest.$ac_ext <<_ACEOF
3027 cat confdefs.h >>conftest.$ac_ext
3028 cat >>conftest.$ac_ext <<_ACEOF
3029 /* end confdefs.h. */
3030 #define _FILE_OFFSET_BITS 64
3031 #include <sys/types.h>
3032 /* Check that off_t can represent 2**63 - 1 correctly.
3033 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3034 since some C++ compilers masquerading as C compilers
3035 incorrectly reject 9223372036854775807. */
3036 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3037 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3038 && LARGE_OFF_T % 2147483647 == 1)
3048 rm -f conftest.$ac_objext
3049 if { (ac_try="$ac_compile"
3051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052 *) ac_try_echo=$ac_try;;
3054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3055 (eval "$ac_compile") 2>conftest.er1
3057 grep -v '^ *+' conftest.er1 >conftest.err
3059 cat conftest.err >&5
3060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061 (exit $ac_status); } && {
3062 test -z "$ac_c_werror_flag" ||
3063 test ! -s conftest.err
3064 } && test -s conftest.$ac_objext; then
3065 ac_cv_sys_file_offset_bits=64; break
3067 echo "$as_me: failed program was:" >&5
3068 sed 's/^/| /' conftest.$ac_ext >&5
3073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3074 ac_cv_sys_file_offset_bits=unknown
3078 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3079 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
3080 case $ac_cv_sys_file_offset_bits in #(
3083 cat >>confdefs.h <<_ACEOF
3084 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3089 if test $ac_cv_sys_file_offset_bits = unknown; then
3090 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3091 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
3092 if test "${ac_cv_sys_large_files+set}" = set; then
3093 echo $ECHO_N "(cached) $ECHO_C" >&6
3096 cat >conftest.$ac_ext <<_ACEOF
3099 cat confdefs.h >>conftest.$ac_ext
3100 cat >>conftest.$ac_ext <<_ACEOF
3101 /* end confdefs.h. */
3102 #include <sys/types.h>
3103 /* Check that off_t can represent 2**63 - 1 correctly.
3104 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3105 since some C++ compilers masquerading as C compilers
3106 incorrectly reject 9223372036854775807. */
3107 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3108 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3109 && LARGE_OFF_T % 2147483647 == 1)
3119 rm -f conftest.$ac_objext
3120 if { (ac_try="$ac_compile"
3122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3123 *) ac_try_echo=$ac_try;;
3125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3126 (eval "$ac_compile") 2>conftest.er1
3128 grep -v '^ *+' conftest.er1 >conftest.err
3130 cat conftest.err >&5
3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132 (exit $ac_status); } && {
3133 test -z "$ac_c_werror_flag" ||
3134 test ! -s conftest.err
3135 } && test -s conftest.$ac_objext; then
3136 ac_cv_sys_large_files=no; break
3138 echo "$as_me: failed program was:" >&5
3139 sed 's/^/| /' conftest.$ac_ext >&5
3144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3145 cat >conftest.$ac_ext <<_ACEOF
3148 cat confdefs.h >>conftest.$ac_ext
3149 cat >>conftest.$ac_ext <<_ACEOF
3150 /* end confdefs.h. */
3151 #define _LARGE_FILES 1
3152 #include <sys/types.h>
3153 /* Check that off_t can represent 2**63 - 1 correctly.
3154 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3155 since some C++ compilers masquerading as C compilers
3156 incorrectly reject 9223372036854775807. */
3157 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3158 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3159 && LARGE_OFF_T % 2147483647 == 1)
3169 rm -f conftest.$ac_objext
3170 if { (ac_try="$ac_compile"
3172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3173 *) ac_try_echo=$ac_try;;
3175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3176 (eval "$ac_compile") 2>conftest.er1
3178 grep -v '^ *+' conftest.er1 >conftest.err
3180 cat conftest.err >&5
3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); } && {
3183 test -z "$ac_c_werror_flag" ||
3184 test ! -s conftest.err
3185 } && test -s conftest.$ac_objext; then
3186 ac_cv_sys_large_files=1; break
3188 echo "$as_me: failed program was:" >&5
3189 sed 's/^/| /' conftest.$ac_ext >&5
3194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3195 ac_cv_sys_large_files=unknown
3199 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3200 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
3201 case $ac_cv_sys_large_files in #(
3204 cat >>confdefs.h <<_ACEOF
3205 #define _LARGE_FILES $ac_cv_sys_large_files
3215 LIBSYMPATHY_MAJOR_VERSION=`cat $srcdir/version-major`
3216 LIBSYMPATHY_MINOR_VERSION=`cat $srcdir/version-minor`
3217 LIBSYMPATHY_MICRO_VERSION=`cat $srcdir/version-micro`
3221 LIBSYMPATHY_INTERFACE_VERSION_MIN=$LIBSYMPATHY_MINOR_VERSION
3222 LIBSYMPATHY_INTERFACE_VERSION_MAX=$LIBSYMPATHY_MINOR_VERSION
3223 LIBSYMPATHY_INTERFACE_REVISION=1
3225 LIBSYMPATHY_VERSION=$LIBSYMPATHY_MAJOR_VERSION.$LIBSYMPATHY_MINOR_VERSION.$LIBSYMPATHY_MICRO_VERSION
3237 LT_RELEASE=$LIBSYMPATHY_MAJOR_VERSION.$LIBSYMPATHY_MINOR_VERSION
3238 LT_CURRENT=$LIBSYMPATHY_INTERFACE_VERSION_MAX
3239 LT_REVISION=$LIBSYMPATHY_MICRO_VERSION
3240 LT_AGE=`expr $LIBSYMPATHY_INTERFACE_VERSION_MAX - $LIBSYMPATHY_INTERFACE_VERSION_MIN`
3247 VERSION=$LIBSYMPATHY_VERSION
3250 am__api_version='1.10'
3253 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3254 if test -f "$ac_dir/install-sh"; then
3256 ac_install_sh="$ac_aux_dir/install-sh -c"
3258 elif test -f "$ac_dir/install.sh"; then
3260 ac_install_sh="$ac_aux_dir/install.sh -c"
3262 elif test -f "$ac_dir/shtool"; then
3264 ac_install_sh="$ac_aux_dir/shtool install -c"
3268 if test -z "$ac_aux_dir"; then
3269 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
3270 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
3271 { (exit 1); exit 1; }; }
3274 # These three variables are undocumented and unsupported,
3275 # and are intended to be withdrawn in a future Autoconf release.
3276 # They can cause serious problems if a builder's source tree is in a directory
3277 # whose full name contains unusual characters.
3278 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3279 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3280 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3283 # Find a good install program. We prefer a C program (faster),
3284 # so one script is as good as another. But avoid the broken or
3285 # incompatible versions:
3286 # SysV /etc/install, /usr/sbin/install
3287 # SunOS /usr/etc/install
3288 # IRIX /sbin/install
3290 # AmigaOS /C/install, which installs bootblocks on floppy discs
3291 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3292 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3293 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3294 # OS/2's system install, which has a completely different semantic
3295 # ./install, which can be erroneously created by make from ./install.sh.
3296 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3297 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3298 if test -z "$INSTALL"; then
3299 if test "${ac_cv_path_install+set}" = set; then
3300 echo $ECHO_N "(cached) $ECHO_C" >&6
3302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3306 test -z "$as_dir" && as_dir=.
3307 # Account for people who put trailing slashes in PATH elements.
3309 ./ | .// | /cC/* | \
3310 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3311 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3314 # OSF1 and SCO ODT 3.0 have their own names for install.
3315 # Don't use installbsd from OSF since it installs stuff as root
3317 for ac_prog in ginstall scoinst install; do
3318 for ac_exec_ext in '' $ac_executable_extensions; do
3319 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3320 if test $ac_prog = install &&
3321 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3322 # AIX install. It has an incompatible calling convention.
3324 elif test $ac_prog = install &&
3325 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3326 # program-specific install script used by HP pwplus--don't use.
3329 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3342 if test "${ac_cv_path_install+set}" = set; then
3343 INSTALL=$ac_cv_path_install
3345 # As a last resort, use the slow shell script. Don't cache a
3346 # value for INSTALL within a source directory, because that will
3347 # break other packages using the cache if that directory is
3348 # removed, or if the value is a relative name.
3349 INSTALL=$ac_install_sh
3352 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3353 echo "${ECHO_T}$INSTALL" >&6; }
3355 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3356 # It thinks the first close brace ends the variable substitution.
3357 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3359 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3361 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3363 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3364 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
3367 echo timestamp > conftest.file
3368 # Do `set' in a subshell so we don't clobber the current shell's
3369 # arguments. Must try -L first in case configure is actually a
3370 # symlink; some systems play weird games with the mod time of symlinks
3371 # (eg FreeBSD returns the mod time of the symlink's containing
3374 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3375 if test "$*" = "X"; then
3377 set X `ls -t $srcdir/configure conftest.file`
3380 if test "$*" != "X $srcdir/configure conftest.file" \
3381 && test "$*" != "X conftest.file $srcdir/configure"; then
3383 # If neither matched, then we have a broken ls. This can happen
3384 # if, for instance, CONFIG_SHELL is bash and it inherits a
3385 # broken ls alias from the environment. This has actually
3386 # happened. Such a system could not be considered "sane".
3387 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
3388 alias in your environment" >&5
3389 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
3390 alias in your environment" >&2;}
3391 { (exit 1); exit 1; }; }
3394 test "$2" = conftest.file
3400 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3401 Check your system clock" >&5
3402 echo "$as_me: error: newly created file is older than distributed files!
3403 Check your system clock" >&2;}
3404 { (exit 1); exit 1; }; }
3406 { echo "$as_me:$LINENO: result: yes" >&5
3407 echo "${ECHO_T}yes" >&6; }
3408 test "$program_prefix" != NONE &&
3409 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3410 # Use a double $ so make ignores it.
3411 test "$program_suffix" != NONE &&
3412 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3413 # Double any \ or $. echo might interpret backslashes.
3414 # By default was `s,x,x', remove it if useless.
3415 cat <<\_ACEOF >conftest.sed
3416 s/[\\$]/&&/g;s/;s,x,x,$//
3418 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3421 # expand $ac_aux_dir to an absolute path
3422 am_aux_dir=`cd $ac_aux_dir && pwd`
3424 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3425 # Use eval to expand $SHELL
3426 if eval "$MISSING --run true"; then
3427 am_missing_run="$MISSING --run "
3430 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3431 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3434 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3435 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
3436 if test -z "$MKDIR_P"; then
3437 if test "${ac_cv_path_mkdir+set}" = set; then
3438 echo $ECHO_N "(cached) $ECHO_C" >&6
3440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3441 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3444 test -z "$as_dir" && as_dir=.
3445 for ac_prog in mkdir gmkdir; do
3446 for ac_exec_ext in '' $ac_executable_extensions; do
3447 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3448 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3449 'mkdir (GNU coreutils) '* | \
3450 'mkdir (coreutils) '* | \
3451 'mkdir (fileutils) '4.1*)
3452 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3462 if test "${ac_cv_path_mkdir+set}" = set; then
3463 MKDIR_P="$ac_cv_path_mkdir -p"
3465 # As a last resort, use the slow shell script. Don't cache a
3466 # value for MKDIR_P within a source directory, because that will
3467 # break other packages using the cache if that directory is
3468 # removed, or if the value is a relative name.
3469 test -d ./--version && rmdir ./--version
3470 MKDIR_P="$ac_install_sh -d"
3473 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3474 echo "${ECHO_T}$MKDIR_P" >&6; }
3478 [\\/$]* | ?:[\\/]*) ;;
3479 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3482 for ac_prog in gawk mawk nawk awk
3484 # Extract the first word of "$ac_prog", so it can be a program name with args.
3485 set dummy $ac_prog; ac_word=$2
3486 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3488 if test "${ac_cv_prog_AWK+set}" = set; then
3489 echo $ECHO_N "(cached) $ECHO_C" >&6
3491 if test -n "$AWK"; then
3492 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3498 test -z "$as_dir" && as_dir=.
3499 for ac_exec_ext in '' $ac_executable_extensions; do
3500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3501 ac_cv_prog_AWK="$ac_prog"
3502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3512 if test -n "$AWK"; then
3513 { echo "$as_me:$LINENO: result: $AWK" >&5
3514 echo "${ECHO_T}$AWK" >&6; }
3516 { echo "$as_me:$LINENO: result: no" >&5
3517 echo "${ECHO_T}no" >&6; }
3521 test -n "$AWK" && break
3524 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3525 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3526 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3527 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3528 echo $ECHO_N "(cached) $ECHO_C" >&6
3530 cat >conftest.make <<\_ACEOF
3533 @echo '@@@%%%=$(MAKE)=@@@%%%'
3535 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3536 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3538 eval ac_cv_prog_make_${ac_make}_set=yes;;
3540 eval ac_cv_prog_make_${ac_make}_set=no;;
3544 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3545 { echo "$as_me:$LINENO: result: yes" >&5
3546 echo "${ECHO_T}yes" >&6; }
3549 { echo "$as_me:$LINENO: result: no" >&5
3550 echo "${ECHO_T}no" >&6; }
3551 SET_MAKE="MAKE=${MAKE-make}"
3554 rm -rf .tst 2>/dev/null
3555 mkdir .tst 2>/dev/null
3556 if test -d .tst; then
3561 rmdir .tst 2>/dev/null
3563 DEPDIR="${am__leading_dot}deps"
3565 ac_config_commands="$ac_config_commands depfiles"
3568 am_make=${MAKE-make}
3569 cat > confinc << 'END'
3574 # If we don't find an include directive, just comment out the code.
3575 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3576 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3580 # First try GNU make style include.
3581 echo "include confinc" > confmf
3582 # We grep out `Entering directory' and `Leaving directory'
3583 # messages which can occur if `w' ends up in MAKEFLAGS.
3584 # In particular we don't look at `^make:' because GNU make might
3585 # be invoked under some other name (usually "gmake"), in which
3586 # case it prints its new name instead of `make'.
3587 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3592 # Now try BSD make style include.
3593 if test "$am__include" = "#"; then
3594 echo '.include "confinc"' > confmf
3595 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3596 am__include=.include
3603 { echo "$as_me:$LINENO: result: $_am_result" >&5
3604 echo "${ECHO_T}$_am_result" >&6; }
3605 rm -f confinc confmf
3607 # Check whether --enable-dependency-tracking was given.
3608 if test "${enable_dependency_tracking+set}" = set; then
3609 enableval=$enable_dependency_tracking;
3612 if test "x$enable_dependency_tracking" != xno; then
3613 am_depcomp="$ac_aux_dir/depcomp"
3616 if test "x$enable_dependency_tracking" != xno; then
3625 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3626 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3627 # is not polluted with repeated "-I."
3628 am__isrc=' -I$(srcdir)'
3629 # test to see if srcdir already configured
3630 if test -f $srcdir/config.status; then
3631 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3632 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3633 { (exit 1); exit 1; }; }
3637 # test whether we have cygpath
3638 if test -z "$CYGPATH_W"; then
3639 if (cygpath --version) >/dev/null 2>/dev/null; then
3640 CYGPATH_W='cygpath -w'
3647 # Define the identity of the package.
3652 cat >>confdefs.h <<_ACEOF
3653 #define PACKAGE "$PACKAGE"
3657 cat >>confdefs.h <<_ACEOF
3658 #define VERSION "$VERSION"
3661 # Some tools Automake needs.
3663 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3666 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3669 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3672 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3675 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3677 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
3679 # Installed binaries are usually stripped using `strip' when the user
3680 # run `make install-strip'. However `strip' might not be the right
3681 # tool to use in cross-compilation environments, therefore Automake
3682 # will honor the `STRIP' environment variable to overrule this program.
3683 if test "$cross_compiling" != no; then
3684 if test -n "$ac_tool_prefix"; then
3685 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3686 set dummy ${ac_tool_prefix}strip; ac_word=$2
3687 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3689 if test "${ac_cv_prog_STRIP+set}" = set; then
3690 echo $ECHO_N "(cached) $ECHO_C" >&6
3692 if test -n "$STRIP"; then
3693 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3699 test -z "$as_dir" && as_dir=.
3700 for ac_exec_ext in '' $ac_executable_extensions; do
3701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3702 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3712 STRIP=$ac_cv_prog_STRIP
3713 if test -n "$STRIP"; then
3714 { echo "$as_me:$LINENO: result: $STRIP" >&5
3715 echo "${ECHO_T}$STRIP" >&6; }
3717 { echo "$as_me:$LINENO: result: no" >&5
3718 echo "${ECHO_T}no" >&6; }
3723 if test -z "$ac_cv_prog_STRIP"; then
3725 # Extract the first word of "strip", so it can be a program name with args.
3726 set dummy strip; ac_word=$2
3727 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3729 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3730 echo $ECHO_N "(cached) $ECHO_C" >&6
3732 if test -n "$ac_ct_STRIP"; then
3733 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3739 test -z "$as_dir" && as_dir=.
3740 for ac_exec_ext in '' $ac_executable_extensions; do
3741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3742 ac_cv_prog_ac_ct_STRIP="strip"
3743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3752 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3753 if test -n "$ac_ct_STRIP"; then
3754 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3755 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
3757 { echo "$as_me:$LINENO: result: no" >&5
3758 echo "${ECHO_T}no" >&6; }
3761 if test "x$ac_ct_STRIP" = x; then
3764 case $cross_compiling:$ac_tool_warned in
3766 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3767 whose name does not start with the host triplet. If you think this
3768 configuration is useful to you, please write to autoconf@gnu.org." >&5
3769 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3770 whose name does not start with the host triplet. If you think this
3771 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3772 ac_tool_warned=yes ;;
3777 STRIP="$ac_cv_prog_STRIP"
3781 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3783 # We need awk for the "check" target. The system "awk" is bad on
3785 # Always define AMTAR for backward compatibility.
3787 AMTAR=${AMTAR-"${am_missing_run}tar"}
3789 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3794 depcc="$CC" am_compiler_list=
3796 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3797 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3798 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3799 echo $ECHO_N "(cached) $ECHO_C" >&6
3801 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3802 # We make a subdir and do the tests there. Otherwise we can end up
3803 # making bogus files that we don't know about and never remove. For
3804 # instance it was reported that on HP-UX the gcc test will end up
3805 # making a dummy file named `D' -- because `-MD' means `put the output
3808 # Copy depcomp to subdir because otherwise we won't find it if we're
3809 # using a relative directory.
3810 cp "$am_depcomp" conftest.dir
3812 # We will build objects and dependencies in a subdirectory because
3813 # it helps to detect inapplicable dependency modes. For instance
3814 # both Tru64's cc and ICC support -MD to output dependencies as a
3815 # side effect of compilation, but ICC will put the dependencies in
3816 # the current directory while Tru64 will put them in the object
3820 am_cv_CC_dependencies_compiler_type=none
3821 if test "$am_compiler_list" = ""; then
3822 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3824 for depmode in $am_compiler_list; do
3825 # Setup a source with many dependencies, because some compilers
3826 # like to wrap large dependency lists on column 80 (with \), and
3827 # we should not choose a depcomp mode which is confused by this.
3829 # We need to recreate these files for each test, as the compiler may
3830 # overwrite some of them when testing with obscure command lines.
3831 # This happens at least with the AIX C compiler.
3833 for i in 1 2 3 4 5 6; do
3834 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3835 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3836 # Solaris 8's {/usr,}/bin/sh.
3837 touch sub/conftst$i.h
3839 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3843 # after this tag, mechanisms are not by side-effect, so they'll
3844 # only be used when explicitly requested
3845 if test "x$enable_dependency_tracking" = xyes; then
3853 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3854 # mode. It turns out that the SunPro C++ compiler does not properly
3855 # handle `-M -o', and we need to detect this.
3856 if depmode=$depmode \
3857 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3858 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3859 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3860 >/dev/null 2>conftest.err &&
3861 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3862 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3863 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3864 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3865 # icc doesn't choke on unknown options, it will just issue warnings
3866 # or remarks (even with -Werror). So we grep stderr for any message
3867 # that says an option was ignored or not supported.
3868 # When given -MP, icc 7.0 and 7.1 complain thusly:
3869 # icc: Command line warning: ignoring option '-M'; no argument required
3870 # The diagnosis changed in icc 8.0:
3871 # icc: Command line remark: option '-MP' not supported
3872 if (grep 'ignoring option' conftest.err ||
3873 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3874 am_cv_CC_dependencies_compiler_type=$depmode
3883 am_cv_CC_dependencies_compiler_type=none
3887 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3888 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3889 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3892 test "x$enable_dependency_tracking" != xno \
3893 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3895 am__fastdepCC_FALSE='#'
3897 am__fastdepCC_TRUE='#'
3898 am__fastdepCC_FALSE=
3904 # Check whether --enable-shared was given.
3905 if test "${enable_shared+set}" = set; then
3906 enableval=$enable_shared; p=${PACKAGE-default}
3908 yes) enable_shared=yes ;;
3909 no) enable_shared=no ;;
3912 # Look at the argument we got. We use all the common list separators.
3913 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3914 for pkg in $enableval; do
3916 if test "X$pkg" = "X$p"; then
3928 # Check whether --enable-static was given.
3929 if test "${enable_static+set}" = set; then
3930 enableval=$enable_static; p=${PACKAGE-default}
3932 yes) enable_static=yes ;;
3933 no) enable_static=no ;;
3936 # Look at the argument we got. We use all the common list separators.
3937 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3938 for pkg in $enableval; do
3940 if test "X$pkg" = "X$p"; then
3952 # Check whether --enable-fast-install was given.
3953 if test "${enable_fast_install+set}" = set; then
3954 enableval=$enable_fast_install; p=${PACKAGE-default}
3956 yes) enable_fast_install=yes ;;
3957 no) enable_fast_install=no ;;
3959 enable_fast_install=no
3960 # Look at the argument we got. We use all the common list separators.
3961 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3962 for pkg in $enableval; do
3964 if test "X$pkg" = "X$p"; then
3965 enable_fast_install=yes
3972 enable_fast_install=yes
3976 # Make sure we can run config.sub.
3977 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3978 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3979 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3980 { (exit 1); exit 1; }; }
3982 { echo "$as_me:$LINENO: checking build system type" >&5
3983 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3984 if test "${ac_cv_build+set}" = set; then
3985 echo $ECHO_N "(cached) $ECHO_C" >&6
3987 ac_build_alias=$build_alias
3988 test "x$ac_build_alias" = x &&
3989 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3990 test "x$ac_build_alias" = x &&
3991 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3992 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3993 { (exit 1); exit 1; }; }
3994 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3995 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3996 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3997 { (exit 1); exit 1; }; }
4000 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4001 echo "${ECHO_T}$ac_cv_build" >&6; }
4002 case $ac_cv_build in
4004 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4005 echo "$as_me: error: invalid value of canonical build" >&2;}
4006 { (exit 1); exit 1; }; };;
4009 ac_save_IFS=$IFS; IFS='-'
4015 # Remember, the first character of IFS is used to create $*,
4016 # except with old shells:
4019 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4022 { echo "$as_me:$LINENO: checking host system type" >&5
4023 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4024 if test "${ac_cv_host+set}" = set; then
4025 echo $ECHO_N "(cached) $ECHO_C" >&6
4027 if test "x$host_alias" = x; then
4028 ac_cv_host=$ac_cv_build
4030 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4031 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4032 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4033 { (exit 1); exit 1; }; }
4037 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4038 echo "${ECHO_T}$ac_cv_host" >&6; }
4041 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4042 echo "$as_me: error: invalid value of canonical host" >&2;}
4043 { (exit 1); exit 1; }; };;
4046 ac_save_IFS=$IFS; IFS='-'
4052 # Remember, the first character of IFS is used to create $*,
4053 # except with old shells:
4056 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4059 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4060 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4061 if test "${lt_cv_path_SED+set}" = set; then
4062 echo $ECHO_N "(cached) $ECHO_C" >&6
4064 # Loop through the user's path and test for sed and gsed.
4065 # Then use that list of sed's as ones to test for truncation.
4066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4070 test -z "$as_dir" && as_dir=.
4071 for lt_ac_prog in sed gsed; do
4072 for ac_exec_ext in '' $ac_executable_extensions; do
4073 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4074 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4082 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4083 # along with /bin/sed that truncates output.
4084 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4085 test ! -f $lt_ac_sed && continue
4086 cat /dev/null > conftest.in
4088 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4089 # Check for GNU sed and select it if it is found.
4090 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4091 lt_cv_path_SED=$lt_ac_sed
4095 cat conftest.in conftest.in >conftest.tmp
4096 mv conftest.tmp conftest.in
4097 cp conftest.in conftest.nl
4099 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4100 cmp -s conftest.out conftest.nl || break
4101 # 10000 chars as input seems more than enough
4102 test $lt_ac_count -gt 10 && break
4103 lt_ac_count=`expr $lt_ac_count + 1`
4104 if test $lt_ac_count -gt $lt_ac_max; then
4105 lt_ac_max=$lt_ac_count
4106 lt_cv_path_SED=$lt_ac_sed
4115 { echo "$as_me:$LINENO: result: $SED" >&5
4116 echo "${ECHO_T}$SED" >&6; }
4118 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4119 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4120 if test "${ac_cv_path_GREP+set}" = set; then
4121 echo $ECHO_N "(cached) $ECHO_C" >&6
4123 # Extract the first word of "grep ggrep" to use in msg output
4124 if test -z "$GREP"; then
4125 set dummy grep ggrep; ac_prog_name=$2
4126 if test "${ac_cv_path_GREP+set}" = set; then
4127 echo $ECHO_N "(cached) $ECHO_C" >&6
4129 ac_path_GREP_found=false
4130 # Loop through the user's path and test for each of PROGNAME-LIST
4131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4132 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4135 test -z "$as_dir" && as_dir=.
4136 for ac_prog in grep ggrep; do
4137 for ac_exec_ext in '' $ac_executable_extensions; do
4138 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4139 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4140 # Check for GNU ac_path_GREP and select it if it is found.
4141 # Check for GNU $ac_path_GREP
4142 case `"$ac_path_GREP" --version 2>&1` in
4144 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4147 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4150 cat "conftest.in" "conftest.in" >"conftest.tmp"
4151 mv "conftest.tmp" "conftest.in"
4152 cp "conftest.in" "conftest.nl"
4153 echo 'GREP' >> "conftest.nl"
4154 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4155 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4156 ac_count=`expr $ac_count + 1`
4157 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4158 # Best one so far, save it but keep looking for a better one
4159 ac_cv_path_GREP="$ac_path_GREP"
4160 ac_path_GREP_max=$ac_count
4162 # 10*(2^10) chars as input seems more than enough
4163 test $ac_count -gt 10 && break
4165 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4169 $ac_path_GREP_found && break 3
4179 GREP="$ac_cv_path_GREP"
4180 if test -z "$GREP"; then
4181 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4182 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4183 { (exit 1); exit 1; }; }
4187 ac_cv_path_GREP=$GREP
4192 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4193 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4194 GREP="$ac_cv_path_GREP"
4197 { echo "$as_me:$LINENO: checking for egrep" >&5
4198 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4199 if test "${ac_cv_path_EGREP+set}" = set; then
4200 echo $ECHO_N "(cached) $ECHO_C" >&6
4202 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4203 then ac_cv_path_EGREP="$GREP -E"
4205 # Extract the first word of "egrep" to use in msg output
4206 if test -z "$EGREP"; then
4207 set dummy egrep; ac_prog_name=$2
4208 if test "${ac_cv_path_EGREP+set}" = set; then
4209 echo $ECHO_N "(cached) $ECHO_C" >&6
4211 ac_path_EGREP_found=false
4212 # Loop through the user's path and test for each of PROGNAME-LIST
4213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4214 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4217 test -z "$as_dir" && as_dir=.
4218 for ac_prog in egrep; do
4219 for ac_exec_ext in '' $ac_executable_extensions; do
4220 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4221 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4222 # Check for GNU ac_path_EGREP and select it if it is found.
4223 # Check for GNU $ac_path_EGREP
4224 case `"$ac_path_EGREP" --version 2>&1` in
4226 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4229 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4232 cat "conftest.in" "conftest.in" >"conftest.tmp"
4233 mv "conftest.tmp" "conftest.in"
4234 cp "conftest.in" "conftest.nl"
4235 echo 'EGREP' >> "conftest.nl"
4236 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4237 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4238 ac_count=`expr $ac_count + 1`
4239 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4240 # Best one so far, save it but keep looking for a better one
4241 ac_cv_path_EGREP="$ac_path_EGREP"
4242 ac_path_EGREP_max=$ac_count
4244 # 10*(2^10) chars as input seems more than enough
4245 test $ac_count -gt 10 && break
4247 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4251 $ac_path_EGREP_found && break 3
4261 EGREP="$ac_cv_path_EGREP"
4262 if test -z "$EGREP"; then
4263 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4264 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4265 { (exit 1); exit 1; }; }
4269 ac_cv_path_EGREP=$EGREP
4275 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4276 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4277 EGREP="$ac_cv_path_EGREP"
4281 # Check whether --with-gnu-ld was given.
4282 if test "${with_gnu_ld+set}" = set; then
4283 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4289 if test "$GCC" = yes; then
4290 # Check if gcc -print-prog-name=ld gives a path.
4291 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4292 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4295 # gcc leaves a trailing carriage return which upsets mingw
4296 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4298 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4301 # Accept absolute paths.
4303 re_direlt='/[^/][^/]*/\.\./'
4304 # Canonicalize the pathname of ld
4305 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4306 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4307 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4309 test -z "$LD" && LD="$ac_prog"
4312 # If it fails, then pretend we aren't using GCC.
4316 # If it is relative, then search for the first ld in PATH.
4320 elif test "$with_gnu_ld" = yes; then
4321 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4322 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4324 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4325 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4327 if test "${lt_cv_path_LD+set}" = set; then
4328 echo $ECHO_N "(cached) $ECHO_C" >&6
4330 if test -z "$LD"; then
4331 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4332 for ac_dir in $PATH; do
4334 test -z "$ac_dir" && ac_dir=.
4335 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4336 lt_cv_path_LD="$ac_dir/$ac_prog"
4337 # Check to see if the program is GNU ld. I'd rather use --version,
4338 # but apparently some variants of GNU ld only accept -v.
4339 # Break only if it was the GNU/non-GNU ld that we prefer.
4340 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4341 *GNU* | *'with BFD'*)
4342 test "$with_gnu_ld" != no && break
4345 test "$with_gnu_ld" != yes && break
4352 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4357 if test -n "$LD"; then
4358 { echo "$as_me:$LINENO: result: $LD" >&5
4359 echo "${ECHO_T}$LD" >&6; }
4361 { echo "$as_me:$LINENO: result: no" >&5
4362 echo "${ECHO_T}no" >&6; }
4364 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4365 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4366 { (exit 1); exit 1; }; }
4367 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4368 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4369 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4370 echo $ECHO_N "(cached) $ECHO_C" >&6
4372 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4373 case `$LD -v 2>&1 </dev/null` in
4374 *GNU* | *'with BFD'*)
4375 lt_cv_prog_gnu_ld=yes
4378 lt_cv_prog_gnu_ld=no
4382 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4383 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4384 with_gnu_ld=$lt_cv_prog_gnu_ld
4387 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4388 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4389 if test "${lt_cv_ld_reload_flag+set}" = set; then
4390 echo $ECHO_N "(cached) $ECHO_C" >&6
4392 lt_cv_ld_reload_flag='-r'
4394 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4395 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4396 reload_flag=$lt_cv_ld_reload_flag
4397 case $reload_flag in
4399 *) reload_flag=" $reload_flag" ;;
4401 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4404 if test "$GCC" = yes; then
4405 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4407 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4412 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4413 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4414 if test "${lt_cv_path_NM+set}" = set; then
4415 echo $ECHO_N "(cached) $ECHO_C" >&6
4417 if test -n "$NM"; then
4418 # Let the user override the test.
4421 lt_nm_to_check="${ac_tool_prefix}nm"
4422 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4423 lt_nm_to_check="$lt_nm_to_check nm"
4425 for lt_tmp_nm in $lt_nm_to_check; do
4426 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4427 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4429 test -z "$ac_dir" && ac_dir=.
4430 tmp_nm="$ac_dir/$lt_tmp_nm"
4431 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4432 # Check to see if the nm accepts a BSD-compat flag.
4433 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4434 # nm: unknown option "B" ignored
4435 # Tru64's nm complains that /dev/null is an invalid object file
4436 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4437 */dev/null* | *'Invalid file or object type'*)
4438 lt_cv_path_NM="$tmp_nm -B"
4442 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4444 lt_cv_path_NM="$tmp_nm -p"
4448 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4449 continue # so that we can try to find one that supports BSD flags
4458 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4461 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4462 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4465 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4466 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4468 if test "$LN_S" = "ln -s"; then
4469 { echo "$as_me:$LINENO: result: yes" >&5
4470 echo "${ECHO_T}yes" >&6; }
4472 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4473 echo "${ECHO_T}no, using $LN_S" >&6; }
4476 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4477 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4478 if test "${lt_cv_deplibs_check_method+set}" = set; then
4479 echo $ECHO_N "(cached) $ECHO_C" >&6
4481 lt_cv_file_magic_cmd='$MAGIC_CMD'
4482 lt_cv_file_magic_test_file=
4483 lt_cv_deplibs_check_method='unknown'
4484 # Need to set the preceding variable on all platforms that support
4485 # interlibrary dependencies.
4486 # 'none' -- dependencies not supported.
4487 # `unknown' -- same as none, but documents that we really don't know.
4488 # 'pass_all' -- all dependencies passed with no checks.
4489 # 'test_compile' -- check by making test program.
4490 # 'file_magic [[regex]]' -- check by looking for files in library path
4491 # which responds to the $file_magic_cmd with a given extended regex.
4492 # If you have `file' or equivalent on your system and you're not sure
4493 # whether `pass_all' will *always* work, you probably want this one.
4497 lt_cv_deplibs_check_method=pass_all
4501 lt_cv_deplibs_check_method=pass_all
4505 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4506 lt_cv_file_magic_cmd='/usr/bin/file -L'
4507 lt_cv_file_magic_test_file=/shlib/libc.so
4511 # func_win32_libid is a shell function defined in ltmain.sh
4512 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4513 lt_cv_file_magic_cmd='func_win32_libid'
4517 # Base MSYS/MinGW do not provide the 'file' command needed by
4518 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4519 # unless we find 'file', for example because we are cross-compiling.
4520 if ( file / ) >/dev/null 2>&1; then
4521 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4522 lt_cv_file_magic_cmd='func_win32_libid'
4524 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4525 lt_cv_file_magic_cmd='$OBJDUMP -f'
4529 darwin* | rhapsody*)
4530 lt_cv_deplibs_check_method=pass_all
4533 freebsd* | dragonfly*)
4534 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4537 # Not sure whether the presence of OpenBSD here was a mistake.
4538 # Let's accept both of them until this is cleared up.
4539 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4540 lt_cv_file_magic_cmd=/usr/bin/file
4541 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4545 lt_cv_deplibs_check_method=pass_all
4550 lt_cv_deplibs_check_method=pass_all
4553 hpux10.20* | hpux11*)
4554 lt_cv_file_magic_cmd=/usr/bin/file
4557 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4558 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4561 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]'
4562 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4565 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4566 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4572 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4573 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4576 irix5* | irix6* | nonstopux*)
4578 *-32|*"-32 ") libmagic=32-bit;;
4579 *-n32|*"-n32 ") libmagic=N32;;
4580 *-64|*"-64 ") libmagic=64-bit;;
4581 *) libmagic=never-match;;
4583 lt_cv_deplibs_check_method=pass_all
4586 # This must be Linux ELF.
4587 linux* | k*bsd*-gnu)
4588 lt_cv_deplibs_check_method=pass_all
4591 netbsd* | netbsdelf*-gnu)
4592 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4593 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4595 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4600 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4601 lt_cv_file_magic_cmd=/usr/bin/file
4602 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4606 lt_cv_deplibs_check_method=unknown
4610 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4611 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4613 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4617 osf3* | osf4* | osf5*)
4618 lt_cv_deplibs_check_method=pass_all
4622 lt_cv_deplibs_check_method=pass_all
4626 lt_cv_deplibs_check_method=pass_all
4630 case $host_vendor in
4632 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]'
4633 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4636 lt_cv_deplibs_check_method=pass_all
4639 lt_cv_file_magic_cmd='/bin/file'
4640 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4643 lt_cv_file_magic_cmd='/bin/file'
4644 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4645 lt_cv_file_magic_test_file=/lib/libc.so
4648 lt_cv_deplibs_check_method=pass_all
4651 lt_cv_deplibs_check_method=pass_all
4656 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4657 lt_cv_deplibs_check_method=pass_all
4662 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4663 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4664 file_magic_cmd=$lt_cv_file_magic_cmd
4665 deplibs_check_method=$lt_cv_deplibs_check_method
4666 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4671 # If no C compiler was specified, use CC.
4674 # If no C compiler flags were specified, use CFLAGS.
4675 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4677 # Allow CC to be a program name with arguments.
4680 # Check whether --enable-libtool-lock was given.
4681 if test "${enable_libtool_lock+set}" = set; then
4682 enableval=$enable_libtool_lock;
4685 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4687 # Some flags need to be propagated to the compiler or linker for good
4691 # Find out which ABI we are using.
4692 echo 'int i;' > conftest.$ac_ext
4693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4694 (eval $ac_compile) 2>&5
4696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697 (exit $ac_status); }; then
4698 case `/usr/bin/file conftest.$ac_objext` in
4710 # Find out which ABI we are using.
4711 echo '#line 4711 "configure"' > conftest.$ac_ext
4712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4713 (eval $ac_compile) 2>&5
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); }; then
4717 if test "$lt_cv_prog_gnu_ld" = yes; then
4718 case `/usr/bin/file conftest.$ac_objext` in
4720 LD="${LD-ld} -melf32bsmip"
4723 LD="${LD-ld} -melf32bmipn32"
4726 LD="${LD-ld} -melf64bmip"
4730 case `/usr/bin/file conftest.$ac_objext` in
4746 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4747 s390*-*linux*|sparc*-*linux*)
4748 # Find out which ABI we are using.
4749 echo 'int i;' > conftest.$ac_ext
4750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4751 (eval $ac_compile) 2>&5
4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754 (exit $ac_status); }; then
4755 case `/usr/bin/file conftest.o` in
4758 x86_64-*kfreebsd*-gnu)
4759 LD="${LD-ld} -m elf_i386_fbsd"
4762 LD="${LD-ld} -m elf_i386"
4764 ppc64-*linux*|powerpc64-*linux*)
4765 LD="${LD-ld} -m elf32ppclinux"
4768 LD="${LD-ld} -m elf_s390"
4771 LD="${LD-ld} -m elf32_sparc"
4777 x86_64-*kfreebsd*-gnu)
4778 LD="${LD-ld} -m elf_x86_64_fbsd"
4781 LD="${LD-ld} -m elf_x86_64"
4783 ppc*-*linux*|powerpc*-*linux*)
4784 LD="${LD-ld} -m elf64ppc"
4787 LD="${LD-ld} -m elf64_s390"
4790 LD="${LD-ld} -m elf64_sparc"
4800 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4801 SAVE_CFLAGS="$CFLAGS"
4802 CFLAGS="$CFLAGS -belf"
4803 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4804 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4805 if test "${lt_cv_cc_needs_belf+set}" = set; then
4806 echo $ECHO_N "(cached) $ECHO_C" >&6
4809 ac_cpp='$CPP $CPPFLAGS'
4810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4814 cat >conftest.$ac_ext <<_ACEOF
4817 cat confdefs.h >>conftest.$ac_ext
4818 cat >>conftest.$ac_ext <<_ACEOF
4819 /* end confdefs.h. */
4829 rm -f conftest.$ac_objext conftest$ac_exeext
4830 if { (ac_try="$ac_link"
4832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4833 *) ac_try_echo=$ac_try;;
4835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4836 (eval "$ac_link") 2>conftest.er1
4838 grep -v '^ *+' conftest.er1 >conftest.err
4840 cat conftest.err >&5
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); } && {
4843 test -z "$ac_c_werror_flag" ||
4844 test ! -s conftest.err
4845 } && test -s conftest$ac_exeext &&
4846 $as_test_x conftest$ac_exeext; then
4847 lt_cv_cc_needs_belf=yes
4849 echo "$as_me: failed program was:" >&5
4850 sed 's/^/| /' conftest.$ac_ext >&5
4852 lt_cv_cc_needs_belf=no
4855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4856 conftest$ac_exeext conftest.$ac_ext
4858 ac_cpp='$CPP $CPPFLAGS'
4859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4864 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4865 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4866 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4867 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4868 CFLAGS="$SAVE_CFLAGS"
4872 # Find out which ABI we are using.
4873 echo 'int i;' > conftest.$ac_ext
4874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4875 (eval $ac_compile) 2>&5
4877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878 (exit $ac_status); }; then
4879 case `/usr/bin/file conftest.o` in
4881 case $lt_cv_prog_gnu_ld in
4882 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4884 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4898 need_locks="$enable_libtool_lock"
4902 ac_cpp='$CPP $CPPFLAGS'
4903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4906 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4907 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4908 # On Suns, sometimes $CPP names a directory.
4909 if test -n "$CPP" && test -d "$CPP"; then
4912 if test -z "$CPP"; then
4913 if test "${ac_cv_prog_CPP+set}" = set; then
4914 echo $ECHO_N "(cached) $ECHO_C" >&6
4916 # Double quotes because CPP needs to be expanded
4917 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4920 for ac_c_preproc_warn_flag in '' yes
4922 # Use a header file that comes with gcc, so configuring glibc
4923 # with a fresh cross-compiler works.
4924 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4925 # <limits.h> exists even on freestanding compilers.
4926 # On the NeXT, cc -E runs the code through the compiler's parser,
4927 # not just through cpp. "Syntax error" is here to catch this case.
4928 cat >conftest.$ac_ext <<_ACEOF
4931 cat confdefs.h >>conftest.$ac_ext
4932 cat >>conftest.$ac_ext <<_ACEOF
4933 /* end confdefs.h. */
4935 # include <limits.h>
4937 # include <assert.h>
4941 if { (ac_try="$ac_cpp conftest.$ac_ext"
4943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4944 *) ac_try_echo=$ac_try;;
4946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4947 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4949 grep -v '^ *+' conftest.er1 >conftest.err
4951 cat conftest.err >&5
4952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953 (exit $ac_status); } >/dev/null && {
4954 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4955 test ! -s conftest.err
4959 echo "$as_me: failed program was:" >&5
4960 sed 's/^/| /' conftest.$ac_ext >&5
4962 # Broken: fails on valid input.
4966 rm -f conftest.err conftest.$ac_ext
4968 # OK, works on sane cases. Now check whether nonexistent headers
4969 # can be detected and how.
4970 cat >conftest.$ac_ext <<_ACEOF
4973 cat confdefs.h >>conftest.$ac_ext
4974 cat >>conftest.$ac_ext <<_ACEOF
4975 /* end confdefs.h. */
4976 #include <ac_nonexistent.h>
4978 if { (ac_try="$ac_cpp conftest.$ac_ext"
4980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4981 *) ac_try_echo=$ac_try;;
4983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4984 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4986 grep -v '^ *+' conftest.er1 >conftest.err
4988 cat conftest.err >&5
4989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990 (exit $ac_status); } >/dev/null && {
4991 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4992 test ! -s conftest.err
4994 # Broken: success on invalid input.
4997 echo "$as_me: failed program was:" >&5
4998 sed 's/^/| /' conftest.$ac_ext >&5
5000 # Passes both tests.
5005 rm -f conftest.err conftest.$ac_ext
5008 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5009 rm -f conftest.err conftest.$ac_ext
5010 if $ac_preproc_ok; then
5022 { echo "$as_me:$LINENO: result: $CPP" >&5
5023 echo "${ECHO_T}$CPP" >&6; }
5025 for ac_c_preproc_warn_flag in '' yes
5027 # Use a header file that comes with gcc, so configuring glibc
5028 # with a fresh cross-compiler works.
5029 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5030 # <limits.h> exists even on freestanding compilers.
5031 # On the NeXT, cc -E runs the code through the compiler's parser,
5032 # not just through cpp. "Syntax error" is here to catch this case.
5033 cat >conftest.$ac_ext <<_ACEOF
5036 cat confdefs.h >>conftest.$ac_ext
5037 cat >>conftest.$ac_ext <<_ACEOF
5038 /* end confdefs.h. */
5040 # include <limits.h>
5042 # include <assert.h>
5046 if { (ac_try="$ac_cpp conftest.$ac_ext"
5048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5049 *) ac_try_echo=$ac_try;;
5051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5052 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5054 grep -v '^ *+' conftest.er1 >conftest.err
5056 cat conftest.err >&5
5057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058 (exit $ac_status); } >/dev/null && {
5059 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5060 test ! -s conftest.err
5064 echo "$as_me: failed program was:" >&5
5065 sed 's/^/| /' conftest.$ac_ext >&5
5067 # Broken: fails on valid input.
5071 rm -f conftest.err conftest.$ac_ext
5073 # OK, works on sane cases. Now check whether nonexistent headers
5074 # can be detected and how.
5075 cat >conftest.$ac_ext <<_ACEOF
5078 cat confdefs.h >>conftest.$ac_ext
5079 cat >>conftest.$ac_ext <<_ACEOF
5080 /* end confdefs.h. */
5081 #include <ac_nonexistent.h>
5083 if { (ac_try="$ac_cpp conftest.$ac_ext"
5085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5086 *) ac_try_echo=$ac_try;;
5088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5089 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5091 grep -v '^ *+' conftest.er1 >conftest.err
5093 cat conftest.err >&5
5094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095 (exit $ac_status); } >/dev/null && {
5096 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5097 test ! -s conftest.err
5099 # Broken: success on invalid input.
5102 echo "$as_me: failed program was:" >&5
5103 sed 's/^/| /' conftest.$ac_ext >&5
5105 # Passes both tests.
5110 rm -f conftest.err conftest.$ac_ext
5113 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5114 rm -f conftest.err conftest.$ac_ext
5115 if $ac_preproc_ok; then
5118 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5119 See \`config.log' for more details." >&5
5120 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5121 See \`config.log' for more details." >&2;}
5122 { (exit 1); exit 1; }; }
5126 ac_cpp='$CPP $CPPFLAGS'
5127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5132 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5133 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5134 if test "${ac_cv_header_stdc+set}" = set; then
5135 echo $ECHO_N "(cached) $ECHO_C" >&6
5137 cat >conftest.$ac_ext <<_ACEOF
5140 cat confdefs.h >>conftest.$ac_ext
5141 cat >>conftest.$ac_ext <<_ACEOF
5142 /* end confdefs.h. */
5156 rm -f conftest.$ac_objext
5157 if { (ac_try="$ac_compile"
5159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5160 *) ac_try_echo=$ac_try;;
5162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5163 (eval "$ac_compile") 2>conftest.er1
5165 grep -v '^ *+' conftest.er1 >conftest.err
5167 cat conftest.err >&5
5168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169 (exit $ac_status); } && {
5170 test -z "$ac_c_werror_flag" ||
5171 test ! -s conftest.err
5172 } && test -s conftest.$ac_objext; then
5173 ac_cv_header_stdc=yes
5175 echo "$as_me: failed program was:" >&5
5176 sed 's/^/| /' conftest.$ac_ext >&5
5178 ac_cv_header_stdc=no
5181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5183 if test $ac_cv_header_stdc = yes; then
5184 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5185 cat >conftest.$ac_ext <<_ACEOF
5188 cat confdefs.h >>conftest.$ac_ext
5189 cat >>conftest.$ac_ext <<_ACEOF
5190 /* end confdefs.h. */
5194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5195 $EGREP "memchr" >/dev/null 2>&1; then
5198 ac_cv_header_stdc=no
5204 if test $ac_cv_header_stdc = yes; then
5205 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5206 cat >conftest.$ac_ext <<_ACEOF
5209 cat confdefs.h >>conftest.$ac_ext
5210 cat >>conftest.$ac_ext <<_ACEOF
5211 /* end confdefs.h. */
5215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5216 $EGREP "free" >/dev/null 2>&1; then
5219 ac_cv_header_stdc=no
5225 if test $ac_cv_header_stdc = yes; then
5226 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5227 if test "$cross_compiling" = yes; then
5230 cat >conftest.$ac_ext <<_ACEOF
5233 cat confdefs.h >>conftest.$ac_ext
5234 cat >>conftest.$ac_ext <<_ACEOF
5235 /* end confdefs.h. */
5238 #if ((' ' & 0x0FF) == 0x020)
5239 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5240 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5242 # define ISLOWER(c) \
5243 (('a' <= (c) && (c) <= 'i') \
5244 || ('j' <= (c) && (c) <= 'r') \
5245 || ('s' <= (c) && (c) <= 'z'))
5246 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5249 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5254 for (i = 0; i < 256; i++)
5255 if (XOR (islower (i), ISLOWER (i))
5256 || toupper (i) != TOUPPER (i))
5261 rm -f conftest$ac_exeext
5262 if { (ac_try="$ac_link"
5264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5265 *) ac_try_echo=$ac_try;;
5267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5268 (eval "$ac_link") 2>&5
5270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5272 { (case "(($ac_try" in
5273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5274 *) ac_try_echo=$ac_try;;
5276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5277 (eval "$ac_try") 2>&5
5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280 (exit $ac_status); }; }; then
5283 echo "$as_me: program exited with status $ac_status" >&5
5284 echo "$as_me: failed program was:" >&5
5285 sed 's/^/| /' conftest.$ac_ext >&5
5288 ac_cv_header_stdc=no
5290 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5296 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5297 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5298 if test $ac_cv_header_stdc = yes; then
5300 cat >>confdefs.h <<\_ACEOF
5301 #define STDC_HEADERS 1
5306 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5316 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5317 inttypes.h stdint.h unistd.h
5319 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5320 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5322 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5323 echo $ECHO_N "(cached) $ECHO_C" >&6
5325 cat >conftest.$ac_ext <<_ACEOF
5328 cat confdefs.h >>conftest.$ac_ext
5329 cat >>conftest.$ac_ext <<_ACEOF
5330 /* end confdefs.h. */
5331 $ac_includes_default
5333 #include <$ac_header>
5335 rm -f conftest.$ac_objext
5336 if { (ac_try="$ac_compile"
5338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5339 *) ac_try_echo=$ac_try;;
5341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5342 (eval "$ac_compile") 2>conftest.er1
5344 grep -v '^ *+' conftest.er1 >conftest.err
5346 cat conftest.err >&5
5347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348 (exit $ac_status); } && {
5349 test -z "$ac_c_werror_flag" ||
5350 test ! -s conftest.err
5351 } && test -s conftest.$ac_objext; then
5352 eval "$as_ac_Header=yes"
5354 echo "$as_me: failed program was:" >&5
5355 sed 's/^/| /' conftest.$ac_ext >&5
5357 eval "$as_ac_Header=no"
5360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5362 ac_res=`eval echo '${'$as_ac_Header'}'`
5363 { echo "$as_me:$LINENO: result: $ac_res" >&5
5364 echo "${ECHO_T}$ac_res" >&6; }
5365 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5366 cat >>confdefs.h <<_ACEOF
5367 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5376 for ac_header in dlfcn.h
5378 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5380 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5381 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5382 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5383 echo $ECHO_N "(cached) $ECHO_C" >&6
5385 ac_res=`eval echo '${'$as_ac_Header'}'`
5386 { echo "$as_me:$LINENO: result: $ac_res" >&5
5387 echo "${ECHO_T}$ac_res" >&6; }
5389 # Is the header compilable?
5390 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5391 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5392 cat >conftest.$ac_ext <<_ACEOF
5395 cat confdefs.h >>conftest.$ac_ext
5396 cat >>conftest.$ac_ext <<_ACEOF
5397 /* end confdefs.h. */
5398 $ac_includes_default
5399 #include <$ac_header>
5401 rm -f conftest.$ac_objext
5402 if { (ac_try="$ac_compile"
5404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5405 *) ac_try_echo=$ac_try;;
5407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5408 (eval "$ac_compile") 2>conftest.er1
5410 grep -v '^ *+' conftest.er1 >conftest.err
5412 cat conftest.err >&5
5413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414 (exit $ac_status); } && {
5415 test -z "$ac_c_werror_flag" ||
5416 test ! -s conftest.err
5417 } && test -s conftest.$ac_objext; then
5418 ac_header_compiler=yes
5420 echo "$as_me: failed program was:" >&5
5421 sed 's/^/| /' conftest.$ac_ext >&5
5423 ac_header_compiler=no
5426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5427 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5428 echo "${ECHO_T}$ac_header_compiler" >&6; }
5430 # Is the header present?
5431 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5432 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5433 cat >conftest.$ac_ext <<_ACEOF
5436 cat confdefs.h >>conftest.$ac_ext
5437 cat >>conftest.$ac_ext <<_ACEOF
5438 /* end confdefs.h. */
5439 #include <$ac_header>
5441 if { (ac_try="$ac_cpp conftest.$ac_ext"
5443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5444 *) ac_try_echo=$ac_try;;
5446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5447 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5449 grep -v '^ *+' conftest.er1 >conftest.err
5451 cat conftest.err >&5
5452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453 (exit $ac_status); } >/dev/null && {
5454 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5455 test ! -s conftest.err
5457 ac_header_preproc=yes
5459 echo "$as_me: failed program was:" >&5
5460 sed 's/^/| /' conftest.$ac_ext >&5
5462 ac_header_preproc=no
5465 rm -f conftest.err conftest.$ac_ext
5466 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5467 echo "${ECHO_T}$ac_header_preproc" >&6; }
5469 # So? What about this header?
5470 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5472 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5473 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5474 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5475 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5476 ac_header_preproc=yes
5479 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5480 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5481 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5482 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5483 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5484 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5485 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5486 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5487 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5488 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5489 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5490 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5494 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5496 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5497 echo $ECHO_N "(cached) $ECHO_C" >&6
5499 eval "$as_ac_Header=\$ac_header_preproc"
5501 ac_res=`eval echo '${'$as_ac_Header'}'`
5502 { echo "$as_me:$LINENO: result: $ac_res" >&5
5503 echo "${ECHO_T}$ac_res" >&6; }
5506 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5507 cat >>confdefs.h <<_ACEOF
5508 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5516 ac_cpp='$CXXCPP $CPPFLAGS'
5517 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5518 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5519 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5520 if test -z "$CXX"; then
5521 if test -n "$CCC"; then
5524 if test -n "$ac_tool_prefix"; then
5525 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5527 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5528 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5529 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5531 if test "${ac_cv_prog_CXX+set}" = set; then
5532 echo $ECHO_N "(cached) $ECHO_C" >&6
5534 if test -n "$CXX"; then
5535 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5541 test -z "$as_dir" && as_dir=.
5542 for ac_exec_ext in '' $ac_executable_extensions; do
5543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5544 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5555 if test -n "$CXX"; then
5556 { echo "$as_me:$LINENO: result: $CXX" >&5
5557 echo "${ECHO_T}$CXX" >&6; }
5559 { echo "$as_me:$LINENO: result: no" >&5
5560 echo "${ECHO_T}no" >&6; }
5564 test -n "$CXX" && break
5567 if test -z "$CXX"; then
5569 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5571 # Extract the first word of "$ac_prog", so it can be a program name with args.
5572 set dummy $ac_prog; ac_word=$2
5573 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5575 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5576 echo $ECHO_N "(cached) $ECHO_C" >&6
5578 if test -n "$ac_ct_CXX"; then
5579 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5585 test -z "$as_dir" && as_dir=.
5586 for ac_exec_ext in '' $ac_executable_extensions; do
5587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5588 ac_cv_prog_ac_ct_CXX="$ac_prog"
5589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5598 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5599 if test -n "$ac_ct_CXX"; then
5600 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5601 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5603 { echo "$as_me:$LINENO: result: no" >&5
5604 echo "${ECHO_T}no" >&6; }
5608 test -n "$ac_ct_CXX" && break
5611 if test "x$ac_ct_CXX" = x; then
5614 case $cross_compiling:$ac_tool_warned in
5616 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5617 whose name does not start with the host triplet. If you think this
5618 configuration is useful to you, please write to autoconf@gnu.org." >&5
5619 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5620 whose name does not start with the host triplet. If you think this
5621 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5622 ac_tool_warned=yes ;;
5630 # Provide some information about the compiler.
5631 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5632 ac_compiler=`set X $ac_compile; echo $2`
5633 { (ac_try="$ac_compiler --version >&5"
5635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5636 *) ac_try_echo=$ac_try;;
5638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5639 (eval "$ac_compiler --version >&5") 2>&5
5641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642 (exit $ac_status); }
5643 { (ac_try="$ac_compiler -v >&5"
5645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5646 *) ac_try_echo=$ac_try;;
5648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5649 (eval "$ac_compiler -v >&5") 2>&5
5651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652 (exit $ac_status); }
5653 { (ac_try="$ac_compiler -V >&5"
5655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5656 *) ac_try_echo=$ac_try;;
5658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5659 (eval "$ac_compiler -V >&5") 2>&5
5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662 (exit $ac_status); }
5664 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5665 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5666 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5667 echo $ECHO_N "(cached) $ECHO_C" >&6
5669 cat >conftest.$ac_ext <<_ACEOF
5672 cat confdefs.h >>conftest.$ac_ext
5673 cat >>conftest.$ac_ext <<_ACEOF
5674 /* end confdefs.h. */
5687 rm -f conftest.$ac_objext
5688 if { (ac_try="$ac_compile"
5690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5691 *) ac_try_echo=$ac_try;;
5693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5694 (eval "$ac_compile") 2>conftest.er1
5696 grep -v '^ *+' conftest.er1 >conftest.err
5698 cat conftest.err >&5
5699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); } && {
5701 test -z "$ac_cxx_werror_flag" ||
5702 test ! -s conftest.err
5703 } && test -s conftest.$ac_objext; then
5706 echo "$as_me: failed program was:" >&5
5707 sed 's/^/| /' conftest.$ac_ext >&5
5712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5713 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5716 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5717 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5718 GXX=`test $ac_compiler_gnu = yes && echo yes`
5719 ac_test_CXXFLAGS=${CXXFLAGS+set}
5720 ac_save_CXXFLAGS=$CXXFLAGS
5721 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5722 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5723 if test "${ac_cv_prog_cxx_g+set}" = set; then
5724 echo $ECHO_N "(cached) $ECHO_C" >&6
5726 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5727 ac_cxx_werror_flag=yes
5730 cat >conftest.$ac_ext <<_ACEOF
5733 cat confdefs.h >>conftest.$ac_ext
5734 cat >>conftest.$ac_ext <<_ACEOF
5735 /* end confdefs.h. */
5745 rm -f conftest.$ac_objext
5746 if { (ac_try="$ac_compile"
5748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5749 *) ac_try_echo=$ac_try;;
5751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5752 (eval "$ac_compile") 2>conftest.er1
5754 grep -v '^ *+' conftest.er1 >conftest.err
5756 cat conftest.err >&5
5757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758 (exit $ac_status); } && {
5759 test -z "$ac_cxx_werror_flag" ||
5760 test ! -s conftest.err
5761 } && test -s conftest.$ac_objext; then
5762 ac_cv_prog_cxx_g=yes
5764 echo "$as_me: failed program was:" >&5
5765 sed 's/^/| /' conftest.$ac_ext >&5
5768 cat >conftest.$ac_ext <<_ACEOF
5771 cat confdefs.h >>conftest.$ac_ext
5772 cat >>conftest.$ac_ext <<_ACEOF
5773 /* end confdefs.h. */
5783 rm -f conftest.$ac_objext
5784 if { (ac_try="$ac_compile"
5786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5787 *) ac_try_echo=$ac_try;;
5789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5790 (eval "$ac_compile") 2>conftest.er1
5792 grep -v '^ *+' conftest.er1 >conftest.err
5794 cat conftest.err >&5
5795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796 (exit $ac_status); } && {
5797 test -z "$ac_cxx_werror_flag" ||
5798 test ! -s conftest.err
5799 } && test -s conftest.$ac_objext; then
5802 echo "$as_me: failed program was:" >&5
5803 sed 's/^/| /' conftest.$ac_ext >&5
5805 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5807 cat >conftest.$ac_ext <<_ACEOF
5810 cat confdefs.h >>conftest.$ac_ext
5811 cat >>conftest.$ac_ext <<_ACEOF
5812 /* end confdefs.h. */
5822 rm -f conftest.$ac_objext
5823 if { (ac_try="$ac_compile"
5825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5826 *) ac_try_echo=$ac_try;;
5828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5829 (eval "$ac_compile") 2>conftest.er1
5831 grep -v '^ *+' conftest.er1 >conftest.err
5833 cat conftest.err >&5
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); } && {
5836 test -z "$ac_cxx_werror_flag" ||
5837 test ! -s conftest.err
5838 } && test -s conftest.$ac_objext; then
5839 ac_cv_prog_cxx_g=yes
5841 echo "$as_me: failed program was:" >&5
5842 sed 's/^/| /' conftest.$ac_ext >&5
5847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5854 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5856 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5857 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5858 if test "$ac_test_CXXFLAGS" = set; then
5859 CXXFLAGS=$ac_save_CXXFLAGS
5860 elif test $ac_cv_prog_cxx_g = yes; then
5861 if test "$GXX" = yes; then
5867 if test "$GXX" = yes; then
5874 ac_cpp='$CXXCPP $CPPFLAGS'
5875 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5876 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5877 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5879 depcc="$CXX" am_compiler_list=
5881 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5882 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5883 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5884 echo $ECHO_N "(cached) $ECHO_C" >&6
5886 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5887 # We make a subdir and do the tests there. Otherwise we can end up
5888 # making bogus files that we don't know about and never remove. For
5889 # instance it was reported that on HP-UX the gcc test will end up
5890 # making a dummy file named `D' -- because `-MD' means `put the output
5893 # Copy depcomp to subdir because otherwise we won't find it if we're
5894 # using a relative directory.
5895 cp "$am_depcomp" conftest.dir
5897 # We will build objects and dependencies in a subdirectory because
5898 # it helps to detect inapplicable dependency modes. For instance
5899 # both Tru64's cc and ICC support -MD to output dependencies as a
5900 # side effect of compilation, but ICC will put the dependencies in
5901 # the current directory while Tru64 will put them in the object
5905 am_cv_CXX_dependencies_compiler_type=none
5906 if test "$am_compiler_list" = ""; then
5907 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5909 for depmode in $am_compiler_list; do
5910 # Setup a source with many dependencies, because some compilers
5911 # like to wrap large dependency lists on column 80 (with \), and
5912 # we should not choose a depcomp mode which is confused by this.
5914 # We need to recreate these files for each test, as the compiler may
5915 # overwrite some of them when testing with obscure command lines.
5916 # This happens at least with the AIX C compiler.
5918 for i in 1 2 3 4 5 6; do
5919 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5920 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5921 # Solaris 8's {/usr,}/bin/sh.
5922 touch sub/conftst$i.h
5924 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5928 # after this tag, mechanisms are not by side-effect, so they'll
5929 # only be used when explicitly requested
5930 if test "x$enable_dependency_tracking" = xyes; then
5938 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5939 # mode. It turns out that the SunPro C++ compiler does not properly
5940 # handle `-M -o', and we need to detect this.
5941 if depmode=$depmode \
5942 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5943 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5944 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5945 >/dev/null 2>conftest.err &&
5946 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5947 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5948 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5949 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5950 # icc doesn't choke on unknown options, it will just issue warnings
5951 # or remarks (even with -Werror). So we grep stderr for any message
5952 # that says an option was ignored or not supported.
5953 # When given -MP, icc 7.0 and 7.1 complain thusly:
5954 # icc: Command line warning: ignoring option '-M'; no argument required
5955 # The diagnosis changed in icc 8.0:
5956 # icc: Command line remark: option '-MP' not supported
5957 if (grep 'ignoring option' conftest.err ||
5958 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5959 am_cv_CXX_dependencies_compiler_type=$depmode
5968 am_cv_CXX_dependencies_compiler_type=none
5972 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5973 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5974 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5977 test "x$enable_dependency_tracking" != xno \
5978 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5979 am__fastdepCXX_TRUE=
5980 am__fastdepCXX_FALSE='#'
5982 am__fastdepCXX_TRUE='#'
5983 am__fastdepCXX_FALSE=
5989 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5990 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5991 (test "X$CXX" != "Xg++"))) ; then
5993 ac_cpp='$CXXCPP $CPPFLAGS'
5994 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5995 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5996 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5997 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5998 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5999 if test -z "$CXXCPP"; then
6000 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6001 echo $ECHO_N "(cached) $ECHO_C" >&6
6003 # Double quotes because CXXCPP needs to be expanded
6004 for CXXCPP in "$CXX -E" "/lib/cpp"
6007 for ac_cxx_preproc_warn_flag in '' yes
6009 # Use a header file that comes with gcc, so configuring glibc
6010 # with a fresh cross-compiler works.
6011 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6012 # <limits.h> exists even on freestanding compilers.
6013 # On the NeXT, cc -E runs the code through the compiler's parser,
6014 # not just through cpp. "Syntax error" is here to catch this case.
6015 cat >conftest.$ac_ext <<_ACEOF
6018 cat confdefs.h >>conftest.$ac_ext
6019 cat >>conftest.$ac_ext <<_ACEOF
6020 /* end confdefs.h. */
6022 # include <limits.h>
6024 # include <assert.h>
6028 if { (ac_try="$ac_cpp conftest.$ac_ext"
6030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6031 *) ac_try_echo=$ac_try;;
6033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6034 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6036 grep -v '^ *+' conftest.er1 >conftest.err
6038 cat conftest.err >&5
6039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040 (exit $ac_status); } >/dev/null && {
6041 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6042 test ! -s conftest.err
6046 echo "$as_me: failed program was:" >&5
6047 sed 's/^/| /' conftest.$ac_ext >&5
6049 # Broken: fails on valid input.
6053 rm -f conftest.err conftest.$ac_ext
6055 # OK, works on sane cases. Now check whether nonexistent headers
6056 # can be detected and how.
6057 cat >conftest.$ac_ext <<_ACEOF
6060 cat confdefs.h >>conftest.$ac_ext
6061 cat >>conftest.$ac_ext <<_ACEOF
6062 /* end confdefs.h. */
6063 #include <ac_nonexistent.h>
6065 if { (ac_try="$ac_cpp conftest.$ac_ext"
6067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6068 *) ac_try_echo=$ac_try;;
6070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6071 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6073 grep -v '^ *+' conftest.er1 >conftest.err
6075 cat conftest.err >&5
6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); } >/dev/null && {
6078 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6079 test ! -s conftest.err
6081 # Broken: success on invalid input.
6084 echo "$as_me: failed program was:" >&5
6085 sed 's/^/| /' conftest.$ac_ext >&5
6087 # Passes both tests.
6092 rm -f conftest.err conftest.$ac_ext
6095 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6096 rm -f conftest.err conftest.$ac_ext
6097 if $ac_preproc_ok; then
6102 ac_cv_prog_CXXCPP=$CXXCPP
6105 CXXCPP=$ac_cv_prog_CXXCPP
6107 ac_cv_prog_CXXCPP=$CXXCPP
6109 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6110 echo "${ECHO_T}$CXXCPP" >&6; }
6112 for ac_cxx_preproc_warn_flag in '' yes
6114 # Use a header file that comes with gcc, so configuring glibc
6115 # with a fresh cross-compiler works.
6116 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6117 # <limits.h> exists even on freestanding compilers.
6118 # On the NeXT, cc -E runs the code through the compiler's parser,
6119 # not just through cpp. "Syntax error" is here to catch this case.
6120 cat >conftest.$ac_ext <<_ACEOF
6123 cat confdefs.h >>conftest.$ac_ext
6124 cat >>conftest.$ac_ext <<_ACEOF
6125 /* end confdefs.h. */
6127 # include <limits.h>
6129 # include <assert.h>
6133 if { (ac_try="$ac_cpp conftest.$ac_ext"
6135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6136 *) ac_try_echo=$ac_try;;
6138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6139 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6141 grep -v '^ *+' conftest.er1 >conftest.err
6143 cat conftest.err >&5
6144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145 (exit $ac_status); } >/dev/null && {
6146 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6147 test ! -s conftest.err
6151 echo "$as_me: failed program was:" >&5
6152 sed 's/^/| /' conftest.$ac_ext >&5
6154 # Broken: fails on valid input.
6158 rm -f conftest.err conftest.$ac_ext
6160 # OK, works on sane cases. Now check whether nonexistent headers
6161 # can be detected and how.
6162 cat >conftest.$ac_ext <<_ACEOF
6165 cat confdefs.h >>conftest.$ac_ext
6166 cat >>conftest.$ac_ext <<_ACEOF
6167 /* end confdefs.h. */
6168 #include <ac_nonexistent.h>
6170 if { (ac_try="$ac_cpp conftest.$ac_ext"
6172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6173 *) ac_try_echo=$ac_try;;
6175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6176 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6178 grep -v '^ *+' conftest.er1 >conftest.err
6180 cat conftest.err >&5
6181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182 (exit $ac_status); } >/dev/null && {
6183 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6184 test ! -s conftest.err
6186 # Broken: success on invalid input.
6189 echo "$as_me: failed program was:" >&5
6190 sed 's/^/| /' conftest.$ac_ext >&5
6192 # Passes both tests.
6197 rm -f conftest.err conftest.$ac_ext
6200 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6201 rm -f conftest.err conftest.$ac_ext
6202 if $ac_preproc_ok; then
6205 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6206 See \`config.log' for more details." >&5
6207 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6208 See \`config.log' for more details." >&2;}
6209 { (exit 1); exit 1; }; }
6213 ac_cpp='$CXXCPP $CPPFLAGS'
6214 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6215 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6216 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6222 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6223 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6224 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6225 if test -n "$ac_tool_prefix"; then
6226 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
6228 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6229 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6232 if test "${ac_cv_prog_F77+set}" = set; then
6233 echo $ECHO_N "(cached) $ECHO_C" >&6
6235 if test -n "$F77"; then
6236 ac_cv_prog_F77="$F77" # Let the user override the test.
6238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6242 test -z "$as_dir" && as_dir=.
6243 for ac_exec_ext in '' $ac_executable_extensions; do
6244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6245 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6256 if test -n "$F77"; then
6257 { echo "$as_me:$LINENO: result: $F77" >&5
6258 echo "${ECHO_T}$F77" >&6; }
6260 { echo "$as_me:$LINENO: result: no" >&5
6261 echo "${ECHO_T}no" >&6; }
6265 test -n "$F77" && break
6268 if test -z "$F77"; then
6270 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
6272 # Extract the first word of "$ac_prog", so it can be a program name with args.
6273 set dummy $ac_prog; ac_word=$2
6274 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6276 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6277 echo $ECHO_N "(cached) $ECHO_C" >&6
6279 if test -n "$ac_ct_F77"; then
6280 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6286 test -z "$as_dir" && as_dir=.
6287 for ac_exec_ext in '' $ac_executable_extensions; do
6288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6289 ac_cv_prog_ac_ct_F77="$ac_prog"
6290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6299 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6300 if test -n "$ac_ct_F77"; then
6301 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6302 echo "${ECHO_T}$ac_ct_F77" >&6; }
6304 { echo "$as_me:$LINENO: result: no" >&5
6305 echo "${ECHO_T}no" >&6; }
6309 test -n "$ac_ct_F77" && break
6312 if test "x$ac_ct_F77" = x; then
6315 case $cross_compiling:$ac_tool_warned in
6317 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6318 whose name does not start with the host triplet. If you think this
6319 configuration is useful to you, please write to autoconf@gnu.org." >&5
6320 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6321 whose name does not start with the host triplet. If you think this
6322 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6323 ac_tool_warned=yes ;;
6330 # Provide some information about the compiler.
6331 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6332 ac_compiler=`set X $ac_compile; echo $2`
6333 { (ac_try="$ac_compiler --version >&5"
6335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6336 *) ac_try_echo=$ac_try;;
6338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6339 (eval "$ac_compiler --version >&5") 2>&5
6341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342 (exit $ac_status); }
6343 { (ac_try="$ac_compiler -v >&5"
6345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6346 *) ac_try_echo=$ac_try;;
6348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6349 (eval "$ac_compiler -v >&5") 2>&5
6351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352 (exit $ac_status); }
6353 { (ac_try="$ac_compiler -V >&5"
6355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6356 *) ac_try_echo=$ac_try;;
6358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6359 (eval "$ac_compiler -V >&5") 2>&5
6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); }
6365 # If we don't use `.F' as extension, the preprocessor is not run on the
6366 # input file. (Note that this only needs to work for GNU compilers.)
6369 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6370 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6371 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6372 echo $ECHO_N "(cached) $ECHO_C" >&6
6374 cat >conftest.$ac_ext <<_ACEOF
6382 rm -f conftest.$ac_objext
6383 if { (ac_try="$ac_compile"
6385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6386 *) ac_try_echo=$ac_try;;
6388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6389 (eval "$ac_compile") 2>conftest.er1
6391 grep -v '^ *+' conftest.er1 >conftest.err
6393 cat conftest.err >&5
6394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395 (exit $ac_status); } && {
6396 test -z "$ac_f77_werror_flag" ||
6397 test ! -s conftest.err
6398 } && test -s conftest.$ac_objext; then
6401 echo "$as_me: failed program was:" >&5
6402 sed 's/^/| /' conftest.$ac_ext >&5
6407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6408 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6411 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6412 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6414 ac_test_FFLAGS=${FFLAGS+set}
6415 ac_save_FFLAGS=$FFLAGS
6417 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6418 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6419 if test "${ac_cv_prog_f77_g+set}" = set; then
6420 echo $ECHO_N "(cached) $ECHO_C" >&6
6423 cat >conftest.$ac_ext <<_ACEOF
6428 rm -f conftest.$ac_objext
6429 if { (ac_try="$ac_compile"
6431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6432 *) ac_try_echo=$ac_try;;
6434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6435 (eval "$ac_compile") 2>conftest.er1
6437 grep -v '^ *+' conftest.er1 >conftest.err
6439 cat conftest.err >&5
6440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441 (exit $ac_status); } && {
6442 test -z "$ac_f77_werror_flag" ||
6443 test ! -s conftest.err
6444 } && test -s conftest.$ac_objext; then
6445 ac_cv_prog_f77_g=yes
6447 echo "$as_me: failed program was:" >&5
6448 sed 's/^/| /' conftest.$ac_ext >&5
6453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6456 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6457 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6458 if test "$ac_test_FFLAGS" = set; then
6459 FFLAGS=$ac_save_FFLAGS
6460 elif test $ac_cv_prog_f77_g = yes; then
6461 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6467 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6474 G77=`test $ac_compiler_gnu = yes && echo yes`
6476 ac_cpp='$CPP $CPPFLAGS'
6477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6483 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6484 # find the maximum length of command line arguments
6485 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6486 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6487 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6488 echo $ECHO_N "(cached) $ECHO_C" >&6
6495 # On DJGPP, this test can blow up pretty badly due to problems in libc
6496 # (any single argument exceeding 2000 bytes causes a buffer overrun
6497 # during glob expansion). Even if it were fixed, the result of this
6498 # check would be larger than it should be.
6499 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6503 # Under GNU Hurd, this test is not required because there is
6504 # no limit to the length of command line arguments.
6505 # Libtool will interpret -1 as no limit whatsoever
6506 lt_cv_sys_max_cmd_len=-1;
6510 # On Win9x/ME, this test blows up -- it succeeds, but takes
6511 # about 5 minutes as the teststring grows exponentially.
6512 # Worse, since 9x/ME are not pre-emptively multitasking,
6513 # you end up with a "frozen" computer, even though with patience
6514 # the test eventually succeeds (with a max line length of 256k).
6515 # Instead, let's just punt: use the minimum linelength reported by
6516 # all of the supported platforms: 8192 (on NT/2K/XP).
6517 lt_cv_sys_max_cmd_len=8192;
6521 # On AmigaOS with pdksh, this test takes hours, literally.
6522 # So we just punt and use a minimum line length of 8192.
6523 lt_cv_sys_max_cmd_len=8192;
6526 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6527 # This has been around since 386BSD, at least. Likely further.
6528 if test -x /sbin/sysctl; then
6529 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6530 elif test -x /usr/sbin/sysctl; then
6531 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6533 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6535 # And add a safety zone
6536 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6537 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6541 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6542 lt_cv_sys_max_cmd_len=196608
6546 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6547 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6548 # nice to cause kernel panics so lets avoid the loop below.
6549 # First set a reasonable default.
6550 lt_cv_sys_max_cmd_len=16384
6552 if test -x /sbin/sysconfig; then
6553 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6554 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6559 lt_cv_sys_max_cmd_len=102400
6561 sysv5* | sco5v6* | sysv4.2uw2*)
6562 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6563 if test -n "$kargmax"; then
6564 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6566 lt_cv_sys_max_cmd_len=32768
6570 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6571 if test -n "$lt_cv_sys_max_cmd_len"; then
6572 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6573 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6575 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6576 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6577 = "XX$teststring") >/dev/null 2>&1 &&
6578 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6579 lt_cv_sys_max_cmd_len=$new_result &&
6580 test $i != 17 # 1/2 MB should be enough
6583 teststring=$teststring$teststring
6586 # Add a significant safety factor because C++ compilers can tack on massive
6587 # amounts of additional arguments before passing them to the linker.
6588 # It appears as though 1/2 is a usable value.
6589 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6596 if test -n $lt_cv_sys_max_cmd_len ; then
6597 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6598 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6600 { echo "$as_me:$LINENO: result: none" >&5
6601 echo "${ECHO_T}none" >&6; }
6608 # Check for command to grab the raw symbol name followed by C symbol from nm.
6609 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6610 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6611 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6612 echo $ECHO_N "(cached) $ECHO_C" >&6
6615 # These are sane defaults that work on at least a few old systems.
6616 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6618 # Character class describing NM global symbol codes.
6619 symcode='[BCDEGRST]'
6621 # Regexp to match symbols that can be accessed directly from C.
6622 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6624 # Transform an extracted symbol line into a proper C declaration
6625 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6627 # Transform an extracted symbol line into symbol name and symbol address
6628 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'"
6630 # Define system-specific variables.
6635 cygwin* | mingw* | pw32*)
6636 symcode='[ABCDGISTW]'
6638 hpux*) # Its linker distinguishes data from code symbols
6639 if test "$host_cpu" = ia64; then
6640 symcode='[ABCDEGRST]'
6642 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6643 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'"
6645 linux* | k*bsd*-gnu)
6646 if test "$host_cpu" = ia64; then
6647 symcode='[ABCDGIRSTW]'
6648 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6649 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'"
6653 symcode='[BCDEGRST]'
6656 symcode='[BCDEGQRST]'
6667 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6675 # Handle CRLF in mingw tool chain
6679 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6683 # If we're using GNU nm, then use its standard symbol codes.
6684 case `$NM -V 2>&1` in
6685 *GNU* | *'with BFD'*)
6686 symcode='[ABCDGIRSTW]' ;;
6689 # Try without a prefix undercore, then with it.
6690 for ac_symprfx in "" "_"; do
6692 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6693 symxfrm="\\1 $ac_symprfx\\2 \\2"
6695 # Write the raw and C identifiers.
6696 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6698 # Check to see that the pipe works correctly.
6702 cat > conftest.$ac_ext <<EOF
6707 void nm_test_func(){}
6711 int main(){nm_test_var='a';nm_test_func();return(0);}
6714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6715 (eval $ac_compile) 2>&5
6717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718 (exit $ac_status); }; then
6719 # Now try to grab the symbols.
6721 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6722 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725 (exit $ac_status); } && test -s "$nlist"; then
6726 # Try sorting and uniquifying the output.
6727 if sort "$nlist" | uniq > "$nlist"T; then
6728 mv -f "$nlist"T "$nlist"
6733 # Make sure that we snagged all the symbols we need.
6734 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6735 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6736 cat <<EOF > conftest.$ac_ext
6742 # Now generate the symbol file.
6743 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6745 cat <<EOF >> conftest.$ac_ext
6746 #if defined (__STDC__) && __STDC__
6747 # define lt_ptr_t void *
6749 # define lt_ptr_t char *
6753 /* The mapping between symbol names and symbols. */
6758 lt_preloaded_symbols[] =
6761 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6762 cat <<\EOF >> conftest.$ac_ext
6770 # Now try linking the two files.
6771 mv conftest.$ac_objext conftstm.$ac_objext
6772 lt_save_LIBS="$LIBS"
6773 lt_save_CFLAGS="$CFLAGS"
6774 LIBS="conftstm.$ac_objext"
6775 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6777 (eval $ac_link) 2>&5
6779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6783 LIBS="$lt_save_LIBS"
6784 CFLAGS="$lt_save_CFLAGS"
6786 echo "cannot find nm_test_func in $nlist" >&5
6789 echo "cannot find nm_test_var in $nlist" >&5
6792 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6795 echo "$progname: failed program was:" >&5
6796 cat conftest.$ac_ext >&5
6798 rm -rf conftest* conftst*
6800 # Do not use the global_symbol_pipe unless it works.
6801 if test "$pipe_works" = yes; then
6804 lt_cv_sys_global_symbol_pipe=
6810 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6811 lt_cv_sys_global_symbol_to_cdecl=
6813 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6814 { echo "$as_me:$LINENO: result: failed" >&5
6815 echo "${ECHO_T}failed" >&6; }
6817 { echo "$as_me:$LINENO: result: ok" >&5
6818 echo "${ECHO_T}ok" >&6; }
6821 { echo "$as_me:$LINENO: checking for objdir" >&5
6822 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6823 if test "${lt_cv_objdir+set}" = set; then
6824 echo $ECHO_N "(cached) $ECHO_C" >&6
6826 rm -f .libs 2>/dev/null
6827 mkdir .libs 2>/dev/null
6828 if test -d .libs; then
6831 # MS-DOS does not allow filenames that begin with a dot.
6834 rmdir .libs 2>/dev/null
6836 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6837 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6838 objdir=$lt_cv_objdir
6846 # AIX sometimes has problems with the GCC collect2 program. For some
6847 # reason, if we set the COLLECT_NAMES environment variable, the problems
6848 # vanish in a puff of smoke.
6849 if test "X${COLLECT_NAMES+set}" != Xset; then
6851 export COLLECT_NAMES
6856 # Sed substitution that helps us do robust quoting. It backslashifies
6857 # metacharacters that are still active within double-quoted strings.
6858 Xsed='sed -e 1s/^X//'
6859 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6861 # Same as above, but do not quote variable references.
6862 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6864 # Sed substitution to delay expansion of an escaped shell variable in a
6865 # double_quote_subst'ed string.
6866 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6868 # Sed substitution to avoid accidental globbing in evaled expressions
6869 no_glob_subst='s/\*/\\\*/g'
6875 default_ofile=libtool
6876 can_build_shared=yes
6878 # All known linkers require a `.a' archive for static linking (except MSVC,
6879 # which needs '.lib').
6881 ltmain="$ac_aux_dir/ltmain.sh"
6882 ofile="$default_ofile"
6883 with_gnu_ld="$lt_cv_prog_gnu_ld"
6885 if test -n "$ac_tool_prefix"; then
6886 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6887 set dummy ${ac_tool_prefix}ar; ac_word=$2
6888 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6890 if test "${ac_cv_prog_AR+set}" = set; then
6891 echo $ECHO_N "(cached) $ECHO_C" >&6
6893 if test -n "$AR"; then
6894 ac_cv_prog_AR="$AR" # Let the user override the test.
6896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6900 test -z "$as_dir" && as_dir=.
6901 for ac_exec_ext in '' $ac_executable_extensions; do
6902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6903 ac_cv_prog_AR="${ac_tool_prefix}ar"
6904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6914 if test -n "$AR"; then
6915 { echo "$as_me:$LINENO: result: $AR" >&5
6916 echo "${ECHO_T}$AR" >&6; }
6918 { echo "$as_me:$LINENO: result: no" >&5
6919 echo "${ECHO_T}no" >&6; }
6924 if test -z "$ac_cv_prog_AR"; then
6926 # Extract the first word of "ar", so it can be a program name with args.
6927 set dummy ar; ac_word=$2
6928 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6930 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6931 echo $ECHO_N "(cached) $ECHO_C" >&6
6933 if test -n "$ac_ct_AR"; then
6934 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6940 test -z "$as_dir" && as_dir=.
6941 for ac_exec_ext in '' $ac_executable_extensions; do
6942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6943 ac_cv_prog_ac_ct_AR="ar"
6944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6953 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6954 if test -n "$ac_ct_AR"; then
6955 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6956 echo "${ECHO_T}$ac_ct_AR" >&6; }
6958 { echo "$as_me:$LINENO: result: no" >&5
6959 echo "${ECHO_T}no" >&6; }
6962 if test "x$ac_ct_AR" = x; then
6965 case $cross_compiling:$ac_tool_warned in
6967 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6968 whose name does not start with the host triplet. If you think this
6969 configuration is useful to you, please write to autoconf@gnu.org." >&5
6970 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6971 whose name does not start with the host triplet. If you think this
6972 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6973 ac_tool_warned=yes ;;
6981 if test -n "$ac_tool_prefix"; then
6982 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6983 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6984 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6986 if test "${ac_cv_prog_RANLIB+set}" = set; then
6987 echo $ECHO_N "(cached) $ECHO_C" >&6
6989 if test -n "$RANLIB"; then
6990 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6996 test -z "$as_dir" && as_dir=.
6997 for ac_exec_ext in '' $ac_executable_extensions; do
6998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6999 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7009 RANLIB=$ac_cv_prog_RANLIB
7010 if test -n "$RANLIB"; then
7011 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7012 echo "${ECHO_T}$RANLIB" >&6; }
7014 { echo "$as_me:$LINENO: result: no" >&5
7015 echo "${ECHO_T}no" >&6; }
7020 if test -z "$ac_cv_prog_RANLIB"; then
7021 ac_ct_RANLIB=$RANLIB
7022 # Extract the first word of "ranlib", so it can be a program name with args.
7023 set dummy ranlib; ac_word=$2
7024 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7026 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7027 echo $ECHO_N "(cached) $ECHO_C" >&6
7029 if test -n "$ac_ct_RANLIB"; then
7030 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7036 test -z "$as_dir" && as_dir=.
7037 for ac_exec_ext in '' $ac_executable_extensions; do
7038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7039 ac_cv_prog_ac_ct_RANLIB="ranlib"
7040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7049 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7050 if test -n "$ac_ct_RANLIB"; then
7051 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7052 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7054 { echo "$as_me:$LINENO: result: no" >&5
7055 echo "${ECHO_T}no" >&6; }
7058 if test "x$ac_ct_RANLIB" = x; then
7061 case $cross_compiling:$ac_tool_warned in
7063 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7064 whose name does not start with the host triplet. If you think this
7065 configuration is useful to you, please write to autoconf@gnu.org." >&5
7066 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7067 whose name does not start with the host triplet. If you think this
7068 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7069 ac_tool_warned=yes ;;
7071 RANLIB=$ac_ct_RANLIB
7074 RANLIB="$ac_cv_prog_RANLIB"
7077 if test -n "$ac_tool_prefix"; then
7078 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7079 set dummy ${ac_tool_prefix}strip; ac_word=$2
7080 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7082 if test "${ac_cv_prog_STRIP+set}" = set; then
7083 echo $ECHO_N "(cached) $ECHO_C" >&6
7085 if test -n "$STRIP"; then
7086 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7092 test -z "$as_dir" && as_dir=.
7093 for ac_exec_ext in '' $ac_executable_extensions; do
7094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7095 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7105 STRIP=$ac_cv_prog_STRIP
7106 if test -n "$STRIP"; then
7107 { echo "$as_me:$LINENO: result: $STRIP" >&5
7108 echo "${ECHO_T}$STRIP" >&6; }
7110 { echo "$as_me:$LINENO: result: no" >&5
7111 echo "${ECHO_T}no" >&6; }
7116 if test -z "$ac_cv_prog_STRIP"; then
7118 # Extract the first word of "strip", so it can be a program name with args.
7119 set dummy strip; ac_word=$2
7120 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7122 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7123 echo $ECHO_N "(cached) $ECHO_C" >&6
7125 if test -n "$ac_ct_STRIP"; then
7126 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7132 test -z "$as_dir" && as_dir=.
7133 for ac_exec_ext in '' $ac_executable_extensions; do
7134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7135 ac_cv_prog_ac_ct_STRIP="strip"
7136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7145 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7146 if test -n "$ac_ct_STRIP"; then
7147 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7148 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7150 { echo "$as_me:$LINENO: result: no" >&5
7151 echo "${ECHO_T}no" >&6; }
7154 if test "x$ac_ct_STRIP" = x; then
7157 case $cross_compiling:$ac_tool_warned in
7159 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7160 whose name does not start with the host triplet. If you think this
7161 configuration is useful to you, please write to autoconf@gnu.org." >&5
7162 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7163 whose name does not start with the host triplet. If you think this
7164 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7165 ac_tool_warned=yes ;;
7170 STRIP="$ac_cv_prog_STRIP"
7175 old_CFLAGS="$CFLAGS"
7177 # Set sane defaults for various variables
7178 test -z "$AR" && AR=ar
7179 test -z "$AR_FLAGS" && AR_FLAGS=cru
7180 test -z "$AS" && AS=as
7181 test -z "$CC" && CC=cc
7182 test -z "$LTCC" && LTCC=$CC
7183 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7184 test -z "$DLLTOOL" && DLLTOOL=dlltool
7185 test -z "$LD" && LD=ld
7186 test -z "$LN_S" && LN_S="ln -s"
7187 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7188 test -z "$NM" && NM=nm
7189 test -z "$SED" && SED=sed
7190 test -z "$OBJDUMP" && OBJDUMP=objdump
7191 test -z "$RANLIB" && RANLIB=:
7192 test -z "$STRIP" && STRIP=:
7193 test -z "$ac_objext" && ac_objext=o
7195 # Determine commands to create old-style static archives.
7196 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7197 old_postinstall_cmds='chmod 644 $oldlib'
7198 old_postuninstall_cmds=
7200 if test -n "$RANLIB"; then
7203 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7206 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7209 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7212 for cc_temp in $compiler""; do
7214 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7215 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7220 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7223 # Only perform the check for file, if the check method requires it
7224 case $deplibs_check_method in
7226 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7227 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7228 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7229 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7230 echo $ECHO_N "(cached) $ECHO_C" >&6
7234 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7237 lt_save_MAGIC_CMD="$MAGIC_CMD"
7238 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7239 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7240 for ac_dir in $ac_dummy; do
7242 test -z "$ac_dir" && ac_dir=.
7243 if test -f $ac_dir/${ac_tool_prefix}file; then
7244 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7245 if test -n "$file_magic_test_file"; then
7246 case $deplibs_check_method in
7248 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7249 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7250 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7251 $EGREP "$file_magic_regex" > /dev/null; then
7256 *** Warning: the command libtool uses to detect shared libraries,
7257 *** $file_magic_cmd, produces output that libtool cannot recognize.
7258 *** The result is that libtool may fail to recognize shared libraries
7259 *** as such. This will affect the creation of libtool libraries that
7260 *** depend on shared libraries, but programs linked with such libtool
7261 *** libraries will work regardless of this problem. Nevertheless, you
7262 *** may want to report the problem to your system manager and/or to
7263 *** bug-libtool@gnu.org
7273 MAGIC_CMD="$lt_save_MAGIC_CMD"
7278 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7279 if test -n "$MAGIC_CMD"; then
7280 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7281 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7283 { echo "$as_me:$LINENO: result: no" >&5
7284 echo "${ECHO_T}no" >&6; }
7287 if test -z "$lt_cv_path_MAGIC_CMD"; then
7288 if test -n "$ac_tool_prefix"; then
7289 { echo "$as_me:$LINENO: checking for file" >&5
7290 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7291 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7292 echo $ECHO_N "(cached) $ECHO_C" >&6
7296 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7299 lt_save_MAGIC_CMD="$MAGIC_CMD"
7300 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7301 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7302 for ac_dir in $ac_dummy; do
7304 test -z "$ac_dir" && ac_dir=.
7305 if test -f $ac_dir/file; then
7306 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7307 if test -n "$file_magic_test_file"; then
7308 case $deplibs_check_method in
7310 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7311 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7312 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7313 $EGREP "$file_magic_regex" > /dev/null; then
7318 *** Warning: the command libtool uses to detect shared libraries,
7319 *** $file_magic_cmd, produces output that libtool cannot recognize.
7320 *** The result is that libtool may fail to recognize shared libraries
7321 *** as such. This will affect the creation of libtool libraries that
7322 *** depend on shared libraries, but programs linked with such libtool
7323 *** libraries will work regardless of this problem. Nevertheless, you
7324 *** may want to report the problem to your system manager and/or to
7325 *** bug-libtool@gnu.org
7335 MAGIC_CMD="$lt_save_MAGIC_CMD"
7340 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7341 if test -n "$MAGIC_CMD"; then
7342 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7343 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7345 { echo "$as_me:$LINENO: result: no" >&5
7346 echo "${ECHO_T}no" >&6; }
7360 rhapsody* | darwin*)
7361 if test -n "$ac_tool_prefix"; then
7362 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7363 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7364 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7366 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7367 echo $ECHO_N "(cached) $ECHO_C" >&6
7369 if test -n "$DSYMUTIL"; then
7370 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7376 test -z "$as_dir" && as_dir=.
7377 for ac_exec_ext in '' $ac_executable_extensions; do
7378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7379 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7389 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7390 if test -n "$DSYMUTIL"; then
7391 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7392 echo "${ECHO_T}$DSYMUTIL" >&6; }
7394 { echo "$as_me:$LINENO: result: no" >&5
7395 echo "${ECHO_T}no" >&6; }
7400 if test -z "$ac_cv_prog_DSYMUTIL"; then
7401 ac_ct_DSYMUTIL=$DSYMUTIL
7402 # Extract the first word of "dsymutil", so it can be a program name with args.
7403 set dummy dsymutil; ac_word=$2
7404 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7406 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7407 echo $ECHO_N "(cached) $ECHO_C" >&6
7409 if test -n "$ac_ct_DSYMUTIL"; then
7410 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7416 test -z "$as_dir" && as_dir=.
7417 for ac_exec_ext in '' $ac_executable_extensions; do
7418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7419 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7429 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7430 if test -n "$ac_ct_DSYMUTIL"; then
7431 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7432 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7434 { echo "$as_me:$LINENO: result: no" >&5
7435 echo "${ECHO_T}no" >&6; }
7438 if test "x$ac_ct_DSYMUTIL" = x; then
7441 case $cross_compiling:$ac_tool_warned in
7443 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7444 whose name does not start with the host triplet. If you think this
7445 configuration is useful to you, please write to autoconf@gnu.org." >&5
7446 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7447 whose name does not start with the host triplet. If you think this
7448 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7449 ac_tool_warned=yes ;;
7451 DSYMUTIL=$ac_ct_DSYMUTIL
7454 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7457 if test -n "$ac_tool_prefix"; then
7458 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7459 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7462 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7463 echo $ECHO_N "(cached) $ECHO_C" >&6
7465 if test -n "$NMEDIT"; then
7466 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7472 test -z "$as_dir" && as_dir=.
7473 for ac_exec_ext in '' $ac_executable_extensions; do
7474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7475 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7485 NMEDIT=$ac_cv_prog_NMEDIT
7486 if test -n "$NMEDIT"; then
7487 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7488 echo "${ECHO_T}$NMEDIT" >&6; }
7490 { echo "$as_me:$LINENO: result: no" >&5
7491 echo "${ECHO_T}no" >&6; }
7496 if test -z "$ac_cv_prog_NMEDIT"; then
7497 ac_ct_NMEDIT=$NMEDIT
7498 # Extract the first word of "nmedit", so it can be a program name with args.
7499 set dummy nmedit; ac_word=$2
7500 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7502 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7503 echo $ECHO_N "(cached) $ECHO_C" >&6
7505 if test -n "$ac_ct_NMEDIT"; then
7506 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7512 test -z "$as_dir" && as_dir=.
7513 for ac_exec_ext in '' $ac_executable_extensions; do
7514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7515 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7525 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7526 if test -n "$ac_ct_NMEDIT"; then
7527 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7528 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7530 { echo "$as_me:$LINENO: result: no" >&5
7531 echo "${ECHO_T}no" >&6; }
7534 if test "x$ac_ct_NMEDIT" = x; then
7537 case $cross_compiling:$ac_tool_warned in
7539 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7540 whose name does not start with the host triplet. If you think this
7541 configuration is useful to you, please write to autoconf@gnu.org." >&5
7542 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7543 whose name does not start with the host triplet. If you think this
7544 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7545 ac_tool_warned=yes ;;
7547 NMEDIT=$ac_ct_NMEDIT
7550 NMEDIT="$ac_cv_prog_NMEDIT"
7554 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7555 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7556 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7557 echo $ECHO_N "(cached) $ECHO_C" >&6
7559 lt_cv_apple_cc_single_mod=no
7560 if test -z "${LT_MULTI_MODULE}"; then
7561 # By default we will add the -single_module flag. You can override
7562 # by either setting the environment variable LT_MULTI_MODULE
7563 # non-empty at configure time, or by adding -multi_module to the
7565 echo "int foo(void){return 1;}" > conftest.c
7566 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7567 -dynamiclib ${wl}-single_module conftest.c
7568 if test -f libconftest.dylib; then
7569 lt_cv_apple_cc_single_mod=yes
7570 rm -rf libconftest.dylib*
7575 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7576 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7577 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7578 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7579 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7580 echo $ECHO_N "(cached) $ECHO_C" >&6
7582 lt_cv_ld_exported_symbols_list=no
7583 save_LDFLAGS=$LDFLAGS
7584 echo "_main" > conftest.sym
7585 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7586 cat >conftest.$ac_ext <<_ACEOF
7589 cat confdefs.h >>conftest.$ac_ext
7590 cat >>conftest.$ac_ext <<_ACEOF
7591 /* end confdefs.h. */
7601 rm -f conftest.$ac_objext conftest$ac_exeext
7602 if { (ac_try="$ac_link"
7604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7605 *) ac_try_echo=$ac_try;;
7607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7608 (eval "$ac_link") 2>conftest.er1
7610 grep -v '^ *+' conftest.er1 >conftest.err
7612 cat conftest.err >&5
7613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7614 (exit $ac_status); } && {
7615 test -z "$ac_c_werror_flag" ||
7616 test ! -s conftest.err
7617 } && test -s conftest$ac_exeext &&
7618 $as_test_x conftest$ac_exeext; then
7619 lt_cv_ld_exported_symbols_list=yes
7621 echo "$as_me: failed program was:" >&5
7622 sed 's/^/| /' conftest.$ac_ext >&5
7624 lt_cv_ld_exported_symbols_list=no
7627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7628 conftest$ac_exeext conftest.$ac_ext
7629 LDFLAGS="$save_LDFLAGS"
7632 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7633 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7635 rhapsody* | darwin1.[0123])
7636 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7638 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7640 # if running on 10.5 or later, the deployment target defaults
7641 # to the OS version, if on x86, and 10.4, the deployment
7642 # target defaults to 10.4. Don't you love it?
7643 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7644 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7645 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7647 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7649 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7653 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7654 _lt_dar_single_mod='$single_module'
7656 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7657 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7659 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7661 if test "$DSYMUTIL" != ":"; then
7662 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7673 # Check whether --enable-libtool-lock was given.
7674 if test "${enable_libtool_lock+set}" = set; then
7675 enableval=$enable_libtool_lock;
7678 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7681 # Check whether --with-pic was given.
7682 if test "${with_pic+set}" = set; then
7683 withval=$with_pic; pic_mode="$withval"
7688 test -z "$pic_mode" && pic_mode=default
7690 # Use C for the default configuration in the libtool script
7694 ac_cpp='$CPP $CPPFLAGS'
7695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7700 # Source file extension for C test sources.
7703 # Object file extension for compiled C test sources.
7707 # Code to be used in simple compile tests
7708 lt_simple_compile_test_code="int some_variable = 0;"
7710 # Code to be used in simple link tests
7711 lt_simple_link_test_code='int main(){return(0);}'
7714 # If no C compiler was specified, use CC.
7717 # If no C compiler flags were specified, use CFLAGS.
7718 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7720 # Allow CC to be a program name with arguments.
7724 # save warnings/boilerplate of simple test code
7725 ac_outfile=conftest.$ac_objext
7726 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7727 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7728 _lt_compiler_boilerplate=`cat conftest.err`
7731 ac_outfile=conftest.$ac_objext
7732 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7733 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7734 _lt_linker_boilerplate=`cat conftest.err`
7739 lt_prog_compiler_no_builtin_flag=
7741 if test "$GCC" = yes; then
7742 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7745 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7746 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7747 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7748 echo $ECHO_N "(cached) $ECHO_C" >&6
7750 lt_cv_prog_compiler_rtti_exceptions=no
7751 ac_outfile=conftest.$ac_objext
7752 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7753 lt_compiler_flag="-fno-rtti -fno-exceptions"
7754 # Insert the option either (1) after the last *FLAGS variable, or
7755 # (2) before a word containing "conftest.", or (3) at the end.
7756 # Note that $ac_compile itself does not contain backslashes and begins
7757 # with a dollar sign (not a hyphen), so the echo should work correctly.
7758 # The option is referenced via a variable to avoid confusing sed.
7759 lt_compile=`echo "$ac_compile" | $SED \
7760 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7761 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7762 -e 's:$: $lt_compiler_flag:'`
7763 (eval echo "\"\$as_me:7763: $lt_compile\"" >&5)
7764 (eval "$lt_compile" 2>conftest.err)
7766 cat conftest.err >&5
7767 echo "$as_me:7767: \$? = $ac_status" >&5
7768 if (exit $ac_status) && test -s "$ac_outfile"; then
7769 # The compiler can only warn and ignore the option if not recognized
7770 # So say no if there are warnings other than the usual output.
7771 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7772 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7773 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7774 lt_cv_prog_compiler_rtti_exceptions=yes
7780 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7781 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7783 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7784 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7791 lt_prog_compiler_wl=
7792 lt_prog_compiler_pic=
7793 lt_prog_compiler_static=
7795 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7796 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7798 if test "$GCC" = yes; then
7799 lt_prog_compiler_wl='-Wl,'
7800 lt_prog_compiler_static='-static'
7804 # All AIX code is PIC.
7805 if test "$host_cpu" = ia64; then
7806 # AIX 5 now supports IA64 processor
7807 lt_prog_compiler_static='-Bstatic'
7812 # FIXME: we need at least 68020 code to build shared libraries, but
7813 # adding the `-m68020' flag to GCC prevents building anything better,
7815 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7818 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7819 # PIC is the default for these OSes.
7822 mingw* | cygwin* | pw32* | os2*)
7823 # This hack is so that the source file can tell whether it is being
7824 # built for inclusion in a dll (and should export symbols for example).
7825 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7826 # (--disable-auto-import) libraries
7827 lt_prog_compiler_pic='-DDLL_EXPORT'
7830 darwin* | rhapsody*)
7831 # PIC is the default on this platform
7832 # Common symbols not allowed in MH_DYLIB files
7833 lt_prog_compiler_pic='-fno-common'
7837 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7838 # Instead, we relocate shared libraries at runtime.
7842 # Just because we use GCC doesn't mean we suddenly get shared libraries
7843 # on systems that don't support them.
7844 lt_prog_compiler_can_build_shared=no
7849 if test -d /usr/nec; then
7850 lt_prog_compiler_pic=-Kconform_pic
7855 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7862 lt_prog_compiler_pic='-fPIC'
7868 lt_prog_compiler_pic='-fPIC'
7872 # PORTME Check for flag to pass linker flags through the system compiler.
7875 lt_prog_compiler_wl='-Wl,'
7876 if test "$host_cpu" = ia64; then
7877 # AIX 5 now supports IA64 processor
7878 lt_prog_compiler_static='-Bstatic'
7880 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7884 # PIC is the default on this platform
7885 # Common symbols not allowed in MH_DYLIB files
7886 case $cc_basename in
7888 lt_prog_compiler_pic='-qnocommon'
7889 lt_prog_compiler_wl='-Wl,'
7894 mingw* | cygwin* | pw32* | os2*)
7895 # This hack is so that the source file can tell whether it is being
7896 # built for inclusion in a dll (and should export symbols for example).
7897 lt_prog_compiler_pic='-DDLL_EXPORT'
7900 hpux9* | hpux10* | hpux11*)
7901 lt_prog_compiler_wl='-Wl,'
7902 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7909 lt_prog_compiler_pic='+Z'
7912 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7913 lt_prog_compiler_static='${wl}-a ${wl}archive'
7916 irix5* | irix6* | nonstopux*)
7917 lt_prog_compiler_wl='-Wl,'
7918 # PIC (with -KPIC) is the default.
7919 lt_prog_compiler_static='-non_shared'
7923 lt_prog_compiler_pic='-KPIC'
7924 lt_prog_compiler_static='-Bstatic'
7927 linux* | k*bsd*-gnu)
7928 case $cc_basename in
7930 lt_prog_compiler_wl='-Wl,'
7931 lt_prog_compiler_pic='-KPIC'
7932 lt_prog_compiler_static='-static'
7934 pgcc* | pgf77* | pgf90* | pgf95*)
7935 # Portland Group compilers (*not* the Pentium gcc compiler,
7936 # which looks to be a dead project)
7937 lt_prog_compiler_wl='-Wl,'
7938 lt_prog_compiler_pic='-fpic'
7939 lt_prog_compiler_static='-Bstatic'
7942 lt_prog_compiler_wl='-Wl,'
7943 # All Alpha code is PIC.
7944 lt_prog_compiler_static='-non_shared'
7947 case `$CC -V 2>&1 | sed 5q` in
7950 lt_prog_compiler_pic='-KPIC'
7951 lt_prog_compiler_static='-Bstatic'
7952 lt_prog_compiler_wl='-Wl,'
7955 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7956 lt_prog_compiler_pic='-KPIC'
7957 lt_prog_compiler_static='-Bstatic'
7958 lt_prog_compiler_wl=''
7965 osf3* | osf4* | osf5*)
7966 lt_prog_compiler_wl='-Wl,'
7967 # All OSF/1 code is PIC.
7968 lt_prog_compiler_static='-non_shared'
7972 lt_prog_compiler_static='-non_shared'
7976 lt_prog_compiler_pic='-KPIC'
7977 lt_prog_compiler_static='-Bstatic'
7978 case $cc_basename in
7980 lt_prog_compiler_wl='-Qoption ld ';;
7982 lt_prog_compiler_wl='-Wl,';;
7987 lt_prog_compiler_wl='-Qoption ld '
7988 lt_prog_compiler_pic='-PIC'
7989 lt_prog_compiler_static='-Bstatic'
7992 sysv4 | sysv4.2uw2* | sysv4.3*)
7993 lt_prog_compiler_wl='-Wl,'
7994 lt_prog_compiler_pic='-KPIC'
7995 lt_prog_compiler_static='-Bstatic'
7999 if test -d /usr/nec ;then
8000 lt_prog_compiler_pic='-Kconform_pic'
8001 lt_prog_compiler_static='-Bstatic'
8005 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8006 lt_prog_compiler_wl='-Wl,'
8007 lt_prog_compiler_pic='-KPIC'
8008 lt_prog_compiler_static='-Bstatic'
8012 lt_prog_compiler_wl='-Wl,'
8013 lt_prog_compiler_can_build_shared=no
8017 lt_prog_compiler_pic='-pic'
8018 lt_prog_compiler_static='-Bstatic'
8022 lt_prog_compiler_can_build_shared=no
8027 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8028 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8031 # Check to make sure the PIC flag actually works.
8033 if test -n "$lt_prog_compiler_pic"; then
8035 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8036 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8037 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8038 echo $ECHO_N "(cached) $ECHO_C" >&6
8040 lt_cv_prog_compiler_pic_works=no
8041 ac_outfile=conftest.$ac_objext
8042 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8043 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8044 # Insert the option either (1) after the last *FLAGS variable, or
8045 # (2) before a word containing "conftest.", or (3) at the end.
8046 # Note that $ac_compile itself does not contain backslashes and begins
8047 # with a dollar sign (not a hyphen), so the echo should work correctly.
8048 # The option is referenced via a variable to avoid confusing sed.
8049 lt_compile=`echo "$ac_compile" | $SED \
8050 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8051 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8052 -e 's:$: $lt_compiler_flag:'`
8053 (eval echo "\"\$as_me:8053: $lt_compile\"" >&5)
8054 (eval "$lt_compile" 2>conftest.err)
8056 cat conftest.err >&5
8057 echo "$as_me:8057: \$? = $ac_status" >&5
8058 if (exit $ac_status) && test -s "$ac_outfile"; then
8059 # The compiler can only warn and ignore the option if not recognized
8060 # So say no if there are warnings other than the usual output.
8061 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8062 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8063 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8064 lt_cv_prog_compiler_pic_works=yes
8070 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8071 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
8073 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8074 case $lt_prog_compiler_pic in
8076 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8079 lt_prog_compiler_pic=
8080 lt_prog_compiler_can_build_shared=no
8085 # For platforms which do not support PIC, -DPIC is meaningless:
8087 lt_prog_compiler_pic=
8090 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8095 # Check to make sure the static flag actually works.
8097 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8098 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8099 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8100 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8101 echo $ECHO_N "(cached) $ECHO_C" >&6
8103 lt_cv_prog_compiler_static_works=no
8104 save_LDFLAGS="$LDFLAGS"
8105 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8106 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8107 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8108 # The linker can only warn and ignore the option if not recognized
8109 # So say no if there are warnings
8110 if test -s conftest.err; then
8111 # Append any errors to the config.log.
8112 cat conftest.err 1>&5
8113 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8114 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8115 if diff conftest.exp conftest.er2 >/dev/null; then
8116 lt_cv_prog_compiler_static_works=yes
8119 lt_cv_prog_compiler_static_works=yes
8123 LDFLAGS="$save_LDFLAGS"
8126 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8127 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
8129 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8132 lt_prog_compiler_static=
8136 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8137 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8138 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8139 echo $ECHO_N "(cached) $ECHO_C" >&6
8141 lt_cv_prog_compiler_c_o=no
8142 $rm -r conftest 2>/dev/null
8146 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8148 lt_compiler_flag="-o out/conftest2.$ac_objext"
8149 # Insert the option either (1) after the last *FLAGS variable, or
8150 # (2) before a word containing "conftest.", or (3) at the end.
8151 # Note that $ac_compile itself does not contain backslashes and begins
8152 # with a dollar sign (not a hyphen), so the echo should work correctly.
8153 lt_compile=`echo "$ac_compile" | $SED \
8154 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8155 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8156 -e 's:$: $lt_compiler_flag:'`
8157 (eval echo "\"\$as_me:8157: $lt_compile\"" >&5)
8158 (eval "$lt_compile" 2>out/conftest.err)
8160 cat out/conftest.err >&5
8161 echo "$as_me:8161: \$? = $ac_status" >&5
8162 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8164 # The compiler can only warn and ignore the option if not recognized
8165 # So say no if there are warnings
8166 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8167 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8168 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8169 lt_cv_prog_compiler_c_o=yes
8174 # SGI C++ compiler will create directory out/ii_files/ for
8175 # template instantiation
8176 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8177 $rm out/* && rmdir out
8183 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8184 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8187 hard_links="nottested"
8188 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8189 # do not overwrite the value of need_locks provided by the user
8190 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8191 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8194 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8196 ln conftest.a conftest.b 2>&5 || hard_links=no
8197 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8198 { echo "$as_me:$LINENO: result: $hard_links" >&5
8199 echo "${ECHO_T}$hard_links" >&6; }
8200 if test "$hard_links" = no; then
8201 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8202 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8209 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8210 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8213 allow_undefined_flag=
8214 enable_shared_with_static_runtimes=no
8216 archive_expsym_cmds=
8217 old_archive_From_new_cmds=
8218 old_archive_from_expsyms_cmds=
8219 export_dynamic_flag_spec=
8220 whole_archive_flag_spec=
8221 thread_safe_flag_spec=
8222 hardcode_libdir_flag_spec=
8223 hardcode_libdir_flag_spec_ld=
8224 hardcode_libdir_separator=
8227 hardcode_shlibpath_var=unsupported
8228 link_all_deplibs=unknown
8229 hardcode_automatic=no
8232 always_export_symbols=no
8233 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8234 # include_expsyms should be a list of space-separated symbols to be *always*
8235 # included in the symbol list
8237 # exclude_expsyms can be an extended regexp of symbols to exclude
8238 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8239 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8240 # as well as any symbol that contains `d'.
8241 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8242 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8243 # platforms (ab)use it in PIC code, but their linkers get confused if
8244 # the symbol is explicitly referenced. Since portable code cannot
8245 # rely on this symbol name, it's probably fine to never include it in
8246 # preloaded symbol tables.
8247 # Exclude shared library initialization/finalization symbols.
8248 extract_expsyms_cmds=
8249 # Just being paranoid about ensuring that cc_basename is set.
8250 for cc_temp in $compiler""; do
8252 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8253 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8258 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8261 cygwin* | mingw* | pw32*)
8262 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8263 # When not using gcc, we currently assume that we are using
8264 # Microsoft Visual C++.
8265 if test "$GCC" != yes; then
8270 # we just hope/assume this is gcc and not c89 (= MSVC++)
8279 if test "$with_gnu_ld" = yes; then
8280 # If archive_cmds runs LD, not CC, wlarc should be empty
8283 # Set some defaults for GNU ld with shared library support. These
8284 # are reset later if shared libraries are not supported. Putting them
8285 # here allows them to be overridden if necessary.
8286 runpath_var=LD_RUN_PATH
8287 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8288 export_dynamic_flag_spec='${wl}--export-dynamic'
8289 # ancient GNU ld didn't support --whole-archive et. al.
8290 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8291 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8293 whole_archive_flag_spec=
8295 supports_anon_versioning=no
8296 case `$LD -v 2>/dev/null` in
8297 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8298 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8299 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8300 *\ 2.11.*) ;; # other 2.11 versions
8301 *) supports_anon_versioning=yes ;;
8304 # See if GNU ld supports shared libraries.
8307 # On AIX/PPC, the GNU linker is very broken
8308 if test "$host_cpu" != ia64; then
8312 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8313 *** to be unable to reliably create shared libraries on AIX.
8314 *** Therefore, libtool is disabling shared libraries support. If you
8315 *** really care for shared libraries, you may want to modify your PATH
8316 *** so that a non-GNU linker is found, and then restart.
8323 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)'
8324 hardcode_libdir_flag_spec='-L$libdir'
8325 hardcode_minus_L=yes
8327 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8328 # that the semantics of dynamic libraries on AmigaOS, at least up
8329 # to version 4, is to share data among multiple programs linked
8330 # with the same dynamic library. Since this doesn't match the
8331 # behavior of shared libraries on other platforms, we can't use
8337 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8338 allow_undefined_flag=unsupported
8339 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8340 # support --undefined. This deserves some investigation. FIXME
8341 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8347 cygwin* | mingw* | pw32*)
8348 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8349 # as there is no search path for DLLs.
8350 hardcode_libdir_flag_spec='-L$libdir'
8351 allow_undefined_flag=unsupported
8352 always_export_symbols=no
8353 enable_shared_with_static_runtimes=yes
8354 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8356 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8357 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8358 # If the export-symbols file already is a .def file (1st line
8359 # is EXPORTS), use it as is; otherwise, prepend...
8360 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8361 cp $export_symbols $output_objdir/$soname.def;
8363 echo EXPORTS > $output_objdir/$soname.def;
8364 cat $export_symbols >> $output_objdir/$soname.def;
8366 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8374 hardcode_shlibpath_var=no
8375 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8376 export_dynamic_flag_spec='${wl}-E'
8377 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8378 # Instead, shared libraries are loaded at an image base (0x10000000 by
8379 # default) and relocated if they conflict, which is a slow very memory
8380 # consuming and fragmenting process. To avoid this, we pick a random,
8381 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8382 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8383 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8384 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'
8387 gnu* | linux* | k*bsd*-gnu)
8388 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8390 case $cc_basename,$host_cpu in
8391 pgcc*) # Portland Group C compiler
8392 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'
8393 tmp_addflag=' $pic_flag'
8395 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8396 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'
8397 tmp_addflag=' $pic_flag -Mnomain' ;;
8398 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8399 tmp_addflag=' -i_dynamic' ;;
8400 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8401 tmp_addflag=' -i_dynamic -nofor_main' ;;
8402 ifc* | ifort*) # Intel Fortran compiler
8403 tmp_addflag=' -nofor_main' ;;
8405 case `$CC -V 2>&1 | sed 5q` in
8406 *Sun\ C*) # Sun C 5.9
8407 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8408 tmp_sharedflag='-G' ;;
8409 *Sun\ F*) # Sun Fortran 8.3
8410 tmp_sharedflag='-G' ;;
8412 tmp_sharedflag='-shared' ;;
8414 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8416 if test $supports_anon_versioning = yes; then
8417 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8418 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8419 $echo "local: *; };" >> $output_objdir/$libname.ver~
8420 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8428 netbsd* | netbsdelf*-gnu)
8429 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8430 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8433 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8434 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8439 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8443 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8444 *** create shared libraries on Solaris systems. Therefore, libtool
8445 *** is disabling shared libraries support. We urge you to upgrade GNU
8446 *** binutils to release 2.9.1 or newer. Another option is to modify
8447 *** your PATH or compiler configuration so that the native linker is
8448 *** used, and then restart.
8451 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8452 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8453 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8459 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8460 case `$LD -v 2>&1` in
8461 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8465 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8466 *** reliably create shared libraries on SCO systems. Therefore, libtool
8467 *** is disabling shared libraries support. We urge you to upgrade GNU
8468 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8469 *** your PATH or compiler configuration so that the native linker is
8470 *** used, and then restart.
8475 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8476 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8477 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8478 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8487 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8490 hardcode_shlibpath_var=no
8494 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8495 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8496 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8503 if test "$ld_shlibs" = no; then
8505 hardcode_libdir_flag_spec=
8506 export_dynamic_flag_spec=
8507 whole_archive_flag_spec=
8510 # PORTME fill in a description of your system's linker (not GNU ld)
8513 allow_undefined_flag=unsupported
8514 always_export_symbols=yes
8515 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'
8516 # Note: this linker hardcodes the directories in LIBPATH if there
8517 # are no directories specified by -L.
8518 hardcode_minus_L=yes
8519 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8520 # Neither direct hardcoding nor static linking is supported with a
8522 hardcode_direct=unsupported
8527 if test "$host_cpu" = ia64; then
8528 # On IA64, the linker does run time linking by default, so we don't
8529 # have to do anything special.
8530 aix_use_runtimelinking=no
8531 exp_sym_flag='-Bexport'
8534 # If we're using GNU nm, then we don't want the "-C" option.
8535 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8536 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8537 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'
8539 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'
8541 aix_use_runtimelinking=no
8543 # Test if we are trying to use run time linking or normal
8544 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8545 # need to do runtime linking.
8546 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8547 for ld_flag in $LDFLAGS; do
8548 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8549 aix_use_runtimelinking=yes
8556 exp_sym_flag='-bexport'
8557 no_entry_flag='-bnoentry'
8560 # When large executables or shared objects are built, AIX ld can
8561 # have problems creating the table of contents. If linking a library
8562 # or program results in "error TOC overflow" add -mminimal-toc to
8563 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8564 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8568 hardcode_libdir_separator=':'
8569 link_all_deplibs=yes
8571 if test "$GCC" = yes; then
8572 case $host_os in aix4.[012]|aix4.[012].*)
8573 # We only want to do this on AIX 4.2 and lower, the check
8574 # below for broken collect2 doesn't work under 4.3+
8575 collect2name=`${CC} -print-prog-name=collect2`
8576 if test -f "$collect2name" && \
8577 strings "$collect2name" | grep resolve_lib_name >/dev/null
8579 # We have reworked collect2
8582 # We have old collect2
8583 hardcode_direct=unsupported
8584 # It fails to find uninstalled libraries when the uninstalled
8585 # path is not listed in the libpath. Setting hardcode_minus_L
8586 # to unsupported forces relinking
8587 hardcode_minus_L=yes
8588 hardcode_libdir_flag_spec='-L$libdir'
8589 hardcode_libdir_separator=
8593 shared_flag='-shared'
8594 if test "$aix_use_runtimelinking" = yes; then
8595 shared_flag="$shared_flag "'${wl}-G'
8599 if test "$host_cpu" = ia64; then
8600 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8601 # chokes on -Wl,-G. The following line is correct:
8604 if test "$aix_use_runtimelinking" = yes; then
8605 shared_flag='${wl}-G'
8607 shared_flag='${wl}-bM:SRE'
8612 # It seems that -bexpall does not export symbols beginning with
8613 # underscore (_), so it is better to generate a list of symbols to export.
8614 always_export_symbols=yes
8615 if test "$aix_use_runtimelinking" = yes; then
8616 # Warning - without using the other runtime loading flags (-brtl),
8617 # -berok will link without error, but may produce a broken library.
8618 allow_undefined_flag='-berok'
8619 # Determine the default libpath from the value encoded in an empty executable.
8620 cat >conftest.$ac_ext <<_ACEOF
8623 cat confdefs.h >>conftest.$ac_ext
8624 cat >>conftest.$ac_ext <<_ACEOF
8625 /* end confdefs.h. */
8635 rm -f conftest.$ac_objext conftest$ac_exeext
8636 if { (ac_try="$ac_link"
8638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8639 *) ac_try_echo=$ac_try;;
8641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8642 (eval "$ac_link") 2>conftest.er1
8644 grep -v '^ *+' conftest.er1 >conftest.err
8646 cat conftest.err >&5
8647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648 (exit $ac_status); } && {
8649 test -z "$ac_c_werror_flag" ||
8650 test ! -s conftest.err
8651 } && test -s conftest$ac_exeext &&
8652 $as_test_x conftest$ac_exeext; then
8654 lt_aix_libpath_sed='
8655 /Import File Strings/,/^$/ {
8661 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8662 # Check for a 64-bit object if we didn't find anything.
8663 if test -z "$aix_libpath"; then
8664 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8667 echo "$as_me: failed program was:" >&5
8668 sed 's/^/| /' conftest.$ac_ext >&5
8673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8674 conftest$ac_exeext conftest.$ac_ext
8675 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8677 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8678 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"
8680 if test "$host_cpu" = ia64; then
8681 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8682 allow_undefined_flag="-z nodefs"
8683 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"
8685 # Determine the default libpath from the value encoded in an empty executable.
8686 cat >conftest.$ac_ext <<_ACEOF
8689 cat confdefs.h >>conftest.$ac_ext
8690 cat >>conftest.$ac_ext <<_ACEOF
8691 /* end confdefs.h. */
8701 rm -f conftest.$ac_objext conftest$ac_exeext
8702 if { (ac_try="$ac_link"
8704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8705 *) ac_try_echo=$ac_try;;
8707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8708 (eval "$ac_link") 2>conftest.er1
8710 grep -v '^ *+' conftest.er1 >conftest.err
8712 cat conftest.err >&5
8713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714 (exit $ac_status); } && {
8715 test -z "$ac_c_werror_flag" ||
8716 test ! -s conftest.err
8717 } && test -s conftest$ac_exeext &&
8718 $as_test_x conftest$ac_exeext; then
8720 lt_aix_libpath_sed='
8721 /Import File Strings/,/^$/ {
8727 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8728 # Check for a 64-bit object if we didn't find anything.
8729 if test -z "$aix_libpath"; then
8730 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8733 echo "$as_me: failed program was:" >&5
8734 sed 's/^/| /' conftest.$ac_ext >&5
8739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8740 conftest$ac_exeext conftest.$ac_ext
8741 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8743 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8744 # Warning - without using the other run time loading flags,
8745 # -berok will link without error, but may produce a broken library.
8746 no_undefined_flag=' ${wl}-bernotok'
8747 allow_undefined_flag=' ${wl}-berok'
8748 # Exported symbols can be pulled into shared objects from archives
8749 whole_archive_flag_spec='$convenience'
8750 archive_cmds_need_lc=yes
8751 # This is similar to how AIX traditionally builds its shared libraries.
8752 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'
8758 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)'
8759 hardcode_libdir_flag_spec='-L$libdir'
8760 hardcode_minus_L=yes
8761 # see comment about different semantics on the GNU ld section
8766 export_dynamic_flag_spec=-rdynamic
8769 cygwin* | mingw* | pw32*)
8770 # When not using gcc, we currently assume that we are using
8771 # Microsoft Visual C++.
8772 # hardcode_libdir_flag_spec is actually meaningless, as there is
8773 # no search path for DLLs.
8774 hardcode_libdir_flag_spec=' '
8775 allow_undefined_flag=unsupported
8776 # Tell ltmain to make .lib files, not .a files.
8778 # Tell ltmain to make .dll files, not .so files.
8780 # FIXME: Setting linknames here is a bad hack.
8781 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8782 # The linker will automatically build a .lib file if we build a DLL.
8783 old_archive_From_new_cmds='true'
8784 # FIXME: Should let the user specify the lib program.
8785 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8786 fix_srcfile_path='`cygpath -w "$srcfile"`'
8787 enable_shared_with_static_runtimes=yes
8790 darwin* | rhapsody*)
8792 rhapsody* | darwin1.[012])
8793 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8796 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8797 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8799 case ${MACOSX_DEPLOYMENT_TARGET} in
8801 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8804 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8810 archive_cmds_need_lc=no
8812 hardcode_automatic=yes
8813 hardcode_shlibpath_var=unsupported
8814 whole_archive_flag_spec=''
8815 link_all_deplibs=yes
8816 if test "$GCC" = yes ; then
8817 output_verbose_link_cmd='echo'
8818 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8819 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8820 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8821 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8823 case $cc_basename in
8825 output_verbose_link_cmd='echo'
8826 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8827 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8828 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8829 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8830 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}'
8840 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8841 hardcode_libdir_flag_spec='-L$libdir'
8842 hardcode_shlibpath_var=no
8849 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8850 # support. Future versions do this automatically, but an explicit c++rt0.o
8851 # does not break anything, and helps significantly (at the cost of a little
8854 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8855 hardcode_libdir_flag_spec='-R$libdir'
8857 hardcode_shlibpath_var=no
8860 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8862 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8864 hardcode_minus_L=yes
8865 hardcode_shlibpath_var=no
8868 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8869 freebsd* | dragonfly*)
8870 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8871 hardcode_libdir_flag_spec='-R$libdir'
8873 hardcode_shlibpath_var=no
8877 if test "$GCC" = yes; then
8878 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'
8880 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'
8882 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8883 hardcode_libdir_separator=:
8886 # hardcode_minus_L: Not really in the search PATH,
8887 # but as the default location of the library.
8888 hardcode_minus_L=yes
8889 export_dynamic_flag_spec='${wl}-E'
8893 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8894 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8896 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8898 if test "$with_gnu_ld" = no; then
8899 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8900 hardcode_libdir_separator=:
8903 export_dynamic_flag_spec='${wl}-E'
8905 # hardcode_minus_L: Not really in the search PATH,
8906 # but as the default location of the library.
8907 hardcode_minus_L=yes
8912 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8915 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8918 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8921 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8927 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8930 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8933 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8937 if test "$with_gnu_ld" = no; then
8938 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8939 hardcode_libdir_separator=:
8943 hardcode_libdir_flag_spec_ld='+b $libdir'
8945 hardcode_shlibpath_var=no
8949 export_dynamic_flag_spec='${wl}-E'
8951 # hardcode_minus_L: Not really in the search PATH,
8952 # but as the default location of the library.
8953 hardcode_minus_L=yes
8959 irix5* | irix6* | nonstopux*)
8960 if test "$GCC" = yes; then
8961 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'
8963 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'
8964 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8966 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8967 hardcode_libdir_separator=:
8968 link_all_deplibs=yes
8971 netbsd* | netbsdelf*-gnu)
8972 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8973 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8975 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8977 hardcode_libdir_flag_spec='-R$libdir'
8979 hardcode_shlibpath_var=no
8983 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8985 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8986 hardcode_libdir_separator=:
8987 hardcode_shlibpath_var=no
8991 if test -f /usr/libexec/ld.so; then
8993 hardcode_shlibpath_var=no
8994 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8995 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8996 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8997 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8998 export_dynamic_flag_spec='${wl}-E'
9001 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9002 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9003 hardcode_libdir_flag_spec='-R$libdir'
9006 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9007 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9017 hardcode_libdir_flag_spec='-L$libdir'
9018 hardcode_minus_L=yes
9019 allow_undefined_flag=unsupported
9020 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'
9021 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9025 if test "$GCC" = yes; then
9026 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9027 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'
9029 allow_undefined_flag=' -expect_unresolved \*'
9030 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'
9032 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9033 hardcode_libdir_separator=:
9036 osf4* | osf5*) # as osf3* with the addition of -msym flag
9037 if test "$GCC" = yes; then
9038 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9039 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'
9040 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9042 allow_undefined_flag=' -expect_unresolved \*'
9043 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'
9044 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9045 $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'
9047 # Both c and cxx compiler support -rpath directly
9048 hardcode_libdir_flag_spec='-rpath $libdir'
9050 hardcode_libdir_separator=:
9054 no_undefined_flag=' -z text'
9055 if test "$GCC" = yes; then
9057 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9058 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9059 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9062 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9063 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9064 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9066 hardcode_libdir_flag_spec='-R$libdir'
9067 hardcode_shlibpath_var=no
9069 solaris2.[0-5] | solaris2.[0-5].*) ;;
9071 # The compiler driver will combine and reorder linker options,
9072 # but understands `-z linker_flag'. GCC discards it without `$wl',
9073 # but is careful enough not to reorder.
9074 # Supported since Solaris 2.6 (maybe 2.5.1?)
9075 if test "$GCC" = yes; then
9076 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9078 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9082 link_all_deplibs=yes
9086 if test "x$host_vendor" = xsequent; then
9087 # Use $CC to link under sequent, because it throws in some extra .o
9088 # files that make .init and .fini sections work.
9089 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9091 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9093 hardcode_libdir_flag_spec='-L$libdir'
9095 hardcode_minus_L=yes
9096 hardcode_shlibpath_var=no
9100 case $host_vendor in
9102 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9103 hardcode_direct=yes # is this really true???
9106 ## LD is ld it makes a PLAMLIB
9107 ## CC just makes a GrossModule.
9108 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9109 reload_cmds='$CC -r -o $output$reload_objs'
9113 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9114 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9117 runpath_var='LD_RUN_PATH'
9118 hardcode_shlibpath_var=no
9122 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9123 hardcode_shlibpath_var=no
9124 export_dynamic_flag_spec='-Bexport'
9128 if test -d /usr/nec; then
9129 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9130 hardcode_shlibpath_var=no
9131 runpath_var=LD_RUN_PATH
9132 hardcode_runpath_var=yes
9137 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9138 no_undefined_flag='${wl}-z,text'
9139 archive_cmds_need_lc=no
9140 hardcode_shlibpath_var=no
9141 runpath_var='LD_RUN_PATH'
9143 if test "$GCC" = yes; then
9144 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9145 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9147 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9148 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9152 sysv5* | sco3.2v5* | sco5v6*)
9153 # Note: We can NOT use -z defs as we might desire, because we do not
9154 # link with -lc, and that would cause any symbols used from libc to
9155 # always be unresolved, which means just about no library would
9156 # ever link correctly. If we're not using GNU ld we use -z text
9157 # though, which does catch some bad symbols but isn't as heavy-handed
9159 no_undefined_flag='${wl}-z,text'
9160 allow_undefined_flag='${wl}-z,nodefs'
9161 archive_cmds_need_lc=no
9162 hardcode_shlibpath_var=no
9163 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9164 hardcode_libdir_separator=':'
9165 link_all_deplibs=yes
9166 export_dynamic_flag_spec='${wl}-Bexport'
9167 runpath_var='LD_RUN_PATH'
9169 if test "$GCC" = yes; then
9170 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9171 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9173 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9174 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9179 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9180 hardcode_libdir_flag_spec='-L$libdir'
9181 hardcode_shlibpath_var=no
9190 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9191 echo "${ECHO_T}$ld_shlibs" >&6; }
9192 test "$ld_shlibs" = no && can_build_shared=no
9195 # Do we need to explicitly link libc?
9197 case "x$archive_cmds_need_lc" in
9199 # Assume -lc should be added
9200 archive_cmds_need_lc=yes
9202 if test "$enable_shared" = yes && test "$GCC" = yes; then
9203 case $archive_cmds in
9205 # FIXME: we may have to deal with multi-command sequences.
9208 # Test whether the compiler implicitly links with -lc since on some
9209 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9210 # to ld, don't add -lc before -lgcc.
9211 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9212 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9214 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9217 (eval $ac_compile) 2>&5
9219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9220 (exit $ac_status); } 2>conftest.err; then
9223 libobjs=conftest.$ac_objext
9225 wl=$lt_prog_compiler_wl
9226 pic_flag=$lt_prog_compiler_pic
9232 lt_save_allow_undefined_flag=$allow_undefined_flag
9233 allow_undefined_flag=
9234 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9235 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9238 (exit $ac_status); }
9240 archive_cmds_need_lc=no
9242 archive_cmds_need_lc=yes
9244 allow_undefined_flag=$lt_save_allow_undefined_flag
9246 cat conftest.err 1>&5
9249 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9250 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9257 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9258 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9260 libname_spec='lib$name'
9268 shlibpath_overrides_runpath=unknown
9270 dynamic_linker="$host_os ld.so"
9271 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9273 if test "$GCC" = yes; then
9275 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9276 *) lt_awk_arg="/^libraries:/" ;;
9278 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9279 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9280 # if the path contains ";" then we assume it to be the separator
9281 # otherwise default to the standard path separator (i.e. ":") - it is
9282 # assumed that no part of a normal pathname contains ";" but that should
9283 # okay in the real world where ";" in dirpaths is itself problematic.
9284 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9286 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9288 # Ok, now we have the path, separated by spaces, we can step through it
9289 # and add multilib dir if necessary.
9290 lt_tmp_lt_search_path_spec=
9291 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9292 for lt_sys_path in $lt_search_path_spec; do
9293 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9294 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9296 test -d "$lt_sys_path" && \
9297 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9300 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9301 BEGIN {RS=" "; FS="/|\n";} {
9304 for (lt_i = NF; lt_i > 0; lt_i--) {
9305 if ($lt_i != "" && $lt_i != ".") {
9306 if ($lt_i == "..") {
9309 if (lt_count == 0) {
9310 lt_foo="/" $lt_i lt_foo;
9317 if (lt_foo != "") { lt_freq[lt_foo]++; }
9318 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9320 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9322 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9324 need_lib_prefix=unknown
9325 hardcode_into_libs=no
9327 # when you set need_version to no, make sure it does not cause -set_version
9328 # flags to be left without arguments
9329 need_version=unknown
9334 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9335 shlibpath_var=LIBPATH
9337 # AIX 3 has no versioning support, so we append a major version to the name.
9338 soname_spec='${libname}${release}${shared_ext}$major'
9345 hardcode_into_libs=yes
9346 if test "$host_cpu" = ia64; then
9347 # AIX 5 supports IA64
9348 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9349 shlibpath_var=LD_LIBRARY_PATH
9351 # With GCC up to 2.95.x, collect2 would create an import file
9352 # for dependence libraries. The import file would start with
9353 # the line `#! .'. This would cause the generated library to
9354 # depend on `.', always an invalid library. This was fixed in
9355 # development snapshots of GCC prior to 3.0.
9357 aix4 | aix4.[01] | aix4.[01].*)
9358 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9360 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9367 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9368 # soname into executable. Probably we can add versioning support to
9369 # collect2, so additional links can be useful in future.
9370 if test "$aix_use_runtimelinking" = yes; then
9371 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9372 # instead of lib<name>.a to let people know that these are not
9373 # typical AIX shared libraries.
9374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9376 # We preserve .a as extension for shared libraries through AIX4.2
9377 # and later when we are not doing run time linking.
9378 library_names_spec='${libname}${release}.a $libname.a'
9379 soname_spec='${libname}${release}${shared_ext}$major'
9381 shlibpath_var=LIBPATH
9386 library_names_spec='$libname.ixlibrary $libname.a'
9387 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9388 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'
9392 library_names_spec='${libname}${shared_ext}'
9393 dynamic_linker="$host_os ld.so"
9394 shlibpath_var=LIBRARY_PATH
9400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9401 soname_spec='${libname}${release}${shared_ext}$major'
9402 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9403 shlibpath_var=LD_LIBRARY_PATH
9404 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9405 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9406 # the default ld.so.conf also contains /usr/contrib/lib and
9407 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9408 # libtool to hard-code these into programs
9411 cygwin* | mingw* | pw32*)
9412 version_type=windows
9417 case $GCC,$host_os in
9418 yes,cygwin* | yes,mingw* | yes,pw32*)
9419 library_names_spec='$libname.dll.a'
9420 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9421 postinstall_cmds='base_file=`basename \${file}`~
9422 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9423 dldir=$destdir/`dirname \$dlpath`~
9424 test -d \$dldir || mkdir -p \$dldir~
9425 $install_prog $dir/$dlname \$dldir/$dlname~
9426 chmod a+x \$dldir/$dlname'
9427 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9428 dlpath=$dir/\$dldll~
9430 shlibpath_overrides_runpath=yes
9434 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9435 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9436 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9439 # MinGW DLLs use traditional 'lib' prefix
9440 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9441 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9442 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9443 # It is most probably a Windows format PATH printed by
9444 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9445 # path with ; separators, and with drive letters. We can handle the
9446 # drive letters (cygwin fileutils understands them), so leave them,
9447 # especially as we might pass files found there to a mingw objdump,
9448 # which wouldn't understand a cygwinified path. Ahh.
9449 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9451 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9455 # pw32 DLLs use 'pw' prefix rather than 'lib'
9456 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9462 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9465 dynamic_linker='Win32 ld.exe'
9466 # FIXME: first we should search . and the directory the executable is in
9470 darwin* | rhapsody*)
9471 dynamic_linker="$host_os dyld"
9475 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9476 soname_spec='${libname}${release}${major}$shared_ext'
9477 shlibpath_overrides_runpath=yes
9478 shlibpath_var=DYLD_LIBRARY_PATH
9479 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9481 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9482 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9490 soname_spec='${libname}${release}${shared_ext}$major'
9491 shlibpath_var=LD_LIBRARY_PATH
9498 freebsd* | dragonfly*)
9499 # DragonFly does not have aout. When/if they implement a new
9500 # versioning mechanism, adjust this.
9501 if test -x /usr/bin/objformat; then
9502 objformat=`/usr/bin/objformat`
9505 freebsd[123]*) objformat=aout ;;
9509 version_type=freebsd-$objformat
9510 case $version_type in
9512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9517 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9521 shlibpath_var=LD_LIBRARY_PATH
9524 shlibpath_overrides_runpath=yes
9526 freebsd3.[01]* | freebsdelf3.[01]*)
9527 shlibpath_overrides_runpath=yes
9528 hardcode_into_libs=yes
9530 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9531 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9532 shlibpath_overrides_runpath=no
9533 hardcode_into_libs=yes
9535 *) # from 4.6 on, and DragonFly
9536 shlibpath_overrides_runpath=yes
9537 hardcode_into_libs=yes
9546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9547 soname_spec='${libname}${release}${shared_ext}$major'
9548 shlibpath_var=LD_LIBRARY_PATH
9549 hardcode_into_libs=yes
9552 hpux9* | hpux10* | hpux11*)
9553 # Give a soname corresponding to the major version so that dld.sl refuses to
9554 # link against other versions.
9561 hardcode_into_libs=yes
9562 dynamic_linker="$host_os dld.so"
9563 shlibpath_var=LD_LIBRARY_PATH
9564 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9566 soname_spec='${libname}${release}${shared_ext}$major'
9567 if test "X$HPUX_IA64_MODE" = X32; then
9568 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9570 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9572 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9576 hardcode_into_libs=yes
9577 dynamic_linker="$host_os dld.sl"
9578 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9579 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9581 soname_spec='${libname}${release}${shared_ext}$major'
9582 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9583 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9587 dynamic_linker="$host_os dld.sl"
9588 shlibpath_var=SHLIB_PATH
9589 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9591 soname_spec='${libname}${release}${shared_ext}$major'
9594 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9595 postinstall_cmds='chmod 555 $lib'
9602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9603 soname_spec='${libname}${release}${shared_ext}$major'
9604 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9605 shlibpath_var=LD_LIBRARY_PATH
9606 shlibpath_overrides_runpath=no
9607 hardcode_into_libs=yes
9610 irix5* | irix6* | nonstopux*)
9612 nonstopux*) version_type=nonstopux ;;
9614 if test "$lt_cv_prog_gnu_ld" = yes; then
9622 soname_spec='${libname}${release}${shared_ext}$major'
9623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9625 irix5* | nonstopux*)
9629 case $LD in # libtool.m4 will add one of these switches to LD
9630 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9631 libsuff= shlibsuff= libmagic=32-bit;;
9632 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9633 libsuff=32 shlibsuff=N32 libmagic=N32;;
9634 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9635 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9636 *) libsuff= shlibsuff= libmagic=never-match;;
9640 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9641 shlibpath_overrides_runpath=no
9642 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9643 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9644 hardcode_into_libs=yes
9647 # No shared lib support for Linux oldld, aout, or coff.
9648 linux*oldld* | linux*aout* | linux*coff*)
9652 # This must be Linux ELF.
9653 linux* | k*bsd*-gnu)
9657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9658 soname_spec='${libname}${release}${shared_ext}$major'
9659 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9660 shlibpath_var=LD_LIBRARY_PATH
9661 shlibpath_overrides_runpath=no
9662 # This implies no fast_install, which is unacceptable.
9663 # Some rework will be needed to allow for fast_install
9664 # before this can be enabled.
9665 hardcode_into_libs=yes
9667 # Append ld.so.conf contents to the search path
9668 if test -f /etc/ld.so.conf; then
9669 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9670 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9673 # We used to test for /lib/ld.so.1 and disable shared libraries on
9674 # powerpc, because MkLinux only supported shared libraries with the
9675 # GNU dynamic linker. Since this was broken with cross compilers,
9676 # most powerpc-linux boxes support dynamic linking these days and
9677 # people can always --disable-shared, the test was removed, and we
9678 # assume the GNU/Linux dynamic linker is in use.
9679 dynamic_linker='GNU/Linux ld.so'
9686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9687 soname_spec='${libname}${release}${shared_ext}$major'
9688 shlibpath_var=LD_LIBRARY_PATH
9689 shlibpath_overrides_runpath=no
9690 hardcode_into_libs=yes
9691 dynamic_linker='NetBSD ld.elf_so'
9698 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9700 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9701 dynamic_linker='NetBSD (a.out) ld.so'
9703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9704 soname_spec='${libname}${release}${shared_ext}$major'
9705 dynamic_linker='NetBSD ld.elf_so'
9707 shlibpath_var=LD_LIBRARY_PATH
9708 shlibpath_overrides_runpath=yes
9709 hardcode_into_libs=yes
9714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9715 shlibpath_var=LD_LIBRARY_PATH
9716 shlibpath_overrides_runpath=yes
9723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9724 soname_spec='${libname}${release}${shared_ext}$major'
9725 shlibpath_var=LD_LIBRARY_PATH
9726 shlibpath_overrides_runpath=yes
9731 sys_lib_dlsearch_path_spec="/usr/lib"
9733 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9735 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9736 *) need_version=no ;;
9738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9739 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9740 shlibpath_var=LD_LIBRARY_PATH
9741 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9743 openbsd2.[89] | openbsd2.[89].*)
9744 shlibpath_overrides_runpath=no
9747 shlibpath_overrides_runpath=yes
9751 shlibpath_overrides_runpath=yes
9756 libname_spec='$name'
9759 library_names_spec='$libname${shared_ext} $libname.a'
9760 dynamic_linker='OS/2 ld.exe'
9761 shlibpath_var=LIBPATH
9764 osf3* | osf4* | osf5*)
9768 soname_spec='${libname}${release}${shared_ext}$major'
9769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9770 shlibpath_var=LD_LIBRARY_PATH
9771 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9772 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9784 soname_spec='${libname}${release}${shared_ext}$major'
9785 shlibpath_var=LD_LIBRARY_PATH
9786 shlibpath_overrides_runpath=yes
9787 hardcode_into_libs=yes
9788 # ldd complains unless libraries are executable
9789 postinstall_cmds='chmod +x $lib'
9794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9795 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9796 shlibpath_var=LD_LIBRARY_PATH
9797 shlibpath_overrides_runpath=yes
9798 if test "$with_gnu_ld" = yes; then
9806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9807 soname_spec='${libname}${release}${shared_ext}$major'
9808 shlibpath_var=LD_LIBRARY_PATH
9809 case $host_vendor in
9811 shlibpath_overrides_runpath=no
9813 export_dynamic_flag_spec='${wl}-Blargedynsym'
9814 runpath_var=LD_RUN_PATH
9822 shlibpath_overrides_runpath=no
9823 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9829 if test -d /usr/nec ;then
9831 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9832 soname_spec='$libname${shared_ext}.$major'
9833 shlibpath_var=LD_LIBRARY_PATH
9837 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9838 version_type=freebsd-elf
9841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9842 soname_spec='${libname}${release}${shared_ext}$major'
9843 shlibpath_var=LD_LIBRARY_PATH
9844 hardcode_into_libs=yes
9845 if test "$with_gnu_ld" = yes; then
9846 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9847 shlibpath_overrides_runpath=no
9849 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9850 shlibpath_overrides_runpath=yes
9853 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9857 sys_lib_dlsearch_path_spec='/usr/lib'
9862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9863 soname_spec='${libname}${release}${shared_ext}$major'
9864 shlibpath_var=LD_LIBRARY_PATH
9871 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9872 echo "${ECHO_T}$dynamic_linker" >&6; }
9873 test "$dynamic_linker" = no && can_build_shared=no
9875 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9876 echo $ECHO_N "(cached) $ECHO_C" >&6
9878 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9881 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9882 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9883 echo $ECHO_N "(cached) $ECHO_C" >&6
9885 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9888 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9890 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9891 if test "$GCC" = yes; then
9892 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9895 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9896 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9898 if test -n "$hardcode_libdir_flag_spec" || \
9899 test -n "$runpath_var" || \
9900 test "X$hardcode_automatic" = "Xyes" ; then
9902 # We can hardcode non-existant directories.
9903 if test "$hardcode_direct" != no &&
9904 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9905 # have to relink, otherwise we might link with an installed library
9906 # when we should be linking with a yet-to-be-installed one
9907 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9908 test "$hardcode_minus_L" != no; then
9909 # Linking always hardcodes the temporary library directory.
9910 hardcode_action=relink
9912 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9913 hardcode_action=immediate
9916 # We cannot hardcode anything, or else we can only hardcode existing
9918 hardcode_action=unsupported
9920 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9921 echo "${ECHO_T}$hardcode_action" >&6; }
9923 if test "$hardcode_action" = relink; then
9924 # Fast installation is not supported
9925 enable_fast_install=no
9926 elif test "$shlibpath_overrides_runpath" = yes ||
9927 test "$enable_shared" = no; then
9928 # Fast installation is not necessary
9929 enable_fast_install=needless
9934 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9935 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9936 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9937 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9938 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9939 { echo "$as_me:$LINENO: result: yes" >&5
9940 echo "${ECHO_T}yes" >&6; }
9942 # FIXME - insert some real tests, host_os isn't really good enough
9945 if test -n "$STRIP" ; then
9946 striplib="$STRIP -x"
9947 old_striplib="$STRIP -S"
9948 { echo "$as_me:$LINENO: result: yes" >&5
9949 echo "${ECHO_T}yes" >&6; }
9951 { echo "$as_me:$LINENO: result: no" >&5
9952 echo "${ECHO_T}no" >&6; }
9956 { echo "$as_me:$LINENO: result: no" >&5
9957 echo "${ECHO_T}no" >&6; }
9962 if test "x$enable_dlopen" != xyes; then
9963 enable_dlopen=unknown
9964 enable_dlopen_self=unknown
9965 enable_dlopen_self_static=unknown
9972 lt_cv_dlopen="load_add_on"
9974 lt_cv_dlopen_self=yes
9978 lt_cv_dlopen="LoadLibrary"
9983 lt_cv_dlopen="dlopen"
9988 # if libdl is installed we need to link against it
9989 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9990 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9991 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9992 echo $ECHO_N "(cached) $ECHO_C" >&6
9994 ac_check_lib_save_LIBS=$LIBS
9996 cat >conftest.$ac_ext <<_ACEOF
9999 cat confdefs.h >>conftest.$ac_ext
10000 cat >>conftest.$ac_ext <<_ACEOF
10001 /* end confdefs.h. */
10003 /* Override any GCC internal prototype to avoid an error.
10004 Use char because int might match the return type of a GCC
10005 builtin and then its argument prototype would still apply. */
10018 rm -f conftest.$ac_objext conftest$ac_exeext
10019 if { (ac_try="$ac_link"
10020 case "(($ac_try" in
10021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10022 *) ac_try_echo=$ac_try;;
10024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10025 (eval "$ac_link") 2>conftest.er1
10027 grep -v '^ *+' conftest.er1 >conftest.err
10029 cat conftest.err >&5
10030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031 (exit $ac_status); } && {
10032 test -z "$ac_c_werror_flag" ||
10033 test ! -s conftest.err
10034 } && test -s conftest$ac_exeext &&
10035 $as_test_x conftest$ac_exeext; then
10036 ac_cv_lib_dl_dlopen=yes
10038 echo "$as_me: failed program was:" >&5
10039 sed 's/^/| /' conftest.$ac_ext >&5
10041 ac_cv_lib_dl_dlopen=no
10044 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10045 conftest$ac_exeext conftest.$ac_ext
10046 LIBS=$ac_check_lib_save_LIBS
10048 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10049 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10050 if test $ac_cv_lib_dl_dlopen = yes; then
10051 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10054 lt_cv_dlopen="dyld"
10056 lt_cv_dlopen_self=yes
10063 { echo "$as_me:$LINENO: checking for shl_load" >&5
10064 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10065 if test "${ac_cv_func_shl_load+set}" = set; then
10066 echo $ECHO_N "(cached) $ECHO_C" >&6
10068 cat >conftest.$ac_ext <<_ACEOF
10071 cat confdefs.h >>conftest.$ac_ext
10072 cat >>conftest.$ac_ext <<_ACEOF
10073 /* end confdefs.h. */
10074 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10075 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10076 #define shl_load innocuous_shl_load
10078 /* System header to define __stub macros and hopefully few prototypes,
10079 which can conflict with char shl_load (); below.
10080 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10081 <limits.h> exists even on freestanding compilers. */
10084 # include <limits.h>
10086 # include <assert.h>
10091 /* Override any GCC internal prototype to avoid an error.
10092 Use char because int might match the return type of a GCC
10093 builtin and then its argument prototype would still apply. */
10098 /* The GNU C library defines this for functions which it implements
10099 to always fail with ENOSYS. Some functions are actually named
10100 something starting with __ and the normal name is an alias. */
10101 #if defined __stub_shl_load || defined __stub___shl_load
10108 return shl_load ();
10113 rm -f conftest.$ac_objext conftest$ac_exeext
10114 if { (ac_try="$ac_link"
10115 case "(($ac_try" in
10116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10117 *) ac_try_echo=$ac_try;;
10119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10120 (eval "$ac_link") 2>conftest.er1
10122 grep -v '^ *+' conftest.er1 >conftest.err
10124 cat conftest.err >&5
10125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126 (exit $ac_status); } && {
10127 test -z "$ac_c_werror_flag" ||
10128 test ! -s conftest.err
10129 } && test -s conftest$ac_exeext &&
10130 $as_test_x conftest$ac_exeext; then
10131 ac_cv_func_shl_load=yes
10133 echo "$as_me: failed program was:" >&5
10134 sed 's/^/| /' conftest.$ac_ext >&5
10136 ac_cv_func_shl_load=no
10139 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10140 conftest$ac_exeext conftest.$ac_ext
10142 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10143 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10144 if test $ac_cv_func_shl_load = yes; then
10145 lt_cv_dlopen="shl_load"
10147 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10148 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10149 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10150 echo $ECHO_N "(cached) $ECHO_C" >&6
10152 ac_check_lib_save_LIBS=$LIBS
10154 cat >conftest.$ac_ext <<_ACEOF
10157 cat confdefs.h >>conftest.$ac_ext
10158 cat >>conftest.$ac_ext <<_ACEOF
10159 /* end confdefs.h. */
10161 /* Override any GCC internal prototype to avoid an error.
10162 Use char because int might match the return type of a GCC
10163 builtin and then its argument prototype would still apply. */
10171 return shl_load ();
10176 rm -f conftest.$ac_objext conftest$ac_exeext
10177 if { (ac_try="$ac_link"
10178 case "(($ac_try" in
10179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10180 *) ac_try_echo=$ac_try;;
10182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10183 (eval "$ac_link") 2>conftest.er1
10185 grep -v '^ *+' conftest.er1 >conftest.err
10187 cat conftest.err >&5
10188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10189 (exit $ac_status); } && {
10190 test -z "$ac_c_werror_flag" ||
10191 test ! -s conftest.err
10192 } && test -s conftest$ac_exeext &&
10193 $as_test_x conftest$ac_exeext; then
10194 ac_cv_lib_dld_shl_load=yes
10196 echo "$as_me: failed program was:" >&5
10197 sed 's/^/| /' conftest.$ac_ext >&5
10199 ac_cv_lib_dld_shl_load=no
10202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10203 conftest$ac_exeext conftest.$ac_ext
10204 LIBS=$ac_check_lib_save_LIBS
10206 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10207 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10208 if test $ac_cv_lib_dld_shl_load = yes; then
10209 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10211 { echo "$as_me:$LINENO: checking for dlopen" >&5
10212 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10213 if test "${ac_cv_func_dlopen+set}" = set; then
10214 echo $ECHO_N "(cached) $ECHO_C" >&6
10216 cat >conftest.$ac_ext <<_ACEOF
10219 cat confdefs.h >>conftest.$ac_ext
10220 cat >>conftest.$ac_ext <<_ACEOF
10221 /* end confdefs.h. */
10222 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10223 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10224 #define dlopen innocuous_dlopen
10226 /* System header to define __stub macros and hopefully few prototypes,
10227 which can conflict with char dlopen (); below.
10228 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10229 <limits.h> exists even on freestanding compilers. */
10232 # include <limits.h>
10234 # include <assert.h>
10239 /* Override any GCC internal prototype to avoid an error.
10240 Use char because int might match the return type of a GCC
10241 builtin and then its argument prototype would still apply. */
10246 /* The GNU C library defines this for functions which it implements
10247 to always fail with ENOSYS. Some functions are actually named
10248 something starting with __ and the normal name is an alias. */
10249 #if defined __stub_dlopen || defined __stub___dlopen
10261 rm -f conftest.$ac_objext conftest$ac_exeext
10262 if { (ac_try="$ac_link"
10263 case "(($ac_try" in
10264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10265 *) ac_try_echo=$ac_try;;
10267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10268 (eval "$ac_link") 2>conftest.er1
10270 grep -v '^ *+' conftest.er1 >conftest.err
10272 cat conftest.err >&5
10273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10274 (exit $ac_status); } && {
10275 test -z "$ac_c_werror_flag" ||
10276 test ! -s conftest.err
10277 } && test -s conftest$ac_exeext &&
10278 $as_test_x conftest$ac_exeext; then
10279 ac_cv_func_dlopen=yes
10281 echo "$as_me: failed program was:" >&5
10282 sed 's/^/| /' conftest.$ac_ext >&5
10284 ac_cv_func_dlopen=no
10287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10288 conftest$ac_exeext conftest.$ac_ext
10290 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10291 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10292 if test $ac_cv_func_dlopen = yes; then
10293 lt_cv_dlopen="dlopen"
10295 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10296 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10297 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10298 echo $ECHO_N "(cached) $ECHO_C" >&6
10300 ac_check_lib_save_LIBS=$LIBS
10302 cat >conftest.$ac_ext <<_ACEOF
10305 cat confdefs.h >>conftest.$ac_ext
10306 cat >>conftest.$ac_ext <<_ACEOF
10307 /* end confdefs.h. */
10309 /* Override any GCC internal prototype to avoid an error.
10310 Use char because int might match the return type of a GCC
10311 builtin and then its argument prototype would still apply. */
10324 rm -f conftest.$ac_objext conftest$ac_exeext
10325 if { (ac_try="$ac_link"
10326 case "(($ac_try" in
10327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10328 *) ac_try_echo=$ac_try;;
10330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10331 (eval "$ac_link") 2>conftest.er1
10333 grep -v '^ *+' conftest.er1 >conftest.err
10335 cat conftest.err >&5
10336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337 (exit $ac_status); } && {
10338 test -z "$ac_c_werror_flag" ||
10339 test ! -s conftest.err
10340 } && test -s conftest$ac_exeext &&
10341 $as_test_x conftest$ac_exeext; then
10342 ac_cv_lib_dl_dlopen=yes
10344 echo "$as_me: failed program was:" >&5
10345 sed 's/^/| /' conftest.$ac_ext >&5
10347 ac_cv_lib_dl_dlopen=no
10350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10351 conftest$ac_exeext conftest.$ac_ext
10352 LIBS=$ac_check_lib_save_LIBS
10354 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10355 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10356 if test $ac_cv_lib_dl_dlopen = yes; then
10357 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10359 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10360 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10361 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10362 echo $ECHO_N "(cached) $ECHO_C" >&6
10364 ac_check_lib_save_LIBS=$LIBS
10365 LIBS="-lsvld $LIBS"
10366 cat >conftest.$ac_ext <<_ACEOF
10369 cat confdefs.h >>conftest.$ac_ext
10370 cat >>conftest.$ac_ext <<_ACEOF
10371 /* end confdefs.h. */
10373 /* Override any GCC internal prototype to avoid an error.
10374 Use char because int might match the return type of a GCC
10375 builtin and then its argument prototype would still apply. */
10388 rm -f conftest.$ac_objext conftest$ac_exeext
10389 if { (ac_try="$ac_link"
10390 case "(($ac_try" in
10391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10392 *) ac_try_echo=$ac_try;;
10394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10395 (eval "$ac_link") 2>conftest.er1
10397 grep -v '^ *+' conftest.er1 >conftest.err
10399 cat conftest.err >&5
10400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401 (exit $ac_status); } && {
10402 test -z "$ac_c_werror_flag" ||
10403 test ! -s conftest.err
10404 } && test -s conftest$ac_exeext &&
10405 $as_test_x conftest$ac_exeext; then
10406 ac_cv_lib_svld_dlopen=yes
10408 echo "$as_me: failed program was:" >&5
10409 sed 's/^/| /' conftest.$ac_ext >&5
10411 ac_cv_lib_svld_dlopen=no
10414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10415 conftest$ac_exeext conftest.$ac_ext
10416 LIBS=$ac_check_lib_save_LIBS
10418 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10419 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10420 if test $ac_cv_lib_svld_dlopen = yes; then
10421 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10423 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10424 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10425 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10426 echo $ECHO_N "(cached) $ECHO_C" >&6
10428 ac_check_lib_save_LIBS=$LIBS
10430 cat >conftest.$ac_ext <<_ACEOF
10433 cat confdefs.h >>conftest.$ac_ext
10434 cat >>conftest.$ac_ext <<_ACEOF
10435 /* end confdefs.h. */
10437 /* Override any GCC internal prototype to avoid an error.
10438 Use char because int might match the return type of a GCC
10439 builtin and then its argument prototype would still apply. */
10447 return dld_link ();
10452 rm -f conftest.$ac_objext conftest$ac_exeext
10453 if { (ac_try="$ac_link"
10454 case "(($ac_try" in
10455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10456 *) ac_try_echo=$ac_try;;
10458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10459 (eval "$ac_link") 2>conftest.er1
10461 grep -v '^ *+' conftest.er1 >conftest.err
10463 cat conftest.err >&5
10464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465 (exit $ac_status); } && {
10466 test -z "$ac_c_werror_flag" ||
10467 test ! -s conftest.err
10468 } && test -s conftest$ac_exeext &&
10469 $as_test_x conftest$ac_exeext; then
10470 ac_cv_lib_dld_dld_link=yes
10472 echo "$as_me: failed program was:" >&5
10473 sed 's/^/| /' conftest.$ac_ext >&5
10475 ac_cv_lib_dld_dld_link=no
10478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10479 conftest$ac_exeext conftest.$ac_ext
10480 LIBS=$ac_check_lib_save_LIBS
10482 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10483 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10484 if test $ac_cv_lib_dld_dld_link = yes; then
10485 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10506 if test "x$lt_cv_dlopen" != xno; then
10512 case $lt_cv_dlopen in
10514 save_CPPFLAGS="$CPPFLAGS"
10515 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10517 save_LDFLAGS="$LDFLAGS"
10518 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10521 LIBS="$lt_cv_dlopen_libs $LIBS"
10523 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10524 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10525 if test "${lt_cv_dlopen_self+set}" = set; then
10526 echo $ECHO_N "(cached) $ECHO_C" >&6
10528 if test "$cross_compiling" = yes; then :
10529 lt_cv_dlopen_self=cross
10531 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10532 lt_status=$lt_dlunknown
10533 cat > conftest.$ac_ext <<EOF
10534 #line 10534 "configure"
10535 #include "confdefs.h"
10544 # define LT_DLGLOBAL RTLD_GLOBAL
10547 # define LT_DLGLOBAL DL_GLOBAL
10549 # define LT_DLGLOBAL 0
10553 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10554 find out it does not work in some platform. */
10555 #ifndef LT_DLLAZY_OR_NOW
10557 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10560 # define LT_DLLAZY_OR_NOW DL_LAZY
10563 # define LT_DLLAZY_OR_NOW RTLD_NOW
10566 # define LT_DLLAZY_OR_NOW DL_NOW
10568 # define LT_DLLAZY_OR_NOW 0
10576 extern "C" void exit (int);
10579 void fnord() { int i=42;}
10582 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10583 int status = $lt_dlunknown;
10587 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10588 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10589 /* dlclose (self); */
10597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10598 (eval $ac_link) 2>&5
10600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10602 (./conftest; exit; ) >&5 2>/dev/null
10604 case x$lt_status in
10605 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10606 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10607 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10610 # compilation failed
10611 lt_cv_dlopen_self=no
10618 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10619 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10621 if test "x$lt_cv_dlopen_self" = xyes; then
10622 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10623 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10624 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10625 if test "${lt_cv_dlopen_self_static+set}" = set; then
10626 echo $ECHO_N "(cached) $ECHO_C" >&6
10628 if test "$cross_compiling" = yes; then :
10629 lt_cv_dlopen_self_static=cross
10631 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10632 lt_status=$lt_dlunknown
10633 cat > conftest.$ac_ext <<EOF
10634 #line 10634 "configure"
10635 #include "confdefs.h"
10644 # define LT_DLGLOBAL RTLD_GLOBAL
10647 # define LT_DLGLOBAL DL_GLOBAL
10649 # define LT_DLGLOBAL 0
10653 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10654 find out it does not work in some platform. */
10655 #ifndef LT_DLLAZY_OR_NOW
10657 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10660 # define LT_DLLAZY_OR_NOW DL_LAZY
10663 # define LT_DLLAZY_OR_NOW RTLD_NOW
10666 # define LT_DLLAZY_OR_NOW DL_NOW
10668 # define LT_DLLAZY_OR_NOW 0
10676 extern "C" void exit (int);
10679 void fnord() { int i=42;}
10682 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10683 int status = $lt_dlunknown;
10687 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10688 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10689 /* dlclose (self); */
10697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10698 (eval $ac_link) 2>&5
10700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10702 (./conftest; exit; ) >&5 2>/dev/null
10704 case x$lt_status in
10705 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10706 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10707 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10710 # compilation failed
10711 lt_cv_dlopen_self_static=no
10718 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10719 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10722 CPPFLAGS="$save_CPPFLAGS"
10723 LDFLAGS="$save_LDFLAGS"
10728 case $lt_cv_dlopen_self in
10729 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10730 *) enable_dlopen_self=unknown ;;
10733 case $lt_cv_dlopen_self_static in
10734 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10735 *) enable_dlopen_self_static=unknown ;;
10740 # Report which library types will actually be built
10741 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10742 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10743 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10744 echo "${ECHO_T}$can_build_shared" >&6; }
10746 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10747 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10748 test "$can_build_shared" = "no" && enable_shared=no
10750 # On AIX, shared libraries and static libraries use the same namespace, and
10751 # are all built from PIC.
10754 test "$enable_shared" = yes && enable_static=no
10755 if test -n "$RANLIB"; then
10756 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10757 postinstall_cmds='$RANLIB $lib'
10762 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10763 test "$enable_shared" = yes && enable_static=no
10767 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10768 echo "${ECHO_T}$enable_shared" >&6; }
10770 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10771 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10772 # Make sure either enable_shared or enable_static is yes.
10773 test "$enable_shared" = yes || enable_static=yes
10774 { echo "$as_me:$LINENO: result: $enable_static" >&5
10775 echo "${ECHO_T}$enable_static" >&6; }
10777 # The else clause should only fire when bootstrapping the
10778 # libtool distribution, otherwise you forgot to ship ltmain.sh
10779 # with your package, and you will get complaints that there are
10780 # no rules to generate ltmain.sh.
10781 if test -f "$ltmain"; then
10782 # See if we are running on zsh, and set the options which allow our commands through
10783 # without removal of \ escapes.
10784 if test -n "${ZSH_VERSION+set}" ; then
10785 setopt NO_GLOB_SUBST
10787 # Now quote all the things that may contain metacharacters while being
10788 # careful not to overquote the AC_SUBSTed values. We take copies of the
10789 # variables and quote the copies for generation of the libtool script.
10790 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10792 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10793 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10794 deplibs_check_method reload_flag reload_cmds need_locks \
10795 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10796 lt_cv_sys_global_symbol_to_c_name_address \
10797 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10798 old_postinstall_cmds old_postuninstall_cmds \
10802 lt_prog_compiler_wl \
10803 lt_prog_compiler_pic \
10804 lt_prog_compiler_static \
10805 lt_prog_compiler_no_builtin_flag \
10806 export_dynamic_flag_spec \
10807 thread_safe_flag_spec \
10808 whole_archive_flag_spec \
10809 enable_shared_with_static_runtimes \
10811 old_archive_from_new_cmds \
10816 compiler_lib_search_path \
10817 compiler_lib_search_dirs \
10819 archive_expsym_cmds \
10821 postuninstall_cmds \
10822 old_archive_from_expsyms_cmds \
10823 allow_undefined_flag \
10824 no_undefined_flag \
10825 export_symbols_cmds \
10826 hardcode_libdir_flag_spec \
10827 hardcode_libdir_flag_spec_ld \
10828 hardcode_libdir_separator \
10829 hardcode_automatic \
10831 module_expsym_cmds \
10832 lt_cv_prog_compiler_c_o \
10835 include_expsyms; do
10838 old_archive_cmds | \
10839 old_archive_from_new_cmds | \
10841 archive_expsym_cmds | \
10843 module_expsym_cmds | \
10844 old_archive_from_expsyms_cmds | \
10845 export_symbols_cmds | \
10846 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10847 postinstall_cmds | postuninstall_cmds | \
10848 old_postinstall_cmds | old_postuninstall_cmds | \
10849 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10850 # Double-quote double-evaled strings.
10851 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10854 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10860 *'\$0 --fallback-echo"')
10861 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10865 cfgfile="${ofile}T"
10866 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10868 { echo "$as_me:$LINENO: creating $ofile" >&5
10869 echo "$as_me: creating $ofile" >&6;}
10871 cat <<__EOF__ >> "$cfgfile"
10874 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10875 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10876 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10878 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10879 # Free Software Foundation, Inc.
10881 # This file is part of GNU Libtool:
10882 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10884 # This program is free software; you can redistribute it and/or modify
10885 # it under the terms of the GNU General Public License as published by
10886 # the Free Software Foundation; either version 2 of the License, or
10887 # (at your option) any later version.
10889 # This program is distributed in the hope that it will be useful, but
10890 # WITHOUT ANY WARRANTY; without even the implied warranty of
10891 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10892 # General Public License for more details.
10894 # You should have received a copy of the GNU General Public License
10895 # along with this program; if not, write to the Free Software
10896 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10898 # As a special exception to the GNU General Public License, if you
10899 # distribute this file as part of a program that contains a
10900 # configuration script generated by Autoconf, you may include it under
10901 # the same distribution terms that you use for the rest of that program.
10903 # A sed program that does not truncate output.
10906 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10907 Xsed="$SED -e 1s/^X//"
10909 # The HP-UX ksh and POSIX shell print the target directory to stdout
10910 # if CDPATH is set.
10911 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10913 # The names of the tagged configurations supported by this script.
10916 # ### BEGIN LIBTOOL CONFIG
10918 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10920 # Shell to use when invoking shell scripts.
10923 # Whether or not to build shared libraries.
10924 build_libtool_libs=$enable_shared
10926 # Whether or not to build static libraries.
10927 build_old_libs=$enable_static
10929 # Whether or not to add -lc for building shared libraries.
10930 build_libtool_need_lc=$archive_cmds_need_lc
10932 # Whether or not to disallow shared libs when runtime libs are static
10933 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10935 # Whether or not to optimize for fast installation.
10936 fast_install=$enable_fast_install
10939 host_alias=$host_alias
10943 # The build system.
10944 build_alias=$build_alias
10948 # An echo program that does not interpret backslashes.
10953 AR_FLAGS=$lt_AR_FLAGS
10958 # LTCC compiler flags.
10959 LTCFLAGS=$lt_LTCFLAGS
10961 # A language-specific compiler.
10964 # Is the compiler the GNU C compiler?
10970 # The linker used to build libraries.
10973 # Whether we need hard or soft links.
10976 # A BSD-compatible nm program.
10979 # A symbol stripping program
10982 # Used to examine libraries when file_magic_cmd begins "file"
10983 MAGIC_CMD=$MAGIC_CMD
10985 # Used on cygwin: DLL creation program.
10988 # Used on cygwin: object dumper.
10991 # Used on cygwin: assembler.
10994 # The name of the directory that contains temporary libtool files.
10997 # How to create reloadable object files.
10998 reload_flag=$lt_reload_flag
10999 reload_cmds=$lt_reload_cmds
11001 # How to pass a linker flag through the compiler.
11002 wl=$lt_lt_prog_compiler_wl
11004 # Object file suffix (normally "o").
11005 objext="$ac_objext"
11007 # Old archive suffix (normally "a").
11010 # Shared library suffix (normally ".so").
11011 shrext_cmds='$shrext_cmds'
11013 # Executable file suffix (normally "").
11016 # Additional compiler flags for building library objects.
11017 pic_flag=$lt_lt_prog_compiler_pic
11020 # What is the maximum length of a command?
11021 max_cmd_len=$lt_cv_sys_max_cmd_len
11023 # Does compiler simultaneously support -c and -o options?
11024 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11026 # Must we lock files when doing compilation?
11027 need_locks=$lt_need_locks
11029 # Do we need the lib prefix for modules?
11030 need_lib_prefix=$need_lib_prefix
11032 # Do we need a version for libraries?
11033 need_version=$need_version
11035 # Whether dlopen is supported.
11036 dlopen_support=$enable_dlopen
11038 # Whether dlopen of programs is supported.
11039 dlopen_self=$enable_dlopen_self
11041 # Whether dlopen of statically linked programs is supported.
11042 dlopen_self_static=$enable_dlopen_self_static
11044 # Compiler flag to prevent dynamic linking.
11045 link_static_flag=$lt_lt_prog_compiler_static
11047 # Compiler flag to turn off builtin functions.
11048 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11050 # Compiler flag to allow reflexive dlopens.
11051 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11053 # Compiler flag to generate shared objects directly from archives.
11054 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11056 # Compiler flag to generate thread-safe objects.
11057 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11059 # Library versioning type.
11060 version_type=$version_type
11062 # Format of library name prefix.
11063 libname_spec=$lt_libname_spec
11065 # List of archive names. First name is the real one, the rest are links.
11066 # The last name is the one that the linker finds with -lNAME.
11067 library_names_spec=$lt_library_names_spec
11069 # The coded name of the library, if different from the real name.
11070 soname_spec=$lt_soname_spec
11072 # Commands used to build and install an old-style archive.
11074 old_archive_cmds=$lt_old_archive_cmds
11075 old_postinstall_cmds=$lt_old_postinstall_cmds
11076 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11078 # Create an old-style archive from a shared archive.
11079 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11081 # Create a temporary old-style archive to link instead of a shared archive.
11082 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11084 # Commands used to build and install a shared archive.
11085 archive_cmds=$lt_archive_cmds
11086 archive_expsym_cmds=$lt_archive_expsym_cmds
11087 postinstall_cmds=$lt_postinstall_cmds
11088 postuninstall_cmds=$lt_postuninstall_cmds
11090 # Commands used to build a loadable module (assumed same as above if empty)
11091 module_cmds=$lt_module_cmds
11092 module_expsym_cmds=$lt_module_expsym_cmds
11094 # Commands to strip libraries.
11095 old_striplib=$lt_old_striplib
11096 striplib=$lt_striplib
11098 # Dependencies to place before the objects being linked to create a
11100 predep_objects=$lt_predep_objects
11102 # Dependencies to place after the objects being linked to create a
11104 postdep_objects=$lt_postdep_objects
11106 # Dependencies to place before the objects being linked to create a
11108 predeps=$lt_predeps
11110 # Dependencies to place after the objects being linked to create a
11112 postdeps=$lt_postdeps
11114 # The directories searched by this compiler when creating a shared
11116 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11118 # The library search path used internally by the compiler when linking
11119 # a shared library.
11120 compiler_lib_search_path=$lt_compiler_lib_search_path
11122 # Method to check whether dependent libraries are shared objects.
11123 deplibs_check_method=$lt_deplibs_check_method
11125 # Command to use when deplibs_check_method == file_magic.
11126 file_magic_cmd=$lt_file_magic_cmd
11128 # Flag that allows shared libraries with undefined symbols to be built.
11129 allow_undefined_flag=$lt_allow_undefined_flag
11131 # Flag that forces no undefined symbols.
11132 no_undefined_flag=$lt_no_undefined_flag
11134 # Commands used to finish a libtool library installation in a directory.
11135 finish_cmds=$lt_finish_cmds
11137 # Same as above, but a single script fragment to be evaled but not shown.
11138 finish_eval=$lt_finish_eval
11140 # Take the output of nm and produce a listing of raw symbols and C names.
11141 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11143 # Transform the output of nm in a proper C declaration
11144 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11146 # Transform the output of nm in a C name address pair
11147 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11149 # This is the shared library runtime path variable.
11150 runpath_var=$runpath_var
11152 # This is the shared library path variable.
11153 shlibpath_var=$shlibpath_var
11155 # Is shlibpath searched before the hard-coded library search path?
11156 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11158 # How to hardcode a shared library path into an executable.
11159 hardcode_action=$hardcode_action
11161 # Whether we should hardcode library paths into libraries.
11162 hardcode_into_libs=$hardcode_into_libs
11164 # Flag to hardcode \$libdir into a binary during linking.
11165 # This must work even if \$libdir does not exist.
11166 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11168 # If ld is used when linking, flag to hardcode \$libdir into
11169 # a binary during linking. This must work even if \$libdir does
11171 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11173 # Whether we need a single -rpath flag with a separated argument.
11174 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11176 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11177 # resulting binary.
11178 hardcode_direct=$hardcode_direct
11180 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11181 # resulting binary.
11182 hardcode_minus_L=$hardcode_minus_L
11184 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11185 # the resulting binary.
11186 hardcode_shlibpath_var=$hardcode_shlibpath_var
11188 # Set to yes if building a shared library automatically hardcodes DIR into the library
11189 # and all subsequent libraries and executables linked against it.
11190 hardcode_automatic=$hardcode_automatic
11192 # Variables whose values should be saved in libtool wrapper scripts and
11193 # restored at relink time.
11194 variables_saved_for_relink="$variables_saved_for_relink"
11196 # Whether libtool must link a program against all its dependency libraries.
11197 link_all_deplibs=$link_all_deplibs
11199 # Compile-time system search path for libraries
11200 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11202 # Run-time system search path for libraries
11203 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11205 # Fix the shell variable \$srcfile for the compiler.
11206 fix_srcfile_path=$lt_fix_srcfile_path
11208 # Set to yes if exported symbols are required.
11209 always_export_symbols=$always_export_symbols
11211 # The commands to list exported symbols.
11212 export_symbols_cmds=$lt_export_symbols_cmds
11214 # The commands to extract the exported symbol list from a shared archive.
11215 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11217 # Symbols that should not be listed in the preloaded symbols.
11218 exclude_expsyms=$lt_exclude_expsyms
11220 # Symbols that must always be exported.
11221 include_expsyms=$lt_include_expsyms
11223 # ### END LIBTOOL CONFIG
11230 cat <<\EOF >> "$cfgfile"
11232 # AIX sometimes has problems with the GCC collect2 program. For some
11233 # reason, if we set the COLLECT_NAMES environment variable, the problems
11234 # vanish in a puff of smoke.
11235 if test "X${COLLECT_NAMES+set}" != Xset; then
11237 export COLLECT_NAMES
11243 # We use sed instead of cat because bash on DJGPP gets confused if
11244 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11245 # text mode, it properly converts lines to CR/LF. This bash problem
11246 # is reportedly fixed, but why not run on old versions too?
11247 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11249 mv -f "$cfgfile" "$ofile" || \
11250 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11254 # If there is no Makefile yet, we rely on a make rule to execute
11255 # `config.status --recheck' to rerun these tests and create the
11256 # libtool script then.
11257 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11258 if test -f "$ltmain_in"; then
11259 test -f Makefile && make "$ltmain"
11265 ac_cpp='$CPP $CPPFLAGS'
11266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11273 # Check whether --with-tags was given.
11274 if test "${with_tags+set}" = set; then
11275 withval=$with_tags; tagnames="$withval"
11279 if test -f "$ltmain" && test -n "$tagnames"; then
11280 if test ! -f "${ofile}"; then
11281 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11282 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11285 if test -z "$LTCC"; then
11286 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11287 if test -z "$LTCC"; then
11288 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11289 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11291 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11292 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11295 if test -z "$LTCFLAGS"; then
11296 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11299 # Extract list of available tagged configurations in $ofile.
11300 # Note that this assumes the entire list is on one line.
11301 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11303 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11304 for tagname in $tagnames; do
11306 # Check whether tagname contains only valid characters
11307 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11309 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11310 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11311 { (exit 1); exit 1; }; }
11315 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11317 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11318 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11319 { (exit 1); exit 1; }; }
11322 # Update the list of available tags.
11323 if test -n "$tagname"; then
11324 echo appending configuration tag \"$tagname\" to $ofile
11328 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11329 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11330 (test "X$CXX" != "Xg++"))) ; then
11332 ac_cpp='$CXXCPP $CPPFLAGS'
11333 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11334 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11335 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11340 archive_cmds_need_lc_CXX=no
11341 allow_undefined_flag_CXX=
11342 always_export_symbols_CXX=no
11343 archive_expsym_cmds_CXX=
11344 export_dynamic_flag_spec_CXX=
11345 hardcode_direct_CXX=no
11346 hardcode_libdir_flag_spec_CXX=
11347 hardcode_libdir_flag_spec_ld_CXX=
11348 hardcode_libdir_separator_CXX=
11349 hardcode_minus_L_CXX=no
11350 hardcode_shlibpath_var_CXX=unsupported
11351 hardcode_automatic_CXX=no
11353 module_expsym_cmds_CXX=
11354 link_all_deplibs_CXX=unknown
11355 old_archive_cmds_CXX=$old_archive_cmds
11356 no_undefined_flag_CXX=
11357 whole_archive_flag_spec_CXX=
11358 enable_shared_with_static_runtimes_CXX=no
11360 # Dependencies to place before and after the object being linked:
11361 predep_objects_CXX=
11362 postdep_objects_CXX=
11365 compiler_lib_search_path_CXX=
11366 compiler_lib_search_dirs_CXX=
11368 # Source file extension for C++ test sources.
11371 # Object file extension for compiled C++ test sources.
11375 # Code to be used in simple compile tests
11376 lt_simple_compile_test_code="int some_variable = 0;"
11378 # Code to be used in simple link tests
11379 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11381 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11383 # If no C compiler was specified, use CC.
11386 # If no C compiler flags were specified, use CFLAGS.
11387 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11389 # Allow CC to be a program name with arguments.
11393 # save warnings/boilerplate of simple test code
11394 ac_outfile=conftest.$ac_objext
11395 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11396 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11397 _lt_compiler_boilerplate=`cat conftest.err`
11400 ac_outfile=conftest.$ac_objext
11401 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11402 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11403 _lt_linker_boilerplate=`cat conftest.err`
11407 # Allow CC to be a program name with arguments.
11412 lt_save_with_gnu_ld=$with_gnu_ld
11413 lt_save_path_LD=$lt_cv_path_LD
11414 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11415 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11417 $as_unset lt_cv_prog_gnu_ld
11419 if test -n "${lt_cv_path_LDCXX+set}"; then
11420 lt_cv_path_LD=$lt_cv_path_LDCXX
11422 $as_unset lt_cv_path_LD
11424 test -z "${LDCXX+set}" || LD=$LDCXX
11428 for cc_temp in $compiler""; do
11430 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11431 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11436 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11439 # We don't want -fno-exception wen compiling C++ code, so set the
11440 # no_builtin_flag separately
11441 if test "$GXX" = yes; then
11442 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11444 lt_prog_compiler_no_builtin_flag_CXX=
11447 if test "$GXX" = yes; then
11448 # Set up default GNU C++ configuration
11451 # Check whether --with-gnu-ld was given.
11452 if test "${with_gnu_ld+set}" = set; then
11453 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11459 if test "$GCC" = yes; then
11460 # Check if gcc -print-prog-name=ld gives a path.
11461 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11462 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11465 # gcc leaves a trailing carriage return which upsets mingw
11466 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11468 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11471 # Accept absolute paths.
11473 re_direlt='/[^/][^/]*/\.\./'
11474 # Canonicalize the pathname of ld
11475 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11476 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11477 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11479 test -z "$LD" && LD="$ac_prog"
11482 # If it fails, then pretend we aren't using GCC.
11486 # If it is relative, then search for the first ld in PATH.
11487 with_gnu_ld=unknown
11490 elif test "$with_gnu_ld" = yes; then
11491 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11492 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11494 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11495 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11497 if test "${lt_cv_path_LD+set}" = set; then
11498 echo $ECHO_N "(cached) $ECHO_C" >&6
11500 if test -z "$LD"; then
11501 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11502 for ac_dir in $PATH; do
11504 test -z "$ac_dir" && ac_dir=.
11505 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11506 lt_cv_path_LD="$ac_dir/$ac_prog"
11507 # Check to see if the program is GNU ld. I'd rather use --version,
11508 # but apparently some variants of GNU ld only accept -v.
11509 # Break only if it was the GNU/non-GNU ld that we prefer.
11510 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11511 *GNU* | *'with BFD'*)
11512 test "$with_gnu_ld" != no && break
11515 test "$with_gnu_ld" != yes && break
11522 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11526 LD="$lt_cv_path_LD"
11527 if test -n "$LD"; then
11528 { echo "$as_me:$LINENO: result: $LD" >&5
11529 echo "${ECHO_T}$LD" >&6; }
11531 { echo "$as_me:$LINENO: result: no" >&5
11532 echo "${ECHO_T}no" >&6; }
11534 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11535 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11536 { (exit 1); exit 1; }; }
11537 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11538 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11539 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11540 echo $ECHO_N "(cached) $ECHO_C" >&6
11542 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11543 case `$LD -v 2>&1 </dev/null` in
11544 *GNU* | *'with BFD'*)
11545 lt_cv_prog_gnu_ld=yes
11548 lt_cv_prog_gnu_ld=no
11552 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11553 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11554 with_gnu_ld=$lt_cv_prog_gnu_ld
11558 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11559 # archiving commands below assume that GNU ld is being used.
11560 if test "$with_gnu_ld" = yes; then
11561 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11562 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'
11564 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11565 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11567 # If archive_cmds runs LD, not CC, wlarc should be empty
11568 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11569 # investigate it a little bit more. (MM)
11572 # ancient GNU ld didn't support --whole-archive et. al.
11573 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11574 grep 'no-whole-archive' > /dev/null; then
11575 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11577 whole_archive_flag_spec_CXX=
11583 # A generic and very simple default shared library creation
11584 # command for GNU C++ for the case where it uses the native
11585 # linker, instead of GNU ld. If possible, this setting should
11586 # overridden to take advantage of the native linker features on
11587 # the platform it is being used on.
11588 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11591 # Commands to make compiler produce verbose output that lists
11592 # what "hidden" libraries, object files and flags are used when
11593 # linking a shared library.
11594 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11602 # PORTME: fill in a description of your system's C++ link characteristics
11603 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11604 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11608 # FIXME: insert proper C++ library support
11612 if test "$host_cpu" = ia64; then
11613 # On IA64, the linker does run time linking by default, so we don't
11614 # have to do anything special.
11615 aix_use_runtimelinking=no
11616 exp_sym_flag='-Bexport'
11619 aix_use_runtimelinking=no
11621 # Test if we are trying to use run time linking or normal
11622 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11623 # need to do runtime linking.
11624 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11625 for ld_flag in $LDFLAGS; do
11628 aix_use_runtimelinking=yes
11636 exp_sym_flag='-bexport'
11637 no_entry_flag='-bnoentry'
11640 # When large executables or shared objects are built, AIX ld can
11641 # have problems creating the table of contents. If linking a library
11642 # or program results in "error TOC overflow" add -mminimal-toc to
11643 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11644 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11646 archive_cmds_CXX=''
11647 hardcode_direct_CXX=yes
11648 hardcode_libdir_separator_CXX=':'
11649 link_all_deplibs_CXX=yes
11651 if test "$GXX" = yes; then
11652 case $host_os in aix4.[012]|aix4.[012].*)
11653 # We only want to do this on AIX 4.2 and lower, the check
11654 # below for broken collect2 doesn't work under 4.3+
11655 collect2name=`${CC} -print-prog-name=collect2`
11656 if test -f "$collect2name" && \
11657 strings "$collect2name" | grep resolve_lib_name >/dev/null
11659 # We have reworked collect2
11662 # We have old collect2
11663 hardcode_direct_CXX=unsupported
11664 # It fails to find uninstalled libraries when the uninstalled
11665 # path is not listed in the libpath. Setting hardcode_minus_L
11666 # to unsupported forces relinking
11667 hardcode_minus_L_CXX=yes
11668 hardcode_libdir_flag_spec_CXX='-L$libdir'
11669 hardcode_libdir_separator_CXX=
11673 shared_flag='-shared'
11674 if test "$aix_use_runtimelinking" = yes; then
11675 shared_flag="$shared_flag "'${wl}-G'
11679 if test "$host_cpu" = ia64; then
11680 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11681 # chokes on -Wl,-G. The following line is correct:
11684 if test "$aix_use_runtimelinking" = yes; then
11685 shared_flag='${wl}-G'
11687 shared_flag='${wl}-bM:SRE'
11692 # It seems that -bexpall does not export symbols beginning with
11693 # underscore (_), so it is better to generate a list of symbols to export.
11694 always_export_symbols_CXX=yes
11695 if test "$aix_use_runtimelinking" = yes; then
11696 # Warning - without using the other runtime loading flags (-brtl),
11697 # -berok will link without error, but may produce a broken library.
11698 allow_undefined_flag_CXX='-berok'
11699 # Determine the default libpath from the value encoded in an empty executable.
11700 cat >conftest.$ac_ext <<_ACEOF
11703 cat confdefs.h >>conftest.$ac_ext
11704 cat >>conftest.$ac_ext <<_ACEOF
11705 /* end confdefs.h. */
11715 rm -f conftest.$ac_objext conftest$ac_exeext
11716 if { (ac_try="$ac_link"
11717 case "(($ac_try" in
11718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11719 *) ac_try_echo=$ac_try;;
11721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11722 (eval "$ac_link") 2>conftest.er1
11724 grep -v '^ *+' conftest.er1 >conftest.err
11726 cat conftest.err >&5
11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); } && {
11729 test -z "$ac_cxx_werror_flag" ||
11730 test ! -s conftest.err
11731 } && test -s conftest$ac_exeext &&
11732 $as_test_x conftest$ac_exeext; then
11734 lt_aix_libpath_sed='
11735 /Import File Strings/,/^$/ {
11741 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11742 # Check for a 64-bit object if we didn't find anything.
11743 if test -z "$aix_libpath"; then
11744 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11747 echo "$as_me: failed program was:" >&5
11748 sed 's/^/| /' conftest.$ac_ext >&5
11753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11754 conftest$ac_exeext conftest.$ac_ext
11755 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11757 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11759 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"
11761 if test "$host_cpu" = ia64; then
11762 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11763 allow_undefined_flag_CXX="-z nodefs"
11764 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"
11766 # Determine the default libpath from the value encoded in an empty executable.
11767 cat >conftest.$ac_ext <<_ACEOF
11770 cat confdefs.h >>conftest.$ac_ext
11771 cat >>conftest.$ac_ext <<_ACEOF
11772 /* end confdefs.h. */
11782 rm -f conftest.$ac_objext conftest$ac_exeext
11783 if { (ac_try="$ac_link"
11784 case "(($ac_try" in
11785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11786 *) ac_try_echo=$ac_try;;
11788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11789 (eval "$ac_link") 2>conftest.er1
11791 grep -v '^ *+' conftest.er1 >conftest.err
11793 cat conftest.err >&5
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); } && {
11796 test -z "$ac_cxx_werror_flag" ||
11797 test ! -s conftest.err
11798 } && test -s conftest$ac_exeext &&
11799 $as_test_x conftest$ac_exeext; then
11801 lt_aix_libpath_sed='
11802 /Import File Strings/,/^$/ {
11808 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11809 # Check for a 64-bit object if we didn't find anything.
11810 if test -z "$aix_libpath"; then
11811 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11814 echo "$as_me: failed program was:" >&5
11815 sed 's/^/| /' conftest.$ac_ext >&5
11820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11821 conftest$ac_exeext conftest.$ac_ext
11822 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11824 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11825 # Warning - without using the other run time loading flags,
11826 # -berok will link without error, but may produce a broken library.
11827 no_undefined_flag_CXX=' ${wl}-bernotok'
11828 allow_undefined_flag_CXX=' ${wl}-berok'
11829 # Exported symbols can be pulled into shared objects from archives
11830 whole_archive_flag_spec_CXX='$convenience'
11831 archive_cmds_need_lc_CXX=yes
11832 # This is similar to how AIX traditionally builds its shared libraries.
11833 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'
11839 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11840 allow_undefined_flag_CXX=unsupported
11841 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11842 # support --undefined. This deserves some investigation. FIXME
11843 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11850 case $cc_basename in
11852 # FIXME: insert proper C++ library support
11858 cygwin* | mingw* | pw32*)
11859 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11860 # as there is no search path for DLLs.
11861 hardcode_libdir_flag_spec_CXX='-L$libdir'
11862 allow_undefined_flag_CXX=unsupported
11863 always_export_symbols_CXX=no
11864 enable_shared_with_static_runtimes_CXX=yes
11866 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11867 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'
11868 # If the export-symbols file already is a .def file (1st line
11869 # is EXPORTS), use it as is; otherwise, prepend...
11870 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11871 cp $export_symbols $output_objdir/$soname.def;
11873 echo EXPORTS > $output_objdir/$soname.def;
11874 cat $export_symbols >> $output_objdir/$soname.def;
11876 $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'
11881 darwin* | rhapsody*)
11882 archive_cmds_need_lc_CXX=no
11883 hardcode_direct_CXX=no
11884 hardcode_automatic_CXX=yes
11885 hardcode_shlibpath_var_CXX=unsupported
11886 whole_archive_flag_spec_CXX=''
11887 link_all_deplibs_CXX=yes
11888 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11889 if test "$GXX" = yes ; then
11890 output_verbose_link_cmd='echo'
11891 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11892 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11893 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11894 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11895 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11896 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${_lt_dsymutil}"
11897 archive_expsym_cmds_CXX="sed '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${_lt_dar_export_syms}${_lt_dsymutil}"
11900 case $cc_basename in
11902 output_verbose_link_cmd='echo'
11903 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11904 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11905 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11906 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11907 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}'
11917 case $cc_basename in
11919 # FIXME: insert proper C++ library support
11923 # Green Hills C++ Compiler
11924 # FIXME: insert proper C++ library support
11928 # FIXME: insert proper C++ library support
11934 # C++ shared libraries reported to be fairly broken before switch to ELF
11938 archive_cmds_need_lc_CXX=no
11940 freebsd* | dragonfly*)
11941 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11948 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11949 hardcode_libdir_separator_CXX=:
11950 export_dynamic_flag_spec_CXX='${wl}-E'
11951 hardcode_direct_CXX=yes
11952 hardcode_minus_L_CXX=yes # Not in the search PATH,
11953 # but as the default
11954 # location of the library.
11956 case $cc_basename in
11958 # FIXME: insert proper C++ library support
11962 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'
11963 # Commands to make compiler produce verbose output that lists
11964 # what "hidden" libraries, object files and flags are used when
11965 # linking a shared library.
11967 # There doesn't appear to be a way to prevent this compiler from
11968 # explicitly linking system object files so we need to strip them
11969 # from the output so that they don't get included in the library
11971 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'
11974 if test "$GXX" = yes; then
11975 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'
11977 # FIXME: insert proper C++ library support
11984 if test $with_gnu_ld = no; then
11985 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11986 hardcode_libdir_separator_CXX=:
11991 export_dynamic_flag_spec_CXX='${wl}-E'
11997 hardcode_direct_CXX=no
11998 hardcode_shlibpath_var_CXX=no
12001 hardcode_direct_CXX=yes
12002 hardcode_minus_L_CXX=yes # Not in the search PATH,
12003 # but as the default
12004 # location of the library.
12008 case $cc_basename in
12010 # FIXME: insert proper C++ library support
12016 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12019 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12022 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12025 # Commands to make compiler produce verbose output that lists
12026 # what "hidden" libraries, object files and flags are used when
12027 # linking a shared library.
12029 # There doesn't appear to be a way to prevent this compiler from
12030 # explicitly linking system object files so we need to strip them
12031 # from the output so that they don't get included in the library
12033 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'
12036 if test "$GXX" = yes; then
12037 if test $with_gnu_ld = no; then
12040 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12043 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12046 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'
12051 # FIXME: insert proper C++ library support
12058 hardcode_direct_CXX=no
12059 hardcode_shlibpath_var_CXX=no
12060 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12061 export_dynamic_flag_spec_CXX='${wl}-E'
12062 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12063 # Instead, shared libraries are loaded at an image base (0x10000000 by
12064 # default) and relocated if they conflict, which is a slow very memory
12065 # consuming and fragmenting process. To avoid this, we pick a random,
12066 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12067 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12068 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'
12069 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'
12072 case $cc_basename in
12075 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'
12077 # Archives containing C++ object files must be created using
12078 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12079 # necessary to make sure instantiated templates are included
12081 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12084 if test "$GXX" = yes; then
12085 if test "$with_gnu_ld" = no; then
12086 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'
12088 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'
12091 link_all_deplibs_CXX=yes
12094 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12095 hardcode_libdir_separator_CXX=:
12097 linux* | k*bsd*-gnu)
12098 case $cc_basename in
12100 # Kuck and Associates, Inc. (KAI) C++ Compiler
12102 # KCC will only create a shared library if the output file
12103 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12104 # to its proper name (with version) after linking.
12105 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'
12106 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'
12107 # Commands to make compiler produce verbose output that lists
12108 # what "hidden" libraries, object files and flags are used when
12109 # linking a shared library.
12111 # There doesn't appear to be a way to prevent this compiler from
12112 # explicitly linking system object files so we need to strip them
12113 # from the output so that they don't get included in the library
12115 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'
12117 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12118 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12120 # Archives containing C++ object files must be created using
12121 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12122 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12127 # version 8.0 and above of icpc choke on multiply defined symbols
12128 # if we add $predep_objects and $postdep_objects, however 7.1 and
12129 # earlier do not add the objects themselves.
12130 case `$CC -V 2>&1` in
12132 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12133 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'
12135 *) # Version 8.0 or newer
12138 ia64*) tmp_idyn=' -i_dynamic';;
12140 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12141 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'
12144 archive_cmds_need_lc_CXX=no
12145 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12146 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12147 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12150 # Portland Group C++ compiler
12151 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12152 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'
12154 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12155 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12156 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'
12160 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12161 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'
12163 runpath_var=LD_RUN_PATH
12164 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12165 hardcode_libdir_separator_CXX=:
12167 # Commands to make compiler produce verbose output that lists
12168 # what "hidden" libraries, object files and flags are used when
12169 # linking a shared library.
12171 # There doesn't appear to be a way to prevent this compiler from
12172 # explicitly linking system object files so we need to strip them
12173 # from the output so that they don't get included in the library
12175 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'
12178 case `$CC -V 2>&1 | sed 5q` in
12181 no_undefined_flag_CXX=' -zdefs'
12182 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12183 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12184 hardcode_libdir_flag_spec_CXX='-R$libdir'
12185 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12187 # Not sure whether something based on
12188 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12190 output_verbose_link_cmd='echo'
12192 # Archives containing C++ object files must be created using
12193 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12194 # necessary to make sure instantiated templates are included
12196 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12203 # FIXME: insert proper C++ library support
12207 # FIXME: insert proper C++ library support
12211 case $cc_basename in
12213 # FIXME: insert proper C++ library support
12217 # FIXME: insert proper C++ library support
12222 netbsd* | netbsdelf*-gnu)
12223 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12224 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12226 hardcode_libdir_flag_spec_CXX='-R$libdir'
12227 hardcode_direct_CXX=yes
12228 hardcode_shlibpath_var_CXX=no
12230 # Workaround some broken pre-1.5 toolchains
12231 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12234 # C++ shared libraries are fairly broken
12238 if test -f /usr/libexec/ld.so; then
12239 hardcode_direct_CXX=yes
12240 hardcode_shlibpath_var_CXX=no
12241 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12242 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12243 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12244 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12245 export_dynamic_flag_spec_CXX='${wl}-E'
12246 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12248 output_verbose_link_cmd='echo'
12254 case $cc_basename in
12256 # Kuck and Associates, Inc. (KAI) C++ Compiler
12258 # KCC will only create a shared library if the output file
12259 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12260 # to its proper name (with version) after linking.
12261 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'
12263 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12264 hardcode_libdir_separator_CXX=:
12266 # Archives containing C++ object files must be created using
12267 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12268 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12272 # Rational C++ 2.4.1
12273 # FIXME: insert proper C++ library support
12277 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12278 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'
12280 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12281 hardcode_libdir_separator_CXX=:
12283 # Commands to make compiler produce verbose output that lists
12284 # what "hidden" libraries, object files and flags are used when
12285 # linking a shared library.
12287 # There doesn't appear to be a way to prevent this compiler from
12288 # explicitly linking system object files so we need to strip them
12289 # from the output so that they don't get included in the library
12291 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'
12294 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12295 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12296 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'
12298 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12299 hardcode_libdir_separator_CXX=:
12301 # Commands to make compiler produce verbose output that lists
12302 # what "hidden" libraries, object files and flags are used when
12303 # linking a shared library.
12304 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12307 # FIXME: insert proper C++ library support
12314 case $cc_basename in
12316 # Kuck and Associates, Inc. (KAI) C++ Compiler
12318 # KCC will only create a shared library if the output file
12319 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12320 # to its proper name (with version) after linking.
12321 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'
12323 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12324 hardcode_libdir_separator_CXX=:
12326 # Archives containing C++ object files must be created using
12327 # the KAI C++ compiler.
12328 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12331 # Rational C++ 2.4.1
12332 # FIXME: insert proper C++ library support
12336 allow_undefined_flag_CXX=' -expect_unresolved \*'
12337 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'
12338 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12339 echo "-hidden">> $lib.exp~
12340 $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~
12343 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12344 hardcode_libdir_separator_CXX=:
12346 # Commands to make compiler produce verbose output that lists
12347 # what "hidden" libraries, object files and flags are used when
12348 # linking a shared library.
12350 # There doesn't appear to be a way to prevent this compiler from
12351 # explicitly linking system object files so we need to strip them
12352 # from the output so that they don't get included in the library
12354 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'
12357 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12358 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12359 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'
12361 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12362 hardcode_libdir_separator_CXX=:
12364 # Commands to make compiler produce verbose output that lists
12365 # what "hidden" libraries, object files and flags are used when
12366 # linking a shared library.
12367 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12370 # FIXME: insert proper C++ library support
12377 # FIXME: insert proper C++ library support
12381 case $cc_basename in
12384 # FIXME: insert proper C++ library support
12389 # FIXME: insert proper C++ library support
12393 # FIXME: insert proper C++ library support
12399 case $cc_basename in
12401 # Sun C++ 4.2, 5.x and Centerline C++
12402 archive_cmds_need_lc_CXX=yes
12403 no_undefined_flag_CXX=' -zdefs'
12404 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12405 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12406 $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'
12408 hardcode_libdir_flag_spec_CXX='-R$libdir'
12409 hardcode_shlibpath_var_CXX=no
12411 solaris2.[0-5] | solaris2.[0-5].*) ;;
12413 # The compiler driver will combine and reorder linker options,
12414 # but understands `-z linker_flag'.
12415 # Supported since Solaris 2.6 (maybe 2.5.1?)
12416 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12419 link_all_deplibs_CXX=yes
12421 output_verbose_link_cmd='echo'
12423 # Archives containing C++ object files must be created using
12424 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12425 # necessary to make sure instantiated templates are included
12427 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12430 # Green Hills C++ Compiler
12431 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12433 # The C++ compiler must be used to create the archive.
12434 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12437 # GNU C++ compiler with Solaris linker
12438 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12439 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12440 if $CC --version | grep -v '^2\.7' > /dev/null; then
12441 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12442 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12443 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12445 # Commands to make compiler produce verbose output that lists
12446 # what "hidden" libraries, object files and flags are used when
12447 # linking a shared library.
12448 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12450 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12452 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12453 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12454 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12456 # Commands to make compiler produce verbose output that lists
12457 # what "hidden" libraries, object files and flags are used when
12458 # linking a shared library.
12459 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12462 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12464 solaris2.[0-5] | solaris2.[0-5].*) ;;
12466 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12473 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12474 no_undefined_flag_CXX='${wl}-z,text'
12475 archive_cmds_need_lc_CXX=no
12476 hardcode_shlibpath_var_CXX=no
12477 runpath_var='LD_RUN_PATH'
12479 case $cc_basename in
12481 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12482 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12485 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12486 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12490 sysv5* | sco3.2v5* | sco5v6*)
12491 # Note: We can NOT use -z defs as we might desire, because we do not
12492 # link with -lc, and that would cause any symbols used from libc to
12493 # always be unresolved, which means just about no library would
12494 # ever link correctly. If we're not using GNU ld we use -z text
12495 # though, which does catch some bad symbols but isn't as heavy-handed
12497 # For security reasons, it is highly recommended that you always
12498 # use absolute paths for naming shared libraries, and exclude the
12499 # DT_RUNPATH tag from executables and libraries. But doing so
12500 # requires that you compile everything twice, which is a pain.
12501 # So that behaviour is only enabled if SCOABSPATH is set to a
12502 # non-empty value in the environment. Most likely only useful for
12503 # creating official distributions of packages.
12504 # This is a hack until libtool officially supports absolute path
12505 # names for shared libraries.
12506 no_undefined_flag_CXX='${wl}-z,text'
12507 allow_undefined_flag_CXX='${wl}-z,nodefs'
12508 archive_cmds_need_lc_CXX=no
12509 hardcode_shlibpath_var_CXX=no
12510 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12511 hardcode_libdir_separator_CXX=':'
12512 link_all_deplibs_CXX=yes
12513 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12514 runpath_var='LD_RUN_PATH'
12516 case $cc_basename in
12518 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12519 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12522 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12523 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12528 case $cc_basename in
12530 # NonStop-UX NCC 3.20
12531 # FIXME: insert proper C++ library support
12535 # FIXME: insert proper C++ library support
12541 # FIXME: insert proper C++ library support
12545 # FIXME: insert proper C++ library support
12549 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12550 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12551 test "$ld_shlibs_CXX" = no && can_build_shared=no
12556 cat > conftest.$ac_ext <<EOF
12560 Foo (void) { a = 0; }
12566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12567 (eval $ac_compile) 2>&5
12569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570 (exit $ac_status); }; then
12571 # Parse the compiler output and extract the necessary
12572 # objects, libraries and library flags.
12574 # Sentinel used to keep track of whether or not we are before
12575 # the conftest object file.
12576 pre_test_object_deps_done=no
12578 # The `*' in the case matches for architectures that use `case' in
12579 # $output_verbose_cmd can trigger glob expansion during the loop
12580 # eval without this substitution.
12581 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12583 for p in `eval $output_verbose_link_cmd`; do
12587 # Some compilers place space between "-{L,R}" and the path.
12588 # Remove the space.
12589 if test $p = "-L" \
12590 || test $p = "-R"; then
12597 if test "$pre_test_object_deps_done" = no; then
12600 # Internal compiler library paths should come after those
12601 # provided the user. The postdeps already come after the
12602 # user supplied libs so there is no need to process them.
12603 if test -z "$compiler_lib_search_path_CXX"; then
12604 compiler_lib_search_path_CXX="${prev}${p}"
12606 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12609 # The "-l" case would never come before the object being
12610 # linked, so don't bother handling this case.
12613 if test -z "$postdeps_CXX"; then
12614 postdeps_CXX="${prev}${p}"
12616 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12622 # This assumes that the test object file only shows up
12623 # once in the compiler output.
12624 if test "$p" = "conftest.$objext"; then
12625 pre_test_object_deps_done=yes
12629 if test "$pre_test_object_deps_done" = no; then
12630 if test -z "$predep_objects_CXX"; then
12631 predep_objects_CXX="$p"
12633 predep_objects_CXX="$predep_objects_CXX $p"
12636 if test -z "$postdep_objects_CXX"; then
12637 postdep_objects_CXX="$p"
12639 postdep_objects_CXX="$postdep_objects_CXX $p"
12644 *) ;; # Ignore the rest.
12652 echo "libtool.m4: error: problem compiling CXX test program"
12655 $rm -f confest.$objext
12657 compiler_lib_search_dirs_CXX=
12658 if test -n "$compiler_lib_search_path_CXX"; then
12659 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12662 # PORTME: override above test on systems where it is broken
12665 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12666 # hack all around it, let's just trust "g++" to DTRT.
12667 predep_objects_CXX=
12668 postdep_objects_CXX=
12673 case `$CC -V 2>&1 | sed 5q` in
12677 # The more standards-conforming stlport4 library is
12678 # incompatible with the Cstd library. Avoid specifying
12679 # it if it's in CXXFLAGS. Ignore libCrun as
12680 # -library=stlport4 depends on it.
12681 case " $CXX $CXXFLAGS " in
12682 *" -library=stlport4 "*)
12683 solaris_use_stlport4=yes
12686 if test "$solaris_use_stlport4" != yes; then
12687 postdeps_CXX='-library=Cstd -library=Crun'
12694 case $cc_basename in
12696 # The more standards-conforming stlport4 library is
12697 # incompatible with the Cstd library. Avoid specifying
12698 # it if it's in CXXFLAGS. Ignore libCrun as
12699 # -library=stlport4 depends on it.
12700 case " $CXX $CXXFLAGS " in
12701 *" -library=stlport4 "*)
12702 solaris_use_stlport4=yes
12706 # Adding this requires a known-good setup of shared libraries for
12707 # Sun compiler versions before 5.6, else PIC objects from an old
12708 # archive will be linked into the output, leading to subtle bugs.
12709 if test "$solaris_use_stlport4" != yes; then
12710 postdeps_CXX='-library=Cstd -library=Crun'
12717 case " $postdeps_CXX " in
12718 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12721 lt_prog_compiler_wl_CXX=
12722 lt_prog_compiler_pic_CXX=
12723 lt_prog_compiler_static_CXX=
12725 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12726 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12728 # C++ specific cases for pic, static, wl, etc.
12729 if test "$GXX" = yes; then
12730 lt_prog_compiler_wl_CXX='-Wl,'
12731 lt_prog_compiler_static_CXX='-static'
12735 # All AIX code is PIC.
12736 if test "$host_cpu" = ia64; then
12737 # AIX 5 now supports IA64 processor
12738 lt_prog_compiler_static_CXX='-Bstatic'
12742 # FIXME: we need at least 68020 code to build shared libraries, but
12743 # adding the `-m68020' flag to GCC prevents building anything better,
12745 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12747 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12748 # PIC is the default for these OSes.
12750 mingw* | cygwin* | os2* | pw32*)
12751 # This hack is so that the source file can tell whether it is being
12752 # built for inclusion in a dll (and should export symbols for example).
12753 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12754 # (--disable-auto-import) libraries
12755 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12757 darwin* | rhapsody*)
12758 # PIC is the default on this platform
12759 # Common symbols not allowed in MH_DYLIB files
12760 lt_prog_compiler_pic_CXX='-fno-common'
12763 # DJGPP does not support shared libraries at all
12764 lt_prog_compiler_pic_CXX=
12767 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12768 # Instead, we relocate shared libraries at runtime.
12771 if test -d /usr/nec; then
12772 lt_prog_compiler_pic_CXX=-Kconform_pic
12776 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12777 # not for PA HP-UX.
12782 lt_prog_compiler_pic_CXX='-fPIC'
12787 lt_prog_compiler_pic_CXX='-fPIC'
12793 # All AIX code is PIC.
12794 if test "$host_cpu" = ia64; then
12795 # AIX 5 now supports IA64 processor
12796 lt_prog_compiler_static_CXX='-Bstatic'
12798 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12802 case $cc_basename in
12804 # Green Hills C++ Compiler
12805 # _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"
12810 # PIC is the default on this platform
12811 # Common symbols not allowed in MH_DYLIB files
12812 case $cc_basename in
12814 lt_prog_compiler_pic_CXX='-qnocommon'
12815 lt_prog_compiler_wl_CXX='-Wl,'
12820 case $cc_basename in
12822 lt_prog_compiler_pic_CXX='-KPIC'
12825 # Green Hills C++ Compiler
12826 lt_prog_compiler_pic_CXX='-pic'
12832 freebsd* | dragonfly*)
12833 # FreeBSD uses GNU C++
12835 hpux9* | hpux10* | hpux11*)
12836 case $cc_basename in
12838 lt_prog_compiler_wl_CXX='-Wl,'
12839 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12840 if test "$host_cpu" != ia64; then
12841 lt_prog_compiler_pic_CXX='+Z'
12845 lt_prog_compiler_wl_CXX='-Wl,'
12846 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12852 lt_prog_compiler_pic_CXX='+Z'
12861 # This is c89, which is MS Visual C++ (no shared libs)
12862 # Anyone wants to do a port?
12864 irix5* | irix6* | nonstopux*)
12865 case $cc_basename in
12867 lt_prog_compiler_wl_CXX='-Wl,'
12868 lt_prog_compiler_static_CXX='-non_shared'
12869 # CC pic flag -KPIC is the default.
12875 linux* | k*bsd*-gnu)
12876 case $cc_basename in
12879 lt_prog_compiler_wl_CXX='--backend -Wl,'
12880 lt_prog_compiler_pic_CXX='-fPIC'
12884 lt_prog_compiler_wl_CXX='-Wl,'
12885 lt_prog_compiler_pic_CXX='-KPIC'
12886 lt_prog_compiler_static_CXX='-static'
12889 # Portland Group C++ compiler.
12890 lt_prog_compiler_wl_CXX='-Wl,'
12891 lt_prog_compiler_pic_CXX='-fpic'
12892 lt_prog_compiler_static_CXX='-Bstatic'
12896 # Make sure the PIC flag is empty. It appears that all Alpha
12897 # Linux and Compaq Tru64 Unix objects are PIC.
12898 lt_prog_compiler_pic_CXX=
12899 lt_prog_compiler_static_CXX='-non_shared'
12902 case `$CC -V 2>&1 | sed 5q` in
12905 lt_prog_compiler_pic_CXX='-KPIC'
12906 lt_prog_compiler_static_CXX='-Bstatic'
12907 lt_prog_compiler_wl_CXX='-Qoption ld '
12918 case $cc_basename in
12920 lt_prog_compiler_pic_CXX='-W c,exportall'
12926 netbsd* | netbsdelf*-gnu)
12928 osf3* | osf4* | osf5*)
12929 case $cc_basename in
12931 lt_prog_compiler_wl_CXX='--backend -Wl,'
12934 # Rational C++ 2.4.1
12935 lt_prog_compiler_pic_CXX='-pic'
12938 # Digital/Compaq C++
12939 lt_prog_compiler_wl_CXX='-Wl,'
12940 # Make sure the PIC flag is empty. It appears that all Alpha
12941 # Linux and Compaq Tru64 Unix objects are PIC.
12942 lt_prog_compiler_pic_CXX=
12943 lt_prog_compiler_static_CXX='-non_shared'
12952 case $cc_basename in
12954 # Sun C++ 4.2, 5.x and Centerline C++
12955 lt_prog_compiler_pic_CXX='-KPIC'
12956 lt_prog_compiler_static_CXX='-Bstatic'
12957 lt_prog_compiler_wl_CXX='-Qoption ld '
12960 # Green Hills C++ Compiler
12961 lt_prog_compiler_pic_CXX='-PIC'
12968 case $cc_basename in
12971 lt_prog_compiler_pic_CXX='-pic'
12972 lt_prog_compiler_static_CXX='-Bstatic'
12976 lt_prog_compiler_pic_CXX='-pic'
12983 case $cc_basename in
12985 # NonStop-UX NCC 3.20
12986 lt_prog_compiler_pic_CXX='-KPIC'
12992 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12993 case $cc_basename in
12995 lt_prog_compiler_wl_CXX='-Wl,'
12996 lt_prog_compiler_pic_CXX='-KPIC'
12997 lt_prog_compiler_static_CXX='-Bstatic'
13004 lt_prog_compiler_can_build_shared_CXX=no
13009 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13010 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13013 # Check to make sure the PIC flag actually works.
13015 if test -n "$lt_prog_compiler_pic_CXX"; then
13017 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13018 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13019 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
13020 echo $ECHO_N "(cached) $ECHO_C" >&6
13022 lt_cv_prog_compiler_pic_works_CXX=no
13023 ac_outfile=conftest.$ac_objext
13024 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13025 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13026 # Insert the option either (1) after the last *FLAGS variable, or
13027 # (2) before a word containing "conftest.", or (3) at the end.
13028 # Note that $ac_compile itself does not contain backslashes and begins
13029 # with a dollar sign (not a hyphen), so the echo should work correctly.
13030 # The option is referenced via a variable to avoid confusing sed.
13031 lt_compile=`echo "$ac_compile" | $SED \
13032 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13033 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13034 -e 's:$: $lt_compiler_flag:'`
13035 (eval echo "\"\$as_me:13035: $lt_compile\"" >&5)
13036 (eval "$lt_compile" 2>conftest.err)
13038 cat conftest.err >&5
13039 echo "$as_me:13039: \$? = $ac_status" >&5
13040 if (exit $ac_status) && test -s "$ac_outfile"; then
13041 # The compiler can only warn and ignore the option if not recognized
13042 # So say no if there are warnings other than the usual output.
13043 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13044 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13045 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13046 lt_cv_prog_compiler_pic_works_CXX=yes
13052 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13053 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13055 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13056 case $lt_prog_compiler_pic_CXX in
13058 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13061 lt_prog_compiler_pic_CXX=
13062 lt_prog_compiler_can_build_shared_CXX=no
13067 # For platforms which do not support PIC, -DPIC is meaningless:
13069 lt_prog_compiler_pic_CXX=
13072 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13077 # Check to make sure the static flag actually works.
13079 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13080 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13081 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13082 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13083 echo $ECHO_N "(cached) $ECHO_C" >&6
13085 lt_cv_prog_compiler_static_works_CXX=no
13086 save_LDFLAGS="$LDFLAGS"
13087 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13088 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13089 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13090 # The linker can only warn and ignore the option if not recognized
13091 # So say no if there are warnings
13092 if test -s conftest.err; then
13093 # Append any errors to the config.log.
13094 cat conftest.err 1>&5
13095 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13096 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13097 if diff conftest.exp conftest.er2 >/dev/null; then
13098 lt_cv_prog_compiler_static_works_CXX=yes
13101 lt_cv_prog_compiler_static_works_CXX=yes
13105 LDFLAGS="$save_LDFLAGS"
13108 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13109 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
13111 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13114 lt_prog_compiler_static_CXX=
13118 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13119 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13120 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13121 echo $ECHO_N "(cached) $ECHO_C" >&6
13123 lt_cv_prog_compiler_c_o_CXX=no
13124 $rm -r conftest 2>/dev/null
13128 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13130 lt_compiler_flag="-o out/conftest2.$ac_objext"
13131 # Insert the option either (1) after the last *FLAGS variable, or
13132 # (2) before a word containing "conftest.", or (3) at the end.
13133 # Note that $ac_compile itself does not contain backslashes and begins
13134 # with a dollar sign (not a hyphen), so the echo should work correctly.
13135 lt_compile=`echo "$ac_compile" | $SED \
13136 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13137 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13138 -e 's:$: $lt_compiler_flag:'`
13139 (eval echo "\"\$as_me:13139: $lt_compile\"" >&5)
13140 (eval "$lt_compile" 2>out/conftest.err)
13142 cat out/conftest.err >&5
13143 echo "$as_me:13143: \$? = $ac_status" >&5
13144 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13146 # The compiler can only warn and ignore the option if not recognized
13147 # So say no if there are warnings
13148 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13149 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13150 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13151 lt_cv_prog_compiler_c_o_CXX=yes
13156 # SGI C++ compiler will create directory out/ii_files/ for
13157 # template instantiation
13158 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13159 $rm out/* && rmdir out
13165 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13166 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13169 hard_links="nottested"
13170 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13171 # do not overwrite the value of need_locks provided by the user
13172 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13173 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13176 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13178 ln conftest.a conftest.b 2>&5 || hard_links=no
13179 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13180 { echo "$as_me:$LINENO: result: $hard_links" >&5
13181 echo "${ECHO_T}$hard_links" >&6; }
13182 if test "$hard_links" = no; then
13183 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13184 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13191 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13192 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13194 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13197 # If we're using GNU nm, then we don't want the "-C" option.
13198 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13199 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13200 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'
13202 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'
13206 export_symbols_cmds_CXX="$ltdll_cmds"
13209 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'
13211 linux* | k*bsd*-gnu)
13212 link_all_deplibs_CXX=no
13215 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13218 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13220 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13221 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13222 test "$ld_shlibs_CXX" = no && can_build_shared=no
13225 # Do we need to explicitly link libc?
13227 case "x$archive_cmds_need_lc_CXX" in
13229 # Assume -lc should be added
13230 archive_cmds_need_lc_CXX=yes
13232 if test "$enable_shared" = yes && test "$GCC" = yes; then
13233 case $archive_cmds_CXX in
13235 # FIXME: we may have to deal with multi-command sequences.
13238 # Test whether the compiler implicitly links with -lc since on some
13239 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13240 # to ld, don't add -lc before -lgcc.
13241 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13242 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13244 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13247 (eval $ac_compile) 2>&5
13249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250 (exit $ac_status); } 2>conftest.err; then
13253 libobjs=conftest.$ac_objext
13255 wl=$lt_prog_compiler_wl_CXX
13256 pic_flag=$lt_prog_compiler_pic_CXX
13262 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13263 allow_undefined_flag_CXX=
13264 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13265 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268 (exit $ac_status); }
13270 archive_cmds_need_lc_CXX=no
13272 archive_cmds_need_lc_CXX=yes
13274 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13276 cat conftest.err 1>&5
13279 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13280 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13287 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13288 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13289 library_names_spec=
13290 libname_spec='lib$name'
13294 postuninstall_cmds=
13298 shlibpath_overrides_runpath=unknown
13300 dynamic_linker="$host_os ld.so"
13301 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13303 need_lib_prefix=unknown
13304 hardcode_into_libs=no
13306 # when you set need_version to no, make sure it does not cause -set_version
13307 # flags to be left without arguments
13308 need_version=unknown
13313 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13314 shlibpath_var=LIBPATH
13316 # AIX 3 has no versioning support, so we append a major version to the name.
13317 soname_spec='${libname}${release}${shared_ext}$major'
13324 hardcode_into_libs=yes
13325 if test "$host_cpu" = ia64; then
13326 # AIX 5 supports IA64
13327 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13328 shlibpath_var=LD_LIBRARY_PATH
13330 # With GCC up to 2.95.x, collect2 would create an import file
13331 # for dependence libraries. The import file would start with
13332 # the line `#! .'. This would cause the generated library to
13333 # depend on `.', always an invalid library. This was fixed in
13334 # development snapshots of GCC prior to 3.0.
13336 aix4 | aix4.[01] | aix4.[01].*)
13337 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13339 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13342 can_build_shared=no
13346 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13347 # soname into executable. Probably we can add versioning support to
13348 # collect2, so additional links can be useful in future.
13349 if test "$aix_use_runtimelinking" = yes; then
13350 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13351 # instead of lib<name>.a to let people know that these are not
13352 # typical AIX shared libraries.
13353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13355 # We preserve .a as extension for shared libraries through AIX4.2
13356 # and later when we are not doing run time linking.
13357 library_names_spec='${libname}${release}.a $libname.a'
13358 soname_spec='${libname}${release}${shared_ext}$major'
13360 shlibpath_var=LIBPATH
13365 library_names_spec='$libname.ixlibrary $libname.a'
13366 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13367 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'
13371 library_names_spec='${libname}${shared_ext}'
13372 dynamic_linker="$host_os ld.so"
13373 shlibpath_var=LIBRARY_PATH
13379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13380 soname_spec='${libname}${release}${shared_ext}$major'
13381 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13382 shlibpath_var=LD_LIBRARY_PATH
13383 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13384 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13385 # the default ld.so.conf also contains /usr/contrib/lib and
13386 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13387 # libtool to hard-code these into programs
13390 cygwin* | mingw* | pw32*)
13391 version_type=windows
13396 case $GCC,$host_os in
13397 yes,cygwin* | yes,mingw* | yes,pw32*)
13398 library_names_spec='$libname.dll.a'
13399 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13400 postinstall_cmds='base_file=`basename \${file}`~
13401 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13402 dldir=$destdir/`dirname \$dlpath`~
13403 test -d \$dldir || mkdir -p \$dldir~
13404 $install_prog $dir/$dlname \$dldir/$dlname~
13405 chmod a+x \$dldir/$dlname'
13406 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13407 dlpath=$dir/\$dldll~
13409 shlibpath_overrides_runpath=yes
13413 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13414 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13415 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13418 # MinGW DLLs use traditional 'lib' prefix
13419 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13420 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13421 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13422 # It is most probably a Windows format PATH printed by
13423 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13424 # path with ; separators, and with drive letters. We can handle the
13425 # drive letters (cygwin fileutils understands them), so leave them,
13426 # especially as we might pass files found there to a mingw objdump,
13427 # which wouldn't understand a cygwinified path. Ahh.
13428 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13430 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13434 # pw32 DLLs use 'pw' prefix rather than 'lib'
13435 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13441 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13444 dynamic_linker='Win32 ld.exe'
13445 # FIXME: first we should search . and the directory the executable is in
13449 darwin* | rhapsody*)
13450 dynamic_linker="$host_os dyld"
13451 version_type=darwin
13454 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13455 soname_spec='${libname}${release}${major}$shared_ext'
13456 shlibpath_overrides_runpath=yes
13457 shlibpath_var=DYLD_LIBRARY_PATH
13458 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13460 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13468 soname_spec='${libname}${release}${shared_ext}$major'
13469 shlibpath_var=LD_LIBRARY_PATH
13476 freebsd* | dragonfly*)
13477 # DragonFly does not have aout. When/if they implement a new
13478 # versioning mechanism, adjust this.
13479 if test -x /usr/bin/objformat; then
13480 objformat=`/usr/bin/objformat`
13483 freebsd[123]*) objformat=aout ;;
13484 *) objformat=elf ;;
13487 version_type=freebsd-$objformat
13488 case $version_type in
13490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13495 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13499 shlibpath_var=LD_LIBRARY_PATH
13502 shlibpath_overrides_runpath=yes
13504 freebsd3.[01]* | freebsdelf3.[01]*)
13505 shlibpath_overrides_runpath=yes
13506 hardcode_into_libs=yes
13508 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13509 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13510 shlibpath_overrides_runpath=no
13511 hardcode_into_libs=yes
13513 *) # from 4.6 on, and DragonFly
13514 shlibpath_overrides_runpath=yes
13515 hardcode_into_libs=yes
13524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13525 soname_spec='${libname}${release}${shared_ext}$major'
13526 shlibpath_var=LD_LIBRARY_PATH
13527 hardcode_into_libs=yes
13530 hpux9* | hpux10* | hpux11*)
13531 # Give a soname corresponding to the major version so that dld.sl refuses to
13532 # link against other versions.
13539 hardcode_into_libs=yes
13540 dynamic_linker="$host_os dld.so"
13541 shlibpath_var=LD_LIBRARY_PATH
13542 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13544 soname_spec='${libname}${release}${shared_ext}$major'
13545 if test "X$HPUX_IA64_MODE" = X32; then
13546 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13548 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13550 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13554 hardcode_into_libs=yes
13555 dynamic_linker="$host_os dld.sl"
13556 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13557 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13559 soname_spec='${libname}${release}${shared_ext}$major'
13560 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13561 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13565 dynamic_linker="$host_os dld.sl"
13566 shlibpath_var=SHLIB_PATH
13567 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13569 soname_spec='${libname}${release}${shared_ext}$major'
13572 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13573 postinstall_cmds='chmod 555 $lib'
13580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13581 soname_spec='${libname}${release}${shared_ext}$major'
13582 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13583 shlibpath_var=LD_LIBRARY_PATH
13584 shlibpath_overrides_runpath=no
13585 hardcode_into_libs=yes
13588 irix5* | irix6* | nonstopux*)
13590 nonstopux*) version_type=nonstopux ;;
13592 if test "$lt_cv_prog_gnu_ld" = yes; then
13600 soname_spec='${libname}${release}${shared_ext}$major'
13601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13603 irix5* | nonstopux*)
13604 libsuff= shlibsuff=
13607 case $LD in # libtool.m4 will add one of these switches to LD
13608 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13609 libsuff= shlibsuff= libmagic=32-bit;;
13610 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13611 libsuff=32 shlibsuff=N32 libmagic=N32;;
13612 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13613 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13614 *) libsuff= shlibsuff= libmagic=never-match;;
13618 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13619 shlibpath_overrides_runpath=no
13620 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13621 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13622 hardcode_into_libs=yes
13625 # No shared lib support for Linux oldld, aout, or coff.
13626 linux*oldld* | linux*aout* | linux*coff*)
13630 # This must be Linux ELF.
13631 linux* | k*bsd*-gnu)
13635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13636 soname_spec='${libname}${release}${shared_ext}$major'
13637 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13638 shlibpath_var=LD_LIBRARY_PATH
13639 shlibpath_overrides_runpath=no
13640 # This implies no fast_install, which is unacceptable.
13641 # Some rework will be needed to allow for fast_install
13642 # before this can be enabled.
13643 hardcode_into_libs=yes
13645 # Append ld.so.conf contents to the search path
13646 if test -f /etc/ld.so.conf; then
13647 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13648 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13651 # We used to test for /lib/ld.so.1 and disable shared libraries on
13652 # powerpc, because MkLinux only supported shared libraries with the
13653 # GNU dynamic linker. Since this was broken with cross compilers,
13654 # most powerpc-linux boxes support dynamic linking these days and
13655 # people can always --disable-shared, the test was removed, and we
13656 # assume the GNU/Linux dynamic linker is in use.
13657 dynamic_linker='GNU/Linux ld.so'
13664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13665 soname_spec='${libname}${release}${shared_ext}$major'
13666 shlibpath_var=LD_LIBRARY_PATH
13667 shlibpath_overrides_runpath=no
13668 hardcode_into_libs=yes
13669 dynamic_linker='NetBSD ld.elf_so'
13676 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13678 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13679 dynamic_linker='NetBSD (a.out) ld.so'
13681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13682 soname_spec='${libname}${release}${shared_ext}$major'
13683 dynamic_linker='NetBSD ld.elf_so'
13685 shlibpath_var=LD_LIBRARY_PATH
13686 shlibpath_overrides_runpath=yes
13687 hardcode_into_libs=yes
13692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13693 shlibpath_var=LD_LIBRARY_PATH
13694 shlibpath_overrides_runpath=yes
13701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13702 soname_spec='${libname}${release}${shared_ext}$major'
13703 shlibpath_var=LD_LIBRARY_PATH
13704 shlibpath_overrides_runpath=yes
13709 sys_lib_dlsearch_path_spec="/usr/lib"
13711 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13713 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13714 *) need_version=no ;;
13716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13717 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13718 shlibpath_var=LD_LIBRARY_PATH
13719 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13721 openbsd2.[89] | openbsd2.[89].*)
13722 shlibpath_overrides_runpath=no
13725 shlibpath_overrides_runpath=yes
13729 shlibpath_overrides_runpath=yes
13734 libname_spec='$name'
13737 library_names_spec='$libname${shared_ext} $libname.a'
13738 dynamic_linker='OS/2 ld.exe'
13739 shlibpath_var=LIBPATH
13742 osf3* | osf4* | osf5*)
13746 soname_spec='${libname}${release}${shared_ext}$major'
13747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13748 shlibpath_var=LD_LIBRARY_PATH
13749 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13750 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13762 soname_spec='${libname}${release}${shared_ext}$major'
13763 shlibpath_var=LD_LIBRARY_PATH
13764 shlibpath_overrides_runpath=yes
13765 hardcode_into_libs=yes
13766 # ldd complains unless libraries are executable
13767 postinstall_cmds='chmod +x $lib'
13772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13773 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13774 shlibpath_var=LD_LIBRARY_PATH
13775 shlibpath_overrides_runpath=yes
13776 if test "$with_gnu_ld" = yes; then
13784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13785 soname_spec='${libname}${release}${shared_ext}$major'
13786 shlibpath_var=LD_LIBRARY_PATH
13787 case $host_vendor in
13789 shlibpath_overrides_runpath=no
13791 export_dynamic_flag_spec='${wl}-Blargedynsym'
13792 runpath_var=LD_RUN_PATH
13800 shlibpath_overrides_runpath=no
13801 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13807 if test -d /usr/nec ;then
13809 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13810 soname_spec='$libname${shared_ext}.$major'
13811 shlibpath_var=LD_LIBRARY_PATH
13815 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13816 version_type=freebsd-elf
13819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13820 soname_spec='${libname}${release}${shared_ext}$major'
13821 shlibpath_var=LD_LIBRARY_PATH
13822 hardcode_into_libs=yes
13823 if test "$with_gnu_ld" = yes; then
13824 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13825 shlibpath_overrides_runpath=no
13827 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13828 shlibpath_overrides_runpath=yes
13831 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13835 sys_lib_dlsearch_path_spec='/usr/lib'
13840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13841 soname_spec='${libname}${release}${shared_ext}$major'
13842 shlibpath_var=LD_LIBRARY_PATH
13849 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13850 echo "${ECHO_T}$dynamic_linker" >&6; }
13851 test "$dynamic_linker" = no && can_build_shared=no
13853 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13854 echo $ECHO_N "(cached) $ECHO_C" >&6
13856 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13859 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13860 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13861 echo $ECHO_N "(cached) $ECHO_C" >&6
13863 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13866 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13868 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13869 if test "$GCC" = yes; then
13870 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13873 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13874 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13875 hardcode_action_CXX=
13876 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13877 test -n "$runpath_var_CXX" || \
13878 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13880 # We can hardcode non-existant directories.
13881 if test "$hardcode_direct_CXX" != no &&
13882 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13883 # have to relink, otherwise we might link with an installed library
13884 # when we should be linking with a yet-to-be-installed one
13885 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13886 test "$hardcode_minus_L_CXX" != no; then
13887 # Linking always hardcodes the temporary library directory.
13888 hardcode_action_CXX=relink
13890 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13891 hardcode_action_CXX=immediate
13894 # We cannot hardcode anything, or else we can only hardcode existing
13896 hardcode_action_CXX=unsupported
13898 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13899 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13901 if test "$hardcode_action_CXX" = relink; then
13902 # Fast installation is not supported
13903 enable_fast_install=no
13904 elif test "$shlibpath_overrides_runpath" = yes ||
13905 test "$enable_shared" = no; then
13906 # Fast installation is not necessary
13907 enable_fast_install=needless
13911 # The else clause should only fire when bootstrapping the
13912 # libtool distribution, otherwise you forgot to ship ltmain.sh
13913 # with your package, and you will get complaints that there are
13914 # no rules to generate ltmain.sh.
13915 if test -f "$ltmain"; then
13916 # See if we are running on zsh, and set the options which allow our commands through
13917 # without removal of \ escapes.
13918 if test -n "${ZSH_VERSION+set}" ; then
13919 setopt NO_GLOB_SUBST
13921 # Now quote all the things that may contain metacharacters while being
13922 # careful not to overquote the AC_SUBSTed values. We take copies of the
13923 # variables and quote the copies for generation of the libtool script.
13924 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13926 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13927 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13928 deplibs_check_method reload_flag reload_cmds need_locks \
13929 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13930 lt_cv_sys_global_symbol_to_c_name_address \
13931 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13932 old_postinstall_cmds old_postuninstall_cmds \
13936 lt_prog_compiler_wl_CXX \
13937 lt_prog_compiler_pic_CXX \
13938 lt_prog_compiler_static_CXX \
13939 lt_prog_compiler_no_builtin_flag_CXX \
13940 export_dynamic_flag_spec_CXX \
13941 thread_safe_flag_spec_CXX \
13942 whole_archive_flag_spec_CXX \
13943 enable_shared_with_static_runtimes_CXX \
13944 old_archive_cmds_CXX \
13945 old_archive_from_new_cmds_CXX \
13946 predep_objects_CXX \
13947 postdep_objects_CXX \
13950 compiler_lib_search_path_CXX \
13951 compiler_lib_search_dirs_CXX \
13953 archive_expsym_cmds_CXX \
13954 postinstall_cmds_CXX \
13955 postuninstall_cmds_CXX \
13956 old_archive_from_expsyms_cmds_CXX \
13957 allow_undefined_flag_CXX \
13958 no_undefined_flag_CXX \
13959 export_symbols_cmds_CXX \
13960 hardcode_libdir_flag_spec_CXX \
13961 hardcode_libdir_flag_spec_ld_CXX \
13962 hardcode_libdir_separator_CXX \
13963 hardcode_automatic_CXX \
13965 module_expsym_cmds_CXX \
13966 lt_cv_prog_compiler_c_o_CXX \
13967 fix_srcfile_path_CXX \
13968 exclude_expsyms_CXX \
13969 include_expsyms_CXX; do
13972 old_archive_cmds_CXX | \
13973 old_archive_from_new_cmds_CXX | \
13974 archive_cmds_CXX | \
13975 archive_expsym_cmds_CXX | \
13976 module_cmds_CXX | \
13977 module_expsym_cmds_CXX | \
13978 old_archive_from_expsyms_cmds_CXX | \
13979 export_symbols_cmds_CXX | \
13980 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13981 postinstall_cmds | postuninstall_cmds | \
13982 old_postinstall_cmds | old_postuninstall_cmds | \
13983 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13984 # Double-quote double-evaled strings.
13985 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13988 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13994 *'\$0 --fallback-echo"')
13995 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14001 cat <<__EOF__ >> "$cfgfile"
14002 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14004 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14006 # Shell to use when invoking shell scripts.
14009 # Whether or not to build shared libraries.
14010 build_libtool_libs=$enable_shared
14012 # Whether or not to build static libraries.
14013 build_old_libs=$enable_static
14015 # Whether or not to add -lc for building shared libraries.
14016 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14018 # Whether or not to disallow shared libs when runtime libs are static
14019 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14021 # Whether or not to optimize for fast installation.
14022 fast_install=$enable_fast_install
14025 host_alias=$host_alias
14029 # The build system.
14030 build_alias=$build_alias
14034 # An echo program that does not interpret backslashes.
14039 AR_FLAGS=$lt_AR_FLAGS
14044 # LTCC compiler flags.
14045 LTCFLAGS=$lt_LTCFLAGS
14047 # A language-specific compiler.
14048 CC=$lt_compiler_CXX
14050 # Is the compiler the GNU C compiler?
14056 # The linker used to build libraries.
14059 # Whether we need hard or soft links.
14062 # A BSD-compatible nm program.
14065 # A symbol stripping program
14068 # Used to examine libraries when file_magic_cmd begins "file"
14069 MAGIC_CMD=$MAGIC_CMD
14071 # Used on cygwin: DLL creation program.
14074 # Used on cygwin: object dumper.
14077 # Used on cygwin: assembler.
14080 # The name of the directory that contains temporary libtool files.
14083 # How to create reloadable object files.
14084 reload_flag=$lt_reload_flag
14085 reload_cmds=$lt_reload_cmds
14087 # How to pass a linker flag through the compiler.
14088 wl=$lt_lt_prog_compiler_wl_CXX
14090 # Object file suffix (normally "o").
14091 objext="$ac_objext"
14093 # Old archive suffix (normally "a").
14096 # Shared library suffix (normally ".so").
14097 shrext_cmds='$shrext_cmds'
14099 # Executable file suffix (normally "").
14102 # Additional compiler flags for building library objects.
14103 pic_flag=$lt_lt_prog_compiler_pic_CXX
14106 # What is the maximum length of a command?
14107 max_cmd_len=$lt_cv_sys_max_cmd_len
14109 # Does compiler simultaneously support -c and -o options?
14110 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14112 # Must we lock files when doing compilation?
14113 need_locks=$lt_need_locks
14115 # Do we need the lib prefix for modules?
14116 need_lib_prefix=$need_lib_prefix
14118 # Do we need a version for libraries?
14119 need_version=$need_version
14121 # Whether dlopen is supported.
14122 dlopen_support=$enable_dlopen
14124 # Whether dlopen of programs is supported.
14125 dlopen_self=$enable_dlopen_self
14127 # Whether dlopen of statically linked programs is supported.
14128 dlopen_self_static=$enable_dlopen_self_static
14130 # Compiler flag to prevent dynamic linking.
14131 link_static_flag=$lt_lt_prog_compiler_static_CXX
14133 # Compiler flag to turn off builtin functions.
14134 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14136 # Compiler flag to allow reflexive dlopens.
14137 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14139 # Compiler flag to generate shared objects directly from archives.
14140 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14142 # Compiler flag to generate thread-safe objects.
14143 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14145 # Library versioning type.
14146 version_type=$version_type
14148 # Format of library name prefix.
14149 libname_spec=$lt_libname_spec
14151 # List of archive names. First name is the real one, the rest are links.
14152 # The last name is the one that the linker finds with -lNAME.
14153 library_names_spec=$lt_library_names_spec
14155 # The coded name of the library, if different from the real name.
14156 soname_spec=$lt_soname_spec
14158 # Commands used to build and install an old-style archive.
14160 old_archive_cmds=$lt_old_archive_cmds_CXX
14161 old_postinstall_cmds=$lt_old_postinstall_cmds
14162 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14164 # Create an old-style archive from a shared archive.
14165 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14167 # Create a temporary old-style archive to link instead of a shared archive.
14168 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14170 # Commands used to build and install a shared archive.
14171 archive_cmds=$lt_archive_cmds_CXX
14172 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14173 postinstall_cmds=$lt_postinstall_cmds
14174 postuninstall_cmds=$lt_postuninstall_cmds
14176 # Commands used to build a loadable module (assumed same as above if empty)
14177 module_cmds=$lt_module_cmds_CXX
14178 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14180 # Commands to strip libraries.
14181 old_striplib=$lt_old_striplib
14182 striplib=$lt_striplib
14184 # Dependencies to place before the objects being linked to create a
14186 predep_objects=$lt_predep_objects_CXX
14188 # Dependencies to place after the objects being linked to create a
14190 postdep_objects=$lt_postdep_objects_CXX
14192 # Dependencies to place before the objects being linked to create a
14194 predeps=$lt_predeps_CXX
14196 # Dependencies to place after the objects being linked to create a
14198 postdeps=$lt_postdeps_CXX
14200 # The directories searched by this compiler when creating a shared
14202 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14204 # The library search path used internally by the compiler when linking
14205 # a shared library.
14206 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14208 # Method to check whether dependent libraries are shared objects.
14209 deplibs_check_method=$lt_deplibs_check_method
14211 # Command to use when deplibs_check_method == file_magic.
14212 file_magic_cmd=$lt_file_magic_cmd
14214 # Flag that allows shared libraries with undefined symbols to be built.
14215 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14217 # Flag that forces no undefined symbols.
14218 no_undefined_flag=$lt_no_undefined_flag_CXX
14220 # Commands used to finish a libtool library installation in a directory.
14221 finish_cmds=$lt_finish_cmds
14223 # Same as above, but a single script fragment to be evaled but not shown.
14224 finish_eval=$lt_finish_eval
14226 # Take the output of nm and produce a listing of raw symbols and C names.
14227 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14229 # Transform the output of nm in a proper C declaration
14230 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14232 # Transform the output of nm in a C name address pair
14233 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14235 # This is the shared library runtime path variable.
14236 runpath_var=$runpath_var
14238 # This is the shared library path variable.
14239 shlibpath_var=$shlibpath_var
14241 # Is shlibpath searched before the hard-coded library search path?
14242 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14244 # How to hardcode a shared library path into an executable.
14245 hardcode_action=$hardcode_action_CXX
14247 # Whether we should hardcode library paths into libraries.
14248 hardcode_into_libs=$hardcode_into_libs
14250 # Flag to hardcode \$libdir into a binary during linking.
14251 # This must work even if \$libdir does not exist.
14252 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14254 # If ld is used when linking, flag to hardcode \$libdir into
14255 # a binary during linking. This must work even if \$libdir does
14257 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14259 # Whether we need a single -rpath flag with a separated argument.
14260 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14262 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14263 # resulting binary.
14264 hardcode_direct=$hardcode_direct_CXX
14266 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14267 # resulting binary.
14268 hardcode_minus_L=$hardcode_minus_L_CXX
14270 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14271 # the resulting binary.
14272 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14274 # Set to yes if building a shared library automatically hardcodes DIR into the library
14275 # and all subsequent libraries and executables linked against it.
14276 hardcode_automatic=$hardcode_automatic_CXX
14278 # Variables whose values should be saved in libtool wrapper scripts and
14279 # restored at relink time.
14280 variables_saved_for_relink="$variables_saved_for_relink"
14282 # Whether libtool must link a program against all its dependency libraries.
14283 link_all_deplibs=$link_all_deplibs_CXX
14285 # Compile-time system search path for libraries
14286 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14288 # Run-time system search path for libraries
14289 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14291 # Fix the shell variable \$srcfile for the compiler.
14292 fix_srcfile_path=$lt_fix_srcfile_path
14294 # Set to yes if exported symbols are required.
14295 always_export_symbols=$always_export_symbols_CXX
14297 # The commands to list exported symbols.
14298 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14300 # The commands to extract the exported symbol list from a shared archive.
14301 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14303 # Symbols that should not be listed in the preloaded symbols.
14304 exclude_expsyms=$lt_exclude_expsyms_CXX
14306 # Symbols that must always be exported.
14307 include_expsyms=$lt_include_expsyms_CXX
14309 # ### END LIBTOOL TAG CONFIG: $tagname
14315 # If there is no Makefile yet, we rely on a make rule to execute
14316 # `config.status --recheck' to rerun these tests and create the
14317 # libtool script then.
14318 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14319 if test -f "$ltmain_in"; then
14320 test -f Makefile && make "$ltmain"
14326 ac_cpp='$CPP $CPPFLAGS'
14327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14335 with_gnu_ldcxx=$with_gnu_ld
14336 with_gnu_ld=$lt_save_with_gnu_ld
14337 lt_cv_path_LDCXX=$lt_cv_path_LD
14338 lt_cv_path_LD=$lt_save_path_LD
14339 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14340 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14348 if test -n "$F77" && test "X$F77" != "Xno"; then
14351 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14352 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14353 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14356 archive_cmds_need_lc_F77=no
14357 allow_undefined_flag_F77=
14358 always_export_symbols_F77=no
14359 archive_expsym_cmds_F77=
14360 export_dynamic_flag_spec_F77=
14361 hardcode_direct_F77=no
14362 hardcode_libdir_flag_spec_F77=
14363 hardcode_libdir_flag_spec_ld_F77=
14364 hardcode_libdir_separator_F77=
14365 hardcode_minus_L_F77=no
14366 hardcode_automatic_F77=no
14368 module_expsym_cmds_F77=
14369 link_all_deplibs_F77=unknown
14370 old_archive_cmds_F77=$old_archive_cmds
14371 no_undefined_flag_F77=
14372 whole_archive_flag_spec_F77=
14373 enable_shared_with_static_runtimes_F77=no
14375 # Source file extension for f77 test sources.
14378 # Object file extension for compiled f77 test sources.
14382 # Code to be used in simple compile tests
14383 lt_simple_compile_test_code="\
14389 # Code to be used in simple link tests
14390 lt_simple_link_test_code="\
14395 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14397 # If no C compiler was specified, use CC.
14400 # If no C compiler flags were specified, use CFLAGS.
14401 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14403 # Allow CC to be a program name with arguments.
14407 # save warnings/boilerplate of simple test code
14408 ac_outfile=conftest.$ac_objext
14409 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14410 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14411 _lt_compiler_boilerplate=`cat conftest.err`
14414 ac_outfile=conftest.$ac_objext
14415 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14416 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14417 _lt_linker_boilerplate=`cat conftest.err`
14421 # Allow CC to be a program name with arguments.
14426 for cc_temp in $compiler""; do
14428 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14429 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14434 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14437 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14438 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14439 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14440 echo "${ECHO_T}$can_build_shared" >&6; }
14442 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14443 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14444 test "$can_build_shared" = "no" && enable_shared=no
14446 # On AIX, shared libraries and static libraries use the same namespace, and
14447 # are all built from PIC.
14450 test "$enable_shared" = yes && enable_static=no
14451 if test -n "$RANLIB"; then
14452 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14453 postinstall_cmds='$RANLIB $lib'
14457 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14458 test "$enable_shared" = yes && enable_static=no
14462 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14463 echo "${ECHO_T}$enable_shared" >&6; }
14465 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14466 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14467 # Make sure either enable_shared or enable_static is yes.
14468 test "$enable_shared" = yes || enable_static=yes
14469 { echo "$as_me:$LINENO: result: $enable_static" >&5
14470 echo "${ECHO_T}$enable_static" >&6; }
14475 lt_prog_compiler_wl_F77=
14476 lt_prog_compiler_pic_F77=
14477 lt_prog_compiler_static_F77=
14479 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14480 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14482 if test "$GCC" = yes; then
14483 lt_prog_compiler_wl_F77='-Wl,'
14484 lt_prog_compiler_static_F77='-static'
14488 # All AIX code is PIC.
14489 if test "$host_cpu" = ia64; then
14490 # AIX 5 now supports IA64 processor
14491 lt_prog_compiler_static_F77='-Bstatic'
14496 # FIXME: we need at least 68020 code to build shared libraries, but
14497 # adding the `-m68020' flag to GCC prevents building anything better,
14499 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14502 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14503 # PIC is the default for these OSes.
14506 mingw* | cygwin* | pw32* | os2*)
14507 # This hack is so that the source file can tell whether it is being
14508 # built for inclusion in a dll (and should export symbols for example).
14509 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14510 # (--disable-auto-import) libraries
14511 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14514 darwin* | rhapsody*)
14515 # PIC is the default on this platform
14516 # Common symbols not allowed in MH_DYLIB files
14517 lt_prog_compiler_pic_F77='-fno-common'
14521 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14522 # Instead, we relocate shared libraries at runtime.
14526 # Just because we use GCC doesn't mean we suddenly get shared libraries
14527 # on systems that don't support them.
14528 lt_prog_compiler_can_build_shared_F77=no
14533 if test -d /usr/nec; then
14534 lt_prog_compiler_pic_F77=-Kconform_pic
14539 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14540 # not for PA HP-UX.
14546 lt_prog_compiler_pic_F77='-fPIC'
14552 lt_prog_compiler_pic_F77='-fPIC'
14556 # PORTME Check for flag to pass linker flags through the system compiler.
14559 lt_prog_compiler_wl_F77='-Wl,'
14560 if test "$host_cpu" = ia64; then
14561 # AIX 5 now supports IA64 processor
14562 lt_prog_compiler_static_F77='-Bstatic'
14564 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14568 # PIC is the default on this platform
14569 # Common symbols not allowed in MH_DYLIB files
14570 case $cc_basename in
14572 lt_prog_compiler_pic_F77='-qnocommon'
14573 lt_prog_compiler_wl_F77='-Wl,'
14578 mingw* | cygwin* | pw32* | os2*)
14579 # This hack is so that the source file can tell whether it is being
14580 # built for inclusion in a dll (and should export symbols for example).
14581 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14584 hpux9* | hpux10* | hpux11*)
14585 lt_prog_compiler_wl_F77='-Wl,'
14586 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14587 # not for PA HP-UX.
14593 lt_prog_compiler_pic_F77='+Z'
14596 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14597 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14600 irix5* | irix6* | nonstopux*)
14601 lt_prog_compiler_wl_F77='-Wl,'
14602 # PIC (with -KPIC) is the default.
14603 lt_prog_compiler_static_F77='-non_shared'
14607 lt_prog_compiler_pic_F77='-KPIC'
14608 lt_prog_compiler_static_F77='-Bstatic'
14611 linux* | k*bsd*-gnu)
14612 case $cc_basename in
14614 lt_prog_compiler_wl_F77='-Wl,'
14615 lt_prog_compiler_pic_F77='-KPIC'
14616 lt_prog_compiler_static_F77='-static'
14618 pgcc* | pgf77* | pgf90* | pgf95*)
14619 # Portland Group compilers (*not* the Pentium gcc compiler,
14620 # which looks to be a dead project)
14621 lt_prog_compiler_wl_F77='-Wl,'
14622 lt_prog_compiler_pic_F77='-fpic'
14623 lt_prog_compiler_static_F77='-Bstatic'
14626 lt_prog_compiler_wl_F77='-Wl,'
14627 # All Alpha code is PIC.
14628 lt_prog_compiler_static_F77='-non_shared'
14631 case `$CC -V 2>&1 | sed 5q` in
14634 lt_prog_compiler_pic_F77='-KPIC'
14635 lt_prog_compiler_static_F77='-Bstatic'
14636 lt_prog_compiler_wl_F77='-Wl,'
14639 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14640 lt_prog_compiler_pic_F77='-KPIC'
14641 lt_prog_compiler_static_F77='-Bstatic'
14642 lt_prog_compiler_wl_F77=''
14649 osf3* | osf4* | osf5*)
14650 lt_prog_compiler_wl_F77='-Wl,'
14651 # All OSF/1 code is PIC.
14652 lt_prog_compiler_static_F77='-non_shared'
14656 lt_prog_compiler_static_F77='-non_shared'
14660 lt_prog_compiler_pic_F77='-KPIC'
14661 lt_prog_compiler_static_F77='-Bstatic'
14662 case $cc_basename in
14663 f77* | f90* | f95*)
14664 lt_prog_compiler_wl_F77='-Qoption ld ';;
14666 lt_prog_compiler_wl_F77='-Wl,';;
14671 lt_prog_compiler_wl_F77='-Qoption ld '
14672 lt_prog_compiler_pic_F77='-PIC'
14673 lt_prog_compiler_static_F77='-Bstatic'
14676 sysv4 | sysv4.2uw2* | sysv4.3*)
14677 lt_prog_compiler_wl_F77='-Wl,'
14678 lt_prog_compiler_pic_F77='-KPIC'
14679 lt_prog_compiler_static_F77='-Bstatic'
14683 if test -d /usr/nec ;then
14684 lt_prog_compiler_pic_F77='-Kconform_pic'
14685 lt_prog_compiler_static_F77='-Bstatic'
14689 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14690 lt_prog_compiler_wl_F77='-Wl,'
14691 lt_prog_compiler_pic_F77='-KPIC'
14692 lt_prog_compiler_static_F77='-Bstatic'
14696 lt_prog_compiler_wl_F77='-Wl,'
14697 lt_prog_compiler_can_build_shared_F77=no
14701 lt_prog_compiler_pic_F77='-pic'
14702 lt_prog_compiler_static_F77='-Bstatic'
14706 lt_prog_compiler_can_build_shared_F77=no
14711 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14712 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14715 # Check to make sure the PIC flag actually works.
14717 if test -n "$lt_prog_compiler_pic_F77"; then
14719 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14720 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14721 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14722 echo $ECHO_N "(cached) $ECHO_C" >&6
14724 lt_cv_prog_compiler_pic_works_F77=no
14725 ac_outfile=conftest.$ac_objext
14726 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14727 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14728 # Insert the option either (1) after the last *FLAGS variable, or
14729 # (2) before a word containing "conftest.", or (3) at the end.
14730 # Note that $ac_compile itself does not contain backslashes and begins
14731 # with a dollar sign (not a hyphen), so the echo should work correctly.
14732 # The option is referenced via a variable to avoid confusing sed.
14733 lt_compile=`echo "$ac_compile" | $SED \
14734 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14735 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14736 -e 's:$: $lt_compiler_flag:'`
14737 (eval echo "\"\$as_me:14737: $lt_compile\"" >&5)
14738 (eval "$lt_compile" 2>conftest.err)
14740 cat conftest.err >&5
14741 echo "$as_me:14741: \$? = $ac_status" >&5
14742 if (exit $ac_status) && test -s "$ac_outfile"; then
14743 # The compiler can only warn and ignore the option if not recognized
14744 # So say no if there are warnings other than the usual output.
14745 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14746 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14747 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14748 lt_cv_prog_compiler_pic_works_F77=yes
14754 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14755 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14757 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14758 case $lt_prog_compiler_pic_F77 in
14760 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14763 lt_prog_compiler_pic_F77=
14764 lt_prog_compiler_can_build_shared_F77=no
14769 # For platforms which do not support PIC, -DPIC is meaningless:
14771 lt_prog_compiler_pic_F77=
14774 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14779 # Check to make sure the static flag actually works.
14781 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14782 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14783 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14784 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14785 echo $ECHO_N "(cached) $ECHO_C" >&6
14787 lt_cv_prog_compiler_static_works_F77=no
14788 save_LDFLAGS="$LDFLAGS"
14789 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14790 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14791 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14792 # The linker can only warn and ignore the option if not recognized
14793 # So say no if there are warnings
14794 if test -s conftest.err; then
14795 # Append any errors to the config.log.
14796 cat conftest.err 1>&5
14797 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14798 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14799 if diff conftest.exp conftest.er2 >/dev/null; then
14800 lt_cv_prog_compiler_static_works_F77=yes
14803 lt_cv_prog_compiler_static_works_F77=yes
14807 LDFLAGS="$save_LDFLAGS"
14810 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14811 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14813 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14816 lt_prog_compiler_static_F77=
14820 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14821 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14822 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14823 echo $ECHO_N "(cached) $ECHO_C" >&6
14825 lt_cv_prog_compiler_c_o_F77=no
14826 $rm -r conftest 2>/dev/null
14830 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14832 lt_compiler_flag="-o out/conftest2.$ac_objext"
14833 # Insert the option either (1) after the last *FLAGS variable, or
14834 # (2) before a word containing "conftest.", or (3) at the end.
14835 # Note that $ac_compile itself does not contain backslashes and begins
14836 # with a dollar sign (not a hyphen), so the echo should work correctly.
14837 lt_compile=`echo "$ac_compile" | $SED \
14838 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14839 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14840 -e 's:$: $lt_compiler_flag:'`
14841 (eval echo "\"\$as_me:14841: $lt_compile\"" >&5)
14842 (eval "$lt_compile" 2>out/conftest.err)
14844 cat out/conftest.err >&5
14845 echo "$as_me:14845: \$? = $ac_status" >&5
14846 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14848 # The compiler can only warn and ignore the option if not recognized
14849 # So say no if there are warnings
14850 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14851 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14852 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14853 lt_cv_prog_compiler_c_o_F77=yes
14858 # SGI C++ compiler will create directory out/ii_files/ for
14859 # template instantiation
14860 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14861 $rm out/* && rmdir out
14867 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14868 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14871 hard_links="nottested"
14872 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14873 # do not overwrite the value of need_locks provided by the user
14874 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14875 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14878 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14880 ln conftest.a conftest.b 2>&5 || hard_links=no
14881 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14882 { echo "$as_me:$LINENO: result: $hard_links" >&5
14883 echo "${ECHO_T}$hard_links" >&6; }
14884 if test "$hard_links" = no; then
14885 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14886 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14893 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14894 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14897 allow_undefined_flag_F77=
14898 enable_shared_with_static_runtimes_F77=no
14900 archive_expsym_cmds_F77=
14901 old_archive_From_new_cmds_F77=
14902 old_archive_from_expsyms_cmds_F77=
14903 export_dynamic_flag_spec_F77=
14904 whole_archive_flag_spec_F77=
14905 thread_safe_flag_spec_F77=
14906 hardcode_libdir_flag_spec_F77=
14907 hardcode_libdir_flag_spec_ld_F77=
14908 hardcode_libdir_separator_F77=
14909 hardcode_direct_F77=no
14910 hardcode_minus_L_F77=no
14911 hardcode_shlibpath_var_F77=unsupported
14912 link_all_deplibs_F77=unknown
14913 hardcode_automatic_F77=no
14915 module_expsym_cmds_F77=
14916 always_export_symbols_F77=no
14917 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14918 # include_expsyms should be a list of space-separated symbols to be *always*
14919 # included in the symbol list
14920 include_expsyms_F77=
14921 # exclude_expsyms can be an extended regexp of symbols to exclude
14922 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14923 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14924 # as well as any symbol that contains `d'.
14925 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14926 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14927 # platforms (ab)use it in PIC code, but their linkers get confused if
14928 # the symbol is explicitly referenced. Since portable code cannot
14929 # rely on this symbol name, it's probably fine to never include it in
14930 # preloaded symbol tables.
14931 # Exclude shared library initialization/finalization symbols.
14932 extract_expsyms_cmds=
14933 # Just being paranoid about ensuring that cc_basename is set.
14934 for cc_temp in $compiler""; do
14936 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14937 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14942 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14945 cygwin* | mingw* | pw32*)
14946 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14947 # When not using gcc, we currently assume that we are using
14948 # Microsoft Visual C++.
14949 if test "$GCC" != yes; then
14954 # we just hope/assume this is gcc and not c89 (= MSVC++)
14963 if test "$with_gnu_ld" = yes; then
14964 # If archive_cmds runs LD, not CC, wlarc should be empty
14967 # Set some defaults for GNU ld with shared library support. These
14968 # are reset later if shared libraries are not supported. Putting them
14969 # here allows them to be overridden if necessary.
14970 runpath_var=LD_RUN_PATH
14971 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14972 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14973 # ancient GNU ld didn't support --whole-archive et. al.
14974 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14975 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14977 whole_archive_flag_spec_F77=
14979 supports_anon_versioning=no
14980 case `$LD -v 2>/dev/null` in
14981 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14982 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14983 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14984 *\ 2.11.*) ;; # other 2.11 versions
14985 *) supports_anon_versioning=yes ;;
14988 # See if GNU ld supports shared libraries.
14991 # On AIX/PPC, the GNU linker is very broken
14992 if test "$host_cpu" != ia64; then
14996 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14997 *** to be unable to reliably create shared libraries on AIX.
14998 *** Therefore, libtool is disabling shared libraries support. If you
14999 *** really care for shared libraries, you may want to modify your PATH
15000 *** so that a non-GNU linker is found, and then restart.
15007 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)'
15008 hardcode_libdir_flag_spec_F77='-L$libdir'
15009 hardcode_minus_L_F77=yes
15011 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15012 # that the semantics of dynamic libraries on AmigaOS, at least up
15013 # to version 4, is to share data among multiple programs linked
15014 # with the same dynamic library. Since this doesn't match the
15015 # behavior of shared libraries on other platforms, we can't use
15021 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15022 allow_undefined_flag_F77=unsupported
15023 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15024 # support --undefined. This deserves some investigation. FIXME
15025 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15031 cygwin* | mingw* | pw32*)
15032 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15033 # as there is no search path for DLLs.
15034 hardcode_libdir_flag_spec_F77='-L$libdir'
15035 allow_undefined_flag_F77=unsupported
15036 always_export_symbols_F77=no
15037 enable_shared_with_static_runtimes_F77=yes
15038 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15040 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15041 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15042 # If the export-symbols file already is a .def file (1st line
15043 # is EXPORTS), use it as is; otherwise, prepend...
15044 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15045 cp $export_symbols $output_objdir/$soname.def;
15047 echo EXPORTS > $output_objdir/$soname.def;
15048 cat $export_symbols >> $output_objdir/$soname.def;
15050 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15057 hardcode_direct_F77=no
15058 hardcode_shlibpath_var_F77=no
15059 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15060 export_dynamic_flag_spec_F77='${wl}-E'
15061 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15062 # Instead, shared libraries are loaded at an image base (0x10000000 by
15063 # default) and relocated if they conflict, which is a slow very memory
15064 # consuming and fragmenting process. To avoid this, we pick a random,
15065 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15066 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15067 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'
15068 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'
15071 gnu* | linux* | k*bsd*-gnu)
15072 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15074 case $cc_basename,$host_cpu in
15075 pgcc*) # Portland Group C compiler
15076 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'
15077 tmp_addflag=' $pic_flag'
15079 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15080 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'
15081 tmp_addflag=' $pic_flag -Mnomain' ;;
15082 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15083 tmp_addflag=' -i_dynamic' ;;
15084 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15085 tmp_addflag=' -i_dynamic -nofor_main' ;;
15086 ifc* | ifort*) # Intel Fortran compiler
15087 tmp_addflag=' -nofor_main' ;;
15089 case `$CC -V 2>&1 | sed 5q` in
15090 *Sun\ C*) # Sun C 5.9
15091 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15092 tmp_sharedflag='-G' ;;
15093 *Sun\ F*) # Sun Fortran 8.3
15094 tmp_sharedflag='-G' ;;
15096 tmp_sharedflag='-shared' ;;
15098 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15100 if test $supports_anon_versioning = yes; then
15101 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15102 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15103 $echo "local: *; };" >> $output_objdir/$libname.ver~
15104 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15106 link_all_deplibs_F77=no
15112 netbsd* | netbsdelf*-gnu)
15113 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15114 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15117 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15118 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15123 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15127 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15128 *** create shared libraries on Solaris systems. Therefore, libtool
15129 *** is disabling shared libraries support. We urge you to upgrade GNU
15130 *** binutils to release 2.9.1 or newer. Another option is to modify
15131 *** your PATH or compiler configuration so that the native linker is
15132 *** used, and then restart.
15135 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15136 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15137 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15143 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15144 case `$LD -v 2>&1` in
15145 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15149 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15150 *** reliably create shared libraries on SCO systems. Therefore, libtool
15151 *** is disabling shared libraries support. We urge you to upgrade GNU
15152 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15153 *** your PATH or compiler configuration so that the native linker is
15154 *** used, and then restart.
15159 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15160 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15161 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15162 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15171 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15173 hardcode_direct_F77=yes
15174 hardcode_shlibpath_var_F77=no
15178 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15179 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15180 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15187 if test "$ld_shlibs_F77" = no; then
15189 hardcode_libdir_flag_spec_F77=
15190 export_dynamic_flag_spec_F77=
15191 whole_archive_flag_spec_F77=
15194 # PORTME fill in a description of your system's linker (not GNU ld)
15197 allow_undefined_flag_F77=unsupported
15198 always_export_symbols_F77=yes
15199 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'
15200 # Note: this linker hardcodes the directories in LIBPATH if there
15201 # are no directories specified by -L.
15202 hardcode_minus_L_F77=yes
15203 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15204 # Neither direct hardcoding nor static linking is supported with a
15206 hardcode_direct_F77=unsupported
15211 if test "$host_cpu" = ia64; then
15212 # On IA64, the linker does run time linking by default, so we don't
15213 # have to do anything special.
15214 aix_use_runtimelinking=no
15215 exp_sym_flag='-Bexport'
15218 # If we're using GNU nm, then we don't want the "-C" option.
15219 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15220 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15221 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'
15223 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'
15225 aix_use_runtimelinking=no
15227 # Test if we are trying to use run time linking or normal
15228 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15229 # need to do runtime linking.
15230 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15231 for ld_flag in $LDFLAGS; do
15232 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15233 aix_use_runtimelinking=yes
15240 exp_sym_flag='-bexport'
15241 no_entry_flag='-bnoentry'
15244 # When large executables or shared objects are built, AIX ld can
15245 # have problems creating the table of contents. If linking a library
15246 # or program results in "error TOC overflow" add -mminimal-toc to
15247 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15248 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15250 archive_cmds_F77=''
15251 hardcode_direct_F77=yes
15252 hardcode_libdir_separator_F77=':'
15253 link_all_deplibs_F77=yes
15255 if test "$GCC" = yes; then
15256 case $host_os in aix4.[012]|aix4.[012].*)
15257 # We only want to do this on AIX 4.2 and lower, the check
15258 # below for broken collect2 doesn't work under 4.3+
15259 collect2name=`${CC} -print-prog-name=collect2`
15260 if test -f "$collect2name" && \
15261 strings "$collect2name" | grep resolve_lib_name >/dev/null
15263 # We have reworked collect2
15266 # We have old collect2
15267 hardcode_direct_F77=unsupported
15268 # It fails to find uninstalled libraries when the uninstalled
15269 # path is not listed in the libpath. Setting hardcode_minus_L
15270 # to unsupported forces relinking
15271 hardcode_minus_L_F77=yes
15272 hardcode_libdir_flag_spec_F77='-L$libdir'
15273 hardcode_libdir_separator_F77=
15277 shared_flag='-shared'
15278 if test "$aix_use_runtimelinking" = yes; then
15279 shared_flag="$shared_flag "'${wl}-G'
15283 if test "$host_cpu" = ia64; then
15284 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15285 # chokes on -Wl,-G. The following line is correct:
15288 if test "$aix_use_runtimelinking" = yes; then
15289 shared_flag='${wl}-G'
15291 shared_flag='${wl}-bM:SRE'
15296 # It seems that -bexpall does not export symbols beginning with
15297 # underscore (_), so it is better to generate a list of symbols to export.
15298 always_export_symbols_F77=yes
15299 if test "$aix_use_runtimelinking" = yes; then
15300 # Warning - without using the other runtime loading flags (-brtl),
15301 # -berok will link without error, but may produce a broken library.
15302 allow_undefined_flag_F77='-berok'
15303 # Determine the default libpath from the value encoded in an empty executable.
15304 cat >conftest.$ac_ext <<_ACEOF
15309 rm -f conftest.$ac_objext conftest$ac_exeext
15310 if { (ac_try="$ac_link"
15311 case "(($ac_try" in
15312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15313 *) ac_try_echo=$ac_try;;
15315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15316 (eval "$ac_link") 2>conftest.er1
15318 grep -v '^ *+' conftest.er1 >conftest.err
15320 cat conftest.err >&5
15321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15322 (exit $ac_status); } && {
15323 test -z "$ac_f77_werror_flag" ||
15324 test ! -s conftest.err
15325 } && test -s conftest$ac_exeext &&
15326 $as_test_x conftest$ac_exeext; then
15328 lt_aix_libpath_sed='
15329 /Import File Strings/,/^$/ {
15335 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15336 # Check for a 64-bit object if we didn't find anything.
15337 if test -z "$aix_libpath"; then
15338 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15341 echo "$as_me: failed program was:" >&5
15342 sed 's/^/| /' conftest.$ac_ext >&5
15347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15348 conftest$ac_exeext conftest.$ac_ext
15349 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15351 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15352 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"
15354 if test "$host_cpu" = ia64; then
15355 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15356 allow_undefined_flag_F77="-z nodefs"
15357 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"
15359 # Determine the default libpath from the value encoded in an empty executable.
15360 cat >conftest.$ac_ext <<_ACEOF
15365 rm -f conftest.$ac_objext conftest$ac_exeext
15366 if { (ac_try="$ac_link"
15367 case "(($ac_try" in
15368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15369 *) ac_try_echo=$ac_try;;
15371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15372 (eval "$ac_link") 2>conftest.er1
15374 grep -v '^ *+' conftest.er1 >conftest.err
15376 cat conftest.err >&5
15377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15378 (exit $ac_status); } && {
15379 test -z "$ac_f77_werror_flag" ||
15380 test ! -s conftest.err
15381 } && test -s conftest$ac_exeext &&
15382 $as_test_x conftest$ac_exeext; then
15384 lt_aix_libpath_sed='
15385 /Import File Strings/,/^$/ {
15391 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15392 # Check for a 64-bit object if we didn't find anything.
15393 if test -z "$aix_libpath"; then
15394 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15397 echo "$as_me: failed program was:" >&5
15398 sed 's/^/| /' conftest.$ac_ext >&5
15403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15404 conftest$ac_exeext conftest.$ac_ext
15405 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15407 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15408 # Warning - without using the other run time loading flags,
15409 # -berok will link without error, but may produce a broken library.
15410 no_undefined_flag_F77=' ${wl}-bernotok'
15411 allow_undefined_flag_F77=' ${wl}-berok'
15412 # Exported symbols can be pulled into shared objects from archives
15413 whole_archive_flag_spec_F77='$convenience'
15414 archive_cmds_need_lc_F77=yes
15415 # This is similar to how AIX traditionally builds its shared libraries.
15416 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'
15422 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)'
15423 hardcode_libdir_flag_spec_F77='-L$libdir'
15424 hardcode_minus_L_F77=yes
15425 # see comment about different semantics on the GNU ld section
15430 export_dynamic_flag_spec_F77=-rdynamic
15433 cygwin* | mingw* | pw32*)
15434 # When not using gcc, we currently assume that we are using
15435 # Microsoft Visual C++.
15436 # hardcode_libdir_flag_spec is actually meaningless, as there is
15437 # no search path for DLLs.
15438 hardcode_libdir_flag_spec_F77=' '
15439 allow_undefined_flag_F77=unsupported
15440 # Tell ltmain to make .lib files, not .a files.
15442 # Tell ltmain to make .dll files, not .so files.
15444 # FIXME: Setting linknames here is a bad hack.
15445 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15446 # The linker will automatically build a .lib file if we build a DLL.
15447 old_archive_From_new_cmds_F77='true'
15448 # FIXME: Should let the user specify the lib program.
15449 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15450 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15451 enable_shared_with_static_runtimes_F77=yes
15454 darwin* | rhapsody*)
15456 rhapsody* | darwin1.[012])
15457 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15460 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15461 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15463 case ${MACOSX_DEPLOYMENT_TARGET} in
15465 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15468 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15474 archive_cmds_need_lc_F77=no
15475 hardcode_direct_F77=no
15476 hardcode_automatic_F77=yes
15477 hardcode_shlibpath_var_F77=unsupported
15478 whole_archive_flag_spec_F77=''
15479 link_all_deplibs_F77=yes
15480 if test "$GCC" = yes ; then
15481 output_verbose_link_cmd='echo'
15482 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15483 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15484 archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15485 module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15487 case $cc_basename in
15489 output_verbose_link_cmd='echo'
15490 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15491 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15492 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15493 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15494 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}'
15504 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15505 hardcode_libdir_flag_spec_F77='-L$libdir'
15506 hardcode_shlibpath_var_F77=no
15513 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15514 # support. Future versions do this automatically, but an explicit c++rt0.o
15515 # does not break anything, and helps significantly (at the cost of a little
15518 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15519 hardcode_libdir_flag_spec_F77='-R$libdir'
15520 hardcode_direct_F77=yes
15521 hardcode_shlibpath_var_F77=no
15524 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15526 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15527 hardcode_direct_F77=yes
15528 hardcode_minus_L_F77=yes
15529 hardcode_shlibpath_var_F77=no
15532 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15533 freebsd* | dragonfly*)
15534 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15535 hardcode_libdir_flag_spec_F77='-R$libdir'
15536 hardcode_direct_F77=yes
15537 hardcode_shlibpath_var_F77=no
15541 if test "$GCC" = yes; then
15542 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'
15544 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'
15546 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15547 hardcode_libdir_separator_F77=:
15548 hardcode_direct_F77=yes
15550 # hardcode_minus_L: Not really in the search PATH,
15551 # but as the default location of the library.
15552 hardcode_minus_L_F77=yes
15553 export_dynamic_flag_spec_F77='${wl}-E'
15557 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15558 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15560 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15562 if test "$with_gnu_ld" = no; then
15563 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15564 hardcode_libdir_separator_F77=:
15566 hardcode_direct_F77=yes
15567 export_dynamic_flag_spec_F77='${wl}-E'
15569 # hardcode_minus_L: Not really in the search PATH,
15570 # but as the default location of the library.
15571 hardcode_minus_L_F77=yes
15576 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15579 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15582 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15585 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15591 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15594 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15597 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15601 if test "$with_gnu_ld" = no; then
15602 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15603 hardcode_libdir_separator_F77=:
15607 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15608 hardcode_direct_F77=no
15609 hardcode_shlibpath_var_F77=no
15612 hardcode_direct_F77=yes
15613 export_dynamic_flag_spec_F77='${wl}-E'
15615 # hardcode_minus_L: Not really in the search PATH,
15616 # but as the default location of the library.
15617 hardcode_minus_L_F77=yes
15623 irix5* | irix6* | nonstopux*)
15624 if test "$GCC" = yes; then
15625 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'
15627 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'
15628 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15630 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15631 hardcode_libdir_separator_F77=:
15632 link_all_deplibs_F77=yes
15635 netbsd* | netbsdelf*-gnu)
15636 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15637 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15639 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15641 hardcode_libdir_flag_spec_F77='-R$libdir'
15642 hardcode_direct_F77=yes
15643 hardcode_shlibpath_var_F77=no
15647 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15648 hardcode_direct_F77=yes
15649 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15650 hardcode_libdir_separator_F77=:
15651 hardcode_shlibpath_var_F77=no
15655 if test -f /usr/libexec/ld.so; then
15656 hardcode_direct_F77=yes
15657 hardcode_shlibpath_var_F77=no
15658 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15659 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15660 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15661 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15662 export_dynamic_flag_spec_F77='${wl}-E'
15665 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15666 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15667 hardcode_libdir_flag_spec_F77='-R$libdir'
15670 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15671 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15681 hardcode_libdir_flag_spec_F77='-L$libdir'
15682 hardcode_minus_L_F77=yes
15683 allow_undefined_flag_F77=unsupported
15684 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'
15685 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15689 if test "$GCC" = yes; then
15690 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15691 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'
15693 allow_undefined_flag_F77=' -expect_unresolved \*'
15694 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'
15696 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15697 hardcode_libdir_separator_F77=:
15700 osf4* | osf5*) # as osf3* with the addition of -msym flag
15701 if test "$GCC" = yes; then
15702 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15703 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'
15704 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15706 allow_undefined_flag_F77=' -expect_unresolved \*'
15707 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'
15708 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~
15709 $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'
15711 # Both c and cxx compiler support -rpath directly
15712 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15714 hardcode_libdir_separator_F77=:
15718 no_undefined_flag_F77=' -z text'
15719 if test "$GCC" = yes; then
15721 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15722 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15723 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15726 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15727 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15728 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15730 hardcode_libdir_flag_spec_F77='-R$libdir'
15731 hardcode_shlibpath_var_F77=no
15733 solaris2.[0-5] | solaris2.[0-5].*) ;;
15735 # The compiler driver will combine and reorder linker options,
15736 # but understands `-z linker_flag'. GCC discards it without `$wl',
15737 # but is careful enough not to reorder.
15738 # Supported since Solaris 2.6 (maybe 2.5.1?)
15739 if test "$GCC" = yes; then
15740 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15742 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15746 link_all_deplibs_F77=yes
15750 if test "x$host_vendor" = xsequent; then
15751 # Use $CC to link under sequent, because it throws in some extra .o
15752 # files that make .init and .fini sections work.
15753 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15755 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15757 hardcode_libdir_flag_spec_F77='-L$libdir'
15758 hardcode_direct_F77=yes
15759 hardcode_minus_L_F77=yes
15760 hardcode_shlibpath_var_F77=no
15764 case $host_vendor in
15766 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15767 hardcode_direct_F77=yes # is this really true???
15770 ## LD is ld it makes a PLAMLIB
15771 ## CC just makes a GrossModule.
15772 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15773 reload_cmds_F77='$CC -r -o $output$reload_objs'
15774 hardcode_direct_F77=no
15777 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15778 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15781 runpath_var='LD_RUN_PATH'
15782 hardcode_shlibpath_var_F77=no
15786 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15787 hardcode_shlibpath_var_F77=no
15788 export_dynamic_flag_spec_F77='-Bexport'
15792 if test -d /usr/nec; then
15793 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15794 hardcode_shlibpath_var_F77=no
15795 runpath_var=LD_RUN_PATH
15796 hardcode_runpath_var=yes
15801 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15802 no_undefined_flag_F77='${wl}-z,text'
15803 archive_cmds_need_lc_F77=no
15804 hardcode_shlibpath_var_F77=no
15805 runpath_var='LD_RUN_PATH'
15807 if test "$GCC" = yes; then
15808 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15809 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15811 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15812 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15816 sysv5* | sco3.2v5* | sco5v6*)
15817 # Note: We can NOT use -z defs as we might desire, because we do not
15818 # link with -lc, and that would cause any symbols used from libc to
15819 # always be unresolved, which means just about no library would
15820 # ever link correctly. If we're not using GNU ld we use -z text
15821 # though, which does catch some bad symbols but isn't as heavy-handed
15823 no_undefined_flag_F77='${wl}-z,text'
15824 allow_undefined_flag_F77='${wl}-z,nodefs'
15825 archive_cmds_need_lc_F77=no
15826 hardcode_shlibpath_var_F77=no
15827 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15828 hardcode_libdir_separator_F77=':'
15829 link_all_deplibs_F77=yes
15830 export_dynamic_flag_spec_F77='${wl}-Bexport'
15831 runpath_var='LD_RUN_PATH'
15833 if test "$GCC" = yes; then
15834 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15835 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15837 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15838 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15843 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15844 hardcode_libdir_flag_spec_F77='-L$libdir'
15845 hardcode_shlibpath_var_F77=no
15854 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15855 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15856 test "$ld_shlibs_F77" = no && can_build_shared=no
15859 # Do we need to explicitly link libc?
15861 case "x$archive_cmds_need_lc_F77" in
15863 # Assume -lc should be added
15864 archive_cmds_need_lc_F77=yes
15866 if test "$enable_shared" = yes && test "$GCC" = yes; then
15867 case $archive_cmds_F77 in
15869 # FIXME: we may have to deal with multi-command sequences.
15872 # Test whether the compiler implicitly links with -lc since on some
15873 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15874 # to ld, don't add -lc before -lgcc.
15875 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15876 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15878 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15881 (eval $ac_compile) 2>&5
15883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884 (exit $ac_status); } 2>conftest.err; then
15887 libobjs=conftest.$ac_objext
15889 wl=$lt_prog_compiler_wl_F77
15890 pic_flag=$lt_prog_compiler_pic_F77
15896 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15897 allow_undefined_flag_F77=
15898 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15899 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15902 (exit $ac_status); }
15904 archive_cmds_need_lc_F77=no
15906 archive_cmds_need_lc_F77=yes
15908 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15910 cat conftest.err 1>&5
15913 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15914 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15921 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15922 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15923 library_names_spec=
15924 libname_spec='lib$name'
15928 postuninstall_cmds=
15932 shlibpath_overrides_runpath=unknown
15934 dynamic_linker="$host_os ld.so"
15935 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15937 need_lib_prefix=unknown
15938 hardcode_into_libs=no
15940 # when you set need_version to no, make sure it does not cause -set_version
15941 # flags to be left without arguments
15942 need_version=unknown
15947 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15948 shlibpath_var=LIBPATH
15950 # AIX 3 has no versioning support, so we append a major version to the name.
15951 soname_spec='${libname}${release}${shared_ext}$major'
15958 hardcode_into_libs=yes
15959 if test "$host_cpu" = ia64; then
15960 # AIX 5 supports IA64
15961 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15962 shlibpath_var=LD_LIBRARY_PATH
15964 # With GCC up to 2.95.x, collect2 would create an import file
15965 # for dependence libraries. The import file would start with
15966 # the line `#! .'. This would cause the generated library to
15967 # depend on `.', always an invalid library. This was fixed in
15968 # development snapshots of GCC prior to 3.0.
15970 aix4 | aix4.[01] | aix4.[01].*)
15971 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15973 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15976 can_build_shared=no
15980 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15981 # soname into executable. Probably we can add versioning support to
15982 # collect2, so additional links can be useful in future.
15983 if test "$aix_use_runtimelinking" = yes; then
15984 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15985 # instead of lib<name>.a to let people know that these are not
15986 # typical AIX shared libraries.
15987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15989 # We preserve .a as extension for shared libraries through AIX4.2
15990 # and later when we are not doing run time linking.
15991 library_names_spec='${libname}${release}.a $libname.a'
15992 soname_spec='${libname}${release}${shared_ext}$major'
15994 shlibpath_var=LIBPATH
15999 library_names_spec='$libname.ixlibrary $libname.a'
16000 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16001 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'
16005 library_names_spec='${libname}${shared_ext}'
16006 dynamic_linker="$host_os ld.so"
16007 shlibpath_var=LIBRARY_PATH
16013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16014 soname_spec='${libname}${release}${shared_ext}$major'
16015 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16016 shlibpath_var=LD_LIBRARY_PATH
16017 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16018 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16019 # the default ld.so.conf also contains /usr/contrib/lib and
16020 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16021 # libtool to hard-code these into programs
16024 cygwin* | mingw* | pw32*)
16025 version_type=windows
16030 case $GCC,$host_os in
16031 yes,cygwin* | yes,mingw* | yes,pw32*)
16032 library_names_spec='$libname.dll.a'
16033 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16034 postinstall_cmds='base_file=`basename \${file}`~
16035 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16036 dldir=$destdir/`dirname \$dlpath`~
16037 test -d \$dldir || mkdir -p \$dldir~
16038 $install_prog $dir/$dlname \$dldir/$dlname~
16039 chmod a+x \$dldir/$dlname'
16040 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16041 dlpath=$dir/\$dldll~
16043 shlibpath_overrides_runpath=yes
16047 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16048 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16049 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16052 # MinGW DLLs use traditional 'lib' prefix
16053 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16054 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16055 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16056 # It is most probably a Windows format PATH printed by
16057 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16058 # path with ; separators, and with drive letters. We can handle the
16059 # drive letters (cygwin fileutils understands them), so leave them,
16060 # especially as we might pass files found there to a mingw objdump,
16061 # which wouldn't understand a cygwinified path. Ahh.
16062 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16064 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16068 # pw32 DLLs use 'pw' prefix rather than 'lib'
16069 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16075 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16078 dynamic_linker='Win32 ld.exe'
16079 # FIXME: first we should search . and the directory the executable is in
16083 darwin* | rhapsody*)
16084 dynamic_linker="$host_os dyld"
16085 version_type=darwin
16088 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16089 soname_spec='${libname}${release}${major}$shared_ext'
16090 shlibpath_overrides_runpath=yes
16091 shlibpath_var=DYLD_LIBRARY_PATH
16092 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16094 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16102 soname_spec='${libname}${release}${shared_ext}$major'
16103 shlibpath_var=LD_LIBRARY_PATH
16110 freebsd* | dragonfly*)
16111 # DragonFly does not have aout. When/if they implement a new
16112 # versioning mechanism, adjust this.
16113 if test -x /usr/bin/objformat; then
16114 objformat=`/usr/bin/objformat`
16117 freebsd[123]*) objformat=aout ;;
16118 *) objformat=elf ;;
16121 version_type=freebsd-$objformat
16122 case $version_type in
16124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16129 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16133 shlibpath_var=LD_LIBRARY_PATH
16136 shlibpath_overrides_runpath=yes
16138 freebsd3.[01]* | freebsdelf3.[01]*)
16139 shlibpath_overrides_runpath=yes
16140 hardcode_into_libs=yes
16142 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16143 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16144 shlibpath_overrides_runpath=no
16145 hardcode_into_libs=yes
16147 *) # from 4.6 on, and DragonFly
16148 shlibpath_overrides_runpath=yes
16149 hardcode_into_libs=yes
16158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16159 soname_spec='${libname}${release}${shared_ext}$major'
16160 shlibpath_var=LD_LIBRARY_PATH
16161 hardcode_into_libs=yes
16164 hpux9* | hpux10* | hpux11*)
16165 # Give a soname corresponding to the major version so that dld.sl refuses to
16166 # link against other versions.
16173 hardcode_into_libs=yes
16174 dynamic_linker="$host_os dld.so"
16175 shlibpath_var=LD_LIBRARY_PATH
16176 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16178 soname_spec='${libname}${release}${shared_ext}$major'
16179 if test "X$HPUX_IA64_MODE" = X32; then
16180 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16182 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16184 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16188 hardcode_into_libs=yes
16189 dynamic_linker="$host_os dld.sl"
16190 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16191 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16193 soname_spec='${libname}${release}${shared_ext}$major'
16194 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16195 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16199 dynamic_linker="$host_os dld.sl"
16200 shlibpath_var=SHLIB_PATH
16201 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16203 soname_spec='${libname}${release}${shared_ext}$major'
16206 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16207 postinstall_cmds='chmod 555 $lib'
16214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16215 soname_spec='${libname}${release}${shared_ext}$major'
16216 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16217 shlibpath_var=LD_LIBRARY_PATH
16218 shlibpath_overrides_runpath=no
16219 hardcode_into_libs=yes
16222 irix5* | irix6* | nonstopux*)
16224 nonstopux*) version_type=nonstopux ;;
16226 if test "$lt_cv_prog_gnu_ld" = yes; then
16234 soname_spec='${libname}${release}${shared_ext}$major'
16235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16237 irix5* | nonstopux*)
16238 libsuff= shlibsuff=
16241 case $LD in # libtool.m4 will add one of these switches to LD
16242 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16243 libsuff= shlibsuff= libmagic=32-bit;;
16244 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16245 libsuff=32 shlibsuff=N32 libmagic=N32;;
16246 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16247 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16248 *) libsuff= shlibsuff= libmagic=never-match;;
16252 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16253 shlibpath_overrides_runpath=no
16254 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16255 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16256 hardcode_into_libs=yes
16259 # No shared lib support for Linux oldld, aout, or coff.
16260 linux*oldld* | linux*aout* | linux*coff*)
16264 # This must be Linux ELF.
16265 linux* | k*bsd*-gnu)
16269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16270 soname_spec='${libname}${release}${shared_ext}$major'
16271 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16272 shlibpath_var=LD_LIBRARY_PATH
16273 shlibpath_overrides_runpath=no
16274 # This implies no fast_install, which is unacceptable.
16275 # Some rework will be needed to allow for fast_install
16276 # before this can be enabled.
16277 hardcode_into_libs=yes
16279 # Append ld.so.conf contents to the search path
16280 if test -f /etc/ld.so.conf; then
16281 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16282 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16285 # We used to test for /lib/ld.so.1 and disable shared libraries on
16286 # powerpc, because MkLinux only supported shared libraries with the
16287 # GNU dynamic linker. Since this was broken with cross compilers,
16288 # most powerpc-linux boxes support dynamic linking these days and
16289 # people can always --disable-shared, the test was removed, and we
16290 # assume the GNU/Linux dynamic linker is in use.
16291 dynamic_linker='GNU/Linux ld.so'
16298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16299 soname_spec='${libname}${release}${shared_ext}$major'
16300 shlibpath_var=LD_LIBRARY_PATH
16301 shlibpath_overrides_runpath=no
16302 hardcode_into_libs=yes
16303 dynamic_linker='NetBSD ld.elf_so'
16310 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16312 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16313 dynamic_linker='NetBSD (a.out) ld.so'
16315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16316 soname_spec='${libname}${release}${shared_ext}$major'
16317 dynamic_linker='NetBSD ld.elf_so'
16319 shlibpath_var=LD_LIBRARY_PATH
16320 shlibpath_overrides_runpath=yes
16321 hardcode_into_libs=yes
16326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16327 shlibpath_var=LD_LIBRARY_PATH
16328 shlibpath_overrides_runpath=yes
16335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16336 soname_spec='${libname}${release}${shared_ext}$major'
16337 shlibpath_var=LD_LIBRARY_PATH
16338 shlibpath_overrides_runpath=yes
16343 sys_lib_dlsearch_path_spec="/usr/lib"
16345 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16347 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16348 *) need_version=no ;;
16350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16351 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16352 shlibpath_var=LD_LIBRARY_PATH
16353 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16355 openbsd2.[89] | openbsd2.[89].*)
16356 shlibpath_overrides_runpath=no
16359 shlibpath_overrides_runpath=yes
16363 shlibpath_overrides_runpath=yes
16368 libname_spec='$name'
16371 library_names_spec='$libname${shared_ext} $libname.a'
16372 dynamic_linker='OS/2 ld.exe'
16373 shlibpath_var=LIBPATH
16376 osf3* | osf4* | osf5*)
16380 soname_spec='${libname}${release}${shared_ext}$major'
16381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16382 shlibpath_var=LD_LIBRARY_PATH
16383 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16384 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16396 soname_spec='${libname}${release}${shared_ext}$major'
16397 shlibpath_var=LD_LIBRARY_PATH
16398 shlibpath_overrides_runpath=yes
16399 hardcode_into_libs=yes
16400 # ldd complains unless libraries are executable
16401 postinstall_cmds='chmod +x $lib'
16406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16407 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16408 shlibpath_var=LD_LIBRARY_PATH
16409 shlibpath_overrides_runpath=yes
16410 if test "$with_gnu_ld" = yes; then
16418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16419 soname_spec='${libname}${release}${shared_ext}$major'
16420 shlibpath_var=LD_LIBRARY_PATH
16421 case $host_vendor in
16423 shlibpath_overrides_runpath=no
16425 export_dynamic_flag_spec='${wl}-Blargedynsym'
16426 runpath_var=LD_RUN_PATH
16434 shlibpath_overrides_runpath=no
16435 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16441 if test -d /usr/nec ;then
16443 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16444 soname_spec='$libname${shared_ext}.$major'
16445 shlibpath_var=LD_LIBRARY_PATH
16449 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16450 version_type=freebsd-elf
16453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16454 soname_spec='${libname}${release}${shared_ext}$major'
16455 shlibpath_var=LD_LIBRARY_PATH
16456 hardcode_into_libs=yes
16457 if test "$with_gnu_ld" = yes; then
16458 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16459 shlibpath_overrides_runpath=no
16461 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16462 shlibpath_overrides_runpath=yes
16465 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16469 sys_lib_dlsearch_path_spec='/usr/lib'
16474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16475 soname_spec='${libname}${release}${shared_ext}$major'
16476 shlibpath_var=LD_LIBRARY_PATH
16483 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16484 echo "${ECHO_T}$dynamic_linker" >&6; }
16485 test "$dynamic_linker" = no && can_build_shared=no
16487 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16488 echo $ECHO_N "(cached) $ECHO_C" >&6
16490 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16493 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16494 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16495 echo $ECHO_N "(cached) $ECHO_C" >&6
16497 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16500 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16502 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16503 if test "$GCC" = yes; then
16504 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16507 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16508 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16509 hardcode_action_F77=
16510 if test -n "$hardcode_libdir_flag_spec_F77" || \
16511 test -n "$runpath_var_F77" || \
16512 test "X$hardcode_automatic_F77" = "Xyes" ; then
16514 # We can hardcode non-existant directories.
16515 if test "$hardcode_direct_F77" != no &&
16516 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16517 # have to relink, otherwise we might link with an installed library
16518 # when we should be linking with a yet-to-be-installed one
16519 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16520 test "$hardcode_minus_L_F77" != no; then
16521 # Linking always hardcodes the temporary library directory.
16522 hardcode_action_F77=relink
16524 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16525 hardcode_action_F77=immediate
16528 # We cannot hardcode anything, or else we can only hardcode existing
16530 hardcode_action_F77=unsupported
16532 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16533 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16535 if test "$hardcode_action_F77" = relink; then
16536 # Fast installation is not supported
16537 enable_fast_install=no
16538 elif test "$shlibpath_overrides_runpath" = yes ||
16539 test "$enable_shared" = no; then
16540 # Fast installation is not necessary
16541 enable_fast_install=needless
16545 # The else clause should only fire when bootstrapping the
16546 # libtool distribution, otherwise you forgot to ship ltmain.sh
16547 # with your package, and you will get complaints that there are
16548 # no rules to generate ltmain.sh.
16549 if test -f "$ltmain"; then
16550 # See if we are running on zsh, and set the options which allow our commands through
16551 # without removal of \ escapes.
16552 if test -n "${ZSH_VERSION+set}" ; then
16553 setopt NO_GLOB_SUBST
16555 # Now quote all the things that may contain metacharacters while being
16556 # careful not to overquote the AC_SUBSTed values. We take copies of the
16557 # variables and quote the copies for generation of the libtool script.
16558 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16560 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16561 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16562 deplibs_check_method reload_flag reload_cmds need_locks \
16563 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16564 lt_cv_sys_global_symbol_to_c_name_address \
16565 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16566 old_postinstall_cmds old_postuninstall_cmds \
16570 lt_prog_compiler_wl_F77 \
16571 lt_prog_compiler_pic_F77 \
16572 lt_prog_compiler_static_F77 \
16573 lt_prog_compiler_no_builtin_flag_F77 \
16574 export_dynamic_flag_spec_F77 \
16575 thread_safe_flag_spec_F77 \
16576 whole_archive_flag_spec_F77 \
16577 enable_shared_with_static_runtimes_F77 \
16578 old_archive_cmds_F77 \
16579 old_archive_from_new_cmds_F77 \
16580 predep_objects_F77 \
16581 postdep_objects_F77 \
16584 compiler_lib_search_path_F77 \
16585 compiler_lib_search_dirs_F77 \
16587 archive_expsym_cmds_F77 \
16588 postinstall_cmds_F77 \
16589 postuninstall_cmds_F77 \
16590 old_archive_from_expsyms_cmds_F77 \
16591 allow_undefined_flag_F77 \
16592 no_undefined_flag_F77 \
16593 export_symbols_cmds_F77 \
16594 hardcode_libdir_flag_spec_F77 \
16595 hardcode_libdir_flag_spec_ld_F77 \
16596 hardcode_libdir_separator_F77 \
16597 hardcode_automatic_F77 \
16599 module_expsym_cmds_F77 \
16600 lt_cv_prog_compiler_c_o_F77 \
16601 fix_srcfile_path_F77 \
16602 exclude_expsyms_F77 \
16603 include_expsyms_F77; do
16606 old_archive_cmds_F77 | \
16607 old_archive_from_new_cmds_F77 | \
16608 archive_cmds_F77 | \
16609 archive_expsym_cmds_F77 | \
16610 module_cmds_F77 | \
16611 module_expsym_cmds_F77 | \
16612 old_archive_from_expsyms_cmds_F77 | \
16613 export_symbols_cmds_F77 | \
16614 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16615 postinstall_cmds | postuninstall_cmds | \
16616 old_postinstall_cmds | old_postuninstall_cmds | \
16617 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16618 # Double-quote double-evaled strings.
16619 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16622 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16628 *'\$0 --fallback-echo"')
16629 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16635 cat <<__EOF__ >> "$cfgfile"
16636 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16638 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16640 # Shell to use when invoking shell scripts.
16643 # Whether or not to build shared libraries.
16644 build_libtool_libs=$enable_shared
16646 # Whether or not to build static libraries.
16647 build_old_libs=$enable_static
16649 # Whether or not to add -lc for building shared libraries.
16650 build_libtool_need_lc=$archive_cmds_need_lc_F77
16652 # Whether or not to disallow shared libs when runtime libs are static
16653 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16655 # Whether or not to optimize for fast installation.
16656 fast_install=$enable_fast_install
16659 host_alias=$host_alias
16663 # The build system.
16664 build_alias=$build_alias
16668 # An echo program that does not interpret backslashes.
16673 AR_FLAGS=$lt_AR_FLAGS
16678 # LTCC compiler flags.
16679 LTCFLAGS=$lt_LTCFLAGS
16681 # A language-specific compiler.
16682 CC=$lt_compiler_F77
16684 # Is the compiler the GNU C compiler?
16690 # The linker used to build libraries.
16693 # Whether we need hard or soft links.
16696 # A BSD-compatible nm program.
16699 # A symbol stripping program
16702 # Used to examine libraries when file_magic_cmd begins "file"
16703 MAGIC_CMD=$MAGIC_CMD
16705 # Used on cygwin: DLL creation program.
16708 # Used on cygwin: object dumper.
16711 # Used on cygwin: assembler.
16714 # The name of the directory that contains temporary libtool files.
16717 # How to create reloadable object files.
16718 reload_flag=$lt_reload_flag
16719 reload_cmds=$lt_reload_cmds
16721 # How to pass a linker flag through the compiler.
16722 wl=$lt_lt_prog_compiler_wl_F77
16724 # Object file suffix (normally "o").
16725 objext="$ac_objext"
16727 # Old archive suffix (normally "a").
16730 # Shared library suffix (normally ".so").
16731 shrext_cmds='$shrext_cmds'
16733 # Executable file suffix (normally "").
16736 # Additional compiler flags for building library objects.
16737 pic_flag=$lt_lt_prog_compiler_pic_F77
16740 # What is the maximum length of a command?
16741 max_cmd_len=$lt_cv_sys_max_cmd_len
16743 # Does compiler simultaneously support -c and -o options?
16744 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16746 # Must we lock files when doing compilation?
16747 need_locks=$lt_need_locks
16749 # Do we need the lib prefix for modules?
16750 need_lib_prefix=$need_lib_prefix
16752 # Do we need a version for libraries?
16753 need_version=$need_version
16755 # Whether dlopen is supported.
16756 dlopen_support=$enable_dlopen
16758 # Whether dlopen of programs is supported.
16759 dlopen_self=$enable_dlopen_self
16761 # Whether dlopen of statically linked programs is supported.
16762 dlopen_self_static=$enable_dlopen_self_static
16764 # Compiler flag to prevent dynamic linking.
16765 link_static_flag=$lt_lt_prog_compiler_static_F77
16767 # Compiler flag to turn off builtin functions.
16768 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16770 # Compiler flag to allow reflexive dlopens.
16771 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16773 # Compiler flag to generate shared objects directly from archives.
16774 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16776 # Compiler flag to generate thread-safe objects.
16777 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16779 # Library versioning type.
16780 version_type=$version_type
16782 # Format of library name prefix.
16783 libname_spec=$lt_libname_spec
16785 # List of archive names. First name is the real one, the rest are links.
16786 # The last name is the one that the linker finds with -lNAME.
16787 library_names_spec=$lt_library_names_spec
16789 # The coded name of the library, if different from the real name.
16790 soname_spec=$lt_soname_spec
16792 # Commands used to build and install an old-style archive.
16794 old_archive_cmds=$lt_old_archive_cmds_F77
16795 old_postinstall_cmds=$lt_old_postinstall_cmds
16796 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16798 # Create an old-style archive from a shared archive.
16799 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16801 # Create a temporary old-style archive to link instead of a shared archive.
16802 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16804 # Commands used to build and install a shared archive.
16805 archive_cmds=$lt_archive_cmds_F77
16806 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16807 postinstall_cmds=$lt_postinstall_cmds
16808 postuninstall_cmds=$lt_postuninstall_cmds
16810 # Commands used to build a loadable module (assumed same as above if empty)
16811 module_cmds=$lt_module_cmds_F77
16812 module_expsym_cmds=$lt_module_expsym_cmds_F77
16814 # Commands to strip libraries.
16815 old_striplib=$lt_old_striplib
16816 striplib=$lt_striplib
16818 # Dependencies to place before the objects being linked to create a
16820 predep_objects=$lt_predep_objects_F77
16822 # Dependencies to place after the objects being linked to create a
16824 postdep_objects=$lt_postdep_objects_F77
16826 # Dependencies to place before the objects being linked to create a
16828 predeps=$lt_predeps_F77
16830 # Dependencies to place after the objects being linked to create a
16832 postdeps=$lt_postdeps_F77
16834 # The directories searched by this compiler when creating a shared
16836 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16838 # The library search path used internally by the compiler when linking
16839 # a shared library.
16840 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16842 # Method to check whether dependent libraries are shared objects.
16843 deplibs_check_method=$lt_deplibs_check_method
16845 # Command to use when deplibs_check_method == file_magic.
16846 file_magic_cmd=$lt_file_magic_cmd
16848 # Flag that allows shared libraries with undefined symbols to be built.
16849 allow_undefined_flag=$lt_allow_undefined_flag_F77
16851 # Flag that forces no undefined symbols.
16852 no_undefined_flag=$lt_no_undefined_flag_F77
16854 # Commands used to finish a libtool library installation in a directory.
16855 finish_cmds=$lt_finish_cmds
16857 # Same as above, but a single script fragment to be evaled but not shown.
16858 finish_eval=$lt_finish_eval
16860 # Take the output of nm and produce a listing of raw symbols and C names.
16861 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16863 # Transform the output of nm in a proper C declaration
16864 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16866 # Transform the output of nm in a C name address pair
16867 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16869 # This is the shared library runtime path variable.
16870 runpath_var=$runpath_var
16872 # This is the shared library path variable.
16873 shlibpath_var=$shlibpath_var
16875 # Is shlibpath searched before the hard-coded library search path?
16876 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16878 # How to hardcode a shared library path into an executable.
16879 hardcode_action=$hardcode_action_F77
16881 # Whether we should hardcode library paths into libraries.
16882 hardcode_into_libs=$hardcode_into_libs
16884 # Flag to hardcode \$libdir into a binary during linking.
16885 # This must work even if \$libdir does not exist.
16886 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16888 # If ld is used when linking, flag to hardcode \$libdir into
16889 # a binary during linking. This must work even if \$libdir does
16891 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16893 # Whether we need a single -rpath flag with a separated argument.
16894 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16896 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16897 # resulting binary.
16898 hardcode_direct=$hardcode_direct_F77
16900 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16901 # resulting binary.
16902 hardcode_minus_L=$hardcode_minus_L_F77
16904 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16905 # the resulting binary.
16906 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16908 # Set to yes if building a shared library automatically hardcodes DIR into the library
16909 # and all subsequent libraries and executables linked against it.
16910 hardcode_automatic=$hardcode_automatic_F77
16912 # Variables whose values should be saved in libtool wrapper scripts and
16913 # restored at relink time.
16914 variables_saved_for_relink="$variables_saved_for_relink"
16916 # Whether libtool must link a program against all its dependency libraries.
16917 link_all_deplibs=$link_all_deplibs_F77
16919 # Compile-time system search path for libraries
16920 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16922 # Run-time system search path for libraries
16923 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16925 # Fix the shell variable \$srcfile for the compiler.
16926 fix_srcfile_path=$lt_fix_srcfile_path
16928 # Set to yes if exported symbols are required.
16929 always_export_symbols=$always_export_symbols_F77
16931 # The commands to list exported symbols.
16932 export_symbols_cmds=$lt_export_symbols_cmds_F77
16934 # The commands to extract the exported symbol list from a shared archive.
16935 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16937 # Symbols that should not be listed in the preloaded symbols.
16938 exclude_expsyms=$lt_exclude_expsyms_F77
16940 # Symbols that must always be exported.
16941 include_expsyms=$lt_include_expsyms_F77
16943 # ### END LIBTOOL TAG CONFIG: $tagname
16949 # If there is no Makefile yet, we rely on a make rule to execute
16950 # `config.status --recheck' to rerun these tests and create the
16951 # libtool script then.
16952 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16953 if test -f "$ltmain_in"; then
16954 test -f Makefile && make "$ltmain"
16960 ac_cpp='$CPP $CPPFLAGS'
16961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16973 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16976 # Source file extension for Java test sources.
16979 # Object file extension for compiled Java test sources.
16983 # Code to be used in simple compile tests
16984 lt_simple_compile_test_code="class foo {}"
16986 # Code to be used in simple link tests
16987 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16989 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16991 # If no C compiler was specified, use CC.
16994 # If no C compiler flags were specified, use CFLAGS.
16995 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16997 # Allow CC to be a program name with arguments.
17001 # save warnings/boilerplate of simple test code
17002 ac_outfile=conftest.$ac_objext
17003 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17004 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17005 _lt_compiler_boilerplate=`cat conftest.err`
17008 ac_outfile=conftest.$ac_objext
17009 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17010 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17011 _lt_linker_boilerplate=`cat conftest.err`
17015 # Allow CC to be a program name with arguments.
17020 for cc_temp in $compiler""; do
17022 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17023 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17028 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17031 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17032 archive_cmds_need_lc_GCJ=no
17034 old_archive_cmds_GCJ=$old_archive_cmds
17037 lt_prog_compiler_no_builtin_flag_GCJ=
17039 if test "$GCC" = yes; then
17040 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17043 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17044 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17045 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17046 echo $ECHO_N "(cached) $ECHO_C" >&6
17048 lt_cv_prog_compiler_rtti_exceptions=no
17049 ac_outfile=conftest.$ac_objext
17050 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17051 lt_compiler_flag="-fno-rtti -fno-exceptions"
17052 # Insert the option either (1) after the last *FLAGS variable, or
17053 # (2) before a word containing "conftest.", or (3) at the end.
17054 # Note that $ac_compile itself does not contain backslashes and begins
17055 # with a dollar sign (not a hyphen), so the echo should work correctly.
17056 # The option is referenced via a variable to avoid confusing sed.
17057 lt_compile=`echo "$ac_compile" | $SED \
17058 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17059 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17060 -e 's:$: $lt_compiler_flag:'`
17061 (eval echo "\"\$as_me:17061: $lt_compile\"" >&5)
17062 (eval "$lt_compile" 2>conftest.err)
17064 cat conftest.err >&5
17065 echo "$as_me:17065: \$? = $ac_status" >&5
17066 if (exit $ac_status) && test -s "$ac_outfile"; then
17067 # The compiler can only warn and ignore the option if not recognized
17068 # So say no if there are warnings other than the usual output.
17069 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17070 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17071 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17072 lt_cv_prog_compiler_rtti_exceptions=yes
17078 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17079 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17081 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17082 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17089 lt_prog_compiler_wl_GCJ=
17090 lt_prog_compiler_pic_GCJ=
17091 lt_prog_compiler_static_GCJ=
17093 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17094 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17096 if test "$GCC" = yes; then
17097 lt_prog_compiler_wl_GCJ='-Wl,'
17098 lt_prog_compiler_static_GCJ='-static'
17102 # All AIX code is PIC.
17103 if test "$host_cpu" = ia64; then
17104 # AIX 5 now supports IA64 processor
17105 lt_prog_compiler_static_GCJ='-Bstatic'
17110 # FIXME: we need at least 68020 code to build shared libraries, but
17111 # adding the `-m68020' flag to GCC prevents building anything better,
17113 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17116 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17117 # PIC is the default for these OSes.
17120 mingw* | cygwin* | pw32* | os2*)
17121 # This hack is so that the source file can tell whether it is being
17122 # built for inclusion in a dll (and should export symbols for example).
17123 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17124 # (--disable-auto-import) libraries
17128 darwin* | rhapsody*)
17129 # PIC is the default on this platform
17130 # Common symbols not allowed in MH_DYLIB files
17131 lt_prog_compiler_pic_GCJ='-fno-common'
17135 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17136 # Instead, we relocate shared libraries at runtime.
17140 # Just because we use GCC doesn't mean we suddenly get shared libraries
17141 # on systems that don't support them.
17142 lt_prog_compiler_can_build_shared_GCJ=no
17147 if test -d /usr/nec; then
17148 lt_prog_compiler_pic_GCJ=-Kconform_pic
17153 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17154 # not for PA HP-UX.
17160 lt_prog_compiler_pic_GCJ='-fPIC'
17166 lt_prog_compiler_pic_GCJ='-fPIC'
17170 # PORTME Check for flag to pass linker flags through the system compiler.
17173 lt_prog_compiler_wl_GCJ='-Wl,'
17174 if test "$host_cpu" = ia64; then
17175 # AIX 5 now supports IA64 processor
17176 lt_prog_compiler_static_GCJ='-Bstatic'
17178 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17182 # PIC is the default on this platform
17183 # Common symbols not allowed in MH_DYLIB files
17184 case $cc_basename in
17186 lt_prog_compiler_pic_GCJ='-qnocommon'
17187 lt_prog_compiler_wl_GCJ='-Wl,'
17192 mingw* | cygwin* | pw32* | os2*)
17193 # This hack is so that the source file can tell whether it is being
17194 # built for inclusion in a dll (and should export symbols for example).
17198 hpux9* | hpux10* | hpux11*)
17199 lt_prog_compiler_wl_GCJ='-Wl,'
17200 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17201 # not for PA HP-UX.
17207 lt_prog_compiler_pic_GCJ='+Z'
17210 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17211 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17214 irix5* | irix6* | nonstopux*)
17215 lt_prog_compiler_wl_GCJ='-Wl,'
17216 # PIC (with -KPIC) is the default.
17217 lt_prog_compiler_static_GCJ='-non_shared'
17221 lt_prog_compiler_pic_GCJ='-KPIC'
17222 lt_prog_compiler_static_GCJ='-Bstatic'
17225 linux* | k*bsd*-gnu)
17226 case $cc_basename in
17228 lt_prog_compiler_wl_GCJ='-Wl,'
17229 lt_prog_compiler_pic_GCJ='-KPIC'
17230 lt_prog_compiler_static_GCJ='-static'
17232 pgcc* | pgf77* | pgf90* | pgf95*)
17233 # Portland Group compilers (*not* the Pentium gcc compiler,
17234 # which looks to be a dead project)
17235 lt_prog_compiler_wl_GCJ='-Wl,'
17236 lt_prog_compiler_pic_GCJ='-fpic'
17237 lt_prog_compiler_static_GCJ='-Bstatic'
17240 lt_prog_compiler_wl_GCJ='-Wl,'
17241 # All Alpha code is PIC.
17242 lt_prog_compiler_static_GCJ='-non_shared'
17245 case `$CC -V 2>&1 | sed 5q` in
17248 lt_prog_compiler_pic_GCJ='-KPIC'
17249 lt_prog_compiler_static_GCJ='-Bstatic'
17250 lt_prog_compiler_wl_GCJ='-Wl,'
17253 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17254 lt_prog_compiler_pic_GCJ='-KPIC'
17255 lt_prog_compiler_static_GCJ='-Bstatic'
17256 lt_prog_compiler_wl_GCJ=''
17263 osf3* | osf4* | osf5*)
17264 lt_prog_compiler_wl_GCJ='-Wl,'
17265 # All OSF/1 code is PIC.
17266 lt_prog_compiler_static_GCJ='-non_shared'
17270 lt_prog_compiler_static_GCJ='-non_shared'
17274 lt_prog_compiler_pic_GCJ='-KPIC'
17275 lt_prog_compiler_static_GCJ='-Bstatic'
17276 case $cc_basename in
17277 f77* | f90* | f95*)
17278 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17280 lt_prog_compiler_wl_GCJ='-Wl,';;
17285 lt_prog_compiler_wl_GCJ='-Qoption ld '
17286 lt_prog_compiler_pic_GCJ='-PIC'
17287 lt_prog_compiler_static_GCJ='-Bstatic'
17290 sysv4 | sysv4.2uw2* | sysv4.3*)
17291 lt_prog_compiler_wl_GCJ='-Wl,'
17292 lt_prog_compiler_pic_GCJ='-KPIC'
17293 lt_prog_compiler_static_GCJ='-Bstatic'
17297 if test -d /usr/nec ;then
17298 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17299 lt_prog_compiler_static_GCJ='-Bstatic'
17303 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17304 lt_prog_compiler_wl_GCJ='-Wl,'
17305 lt_prog_compiler_pic_GCJ='-KPIC'
17306 lt_prog_compiler_static_GCJ='-Bstatic'
17310 lt_prog_compiler_wl_GCJ='-Wl,'
17311 lt_prog_compiler_can_build_shared_GCJ=no
17315 lt_prog_compiler_pic_GCJ='-pic'
17316 lt_prog_compiler_static_GCJ='-Bstatic'
17320 lt_prog_compiler_can_build_shared_GCJ=no
17325 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17326 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17329 # Check to make sure the PIC flag actually works.
17331 if test -n "$lt_prog_compiler_pic_GCJ"; then
17333 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17334 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17335 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17336 echo $ECHO_N "(cached) $ECHO_C" >&6
17338 lt_cv_prog_compiler_pic_works_GCJ=no
17339 ac_outfile=conftest.$ac_objext
17340 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17341 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17342 # Insert the option either (1) after the last *FLAGS variable, or
17343 # (2) before a word containing "conftest.", or (3) at the end.
17344 # Note that $ac_compile itself does not contain backslashes and begins
17345 # with a dollar sign (not a hyphen), so the echo should work correctly.
17346 # The option is referenced via a variable to avoid confusing sed.
17347 lt_compile=`echo "$ac_compile" | $SED \
17348 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17349 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17350 -e 's:$: $lt_compiler_flag:'`
17351 (eval echo "\"\$as_me:17351: $lt_compile\"" >&5)
17352 (eval "$lt_compile" 2>conftest.err)
17354 cat conftest.err >&5
17355 echo "$as_me:17355: \$? = $ac_status" >&5
17356 if (exit $ac_status) && test -s "$ac_outfile"; then
17357 # The compiler can only warn and ignore the option if not recognized
17358 # So say no if there are warnings other than the usual output.
17359 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17360 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17361 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17362 lt_cv_prog_compiler_pic_works_GCJ=yes
17368 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17369 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17371 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17372 case $lt_prog_compiler_pic_GCJ in
17374 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17377 lt_prog_compiler_pic_GCJ=
17378 lt_prog_compiler_can_build_shared_GCJ=no
17383 # For platforms which do not support PIC, -DPIC is meaningless:
17385 lt_prog_compiler_pic_GCJ=
17388 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17393 # Check to make sure the static flag actually works.
17395 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17396 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17397 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17398 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17399 echo $ECHO_N "(cached) $ECHO_C" >&6
17401 lt_cv_prog_compiler_static_works_GCJ=no
17402 save_LDFLAGS="$LDFLAGS"
17403 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17404 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17405 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17406 # The linker can only warn and ignore the option if not recognized
17407 # So say no if there are warnings
17408 if test -s conftest.err; then
17409 # Append any errors to the config.log.
17410 cat conftest.err 1>&5
17411 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17412 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17413 if diff conftest.exp conftest.er2 >/dev/null; then
17414 lt_cv_prog_compiler_static_works_GCJ=yes
17417 lt_cv_prog_compiler_static_works_GCJ=yes
17421 LDFLAGS="$save_LDFLAGS"
17424 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17425 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17427 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17430 lt_prog_compiler_static_GCJ=
17434 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17435 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17436 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17437 echo $ECHO_N "(cached) $ECHO_C" >&6
17439 lt_cv_prog_compiler_c_o_GCJ=no
17440 $rm -r conftest 2>/dev/null
17444 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17446 lt_compiler_flag="-o out/conftest2.$ac_objext"
17447 # Insert the option either (1) after the last *FLAGS variable, or
17448 # (2) before a word containing "conftest.", or (3) at the end.
17449 # Note that $ac_compile itself does not contain backslashes and begins
17450 # with a dollar sign (not a hyphen), so the echo should work correctly.
17451 lt_compile=`echo "$ac_compile" | $SED \
17452 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17453 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17454 -e 's:$: $lt_compiler_flag:'`
17455 (eval echo "\"\$as_me:17455: $lt_compile\"" >&5)
17456 (eval "$lt_compile" 2>out/conftest.err)
17458 cat out/conftest.err >&5
17459 echo "$as_me:17459: \$? = $ac_status" >&5
17460 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17462 # The compiler can only warn and ignore the option if not recognized
17463 # So say no if there are warnings
17464 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17465 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17466 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17467 lt_cv_prog_compiler_c_o_GCJ=yes
17472 # SGI C++ compiler will create directory out/ii_files/ for
17473 # template instantiation
17474 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17475 $rm out/* && rmdir out
17481 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17482 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17485 hard_links="nottested"
17486 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17487 # do not overwrite the value of need_locks provided by the user
17488 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17489 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17492 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17494 ln conftest.a conftest.b 2>&5 || hard_links=no
17495 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17496 { echo "$as_me:$LINENO: result: $hard_links" >&5
17497 echo "${ECHO_T}$hard_links" >&6; }
17498 if test "$hard_links" = no; then
17499 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17500 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17507 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17508 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17511 allow_undefined_flag_GCJ=
17512 enable_shared_with_static_runtimes_GCJ=no
17514 archive_expsym_cmds_GCJ=
17515 old_archive_From_new_cmds_GCJ=
17516 old_archive_from_expsyms_cmds_GCJ=
17517 export_dynamic_flag_spec_GCJ=
17518 whole_archive_flag_spec_GCJ=
17519 thread_safe_flag_spec_GCJ=
17520 hardcode_libdir_flag_spec_GCJ=
17521 hardcode_libdir_flag_spec_ld_GCJ=
17522 hardcode_libdir_separator_GCJ=
17523 hardcode_direct_GCJ=no
17524 hardcode_minus_L_GCJ=no
17525 hardcode_shlibpath_var_GCJ=unsupported
17526 link_all_deplibs_GCJ=unknown
17527 hardcode_automatic_GCJ=no
17529 module_expsym_cmds_GCJ=
17530 always_export_symbols_GCJ=no
17531 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17532 # include_expsyms should be a list of space-separated symbols to be *always*
17533 # included in the symbol list
17534 include_expsyms_GCJ=
17535 # exclude_expsyms can be an extended regexp of symbols to exclude
17536 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17537 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17538 # as well as any symbol that contains `d'.
17539 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17540 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17541 # platforms (ab)use it in PIC code, but their linkers get confused if
17542 # the symbol is explicitly referenced. Since portable code cannot
17543 # rely on this symbol name, it's probably fine to never include it in
17544 # preloaded symbol tables.
17545 # Exclude shared library initialization/finalization symbols.
17546 extract_expsyms_cmds=
17547 # Just being paranoid about ensuring that cc_basename is set.
17548 for cc_temp in $compiler""; do
17550 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17551 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17556 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17559 cygwin* | mingw* | pw32*)
17560 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17561 # When not using gcc, we currently assume that we are using
17562 # Microsoft Visual C++.
17563 if test "$GCC" != yes; then
17568 # we just hope/assume this is gcc and not c89 (= MSVC++)
17577 if test "$with_gnu_ld" = yes; then
17578 # If archive_cmds runs LD, not CC, wlarc should be empty
17581 # Set some defaults for GNU ld with shared library support. These
17582 # are reset later if shared libraries are not supported. Putting them
17583 # here allows them to be overridden if necessary.
17584 runpath_var=LD_RUN_PATH
17585 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17586 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17587 # ancient GNU ld didn't support --whole-archive et. al.
17588 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17589 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17591 whole_archive_flag_spec_GCJ=
17593 supports_anon_versioning=no
17594 case `$LD -v 2>/dev/null` in
17595 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17596 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17597 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17598 *\ 2.11.*) ;; # other 2.11 versions
17599 *) supports_anon_versioning=yes ;;
17602 # See if GNU ld supports shared libraries.
17605 # On AIX/PPC, the GNU linker is very broken
17606 if test "$host_cpu" != ia64; then
17610 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17611 *** to be unable to reliably create shared libraries on AIX.
17612 *** Therefore, libtool is disabling shared libraries support. If you
17613 *** really care for shared libraries, you may want to modify your PATH
17614 *** so that a non-GNU linker is found, and then restart.
17621 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)'
17622 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17623 hardcode_minus_L_GCJ=yes
17625 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17626 # that the semantics of dynamic libraries on AmigaOS, at least up
17627 # to version 4, is to share data among multiple programs linked
17628 # with the same dynamic library. Since this doesn't match the
17629 # behavior of shared libraries on other platforms, we can't use
17635 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17636 allow_undefined_flag_GCJ=unsupported
17637 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17638 # support --undefined. This deserves some investigation. FIXME
17639 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17645 cygwin* | mingw* | pw32*)
17646 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17647 # as there is no search path for DLLs.
17648 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17649 allow_undefined_flag_GCJ=unsupported
17650 always_export_symbols_GCJ=no
17651 enable_shared_with_static_runtimes_GCJ=yes
17652 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17654 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17655 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17656 # If the export-symbols file already is a .def file (1st line
17657 # is EXPORTS), use it as is; otherwise, prepend...
17658 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17659 cp $export_symbols $output_objdir/$soname.def;
17661 echo EXPORTS > $output_objdir/$soname.def;
17662 cat $export_symbols >> $output_objdir/$soname.def;
17664 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17671 hardcode_direct_GCJ=no
17672 hardcode_shlibpath_var_GCJ=no
17673 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17674 export_dynamic_flag_spec_GCJ='${wl}-E'
17675 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17676 # Instead, shared libraries are loaded at an image base (0x10000000 by
17677 # default) and relocated if they conflict, which is a slow very memory
17678 # consuming and fragmenting process. To avoid this, we pick a random,
17679 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17680 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17681 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'
17682 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'
17685 gnu* | linux* | k*bsd*-gnu)
17686 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17688 case $cc_basename,$host_cpu in
17689 pgcc*) # Portland Group C compiler
17690 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'
17691 tmp_addflag=' $pic_flag'
17693 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17694 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'
17695 tmp_addflag=' $pic_flag -Mnomain' ;;
17696 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17697 tmp_addflag=' -i_dynamic' ;;
17698 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17699 tmp_addflag=' -i_dynamic -nofor_main' ;;
17700 ifc* | ifort*) # Intel Fortran compiler
17701 tmp_addflag=' -nofor_main' ;;
17703 case `$CC -V 2>&1 | sed 5q` in
17704 *Sun\ C*) # Sun C 5.9
17705 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17706 tmp_sharedflag='-G' ;;
17707 *Sun\ F*) # Sun Fortran 8.3
17708 tmp_sharedflag='-G' ;;
17710 tmp_sharedflag='-shared' ;;
17712 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17714 if test $supports_anon_versioning = yes; then
17715 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17716 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17717 $echo "local: *; };" >> $output_objdir/$libname.ver~
17718 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17720 link_all_deplibs_GCJ=no
17726 netbsd* | netbsdelf*-gnu)
17727 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17728 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17731 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17732 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17737 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17741 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17742 *** create shared libraries on Solaris systems. Therefore, libtool
17743 *** is disabling shared libraries support. We urge you to upgrade GNU
17744 *** binutils to release 2.9.1 or newer. Another option is to modify
17745 *** your PATH or compiler configuration so that the native linker is
17746 *** used, and then restart.
17749 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17750 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17751 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17757 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17758 case `$LD -v 2>&1` in
17759 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17763 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17764 *** reliably create shared libraries on SCO systems. Therefore, libtool
17765 *** is disabling shared libraries support. We urge you to upgrade GNU
17766 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17767 *** your PATH or compiler configuration so that the native linker is
17768 *** used, and then restart.
17773 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17774 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17775 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17776 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17785 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17787 hardcode_direct_GCJ=yes
17788 hardcode_shlibpath_var_GCJ=no
17792 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17793 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17794 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17801 if test "$ld_shlibs_GCJ" = no; then
17803 hardcode_libdir_flag_spec_GCJ=
17804 export_dynamic_flag_spec_GCJ=
17805 whole_archive_flag_spec_GCJ=
17808 # PORTME fill in a description of your system's linker (not GNU ld)
17811 allow_undefined_flag_GCJ=unsupported
17812 always_export_symbols_GCJ=yes
17813 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'
17814 # Note: this linker hardcodes the directories in LIBPATH if there
17815 # are no directories specified by -L.
17816 hardcode_minus_L_GCJ=yes
17817 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17818 # Neither direct hardcoding nor static linking is supported with a
17820 hardcode_direct_GCJ=unsupported
17825 if test "$host_cpu" = ia64; then
17826 # On IA64, the linker does run time linking by default, so we don't
17827 # have to do anything special.
17828 aix_use_runtimelinking=no
17829 exp_sym_flag='-Bexport'
17832 # If we're using GNU nm, then we don't want the "-C" option.
17833 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17834 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17835 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'
17837 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'
17839 aix_use_runtimelinking=no
17841 # Test if we are trying to use run time linking or normal
17842 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17843 # need to do runtime linking.
17844 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17845 for ld_flag in $LDFLAGS; do
17846 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17847 aix_use_runtimelinking=yes
17854 exp_sym_flag='-bexport'
17855 no_entry_flag='-bnoentry'
17858 # When large executables or shared objects are built, AIX ld can
17859 # have problems creating the table of contents. If linking a library
17860 # or program results in "error TOC overflow" add -mminimal-toc to
17861 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17862 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17864 archive_cmds_GCJ=''
17865 hardcode_direct_GCJ=yes
17866 hardcode_libdir_separator_GCJ=':'
17867 link_all_deplibs_GCJ=yes
17869 if test "$GCC" = yes; then
17870 case $host_os in aix4.[012]|aix4.[012].*)
17871 # We only want to do this on AIX 4.2 and lower, the check
17872 # below for broken collect2 doesn't work under 4.3+
17873 collect2name=`${CC} -print-prog-name=collect2`
17874 if test -f "$collect2name" && \
17875 strings "$collect2name" | grep resolve_lib_name >/dev/null
17877 # We have reworked collect2
17880 # We have old collect2
17881 hardcode_direct_GCJ=unsupported
17882 # It fails to find uninstalled libraries when the uninstalled
17883 # path is not listed in the libpath. Setting hardcode_minus_L
17884 # to unsupported forces relinking
17885 hardcode_minus_L_GCJ=yes
17886 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17887 hardcode_libdir_separator_GCJ=
17891 shared_flag='-shared'
17892 if test "$aix_use_runtimelinking" = yes; then
17893 shared_flag="$shared_flag "'${wl}-G'
17897 if test "$host_cpu" = ia64; then
17898 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17899 # chokes on -Wl,-G. The following line is correct:
17902 if test "$aix_use_runtimelinking" = yes; then
17903 shared_flag='${wl}-G'
17905 shared_flag='${wl}-bM:SRE'
17910 # It seems that -bexpall does not export symbols beginning with
17911 # underscore (_), so it is better to generate a list of symbols to export.
17912 always_export_symbols_GCJ=yes
17913 if test "$aix_use_runtimelinking" = yes; then
17914 # Warning - without using the other runtime loading flags (-brtl),
17915 # -berok will link without error, but may produce a broken library.
17916 allow_undefined_flag_GCJ='-berok'
17917 # Determine the default libpath from the value encoded in an empty executable.
17918 cat >conftest.$ac_ext <<_ACEOF
17921 cat confdefs.h >>conftest.$ac_ext
17922 cat >>conftest.$ac_ext <<_ACEOF
17923 /* end confdefs.h. */
17933 rm -f conftest.$ac_objext conftest$ac_exeext
17934 if { (ac_try="$ac_link"
17935 case "(($ac_try" in
17936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17937 *) ac_try_echo=$ac_try;;
17939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17940 (eval "$ac_link") 2>conftest.er1
17942 grep -v '^ *+' conftest.er1 >conftest.err
17944 cat conftest.err >&5
17945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17946 (exit $ac_status); } && {
17947 test -z "$ac_c_werror_flag" ||
17948 test ! -s conftest.err
17949 } && test -s conftest$ac_exeext &&
17950 $as_test_x conftest$ac_exeext; then
17952 lt_aix_libpath_sed='
17953 /Import File Strings/,/^$/ {
17959 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17960 # Check for a 64-bit object if we didn't find anything.
17961 if test -z "$aix_libpath"; then
17962 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17965 echo "$as_me: failed program was:" >&5
17966 sed 's/^/| /' conftest.$ac_ext >&5
17971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17972 conftest$ac_exeext conftest.$ac_ext
17973 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17975 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17976 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"
17978 if test "$host_cpu" = ia64; then
17979 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17980 allow_undefined_flag_GCJ="-z nodefs"
17981 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"
17983 # Determine the default libpath from the value encoded in an empty executable.
17984 cat >conftest.$ac_ext <<_ACEOF
17987 cat confdefs.h >>conftest.$ac_ext
17988 cat >>conftest.$ac_ext <<_ACEOF
17989 /* end confdefs.h. */
17999 rm -f conftest.$ac_objext conftest$ac_exeext
18000 if { (ac_try="$ac_link"
18001 case "(($ac_try" in
18002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18003 *) ac_try_echo=$ac_try;;
18005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18006 (eval "$ac_link") 2>conftest.er1
18008 grep -v '^ *+' conftest.er1 >conftest.err
18010 cat conftest.err >&5
18011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18012 (exit $ac_status); } && {
18013 test -z "$ac_c_werror_flag" ||
18014 test ! -s conftest.err
18015 } && test -s conftest$ac_exeext &&
18016 $as_test_x conftest$ac_exeext; then
18018 lt_aix_libpath_sed='
18019 /Import File Strings/,/^$/ {
18025 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18026 # Check for a 64-bit object if we didn't find anything.
18027 if test -z "$aix_libpath"; then
18028 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18031 echo "$as_me: failed program was:" >&5
18032 sed 's/^/| /' conftest.$ac_ext >&5
18037 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18038 conftest$ac_exeext conftest.$ac_ext
18039 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18041 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18042 # Warning - without using the other run time loading flags,
18043 # -berok will link without error, but may produce a broken library.
18044 no_undefined_flag_GCJ=' ${wl}-bernotok'
18045 allow_undefined_flag_GCJ=' ${wl}-berok'
18046 # Exported symbols can be pulled into shared objects from archives
18047 whole_archive_flag_spec_GCJ='$convenience'
18048 archive_cmds_need_lc_GCJ=yes
18049 # This is similar to how AIX traditionally builds its shared libraries.
18050 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'
18056 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)'
18057 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18058 hardcode_minus_L_GCJ=yes
18059 # see comment about different semantics on the GNU ld section
18064 export_dynamic_flag_spec_GCJ=-rdynamic
18067 cygwin* | mingw* | pw32*)
18068 # When not using gcc, we currently assume that we are using
18069 # Microsoft Visual C++.
18070 # hardcode_libdir_flag_spec is actually meaningless, as there is
18071 # no search path for DLLs.
18072 hardcode_libdir_flag_spec_GCJ=' '
18073 allow_undefined_flag_GCJ=unsupported
18074 # Tell ltmain to make .lib files, not .a files.
18076 # Tell ltmain to make .dll files, not .so files.
18078 # FIXME: Setting linknames here is a bad hack.
18079 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18080 # The linker will automatically build a .lib file if we build a DLL.
18081 old_archive_From_new_cmds_GCJ='true'
18082 # FIXME: Should let the user specify the lib program.
18083 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18084 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18085 enable_shared_with_static_runtimes_GCJ=yes
18088 darwin* | rhapsody*)
18090 rhapsody* | darwin1.[012])
18091 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18094 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18095 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18097 case ${MACOSX_DEPLOYMENT_TARGET} in
18099 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18102 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18108 archive_cmds_need_lc_GCJ=no
18109 hardcode_direct_GCJ=no
18110 hardcode_automatic_GCJ=yes
18111 hardcode_shlibpath_var_GCJ=unsupported
18112 whole_archive_flag_spec_GCJ=''
18113 link_all_deplibs_GCJ=yes
18114 if test "$GCC" = yes ; then
18115 output_verbose_link_cmd='echo'
18116 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18117 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18118 archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
18119 module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
18121 case $cc_basename in
18123 output_verbose_link_cmd='echo'
18124 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18125 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18126 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18127 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18128 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}'
18138 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18139 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18140 hardcode_shlibpath_var_GCJ=no
18147 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18148 # support. Future versions do this automatically, but an explicit c++rt0.o
18149 # does not break anything, and helps significantly (at the cost of a little
18152 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18153 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18154 hardcode_direct_GCJ=yes
18155 hardcode_shlibpath_var_GCJ=no
18158 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18160 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18161 hardcode_direct_GCJ=yes
18162 hardcode_minus_L_GCJ=yes
18163 hardcode_shlibpath_var_GCJ=no
18166 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18167 freebsd* | dragonfly*)
18168 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18169 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18170 hardcode_direct_GCJ=yes
18171 hardcode_shlibpath_var_GCJ=no
18175 if test "$GCC" = yes; then
18176 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'
18178 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'
18180 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18181 hardcode_libdir_separator_GCJ=:
18182 hardcode_direct_GCJ=yes
18184 # hardcode_minus_L: Not really in the search PATH,
18185 # but as the default location of the library.
18186 hardcode_minus_L_GCJ=yes
18187 export_dynamic_flag_spec_GCJ='${wl}-E'
18191 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18192 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18194 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18196 if test "$with_gnu_ld" = no; then
18197 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18198 hardcode_libdir_separator_GCJ=:
18200 hardcode_direct_GCJ=yes
18201 export_dynamic_flag_spec_GCJ='${wl}-E'
18203 # hardcode_minus_L: Not really in the search PATH,
18204 # but as the default location of the library.
18205 hardcode_minus_L_GCJ=yes
18210 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18213 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18216 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18219 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18225 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18228 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18231 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18235 if test "$with_gnu_ld" = no; then
18236 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18237 hardcode_libdir_separator_GCJ=:
18241 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18242 hardcode_direct_GCJ=no
18243 hardcode_shlibpath_var_GCJ=no
18246 hardcode_direct_GCJ=yes
18247 export_dynamic_flag_spec_GCJ='${wl}-E'
18249 # hardcode_minus_L: Not really in the search PATH,
18250 # but as the default location of the library.
18251 hardcode_minus_L_GCJ=yes
18257 irix5* | irix6* | nonstopux*)
18258 if test "$GCC" = yes; then
18259 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'
18261 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'
18262 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18264 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18265 hardcode_libdir_separator_GCJ=:
18266 link_all_deplibs_GCJ=yes
18269 netbsd* | netbsdelf*-gnu)
18270 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18271 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18273 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18275 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18276 hardcode_direct_GCJ=yes
18277 hardcode_shlibpath_var_GCJ=no
18281 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18282 hardcode_direct_GCJ=yes
18283 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18284 hardcode_libdir_separator_GCJ=:
18285 hardcode_shlibpath_var_GCJ=no
18289 if test -f /usr/libexec/ld.so; then
18290 hardcode_direct_GCJ=yes
18291 hardcode_shlibpath_var_GCJ=no
18292 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18293 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18294 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18295 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18296 export_dynamic_flag_spec_GCJ='${wl}-E'
18299 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18300 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18301 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18304 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18305 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18315 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18316 hardcode_minus_L_GCJ=yes
18317 allow_undefined_flag_GCJ=unsupported
18318 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'
18319 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18323 if test "$GCC" = yes; then
18324 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18325 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'
18327 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18328 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'
18330 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18331 hardcode_libdir_separator_GCJ=:
18334 osf4* | osf5*) # as osf3* with the addition of -msym flag
18335 if test "$GCC" = yes; then
18336 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18337 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'
18338 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18340 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18341 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'
18342 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~
18343 $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'
18345 # Both c and cxx compiler support -rpath directly
18346 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18348 hardcode_libdir_separator_GCJ=:
18352 no_undefined_flag_GCJ=' -z text'
18353 if test "$GCC" = yes; then
18355 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18356 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18357 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18360 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18361 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18362 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18364 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18365 hardcode_shlibpath_var_GCJ=no
18367 solaris2.[0-5] | solaris2.[0-5].*) ;;
18369 # The compiler driver will combine and reorder linker options,
18370 # but understands `-z linker_flag'. GCC discards it without `$wl',
18371 # but is careful enough not to reorder.
18372 # Supported since Solaris 2.6 (maybe 2.5.1?)
18373 if test "$GCC" = yes; then
18374 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18376 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18380 link_all_deplibs_GCJ=yes
18384 if test "x$host_vendor" = xsequent; then
18385 # Use $CC to link under sequent, because it throws in some extra .o
18386 # files that make .init and .fini sections work.
18387 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18389 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18391 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18392 hardcode_direct_GCJ=yes
18393 hardcode_minus_L_GCJ=yes
18394 hardcode_shlibpath_var_GCJ=no
18398 case $host_vendor in
18400 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18401 hardcode_direct_GCJ=yes # is this really true???
18404 ## LD is ld it makes a PLAMLIB
18405 ## CC just makes a GrossModule.
18406 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18407 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18408 hardcode_direct_GCJ=no
18411 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18412 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18415 runpath_var='LD_RUN_PATH'
18416 hardcode_shlibpath_var_GCJ=no
18420 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18421 hardcode_shlibpath_var_GCJ=no
18422 export_dynamic_flag_spec_GCJ='-Bexport'
18426 if test -d /usr/nec; then
18427 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18428 hardcode_shlibpath_var_GCJ=no
18429 runpath_var=LD_RUN_PATH
18430 hardcode_runpath_var=yes
18435 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18436 no_undefined_flag_GCJ='${wl}-z,text'
18437 archive_cmds_need_lc_GCJ=no
18438 hardcode_shlibpath_var_GCJ=no
18439 runpath_var='LD_RUN_PATH'
18441 if test "$GCC" = yes; then
18442 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18443 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18445 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18446 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18450 sysv5* | sco3.2v5* | sco5v6*)
18451 # Note: We can NOT use -z defs as we might desire, because we do not
18452 # link with -lc, and that would cause any symbols used from libc to
18453 # always be unresolved, which means just about no library would
18454 # ever link correctly. If we're not using GNU ld we use -z text
18455 # though, which does catch some bad symbols but isn't as heavy-handed
18457 no_undefined_flag_GCJ='${wl}-z,text'
18458 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18459 archive_cmds_need_lc_GCJ=no
18460 hardcode_shlibpath_var_GCJ=no
18461 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18462 hardcode_libdir_separator_GCJ=':'
18463 link_all_deplibs_GCJ=yes
18464 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18465 runpath_var='LD_RUN_PATH'
18467 if test "$GCC" = yes; then
18468 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18469 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18471 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18472 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18477 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18478 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18479 hardcode_shlibpath_var_GCJ=no
18488 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18489 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18490 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18493 # Do we need to explicitly link libc?
18495 case "x$archive_cmds_need_lc_GCJ" in
18497 # Assume -lc should be added
18498 archive_cmds_need_lc_GCJ=yes
18500 if test "$enable_shared" = yes && test "$GCC" = yes; then
18501 case $archive_cmds_GCJ in
18503 # FIXME: we may have to deal with multi-command sequences.
18506 # Test whether the compiler implicitly links with -lc since on some
18507 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18508 # to ld, don't add -lc before -lgcc.
18509 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18510 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18512 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18515 (eval $ac_compile) 2>&5
18517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18518 (exit $ac_status); } 2>conftest.err; then
18521 libobjs=conftest.$ac_objext
18523 wl=$lt_prog_compiler_wl_GCJ
18524 pic_flag=$lt_prog_compiler_pic_GCJ
18530 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18531 allow_undefined_flag_GCJ=
18532 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18533 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536 (exit $ac_status); }
18538 archive_cmds_need_lc_GCJ=no
18540 archive_cmds_need_lc_GCJ=yes
18542 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18544 cat conftest.err 1>&5
18547 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18548 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18555 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18556 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18557 library_names_spec=
18558 libname_spec='lib$name'
18562 postuninstall_cmds=
18566 shlibpath_overrides_runpath=unknown
18568 dynamic_linker="$host_os ld.so"
18569 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18571 need_lib_prefix=unknown
18572 hardcode_into_libs=no
18574 # when you set need_version to no, make sure it does not cause -set_version
18575 # flags to be left without arguments
18576 need_version=unknown
18581 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18582 shlibpath_var=LIBPATH
18584 # AIX 3 has no versioning support, so we append a major version to the name.
18585 soname_spec='${libname}${release}${shared_ext}$major'
18592 hardcode_into_libs=yes
18593 if test "$host_cpu" = ia64; then
18594 # AIX 5 supports IA64
18595 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18596 shlibpath_var=LD_LIBRARY_PATH
18598 # With GCC up to 2.95.x, collect2 would create an import file
18599 # for dependence libraries. The import file would start with
18600 # the line `#! .'. This would cause the generated library to
18601 # depend on `.', always an invalid library. This was fixed in
18602 # development snapshots of GCC prior to 3.0.
18604 aix4 | aix4.[01] | aix4.[01].*)
18605 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18607 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18610 can_build_shared=no
18614 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18615 # soname into executable. Probably we can add versioning support to
18616 # collect2, so additional links can be useful in future.
18617 if test "$aix_use_runtimelinking" = yes; then
18618 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18619 # instead of lib<name>.a to let people know that these are not
18620 # typical AIX shared libraries.
18621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18623 # We preserve .a as extension for shared libraries through AIX4.2
18624 # and later when we are not doing run time linking.
18625 library_names_spec='${libname}${release}.a $libname.a'
18626 soname_spec='${libname}${release}${shared_ext}$major'
18628 shlibpath_var=LIBPATH
18633 library_names_spec='$libname.ixlibrary $libname.a'
18634 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18635 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'
18639 library_names_spec='${libname}${shared_ext}'
18640 dynamic_linker="$host_os ld.so"
18641 shlibpath_var=LIBRARY_PATH
18647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18648 soname_spec='${libname}${release}${shared_ext}$major'
18649 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18650 shlibpath_var=LD_LIBRARY_PATH
18651 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18652 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18653 # the default ld.so.conf also contains /usr/contrib/lib and
18654 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18655 # libtool to hard-code these into programs
18658 cygwin* | mingw* | pw32*)
18659 version_type=windows
18664 case $GCC,$host_os in
18665 yes,cygwin* | yes,mingw* | yes,pw32*)
18666 library_names_spec='$libname.dll.a'
18667 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18668 postinstall_cmds='base_file=`basename \${file}`~
18669 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18670 dldir=$destdir/`dirname \$dlpath`~
18671 test -d \$dldir || mkdir -p \$dldir~
18672 $install_prog $dir/$dlname \$dldir/$dlname~
18673 chmod a+x \$dldir/$dlname'
18674 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18675 dlpath=$dir/\$dldll~
18677 shlibpath_overrides_runpath=yes
18681 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18682 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18683 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18686 # MinGW DLLs use traditional 'lib' prefix
18687 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18688 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18689 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18690 # It is most probably a Windows format PATH printed by
18691 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18692 # path with ; separators, and with drive letters. We can handle the
18693 # drive letters (cygwin fileutils understands them), so leave them,
18694 # especially as we might pass files found there to a mingw objdump,
18695 # which wouldn't understand a cygwinified path. Ahh.
18696 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18698 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18702 # pw32 DLLs use 'pw' prefix rather than 'lib'
18703 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18709 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18712 dynamic_linker='Win32 ld.exe'
18713 # FIXME: first we should search . and the directory the executable is in
18717 darwin* | rhapsody*)
18718 dynamic_linker="$host_os dyld"
18719 version_type=darwin
18722 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18723 soname_spec='${libname}${release}${major}$shared_ext'
18724 shlibpath_overrides_runpath=yes
18725 shlibpath_var=DYLD_LIBRARY_PATH
18726 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18728 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18736 soname_spec='${libname}${release}${shared_ext}$major'
18737 shlibpath_var=LD_LIBRARY_PATH
18744 freebsd* | dragonfly*)
18745 # DragonFly does not have aout. When/if they implement a new
18746 # versioning mechanism, adjust this.
18747 if test -x /usr/bin/objformat; then
18748 objformat=`/usr/bin/objformat`
18751 freebsd[123]*) objformat=aout ;;
18752 *) objformat=elf ;;
18755 version_type=freebsd-$objformat
18756 case $version_type in
18758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18763 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18767 shlibpath_var=LD_LIBRARY_PATH
18770 shlibpath_overrides_runpath=yes
18772 freebsd3.[01]* | freebsdelf3.[01]*)
18773 shlibpath_overrides_runpath=yes
18774 hardcode_into_libs=yes
18776 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18777 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18778 shlibpath_overrides_runpath=no
18779 hardcode_into_libs=yes
18781 *) # from 4.6 on, and DragonFly
18782 shlibpath_overrides_runpath=yes
18783 hardcode_into_libs=yes
18792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18793 soname_spec='${libname}${release}${shared_ext}$major'
18794 shlibpath_var=LD_LIBRARY_PATH
18795 hardcode_into_libs=yes
18798 hpux9* | hpux10* | hpux11*)
18799 # Give a soname corresponding to the major version so that dld.sl refuses to
18800 # link against other versions.
18807 hardcode_into_libs=yes
18808 dynamic_linker="$host_os dld.so"
18809 shlibpath_var=LD_LIBRARY_PATH
18810 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18812 soname_spec='${libname}${release}${shared_ext}$major'
18813 if test "X$HPUX_IA64_MODE" = X32; then
18814 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18816 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18818 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18822 hardcode_into_libs=yes
18823 dynamic_linker="$host_os dld.sl"
18824 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18825 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18827 soname_spec='${libname}${release}${shared_ext}$major'
18828 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18829 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18833 dynamic_linker="$host_os dld.sl"
18834 shlibpath_var=SHLIB_PATH
18835 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18837 soname_spec='${libname}${release}${shared_ext}$major'
18840 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18841 postinstall_cmds='chmod 555 $lib'
18848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18849 soname_spec='${libname}${release}${shared_ext}$major'
18850 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18851 shlibpath_var=LD_LIBRARY_PATH
18852 shlibpath_overrides_runpath=no
18853 hardcode_into_libs=yes
18856 irix5* | irix6* | nonstopux*)
18858 nonstopux*) version_type=nonstopux ;;
18860 if test "$lt_cv_prog_gnu_ld" = yes; then
18868 soname_spec='${libname}${release}${shared_ext}$major'
18869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18871 irix5* | nonstopux*)
18872 libsuff= shlibsuff=
18875 case $LD in # libtool.m4 will add one of these switches to LD
18876 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18877 libsuff= shlibsuff= libmagic=32-bit;;
18878 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18879 libsuff=32 shlibsuff=N32 libmagic=N32;;
18880 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18881 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18882 *) libsuff= shlibsuff= libmagic=never-match;;
18886 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18887 shlibpath_overrides_runpath=no
18888 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18889 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18890 hardcode_into_libs=yes
18893 # No shared lib support for Linux oldld, aout, or coff.
18894 linux*oldld* | linux*aout* | linux*coff*)
18898 # This must be Linux ELF.
18899 linux* | k*bsd*-gnu)
18903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18904 soname_spec='${libname}${release}${shared_ext}$major'
18905 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18906 shlibpath_var=LD_LIBRARY_PATH
18907 shlibpath_overrides_runpath=no
18908 # This implies no fast_install, which is unacceptable.
18909 # Some rework will be needed to allow for fast_install
18910 # before this can be enabled.
18911 hardcode_into_libs=yes
18913 # Append ld.so.conf contents to the search path
18914 if test -f /etc/ld.so.conf; then
18915 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18916 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18919 # We used to test for /lib/ld.so.1 and disable shared libraries on
18920 # powerpc, because MkLinux only supported shared libraries with the
18921 # GNU dynamic linker. Since this was broken with cross compilers,
18922 # most powerpc-linux boxes support dynamic linking these days and
18923 # people can always --disable-shared, the test was removed, and we
18924 # assume the GNU/Linux dynamic linker is in use.
18925 dynamic_linker='GNU/Linux ld.so'
18932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18933 soname_spec='${libname}${release}${shared_ext}$major'
18934 shlibpath_var=LD_LIBRARY_PATH
18935 shlibpath_overrides_runpath=no
18936 hardcode_into_libs=yes
18937 dynamic_linker='NetBSD ld.elf_so'
18944 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18946 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18947 dynamic_linker='NetBSD (a.out) ld.so'
18949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18950 soname_spec='${libname}${release}${shared_ext}$major'
18951 dynamic_linker='NetBSD ld.elf_so'
18953 shlibpath_var=LD_LIBRARY_PATH
18954 shlibpath_overrides_runpath=yes
18955 hardcode_into_libs=yes
18960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18961 shlibpath_var=LD_LIBRARY_PATH
18962 shlibpath_overrides_runpath=yes
18969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18970 soname_spec='${libname}${release}${shared_ext}$major'
18971 shlibpath_var=LD_LIBRARY_PATH
18972 shlibpath_overrides_runpath=yes
18977 sys_lib_dlsearch_path_spec="/usr/lib"
18979 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18981 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18982 *) need_version=no ;;
18984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18985 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18986 shlibpath_var=LD_LIBRARY_PATH
18987 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18989 openbsd2.[89] | openbsd2.[89].*)
18990 shlibpath_overrides_runpath=no
18993 shlibpath_overrides_runpath=yes
18997 shlibpath_overrides_runpath=yes
19002 libname_spec='$name'
19005 library_names_spec='$libname${shared_ext} $libname.a'
19006 dynamic_linker='OS/2 ld.exe'
19007 shlibpath_var=LIBPATH
19010 osf3* | osf4* | osf5*)
19014 soname_spec='${libname}${release}${shared_ext}$major'
19015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19016 shlibpath_var=LD_LIBRARY_PATH
19017 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19018 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19030 soname_spec='${libname}${release}${shared_ext}$major'
19031 shlibpath_var=LD_LIBRARY_PATH
19032 shlibpath_overrides_runpath=yes
19033 hardcode_into_libs=yes
19034 # ldd complains unless libraries are executable
19035 postinstall_cmds='chmod +x $lib'
19040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19041 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19042 shlibpath_var=LD_LIBRARY_PATH
19043 shlibpath_overrides_runpath=yes
19044 if test "$with_gnu_ld" = yes; then
19052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19053 soname_spec='${libname}${release}${shared_ext}$major'
19054 shlibpath_var=LD_LIBRARY_PATH
19055 case $host_vendor in
19057 shlibpath_overrides_runpath=no
19059 export_dynamic_flag_spec='${wl}-Blargedynsym'
19060 runpath_var=LD_RUN_PATH
19068 shlibpath_overrides_runpath=no
19069 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19075 if test -d /usr/nec ;then
19077 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19078 soname_spec='$libname${shared_ext}.$major'
19079 shlibpath_var=LD_LIBRARY_PATH
19083 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19084 version_type=freebsd-elf
19087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19088 soname_spec='${libname}${release}${shared_ext}$major'
19089 shlibpath_var=LD_LIBRARY_PATH
19090 hardcode_into_libs=yes
19091 if test "$with_gnu_ld" = yes; then
19092 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19093 shlibpath_overrides_runpath=no
19095 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19096 shlibpath_overrides_runpath=yes
19099 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19103 sys_lib_dlsearch_path_spec='/usr/lib'
19108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19109 soname_spec='${libname}${release}${shared_ext}$major'
19110 shlibpath_var=LD_LIBRARY_PATH
19117 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19118 echo "${ECHO_T}$dynamic_linker" >&6; }
19119 test "$dynamic_linker" = no && can_build_shared=no
19121 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19122 echo $ECHO_N "(cached) $ECHO_C" >&6
19124 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19127 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19128 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19129 echo $ECHO_N "(cached) $ECHO_C" >&6
19131 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19134 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19136 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19137 if test "$GCC" = yes; then
19138 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19141 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19142 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19143 hardcode_action_GCJ=
19144 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19145 test -n "$runpath_var_GCJ" || \
19146 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19148 # We can hardcode non-existant directories.
19149 if test "$hardcode_direct_GCJ" != no &&
19150 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19151 # have to relink, otherwise we might link with an installed library
19152 # when we should be linking with a yet-to-be-installed one
19153 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19154 test "$hardcode_minus_L_GCJ" != no; then
19155 # Linking always hardcodes the temporary library directory.
19156 hardcode_action_GCJ=relink
19158 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19159 hardcode_action_GCJ=immediate
19162 # We cannot hardcode anything, or else we can only hardcode existing
19164 hardcode_action_GCJ=unsupported
19166 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19167 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19169 if test "$hardcode_action_GCJ" = relink; then
19170 # Fast installation is not supported
19171 enable_fast_install=no
19172 elif test "$shlibpath_overrides_runpath" = yes ||
19173 test "$enable_shared" = no; then
19174 # Fast installation is not necessary
19175 enable_fast_install=needless
19179 # The else clause should only fire when bootstrapping the
19180 # libtool distribution, otherwise you forgot to ship ltmain.sh
19181 # with your package, and you will get complaints that there are
19182 # no rules to generate ltmain.sh.
19183 if test -f "$ltmain"; then
19184 # See if we are running on zsh, and set the options which allow our commands through
19185 # without removal of \ escapes.
19186 if test -n "${ZSH_VERSION+set}" ; then
19187 setopt NO_GLOB_SUBST
19189 # Now quote all the things that may contain metacharacters while being
19190 # careful not to overquote the AC_SUBSTed values. We take copies of the
19191 # variables and quote the copies for generation of the libtool script.
19192 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19194 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19195 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19196 deplibs_check_method reload_flag reload_cmds need_locks \
19197 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19198 lt_cv_sys_global_symbol_to_c_name_address \
19199 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19200 old_postinstall_cmds old_postuninstall_cmds \
19204 lt_prog_compiler_wl_GCJ \
19205 lt_prog_compiler_pic_GCJ \
19206 lt_prog_compiler_static_GCJ \
19207 lt_prog_compiler_no_builtin_flag_GCJ \
19208 export_dynamic_flag_spec_GCJ \
19209 thread_safe_flag_spec_GCJ \
19210 whole_archive_flag_spec_GCJ \
19211 enable_shared_with_static_runtimes_GCJ \
19212 old_archive_cmds_GCJ \
19213 old_archive_from_new_cmds_GCJ \
19214 predep_objects_GCJ \
19215 postdep_objects_GCJ \
19218 compiler_lib_search_path_GCJ \
19219 compiler_lib_search_dirs_GCJ \
19221 archive_expsym_cmds_GCJ \
19222 postinstall_cmds_GCJ \
19223 postuninstall_cmds_GCJ \
19224 old_archive_from_expsyms_cmds_GCJ \
19225 allow_undefined_flag_GCJ \
19226 no_undefined_flag_GCJ \
19227 export_symbols_cmds_GCJ \
19228 hardcode_libdir_flag_spec_GCJ \
19229 hardcode_libdir_flag_spec_ld_GCJ \
19230 hardcode_libdir_separator_GCJ \
19231 hardcode_automatic_GCJ \
19233 module_expsym_cmds_GCJ \
19234 lt_cv_prog_compiler_c_o_GCJ \
19235 fix_srcfile_path_GCJ \
19236 exclude_expsyms_GCJ \
19237 include_expsyms_GCJ; do
19240 old_archive_cmds_GCJ | \
19241 old_archive_from_new_cmds_GCJ | \
19242 archive_cmds_GCJ | \
19243 archive_expsym_cmds_GCJ | \
19244 module_cmds_GCJ | \
19245 module_expsym_cmds_GCJ | \
19246 old_archive_from_expsyms_cmds_GCJ | \
19247 export_symbols_cmds_GCJ | \
19248 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19249 postinstall_cmds | postuninstall_cmds | \
19250 old_postinstall_cmds | old_postuninstall_cmds | \
19251 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19252 # Double-quote double-evaled strings.
19253 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19256 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19262 *'\$0 --fallback-echo"')
19263 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19269 cat <<__EOF__ >> "$cfgfile"
19270 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19272 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19274 # Shell to use when invoking shell scripts.
19277 # Whether or not to build shared libraries.
19278 build_libtool_libs=$enable_shared
19280 # Whether or not to build static libraries.
19281 build_old_libs=$enable_static
19283 # Whether or not to add -lc for building shared libraries.
19284 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19286 # Whether or not to disallow shared libs when runtime libs are static
19287 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19289 # Whether or not to optimize for fast installation.
19290 fast_install=$enable_fast_install
19293 host_alias=$host_alias
19297 # The build system.
19298 build_alias=$build_alias
19302 # An echo program that does not interpret backslashes.
19307 AR_FLAGS=$lt_AR_FLAGS
19312 # LTCC compiler flags.
19313 LTCFLAGS=$lt_LTCFLAGS
19315 # A language-specific compiler.
19316 CC=$lt_compiler_GCJ
19318 # Is the compiler the GNU C compiler?
19324 # The linker used to build libraries.
19327 # Whether we need hard or soft links.
19330 # A BSD-compatible nm program.
19333 # A symbol stripping program
19336 # Used to examine libraries when file_magic_cmd begins "file"
19337 MAGIC_CMD=$MAGIC_CMD
19339 # Used on cygwin: DLL creation program.
19342 # Used on cygwin: object dumper.
19345 # Used on cygwin: assembler.
19348 # The name of the directory that contains temporary libtool files.
19351 # How to create reloadable object files.
19352 reload_flag=$lt_reload_flag
19353 reload_cmds=$lt_reload_cmds
19355 # How to pass a linker flag through the compiler.
19356 wl=$lt_lt_prog_compiler_wl_GCJ
19358 # Object file suffix (normally "o").
19359 objext="$ac_objext"
19361 # Old archive suffix (normally "a").
19364 # Shared library suffix (normally ".so").
19365 shrext_cmds='$shrext_cmds'
19367 # Executable file suffix (normally "").
19370 # Additional compiler flags for building library objects.
19371 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19374 # What is the maximum length of a command?
19375 max_cmd_len=$lt_cv_sys_max_cmd_len
19377 # Does compiler simultaneously support -c and -o options?
19378 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19380 # Must we lock files when doing compilation?
19381 need_locks=$lt_need_locks
19383 # Do we need the lib prefix for modules?
19384 need_lib_prefix=$need_lib_prefix
19386 # Do we need a version for libraries?
19387 need_version=$need_version
19389 # Whether dlopen is supported.
19390 dlopen_support=$enable_dlopen
19392 # Whether dlopen of programs is supported.
19393 dlopen_self=$enable_dlopen_self
19395 # Whether dlopen of statically linked programs is supported.
19396 dlopen_self_static=$enable_dlopen_self_static
19398 # Compiler flag to prevent dynamic linking.
19399 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19401 # Compiler flag to turn off builtin functions.
19402 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19404 # Compiler flag to allow reflexive dlopens.
19405 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19407 # Compiler flag to generate shared objects directly from archives.
19408 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19410 # Compiler flag to generate thread-safe objects.
19411 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19413 # Library versioning type.
19414 version_type=$version_type
19416 # Format of library name prefix.
19417 libname_spec=$lt_libname_spec
19419 # List of archive names. First name is the real one, the rest are links.
19420 # The last name is the one that the linker finds with -lNAME.
19421 library_names_spec=$lt_library_names_spec
19423 # The coded name of the library, if different from the real name.
19424 soname_spec=$lt_soname_spec
19426 # Commands used to build and install an old-style archive.
19428 old_archive_cmds=$lt_old_archive_cmds_GCJ
19429 old_postinstall_cmds=$lt_old_postinstall_cmds
19430 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19432 # Create an old-style archive from a shared archive.
19433 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19435 # Create a temporary old-style archive to link instead of a shared archive.
19436 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19438 # Commands used to build and install a shared archive.
19439 archive_cmds=$lt_archive_cmds_GCJ
19440 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19441 postinstall_cmds=$lt_postinstall_cmds
19442 postuninstall_cmds=$lt_postuninstall_cmds
19444 # Commands used to build a loadable module (assumed same as above if empty)
19445 module_cmds=$lt_module_cmds_GCJ
19446 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19448 # Commands to strip libraries.
19449 old_striplib=$lt_old_striplib
19450 striplib=$lt_striplib
19452 # Dependencies to place before the objects being linked to create a
19454 predep_objects=$lt_predep_objects_GCJ
19456 # Dependencies to place after the objects being linked to create a
19458 postdep_objects=$lt_postdep_objects_GCJ
19460 # Dependencies to place before the objects being linked to create a
19462 predeps=$lt_predeps_GCJ
19464 # Dependencies to place after the objects being linked to create a
19466 postdeps=$lt_postdeps_GCJ
19468 # The directories searched by this compiler when creating a shared
19470 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19472 # The library search path used internally by the compiler when linking
19473 # a shared library.
19474 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19476 # Method to check whether dependent libraries are shared objects.
19477 deplibs_check_method=$lt_deplibs_check_method
19479 # Command to use when deplibs_check_method == file_magic.
19480 file_magic_cmd=$lt_file_magic_cmd
19482 # Flag that allows shared libraries with undefined symbols to be built.
19483 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19485 # Flag that forces no undefined symbols.
19486 no_undefined_flag=$lt_no_undefined_flag_GCJ
19488 # Commands used to finish a libtool library installation in a directory.
19489 finish_cmds=$lt_finish_cmds
19491 # Same as above, but a single script fragment to be evaled but not shown.
19492 finish_eval=$lt_finish_eval
19494 # Take the output of nm and produce a listing of raw symbols and C names.
19495 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19497 # Transform the output of nm in a proper C declaration
19498 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19500 # Transform the output of nm in a C name address pair
19501 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19503 # This is the shared library runtime path variable.
19504 runpath_var=$runpath_var
19506 # This is the shared library path variable.
19507 shlibpath_var=$shlibpath_var
19509 # Is shlibpath searched before the hard-coded library search path?
19510 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19512 # How to hardcode a shared library path into an executable.
19513 hardcode_action=$hardcode_action_GCJ
19515 # Whether we should hardcode library paths into libraries.
19516 hardcode_into_libs=$hardcode_into_libs
19518 # Flag to hardcode \$libdir into a binary during linking.
19519 # This must work even if \$libdir does not exist.
19520 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19522 # If ld is used when linking, flag to hardcode \$libdir into
19523 # a binary during linking. This must work even if \$libdir does
19525 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19527 # Whether we need a single -rpath flag with a separated argument.
19528 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19530 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19531 # resulting binary.
19532 hardcode_direct=$hardcode_direct_GCJ
19534 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19535 # resulting binary.
19536 hardcode_minus_L=$hardcode_minus_L_GCJ
19538 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19539 # the resulting binary.
19540 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19542 # Set to yes if building a shared library automatically hardcodes DIR into the library
19543 # and all subsequent libraries and executables linked against it.
19544 hardcode_automatic=$hardcode_automatic_GCJ
19546 # Variables whose values should be saved in libtool wrapper scripts and
19547 # restored at relink time.
19548 variables_saved_for_relink="$variables_saved_for_relink"
19550 # Whether libtool must link a program against all its dependency libraries.
19551 link_all_deplibs=$link_all_deplibs_GCJ
19553 # Compile-time system search path for libraries
19554 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19556 # Run-time system search path for libraries
19557 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19559 # Fix the shell variable \$srcfile for the compiler.
19560 fix_srcfile_path=$lt_fix_srcfile_path
19562 # Set to yes if exported symbols are required.
19563 always_export_symbols=$always_export_symbols_GCJ
19565 # The commands to list exported symbols.
19566 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19568 # The commands to extract the exported symbol list from a shared archive.
19569 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19571 # Symbols that should not be listed in the preloaded symbols.
19572 exclude_expsyms=$lt_exclude_expsyms_GCJ
19574 # Symbols that must always be exported.
19575 include_expsyms=$lt_include_expsyms_GCJ
19577 # ### END LIBTOOL TAG CONFIG: $tagname
19583 # If there is no Makefile yet, we rely on a make rule to execute
19584 # `config.status --recheck' to rerun these tests and create the
19585 # libtool script then.
19586 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19587 if test -f "$ltmain_in"; then
19588 test -f Makefile && make "$ltmain"
19594 ac_cpp='$CPP $CPPFLAGS'
19595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19609 # Source file extension for RC test sources.
19612 # Object file extension for compiled RC test sources.
19616 # Code to be used in simple compile tests
19617 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19619 # Code to be used in simple link tests
19620 lt_simple_link_test_code="$lt_simple_compile_test_code"
19622 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19624 # If no C compiler was specified, use CC.
19627 # If no C compiler flags were specified, use CFLAGS.
19628 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19630 # Allow CC to be a program name with arguments.
19634 # save warnings/boilerplate of simple test code
19635 ac_outfile=conftest.$ac_objext
19636 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19637 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19638 _lt_compiler_boilerplate=`cat conftest.err`
19641 ac_outfile=conftest.$ac_objext
19642 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19643 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19644 _lt_linker_boilerplate=`cat conftest.err`
19648 # Allow CC to be a program name with arguments.
19653 for cc_temp in $compiler""; do
19655 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19656 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19661 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19663 lt_cv_prog_compiler_c_o_RC=yes
19665 # The else clause should only fire when bootstrapping the
19666 # libtool distribution, otherwise you forgot to ship ltmain.sh
19667 # with your package, and you will get complaints that there are
19668 # no rules to generate ltmain.sh.
19669 if test -f "$ltmain"; then
19670 # See if we are running on zsh, and set the options which allow our commands through
19671 # without removal of \ escapes.
19672 if test -n "${ZSH_VERSION+set}" ; then
19673 setopt NO_GLOB_SUBST
19675 # Now quote all the things that may contain metacharacters while being
19676 # careful not to overquote the AC_SUBSTed values. We take copies of the
19677 # variables and quote the copies for generation of the libtool script.
19678 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19680 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19681 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19682 deplibs_check_method reload_flag reload_cmds need_locks \
19683 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19684 lt_cv_sys_global_symbol_to_c_name_address \
19685 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19686 old_postinstall_cmds old_postuninstall_cmds \
19690 lt_prog_compiler_wl_RC \
19691 lt_prog_compiler_pic_RC \
19692 lt_prog_compiler_static_RC \
19693 lt_prog_compiler_no_builtin_flag_RC \
19694 export_dynamic_flag_spec_RC \
19695 thread_safe_flag_spec_RC \
19696 whole_archive_flag_spec_RC \
19697 enable_shared_with_static_runtimes_RC \
19698 old_archive_cmds_RC \
19699 old_archive_from_new_cmds_RC \
19700 predep_objects_RC \
19701 postdep_objects_RC \
19704 compiler_lib_search_path_RC \
19705 compiler_lib_search_dirs_RC \
19707 archive_expsym_cmds_RC \
19708 postinstall_cmds_RC \
19709 postuninstall_cmds_RC \
19710 old_archive_from_expsyms_cmds_RC \
19711 allow_undefined_flag_RC \
19712 no_undefined_flag_RC \
19713 export_symbols_cmds_RC \
19714 hardcode_libdir_flag_spec_RC \
19715 hardcode_libdir_flag_spec_ld_RC \
19716 hardcode_libdir_separator_RC \
19717 hardcode_automatic_RC \
19719 module_expsym_cmds_RC \
19720 lt_cv_prog_compiler_c_o_RC \
19721 fix_srcfile_path_RC \
19722 exclude_expsyms_RC \
19723 include_expsyms_RC; do
19726 old_archive_cmds_RC | \
19727 old_archive_from_new_cmds_RC | \
19728 archive_cmds_RC | \
19729 archive_expsym_cmds_RC | \
19731 module_expsym_cmds_RC | \
19732 old_archive_from_expsyms_cmds_RC | \
19733 export_symbols_cmds_RC | \
19734 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19735 postinstall_cmds | postuninstall_cmds | \
19736 old_postinstall_cmds | old_postuninstall_cmds | \
19737 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19738 # Double-quote double-evaled strings.
19739 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19742 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19748 *'\$0 --fallback-echo"')
19749 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19755 cat <<__EOF__ >> "$cfgfile"
19756 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19758 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19760 # Shell to use when invoking shell scripts.
19763 # Whether or not to build shared libraries.
19764 build_libtool_libs=$enable_shared
19766 # Whether or not to build static libraries.
19767 build_old_libs=$enable_static
19769 # Whether or not to add -lc for building shared libraries.
19770 build_libtool_need_lc=$archive_cmds_need_lc_RC
19772 # Whether or not to disallow shared libs when runtime libs are static
19773 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19775 # Whether or not to optimize for fast installation.
19776 fast_install=$enable_fast_install
19779 host_alias=$host_alias
19783 # The build system.
19784 build_alias=$build_alias
19788 # An echo program that does not interpret backslashes.
19793 AR_FLAGS=$lt_AR_FLAGS
19798 # LTCC compiler flags.
19799 LTCFLAGS=$lt_LTCFLAGS
19801 # A language-specific compiler.
19804 # Is the compiler the GNU C compiler?
19810 # The linker used to build libraries.
19813 # Whether we need hard or soft links.
19816 # A BSD-compatible nm program.
19819 # A symbol stripping program
19822 # Used to examine libraries when file_magic_cmd begins "file"
19823 MAGIC_CMD=$MAGIC_CMD
19825 # Used on cygwin: DLL creation program.
19828 # Used on cygwin: object dumper.
19831 # Used on cygwin: assembler.
19834 # The name of the directory that contains temporary libtool files.
19837 # How to create reloadable object files.
19838 reload_flag=$lt_reload_flag
19839 reload_cmds=$lt_reload_cmds
19841 # How to pass a linker flag through the compiler.
19842 wl=$lt_lt_prog_compiler_wl_RC
19844 # Object file suffix (normally "o").
19845 objext="$ac_objext"
19847 # Old archive suffix (normally "a").
19850 # Shared library suffix (normally ".so").
19851 shrext_cmds='$shrext_cmds'
19853 # Executable file suffix (normally "").
19856 # Additional compiler flags for building library objects.
19857 pic_flag=$lt_lt_prog_compiler_pic_RC
19860 # What is the maximum length of a command?
19861 max_cmd_len=$lt_cv_sys_max_cmd_len
19863 # Does compiler simultaneously support -c and -o options?
19864 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19866 # Must we lock files when doing compilation?
19867 need_locks=$lt_need_locks
19869 # Do we need the lib prefix for modules?
19870 need_lib_prefix=$need_lib_prefix
19872 # Do we need a version for libraries?
19873 need_version=$need_version
19875 # Whether dlopen is supported.
19876 dlopen_support=$enable_dlopen
19878 # Whether dlopen of programs is supported.
19879 dlopen_self=$enable_dlopen_self
19881 # Whether dlopen of statically linked programs is supported.
19882 dlopen_self_static=$enable_dlopen_self_static
19884 # Compiler flag to prevent dynamic linking.
19885 link_static_flag=$lt_lt_prog_compiler_static_RC
19887 # Compiler flag to turn off builtin functions.
19888 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19890 # Compiler flag to allow reflexive dlopens.
19891 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19893 # Compiler flag to generate shared objects directly from archives.
19894 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19896 # Compiler flag to generate thread-safe objects.
19897 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19899 # Library versioning type.
19900 version_type=$version_type
19902 # Format of library name prefix.
19903 libname_spec=$lt_libname_spec
19905 # List of archive names. First name is the real one, the rest are links.
19906 # The last name is the one that the linker finds with -lNAME.
19907 library_names_spec=$lt_library_names_spec
19909 # The coded name of the library, if different from the real name.
19910 soname_spec=$lt_soname_spec
19912 # Commands used to build and install an old-style archive.
19914 old_archive_cmds=$lt_old_archive_cmds_RC
19915 old_postinstall_cmds=$lt_old_postinstall_cmds
19916 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19918 # Create an old-style archive from a shared archive.
19919 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19921 # Create a temporary old-style archive to link instead of a shared archive.
19922 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19924 # Commands used to build and install a shared archive.
19925 archive_cmds=$lt_archive_cmds_RC
19926 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19927 postinstall_cmds=$lt_postinstall_cmds
19928 postuninstall_cmds=$lt_postuninstall_cmds
19930 # Commands used to build a loadable module (assumed same as above if empty)
19931 module_cmds=$lt_module_cmds_RC
19932 module_expsym_cmds=$lt_module_expsym_cmds_RC
19934 # Commands to strip libraries.
19935 old_striplib=$lt_old_striplib
19936 striplib=$lt_striplib
19938 # Dependencies to place before the objects being linked to create a
19940 predep_objects=$lt_predep_objects_RC
19942 # Dependencies to place after the objects being linked to create a
19944 postdep_objects=$lt_postdep_objects_RC
19946 # Dependencies to place before the objects being linked to create a
19948 predeps=$lt_predeps_RC
19950 # Dependencies to place after the objects being linked to create a
19952 postdeps=$lt_postdeps_RC
19954 # The directories searched by this compiler when creating a shared
19956 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19958 # The library search path used internally by the compiler when linking
19959 # a shared library.
19960 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19962 # Method to check whether dependent libraries are shared objects.
19963 deplibs_check_method=$lt_deplibs_check_method
19965 # Command to use when deplibs_check_method == file_magic.
19966 file_magic_cmd=$lt_file_magic_cmd
19968 # Flag that allows shared libraries with undefined symbols to be built.
19969 allow_undefined_flag=$lt_allow_undefined_flag_RC
19971 # Flag that forces no undefined symbols.
19972 no_undefined_flag=$lt_no_undefined_flag_RC
19974 # Commands used to finish a libtool library installation in a directory.
19975 finish_cmds=$lt_finish_cmds
19977 # Same as above, but a single script fragment to be evaled but not shown.
19978 finish_eval=$lt_finish_eval
19980 # Take the output of nm and produce a listing of raw symbols and C names.
19981 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19983 # Transform the output of nm in a proper C declaration
19984 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19986 # Transform the output of nm in a C name address pair
19987 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19989 # This is the shared library runtime path variable.
19990 runpath_var=$runpath_var
19992 # This is the shared library path variable.
19993 shlibpath_var=$shlibpath_var
19995 # Is shlibpath searched before the hard-coded library search path?
19996 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19998 # How to hardcode a shared library path into an executable.
19999 hardcode_action=$hardcode_action_RC
20001 # Whether we should hardcode library paths into libraries.
20002 hardcode_into_libs=$hardcode_into_libs
20004 # Flag to hardcode \$libdir into a binary during linking.
20005 # This must work even if \$libdir does not exist.
20006 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20008 # If ld is used when linking, flag to hardcode \$libdir into
20009 # a binary during linking. This must work even if \$libdir does
20011 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20013 # Whether we need a single -rpath flag with a separated argument.
20014 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20016 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20017 # resulting binary.
20018 hardcode_direct=$hardcode_direct_RC
20020 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20021 # resulting binary.
20022 hardcode_minus_L=$hardcode_minus_L_RC
20024 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20025 # the resulting binary.
20026 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20028 # Set to yes if building a shared library automatically hardcodes DIR into the library
20029 # and all subsequent libraries and executables linked against it.
20030 hardcode_automatic=$hardcode_automatic_RC
20032 # Variables whose values should be saved in libtool wrapper scripts and
20033 # restored at relink time.
20034 variables_saved_for_relink="$variables_saved_for_relink"
20036 # Whether libtool must link a program against all its dependency libraries.
20037 link_all_deplibs=$link_all_deplibs_RC
20039 # Compile-time system search path for libraries
20040 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20042 # Run-time system search path for libraries
20043 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20045 # Fix the shell variable \$srcfile for the compiler.
20046 fix_srcfile_path=$lt_fix_srcfile_path
20048 # Set to yes if exported symbols are required.
20049 always_export_symbols=$always_export_symbols_RC
20051 # The commands to list exported symbols.
20052 export_symbols_cmds=$lt_export_symbols_cmds_RC
20054 # The commands to extract the exported symbol list from a shared archive.
20055 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20057 # Symbols that should not be listed in the preloaded symbols.
20058 exclude_expsyms=$lt_exclude_expsyms_RC
20060 # Symbols that must always be exported.
20061 include_expsyms=$lt_include_expsyms_RC
20063 # ### END LIBTOOL TAG CONFIG: $tagname
20069 # If there is no Makefile yet, we rely on a make rule to execute
20070 # `config.status --recheck' to rerun these tests and create the
20071 # libtool script then.
20072 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20073 if test -f "$ltmain_in"; then
20074 test -f Makefile && make "$ltmain"
20080 ac_cpp='$CPP $CPPFLAGS'
20081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20090 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20091 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20092 { (exit 1); exit 1; }; }
20096 # Append the new tag name to the list of available tags.
20097 if test -n "$tagname" ; then
20098 available_tags="$available_tags $tagname"
20104 # Now substitute the updated list of available tags.
20105 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20106 mv "${ofile}T" "$ofile"
20110 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20111 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20112 { (exit 1); exit 1; }; }
20118 # This can be used to rebuild libtool when needed
20119 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20121 # Always use our own libtool.
20122 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20124 # Prevent multiple expansion
20146 ac_config_headers="$ac_config_headers src/config.h"
20149 # Extract the first word of "md5sum", so it can be a program name with args.
20150 set dummy md5sum; ac_word=$2
20151 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20153 if test "${ac_cv_prog_MD5SUM+set}" = set; then
20154 echo $ECHO_N "(cached) $ECHO_C" >&6
20156 if test -n "$MD5SUM"; then
20157 ac_cv_prog_MD5SUM="$MD5SUM" # Let the user override the test.
20159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20160 for as_dir in $PATH
20163 test -z "$as_dir" && as_dir=.
20164 for ac_exec_ext in '' $ac_executable_extensions; do
20165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20166 ac_cv_prog_MD5SUM="md5sum"
20167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20176 MD5SUM=$ac_cv_prog_MD5SUM
20177 if test -n "$MD5SUM"; then
20178 { echo "$as_me:$LINENO: result: $MD5SUM" >&5
20179 echo "${ECHO_T}$MD5SUM" >&6; }
20181 { echo "$as_me:$LINENO: result: no" >&5
20182 echo "${ECHO_T}no" >&6; }
20186 # Extract the first word of "grep", so it can be a program name with args.
20187 set dummy grep; ac_word=$2
20188 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20190 if test "${ac_cv_prog_GREP+set}" = set; then
20191 echo $ECHO_N "(cached) $ECHO_C" >&6
20193 if test -n "$GREP"; then
20194 ac_cv_prog_GREP="$GREP" # Let the user override the test.
20196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20197 for as_dir in $PATH
20200 test -z "$as_dir" && as_dir=.
20201 for ac_exec_ext in '' $ac_executable_extensions; do
20202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20203 ac_cv_prog_GREP="grep"
20204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20213 GREP=$ac_cv_prog_GREP
20214 if test -n "$GREP"; then
20215 { echo "$as_me:$LINENO: result: $GREP" >&5
20216 echo "${ECHO_T}$GREP" >&6; }
20218 { echo "$as_me:$LINENO: result: no" >&5
20219 echo "${ECHO_T}no" >&6; }
20223 # Extract the first word of "sed", so it can be a program name with args.
20224 set dummy sed; ac_word=$2
20225 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20227 if test "${ac_cv_prog_SED+set}" = set; then
20228 echo $ECHO_N "(cached) $ECHO_C" >&6
20230 if test -n "$SED"; then
20231 ac_cv_prog_SED="$SED" # Let the user override the test.
20233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20234 for as_dir in $PATH
20237 test -z "$as_dir" && as_dir=.
20238 for ac_exec_ext in '' $ac_executable_extensions; do
20239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20240 ac_cv_prog_SED="sed"
20241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20250 SED=$ac_cv_prog_SED
20251 if test -n "$SED"; then
20252 { echo "$as_me:$LINENO: result: $SED" >&5
20253 echo "${ECHO_T}$SED" >&6; }
20255 { echo "$as_me:$LINENO: result: no" >&5
20256 echo "${ECHO_T}no" >&6; }
20260 for ac_prog in gawk mawk nawk awk
20262 # Extract the first word of "$ac_prog", so it can be a program name with args.
20263 set dummy $ac_prog; ac_word=$2
20264 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20266 if test "${ac_cv_prog_AWK+set}" = set; then
20267 echo $ECHO_N "(cached) $ECHO_C" >&6
20269 if test -n "$AWK"; then
20270 ac_cv_prog_AWK="$AWK" # Let the user override the test.
20272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20273 for as_dir in $PATH
20276 test -z "$as_dir" && as_dir=.
20277 for ac_exec_ext in '' $ac_executable_extensions; do
20278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20279 ac_cv_prog_AWK="$ac_prog"
20280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20289 AWK=$ac_cv_prog_AWK
20290 if test -n "$AWK"; then
20291 { echo "$as_me:$LINENO: result: $AWK" >&5
20292 echo "${ECHO_T}$AWK" >&6; }
20294 { echo "$as_me:$LINENO: result: no" >&5
20295 echo "${ECHO_T}no" >&6; }
20299 test -n "$AWK" && break
20308 for ac_header in fcntl.h malloc.h sys/ioctl.h unistd.h
20310 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20312 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20313 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20314 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20315 echo $ECHO_N "(cached) $ECHO_C" >&6
20317 ac_res=`eval echo '${'$as_ac_Header'}'`
20318 { echo "$as_me:$LINENO: result: $ac_res" >&5
20319 echo "${ECHO_T}$ac_res" >&6; }
20321 # Is the header compilable?
20322 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20323 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20324 cat >conftest.$ac_ext <<_ACEOF
20327 cat confdefs.h >>conftest.$ac_ext
20328 cat >>conftest.$ac_ext <<_ACEOF
20329 /* end confdefs.h. */
20330 $ac_includes_default
20331 #include <$ac_header>
20333 rm -f conftest.$ac_objext
20334 if { (ac_try="$ac_compile"
20335 case "(($ac_try" in
20336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20337 *) ac_try_echo=$ac_try;;
20339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20340 (eval "$ac_compile") 2>conftest.er1
20342 grep -v '^ *+' conftest.er1 >conftest.err
20344 cat conftest.err >&5
20345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20346 (exit $ac_status); } && {
20347 test -z "$ac_c_werror_flag" ||
20348 test ! -s conftest.err
20349 } && test -s conftest.$ac_objext; then
20350 ac_header_compiler=yes
20352 echo "$as_me: failed program was:" >&5
20353 sed 's/^/| /' conftest.$ac_ext >&5
20355 ac_header_compiler=no
20358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20359 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20360 echo "${ECHO_T}$ac_header_compiler" >&6; }
20362 # Is the header present?
20363 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20364 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20365 cat >conftest.$ac_ext <<_ACEOF
20368 cat confdefs.h >>conftest.$ac_ext
20369 cat >>conftest.$ac_ext <<_ACEOF
20370 /* end confdefs.h. */
20371 #include <$ac_header>
20373 if { (ac_try="$ac_cpp conftest.$ac_ext"
20374 case "(($ac_try" in
20375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20376 *) ac_try_echo=$ac_try;;
20378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20379 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20381 grep -v '^ *+' conftest.er1 >conftest.err
20383 cat conftest.err >&5
20384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20385 (exit $ac_status); } >/dev/null && {
20386 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20387 test ! -s conftest.err
20389 ac_header_preproc=yes
20391 echo "$as_me: failed program was:" >&5
20392 sed 's/^/| /' conftest.$ac_ext >&5
20394 ac_header_preproc=no
20397 rm -f conftest.err conftest.$ac_ext
20398 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20399 echo "${ECHO_T}$ac_header_preproc" >&6; }
20401 # So? What about this header?
20402 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20404 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20405 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20407 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20408 ac_header_preproc=yes
20411 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20412 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20413 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20414 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20415 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20416 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20417 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20418 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20420 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20421 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20422 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20426 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20429 echo $ECHO_N "(cached) $ECHO_C" >&6
20431 eval "$as_ac_Header=\$ac_header_preproc"
20433 ac_res=`eval echo '${'$as_ac_Header'}'`
20434 { echo "$as_me:$LINENO: result: $ac_res" >&5
20435 echo "${ECHO_T}$ac_res" >&6; }
20438 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20439 cat >>confdefs.h <<_ACEOF
20440 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20450 for ac_header in sys/scsi/impl/uscsi.h scsi/sg.h stdint.h
20452 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20453 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20454 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20456 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20457 echo $ECHO_N "(cached) $ECHO_C" >&6
20459 ac_res=`eval echo '${'$as_ac_Header'}'`
20460 { echo "$as_me:$LINENO: result: $ac_res" >&5
20461 echo "${ECHO_T}$ac_res" >&6; }
20463 # Is the header compilable?
20464 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20465 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20466 cat >conftest.$ac_ext <<_ACEOF
20469 cat confdefs.h >>conftest.$ac_ext
20470 cat >>conftest.$ac_ext <<_ACEOF
20471 /* end confdefs.h. */
20472 $ac_includes_default
20473 #include <$ac_header>
20475 rm -f conftest.$ac_objext
20476 if { (ac_try="$ac_compile"
20477 case "(($ac_try" in
20478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20479 *) ac_try_echo=$ac_try;;
20481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20482 (eval "$ac_compile") 2>conftest.er1
20484 grep -v '^ *+' conftest.er1 >conftest.err
20486 cat conftest.err >&5
20487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488 (exit $ac_status); } && {
20489 test -z "$ac_c_werror_flag" ||
20490 test ! -s conftest.err
20491 } && test -s conftest.$ac_objext; then
20492 ac_header_compiler=yes
20494 echo "$as_me: failed program was:" >&5
20495 sed 's/^/| /' conftest.$ac_ext >&5
20497 ac_header_compiler=no
20500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20501 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20502 echo "${ECHO_T}$ac_header_compiler" >&6; }
20504 # Is the header present?
20505 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20506 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20507 cat >conftest.$ac_ext <<_ACEOF
20510 cat confdefs.h >>conftest.$ac_ext
20511 cat >>conftest.$ac_ext <<_ACEOF
20512 /* end confdefs.h. */
20513 #include <$ac_header>
20515 if { (ac_try="$ac_cpp conftest.$ac_ext"
20516 case "(($ac_try" in
20517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20518 *) ac_try_echo=$ac_try;;
20520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20521 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20523 grep -v '^ *+' conftest.er1 >conftest.err
20525 cat conftest.err >&5
20526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20527 (exit $ac_status); } >/dev/null && {
20528 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20529 test ! -s conftest.err
20531 ac_header_preproc=yes
20533 echo "$as_me: failed program was:" >&5
20534 sed 's/^/| /' conftest.$ac_ext >&5
20536 ac_header_preproc=no
20539 rm -f conftest.err conftest.$ac_ext
20540 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20541 echo "${ECHO_T}$ac_header_preproc" >&6; }
20543 # So? What about this header?
20544 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20546 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20547 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20548 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20549 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20550 ac_header_preproc=yes
20553 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20554 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20555 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20556 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20557 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20558 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20559 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20560 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20561 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20562 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20563 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20564 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20568 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20570 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20571 echo $ECHO_N "(cached) $ECHO_C" >&6
20573 eval "$as_ac_Header=\$ac_header_preproc"
20575 ac_res=`eval echo '${'$as_ac_Header'}'`
20576 { echo "$as_me:$LINENO: result: $ac_res" >&5
20577 echo "${ECHO_T}$ac_res" >&6; }
20580 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20581 cat >>confdefs.h <<_ACEOF
20582 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20592 for ac_header in sys/int_types.h string.h strings.h
20594 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20595 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20596 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20598 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20599 echo $ECHO_N "(cached) $ECHO_C" >&6
20601 ac_res=`eval echo '${'$as_ac_Header'}'`
20602 { echo "$as_me:$LINENO: result: $ac_res" >&5
20603 echo "${ECHO_T}$ac_res" >&6; }
20605 # Is the header compilable?
20606 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20607 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20608 cat >conftest.$ac_ext <<_ACEOF
20611 cat confdefs.h >>conftest.$ac_ext
20612 cat >>conftest.$ac_ext <<_ACEOF
20613 /* end confdefs.h. */
20614 $ac_includes_default
20615 #include <$ac_header>
20617 rm -f conftest.$ac_objext
20618 if { (ac_try="$ac_compile"
20619 case "(($ac_try" in
20620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20621 *) ac_try_echo=$ac_try;;
20623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20624 (eval "$ac_compile") 2>conftest.er1
20626 grep -v '^ *+' conftest.er1 >conftest.err
20628 cat conftest.err >&5
20629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20630 (exit $ac_status); } && {
20631 test -z "$ac_c_werror_flag" ||
20632 test ! -s conftest.err
20633 } && test -s conftest.$ac_objext; then
20634 ac_header_compiler=yes
20636 echo "$as_me: failed program was:" >&5
20637 sed 's/^/| /' conftest.$ac_ext >&5
20639 ac_header_compiler=no
20642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20643 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20644 echo "${ECHO_T}$ac_header_compiler" >&6; }
20646 # Is the header present?
20647 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20648 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20649 cat >conftest.$ac_ext <<_ACEOF
20652 cat confdefs.h >>conftest.$ac_ext
20653 cat >>conftest.$ac_ext <<_ACEOF
20654 /* end confdefs.h. */
20655 #include <$ac_header>
20657 if { (ac_try="$ac_cpp conftest.$ac_ext"
20658 case "(($ac_try" in
20659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20660 *) ac_try_echo=$ac_try;;
20662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20663 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20665 grep -v '^ *+' conftest.er1 >conftest.err
20667 cat conftest.err >&5
20668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669 (exit $ac_status); } >/dev/null && {
20670 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20671 test ! -s conftest.err
20673 ac_header_preproc=yes
20675 echo "$as_me: failed program was:" >&5
20676 sed 's/^/| /' conftest.$ac_ext >&5
20678 ac_header_preproc=no
20681 rm -f conftest.err conftest.$ac_ext
20682 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20683 echo "${ECHO_T}$ac_header_preproc" >&6; }
20685 # So? What about this header?
20686 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20688 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20689 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20690 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20691 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20692 ac_header_preproc=yes
20695 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20696 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20697 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20698 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20699 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20700 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20701 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20702 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20703 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20704 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20705 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20706 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20710 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20712 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20713 echo $ECHO_N "(cached) $ECHO_C" >&6
20715 eval "$as_ac_Header=\$ac_header_preproc"
20717 ac_res=`eval echo '${'$as_ac_Header'}'`
20718 { echo "$as_me:$LINENO: result: $ac_res" >&5
20719 echo "${ECHO_T}$ac_res" >&6; }
20722 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20723 cat >>confdefs.h <<_ACEOF
20724 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20733 for ac_header in dirent.h sys/stat.h
20735 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20736 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20737 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20738 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20739 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20740 echo $ECHO_N "(cached) $ECHO_C" >&6
20742 ac_res=`eval echo '${'$as_ac_Header'}'`
20743 { echo "$as_me:$LINENO: result: $ac_res" >&5
20744 echo "${ECHO_T}$ac_res" >&6; }
20746 # Is the header compilable?
20747 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20748 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20749 cat >conftest.$ac_ext <<_ACEOF
20752 cat confdefs.h >>conftest.$ac_ext
20753 cat >>conftest.$ac_ext <<_ACEOF
20754 /* end confdefs.h. */
20755 $ac_includes_default
20756 #include <$ac_header>
20758 rm -f conftest.$ac_objext
20759 if { (ac_try="$ac_compile"
20760 case "(($ac_try" in
20761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20762 *) ac_try_echo=$ac_try;;
20764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20765 (eval "$ac_compile") 2>conftest.er1
20767 grep -v '^ *+' conftest.er1 >conftest.err
20769 cat conftest.err >&5
20770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20771 (exit $ac_status); } && {
20772 test -z "$ac_c_werror_flag" ||
20773 test ! -s conftest.err
20774 } && test -s conftest.$ac_objext; then
20775 ac_header_compiler=yes
20777 echo "$as_me: failed program was:" >&5
20778 sed 's/^/| /' conftest.$ac_ext >&5
20780 ac_header_compiler=no
20783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20784 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20785 echo "${ECHO_T}$ac_header_compiler" >&6; }
20787 # Is the header present?
20788 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20789 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20790 cat >conftest.$ac_ext <<_ACEOF
20793 cat confdefs.h >>conftest.$ac_ext
20794 cat >>conftest.$ac_ext <<_ACEOF
20795 /* end confdefs.h. */
20796 #include <$ac_header>
20798 if { (ac_try="$ac_cpp conftest.$ac_ext"
20799 case "(($ac_try" in
20800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20801 *) ac_try_echo=$ac_try;;
20803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20804 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20806 grep -v '^ *+' conftest.er1 >conftest.err
20808 cat conftest.err >&5
20809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20810 (exit $ac_status); } >/dev/null && {
20811 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20812 test ! -s conftest.err
20814 ac_header_preproc=yes
20816 echo "$as_me: failed program was:" >&5
20817 sed 's/^/| /' conftest.$ac_ext >&5
20819 ac_header_preproc=no
20822 rm -f conftest.err conftest.$ac_ext
20823 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20824 echo "${ECHO_T}$ac_header_preproc" >&6; }
20826 # So? What about this header?
20827 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20829 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20830 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20831 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20832 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20833 ac_header_preproc=yes
20836 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20837 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20838 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20839 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20840 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20841 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20842 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20843 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20844 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20845 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20846 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20847 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20851 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20852 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20853 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20854 echo $ECHO_N "(cached) $ECHO_C" >&6
20856 eval "$as_ac_Header=\$ac_header_preproc"
20858 ac_res=`eval echo '${'$as_ac_Header'}'`
20859 { echo "$as_me:$LINENO: result: $ac_res" >&5
20860 echo "${ECHO_T}$ac_res" >&6; }
20863 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20864 cat >>confdefs.h <<_ACEOF
20865 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20873 { echo "$as_me:$LINENO: checking for inline" >&5
20874 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
20875 if test "${ac_cv_c_inline+set}" = set; then
20876 echo $ECHO_N "(cached) $ECHO_C" >&6
20879 for ac_kw in inline __inline__ __inline; do
20880 cat >conftest.$ac_ext <<_ACEOF
20883 cat confdefs.h >>conftest.$ac_ext
20884 cat >>conftest.$ac_ext <<_ACEOF
20885 /* end confdefs.h. */
20886 #ifndef __cplusplus
20888 static $ac_kw foo_t static_foo () {return 0; }
20889 $ac_kw foo_t foo () {return 0; }
20893 rm -f conftest.$ac_objext
20894 if { (ac_try="$ac_compile"
20895 case "(($ac_try" in
20896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20897 *) ac_try_echo=$ac_try;;
20899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20900 (eval "$ac_compile") 2>conftest.er1
20902 grep -v '^ *+' conftest.er1 >conftest.err
20904 cat conftest.err >&5
20905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20906 (exit $ac_status); } && {
20907 test -z "$ac_c_werror_flag" ||
20908 test ! -s conftest.err
20909 } && test -s conftest.$ac_objext; then
20910 ac_cv_c_inline=$ac_kw
20912 echo "$as_me: failed program was:" >&5
20913 sed 's/^/| /' conftest.$ac_ext >&5
20918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20919 test "$ac_cv_c_inline" != no && break
20923 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20924 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
20927 case $ac_cv_c_inline in
20930 case $ac_cv_c_inline in
20932 *) ac_val=$ac_cv_c_inline;;
20934 cat >>confdefs.h <<_ACEOF
20935 #ifndef __cplusplus
20936 #define inline $ac_val
20942 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20943 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20944 if test "${ac_cv_c_const+set}" = set; then
20945 echo $ECHO_N "(cached) $ECHO_C" >&6
20947 cat >conftest.$ac_ext <<_ACEOF
20950 cat confdefs.h >>conftest.$ac_ext
20951 cat >>conftest.$ac_ext <<_ACEOF
20952 /* end confdefs.h. */
20957 /* FIXME: Include the comments suggested by Paul. */
20958 #ifndef __cplusplus
20959 /* Ultrix mips cc rejects this. */
20960 typedef int charset[2];
20962 /* SunOS 4.1.1 cc rejects this. */
20963 char const *const *pcpcc;
20965 /* NEC SVR4.0.2 mips cc rejects this. */
20966 struct point {int x, y;};
20967 static struct point const zero = {0,0};
20968 /* AIX XL C 1.02.0.0 rejects this.
20969 It does not let you subtract one const X* pointer from another in
20970 an arm of an if-expression whose if-part is not a constant
20972 const char *g = "string";
20973 pcpcc = &g + (g ? g-g : 0);
20974 /* HPUX 7.0 cc rejects these. */
20976 ppc = (char**) pcpcc;
20977 pcpcc = (char const *const *) ppc;
20978 { /* SCO 3.2v4 cc rejects this. */
20980 char const *s = 0 ? (char *) 0 : (char const *) 0;
20985 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20986 int x[] = {25, 17};
20987 const int *foo = &x[0];
20990 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20991 typedef const int *iptr;
20995 { /* AIX XL C 1.02.0.0 rejects this saying
20996 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20997 struct s { int j; const int *ap[3]; };
20998 struct s *b; b->j = 5;
21000 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21001 const int foo = 10;
21002 if (!foo) return 0;
21004 return !cs[0] && !zero.x;
21011 rm -f conftest.$ac_objext
21012 if { (ac_try="$ac_compile"
21013 case "(($ac_try" in
21014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21015 *) ac_try_echo=$ac_try;;
21017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21018 (eval "$ac_compile") 2>conftest.er1
21020 grep -v '^ *+' conftest.er1 >conftest.err
21022 cat conftest.err >&5
21023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21024 (exit $ac_status); } && {
21025 test -z "$ac_c_werror_flag" ||
21026 test ! -s conftest.err
21027 } && test -s conftest.$ac_objext; then
21030 echo "$as_me: failed program was:" >&5
21031 sed 's/^/| /' conftest.$ac_ext >&5
21036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21038 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21039 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21040 if test $ac_cv_c_const = no; then
21042 cat >>confdefs.h <<\_ACEOF
21048 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21049 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
21050 if test "${ac_cv_header_time+set}" = set; then
21051 echo $ECHO_N "(cached) $ECHO_C" >&6
21053 cat >conftest.$ac_ext <<_ACEOF
21056 cat confdefs.h >>conftest.$ac_ext
21057 cat >>conftest.$ac_ext <<_ACEOF
21058 /* end confdefs.h. */
21059 #include <sys/types.h>
21060 #include <sys/time.h>
21066 if ((struct tm *) 0)
21072 rm -f conftest.$ac_objext
21073 if { (ac_try="$ac_compile"
21074 case "(($ac_try" in
21075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21076 *) ac_try_echo=$ac_try;;
21078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21079 (eval "$ac_compile") 2>conftest.er1
21081 grep -v '^ *+' conftest.er1 >conftest.err
21083 cat conftest.err >&5
21084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21085 (exit $ac_status); } && {
21086 test -z "$ac_c_werror_flag" ||
21087 test ! -s conftest.err
21088 } && test -s conftest.$ac_objext; then
21089 ac_cv_header_time=yes
21091 echo "$as_me: failed program was:" >&5
21092 sed 's/^/| /' conftest.$ac_ext >&5
21094 ac_cv_header_time=no
21097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21099 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21100 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21101 if test $ac_cv_header_time = yes; then
21103 cat >>confdefs.h <<\_ACEOF
21104 #define TIME_WITH_SYS_TIME 1
21109 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21110 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
21111 if test "${ac_cv_struct_tm+set}" = set; then
21112 echo $ECHO_N "(cached) $ECHO_C" >&6
21114 cat >conftest.$ac_ext <<_ACEOF
21117 cat confdefs.h >>conftest.$ac_ext
21118 cat >>conftest.$ac_ext <<_ACEOF
21119 /* end confdefs.h. */
21120 #include <sys/types.h>
21127 int *p = &tm.tm_sec;
21133 rm -f conftest.$ac_objext
21134 if { (ac_try="$ac_compile"
21135 case "(($ac_try" in
21136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21137 *) ac_try_echo=$ac_try;;
21139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21140 (eval "$ac_compile") 2>conftest.er1
21142 grep -v '^ *+' conftest.er1 >conftest.err
21144 cat conftest.err >&5
21145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21146 (exit $ac_status); } && {
21147 test -z "$ac_c_werror_flag" ||
21148 test ! -s conftest.err
21149 } && test -s conftest.$ac_objext; then
21150 ac_cv_struct_tm=time.h
21152 echo "$as_me: failed program was:" >&5
21153 sed 's/^/| /' conftest.$ac_ext >&5
21155 ac_cv_struct_tm=sys/time.h
21158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21160 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21161 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
21162 if test $ac_cv_struct_tm = sys/time.h; then
21164 cat >>confdefs.h <<\_ACEOF
21165 #define TM_IN_SYS_TIME 1
21173 for ac_func in select strdup strstr
21175 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21176 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21177 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21178 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21179 echo $ECHO_N "(cached) $ECHO_C" >&6
21181 cat >conftest.$ac_ext <<_ACEOF
21184 cat confdefs.h >>conftest.$ac_ext
21185 cat >>conftest.$ac_ext <<_ACEOF
21186 /* end confdefs.h. */
21187 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21188 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21189 #define $ac_func innocuous_$ac_func
21191 /* System header to define __stub macros and hopefully few prototypes,
21192 which can conflict with char $ac_func (); below.
21193 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21194 <limits.h> exists even on freestanding compilers. */
21197 # include <limits.h>
21199 # include <assert.h>
21204 /* Override any GCC internal prototype to avoid an error.
21205 Use char because int might match the return type of a GCC
21206 builtin and then its argument prototype would still apply. */
21211 /* The GNU C library defines this for functions which it implements
21212 to always fail with ENOSYS. Some functions are actually named
21213 something starting with __ and the normal name is an alias. */
21214 #if defined __stub_$ac_func || defined __stub___$ac_func
21221 return $ac_func ();
21226 rm -f conftest.$ac_objext conftest$ac_exeext
21227 if { (ac_try="$ac_link"
21228 case "(($ac_try" in
21229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21230 *) ac_try_echo=$ac_try;;
21232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21233 (eval "$ac_link") 2>conftest.er1
21235 grep -v '^ *+' conftest.er1 >conftest.err
21237 cat conftest.err >&5
21238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21239 (exit $ac_status); } && {
21240 test -z "$ac_c_werror_flag" ||
21241 test ! -s conftest.err
21242 } && test -s conftest$ac_exeext &&
21243 $as_test_x conftest$ac_exeext; then
21244 eval "$as_ac_var=yes"
21246 echo "$as_me: failed program was:" >&5
21247 sed 's/^/| /' conftest.$ac_ext >&5
21249 eval "$as_ac_var=no"
21252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21253 conftest$ac_exeext conftest.$ac_ext
21255 ac_res=`eval echo '${'$as_ac_var'}'`
21256 { echo "$as_me:$LINENO: result: $ac_res" >&5
21257 echo "${ECHO_T}$ac_res" >&6; }
21258 if test `eval echo '${'$as_ac_var'}'` = yes; then
21259 cat >>confdefs.h <<_ACEOF
21260 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21267 G2_TM_H=$ac_cv_struct_tm
21270 G2_HAVE_SYS_INT_TYPES_H=0
21271 if test "$ac_cv_header_sys_int_types_h" = "yes"; then
21272 G2_HAVE_SYS_INT_TYPES_H=1
21274 if test "$ac_cv_header_stdint_h" = "yes"; then
21278 if test "$ac_cv_header_unistd_h" = "yes"; then
21282 if test "$ac_cv_header_malloc_h" = "yes"; then
21286 if test "$ac_cv_header_stdint_h" = "yes"; then
21289 G2_TIME_WITH_SYS_TIME=0
21290 if test "$ac_cv_header_time_h" = "yes"; then
21291 G2_TIME_WITH_SYS_TIME=1
21293 G2_TM_IN_SYS_TIME=0
21294 if test "$ac_cv_struct_tm" = "sys/time.h"; then
21295 G2_TM_IN_SYS_TIME=1
21309 ac_config_files="$ac_config_files Makefile src/Makefile src/sympathy.h.head test/Makefile apps/Makefile libsympathy-config.src"
21311 ac_config_commands="$ac_config_commands default"
21313 cat >confcache <<\_ACEOF
21314 # This file is a shell script that caches the results of configure
21315 # tests run on this system so they can be shared between configure
21316 # scripts and configure runs, see configure's option --config-cache.
21317 # It is not useful on other systems. If it contains results you don't
21318 # want to keep, you may remove or edit it.
21320 # config.status only pays attention to the cache file if you give it
21321 # the --recheck option to rerun configure.
21323 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21324 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21325 # following values.
21329 # The following way of writing the cache mishandles newlines in values,
21330 # but we know of no workaround that is simple, portable, and efficient.
21331 # So, we kill variables containing newlines.
21332 # Ultrix sh set writes to stderr and can't be redirected directly,
21333 # and sets the high bit in the cache file unless we assign to the vars.
21335 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21336 eval ac_val=\$$ac_var
21340 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21341 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21344 _ | IFS | as_nl) ;; #(
21345 *) $as_unset $ac_var ;;
21351 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21352 *${as_nl}ac_space=\ *)
21353 # `set' does not quote correctly, so add quotes (double-quote
21354 # substitution turns \\\\ into \\, and sed turns \\ into \).
21357 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21360 # `set' quotes correctly as required by POSIX, so do not add quotes.
21361 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21370 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21372 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21374 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21375 if test -w "$cache_file"; then
21376 test "x$cache_file" != "x/dev/null" &&
21377 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21378 echo "$as_me: updating cache $cache_file" >&6;}
21379 cat confcache >$cache_file
21381 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21382 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21387 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21388 # Let make expand exec_prefix.
21389 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21391 DEFS=-DHAVE_CONFIG_H
21395 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21396 # 1. Remove the extension, and $U if already installed.
21397 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21398 ac_i=`echo "$ac_i" | sed "$ac_script"`
21399 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21400 # will be set to the directory where LIBOBJS objects are built.
21401 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21402 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21404 LIBOBJS=$ac_libobjs
21406 LTLIBOBJS=$ac_ltlibobjs
21409 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21410 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21411 Usually this means the macro was only invoked conditionally." >&5
21412 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21413 Usually this means the macro was only invoked conditionally." >&2;}
21414 { (exit 1); exit 1; }; }
21416 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21417 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21418 Usually this means the macro was only invoked conditionally." >&5
21419 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21420 Usually this means the macro was only invoked conditionally." >&2;}
21421 { (exit 1); exit 1; }; }
21423 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21424 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21425 Usually this means the macro was only invoked conditionally." >&5
21426 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21427 Usually this means the macro was only invoked conditionally." >&2;}
21428 { (exit 1); exit 1; }; }
21431 : ${CONFIG_STATUS=./config.status}
21432 ac_clean_files_save=$ac_clean_files
21433 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21434 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21435 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21436 cat >$CONFIG_STATUS <<_ACEOF
21438 # Generated by $as_me.
21439 # Run this file to recreate the current configuration.
21440 # Compiler output produced by configure, useful for debugging
21441 # configure, is in config.log if it exists.
21444 ac_cs_recheck=false
21446 SHELL=\${CONFIG_SHELL-$SHELL}
21449 cat >>$CONFIG_STATUS <<\_ACEOF
21450 ## --------------------- ##
21451 ## M4sh Initialization. ##
21452 ## --------------------- ##
21454 # Be more Bourne compatible
21455 DUALCASE=1; export DUALCASE # for MKS sh
21456 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21459 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21460 # is contrary to our usage. Disable this feature.
21461 alias -g '${1+"$@"}'='"$@"'
21462 setopt NO_GLOB_SUBST
21464 case `(set -o) 2>/dev/null` in
21465 *posix*) set -o posix ;;
21474 # Avoid depending upon Character Ranges.
21475 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21476 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21477 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21478 as_cr_digits='0123456789'
21479 as_cr_alnum=$as_cr_Letters$as_cr_digits
21481 # The user is always right.
21482 if test "${PATH_SEPARATOR+set}" != set; then
21483 echo "#! /bin/sh" >conf$$.sh
21484 echo "exit 0" >>conf$$.sh
21486 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21494 # Support unset when possible.
21495 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21503 # We need space, tab and new line, in precisely that order. Quoting is
21504 # there to prevent editors from complaining about space-tab.
21505 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21506 # splitting by setting IFS to empty value.)
21511 # Find who we are. Look in the path if we contain no directory separator.
21513 *[\\/]* ) as_myself=$0 ;;
21514 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21515 for as_dir in $PATH
21518 test -z "$as_dir" && as_dir=.
21519 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21525 # We did not find ourselves, most probably we were run as `sh COMMAND'
21526 # in which case we are not to be found in the path.
21527 if test "x$as_myself" = x; then
21530 if test ! -f "$as_myself"; then
21531 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21532 { (exit 1); exit 1; }
21535 # Work around bugs in pre-3.0 UWIN ksh.
21536 for as_var in ENV MAIL MAILPATH
21537 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21545 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21546 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21547 LC_TELEPHONE LC_TIME
21549 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21550 eval $as_var=C; export $as_var
21552 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21556 # Required to use basename.
21557 if expr a : '\(a\)' >/dev/null 2>&1 &&
21558 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21564 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21565 as_basename=basename
21571 # Name of the executable.
21572 as_me=`$as_basename -- "$0" ||
21573 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21574 X"$0" : 'X\(//\)$' \| \
21575 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21577 sed '/^.*\/\([^/][^/]*\)\/*$/{
21596 as_lineno_1=$LINENO
21597 as_lineno_2=$LINENO
21598 test "x$as_lineno_1" != "x$as_lineno_2" &&
21599 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21601 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21602 # uniformly replaced by the line number. The first 'sed' inserts a
21603 # line-number line after each line using $LINENO; the second 'sed'
21604 # does the real work. The second script uses 'N' to pair each
21605 # line-number line with the line containing $LINENO, and appends
21606 # trailing '-' during substitution so that $LINENO is not a special
21607 # case at line end.
21608 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21609 # scripts with optimization help from Paolo Bonzini. Blame Lee
21610 # E. McMahon (1931-1989) for sed's syntax. :-)
21622 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21625 ' >$as_me.lineno &&
21626 chmod +x "$as_me.lineno" ||
21627 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21628 { (exit 1); exit 1; }; }
21630 # Don't try to exec as it changes $[0], causing all sort of problems
21631 # (the dirname of $[0] is not the place where we might find the
21632 # original and so on. Autoconf is especially sensitive to this).
21633 . "./$as_me.lineno"
21634 # Exit status is that of the last command.
21639 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21645 ECHO_C= ECHO_N= ECHO_T=
21646 case `echo -n x` in
21648 case `echo 'x\c'` in
21649 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21656 if expr a : '\(a\)' >/dev/null 2>&1 &&
21657 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21663 rm -f conf$$ conf$$.exe conf$$.file
21664 if test -d conf$$.dir; then
21665 rm -f conf$$.dir/conf$$.file
21671 if ln -s conf$$.file conf$$ 2>/dev/null; then
21673 # ... but there are two gotchas:
21674 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21675 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21676 # In both cases, we have to default to `cp -p'.
21677 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21679 elif ln conf$$.file conf$$ 2>/dev/null; then
21684 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21685 rmdir conf$$.dir 2>/dev/null
21687 if mkdir -p . 2>/dev/null; then
21690 test -d ./-p && rmdir ./-p
21694 if test -x / >/dev/null 2>&1; then
21695 as_test_x='test -x'
21697 if ls -dL / >/dev/null 2>&1; then
21704 if test -d "$1"; then
21710 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21711 ???[sx]*):;;*)false;;esac;fi
21715 as_executable_p=$as_test_x
21717 # Sed expression to map a string onto a valid CPP name.
21718 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21720 # Sed expression to map a string onto a valid variable name.
21721 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21726 # Save the log message, to keep $[0] and so on meaningful, and to
21727 # report actual input values of CONFIG_FILES etc. instead of their
21728 # values after options handling.
21730 This file was extended by $as_me, which was
21731 generated by GNU Autoconf 2.61. Invocation command line was
21733 CONFIG_FILES = $CONFIG_FILES
21734 CONFIG_HEADERS = $CONFIG_HEADERS
21735 CONFIG_LINKS = $CONFIG_LINKS
21736 CONFIG_COMMANDS = $CONFIG_COMMANDS
21739 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21744 cat >>$CONFIG_STATUS <<_ACEOF
21745 # Files that config.status was made for.
21746 config_files="$ac_config_files"
21747 config_headers="$ac_config_headers"
21748 config_commands="$ac_config_commands"
21752 cat >>$CONFIG_STATUS <<\_ACEOF
21754 \`$as_me' instantiates files from templates according to the
21755 current configuration.
21757 Usage: $0 [OPTIONS] [FILE]...
21759 -h, --help print this help, then exit
21760 -V, --version print version number and configuration settings, then exit
21761 -q, --quiet do not print progress messages
21762 -d, --debug don't remove temporary files
21763 --recheck update $as_me by reconfiguring in the same conditions
21764 --file=FILE[:TEMPLATE]
21765 instantiate the configuration file FILE
21766 --header=FILE[:TEMPLATE]
21767 instantiate the configuration header FILE
21769 Configuration files:
21772 Configuration headers:
21775 Configuration commands:
21778 Report bugs to <bug-autoconf@gnu.org>."
21781 cat >>$CONFIG_STATUS <<_ACEOF
21784 configured by $0, generated by GNU Autoconf 2.61,
21785 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21787 Copyright (C) 2006 Free Software Foundation, Inc.
21788 This config.status script is free software; the Free Software Foundation
21789 gives unlimited permission to copy, distribute and modify it."
21797 cat >>$CONFIG_STATUS <<\_ACEOF
21798 # If no file are specified by the user, then we need to provide default
21799 # value. By we need to know if files were specified by the user.
21805 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21806 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21817 # Handling of the options.
21818 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21820 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21821 echo "$ac_cs_version"; exit ;;
21822 --debug | --debu | --deb | --de | --d | -d )
21824 --file | --fil | --fi | --f )
21826 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21827 ac_need_defaults=false;;
21828 --header | --heade | --head | --hea )
21830 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21831 ac_need_defaults=false;;
21833 # Conflict between --help and --header
21834 { echo "$as_me: error: ambiguous option: $1
21835 Try \`$0 --help' for more information." >&2
21836 { (exit 1); exit 1; }; };;
21837 --help | --hel | -h )
21838 echo "$ac_cs_usage"; exit ;;
21839 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21840 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21843 # This is an error.
21844 -*) { echo "$as_me: error: unrecognized option: $1
21845 Try \`$0 --help' for more information." >&2
21846 { (exit 1); exit 1; }; } ;;
21848 *) ac_config_targets="$ac_config_targets $1"
21849 ac_need_defaults=false ;;
21855 ac_configure_extra_args=
21857 if $ac_cs_silent; then
21859 ac_configure_extra_args="$ac_configure_extra_args --silent"
21863 cat >>$CONFIG_STATUS <<_ACEOF
21864 if \$ac_cs_recheck; then
21865 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21866 CONFIG_SHELL=$SHELL
21867 export CONFIG_SHELL
21868 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21872 cat >>$CONFIG_STATUS <<\_ACEOF
21876 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21877 ## Running $as_me. ##
21883 cat >>$CONFIG_STATUS <<_ACEOF
21887 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21891 cat >>$CONFIG_STATUS <<\_ACEOF
21893 # Handling of arguments.
21894 for ac_config_target in $ac_config_targets
21896 case $ac_config_target in
21897 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21898 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
21899 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21900 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21901 "src/sympathy.h.head") CONFIG_FILES="$CONFIG_FILES src/sympathy.h.head" ;;
21902 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
21903 "apps/Makefile") CONFIG_FILES="$CONFIG_FILES apps/Makefile" ;;
21904 "libsympathy-config.src") CONFIG_FILES="$CONFIG_FILES libsympathy-config.src" ;;
21905 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
21907 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21908 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21909 { (exit 1); exit 1; }; };;
21914 # If the user did not use the arguments to specify the items to instantiate,
21915 # then the envvar interface is used. Set only those that are not.
21916 # We use the long form for the default assignment because of an extremely
21917 # bizarre bug on SunOS 4.1.3.
21918 if $ac_need_defaults; then
21919 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21920 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21921 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21924 # Have a temporary directory for convenience. Make it in the build tree
21925 # simply because there is no reason against having it here, and in addition,
21926 # creating and moving files from /tmp can sometimes cause problems.
21927 # Hook for its removal unless debugging.
21928 # Note that there is a small window in which the directory will not be cleaned:
21929 # after its creation but before its name has been assigned to `$tmp'.
21933 trap 'exit_status=$?
21934 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21936 trap '{ (exit 1); exit 1; }' 1 2 13 15
21938 # Create a (secure) tmp directory for tmp files.
21941 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21942 test -n "$tmp" && test -d "$tmp"
21945 tmp=./conf$$-$RANDOM
21946 (umask 077 && mkdir "$tmp")
21949 echo "$me: cannot create a temporary directory in ." >&2
21950 { (exit 1); exit 1; }
21954 # Set up the sed scripts for CONFIG_FILES section.
21957 # No need to generate the scripts if there are no CONFIG_FILES.
21958 # This happens for instance when ./config.status config.h
21959 if test -n "$CONFIG_FILES"; then
21966 for ac_last_try in false false false false false :; do
21967 cat >conf$$subs.sed <<_ACEOF
21968 SHELL!$SHELL$ac_delim
21969 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21970 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21971 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21972 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21973 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21974 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21975 exec_prefix!$exec_prefix$ac_delim
21976 prefix!$prefix$ac_delim
21977 program_transform_name!$program_transform_name$ac_delim
21978 bindir!$bindir$ac_delim
21979 sbindir!$sbindir$ac_delim
21980 libexecdir!$libexecdir$ac_delim
21981 datarootdir!$datarootdir$ac_delim
21982 datadir!$datadir$ac_delim
21983 sysconfdir!$sysconfdir$ac_delim
21984 sharedstatedir!$sharedstatedir$ac_delim
21985 localstatedir!$localstatedir$ac_delim
21986 includedir!$includedir$ac_delim
21987 oldincludedir!$oldincludedir$ac_delim
21988 docdir!$docdir$ac_delim
21989 infodir!$infodir$ac_delim
21990 htmldir!$htmldir$ac_delim
21991 dvidir!$dvidir$ac_delim
21992 pdfdir!$pdfdir$ac_delim
21993 psdir!$psdir$ac_delim
21994 libdir!$libdir$ac_delim
21995 localedir!$localedir$ac_delim
21996 mandir!$mandir$ac_delim
21997 DEFS!$DEFS$ac_delim
21998 ECHO_C!$ECHO_C$ac_delim
21999 ECHO_N!$ECHO_N$ac_delim
22000 ECHO_T!$ECHO_T$ac_delim
22001 LIBS!$LIBS$ac_delim
22002 build_alias!$build_alias$ac_delim
22003 host_alias!$host_alias$ac_delim
22004 target_alias!$target_alias$ac_delim
22006 CFLAGS!$CFLAGS$ac_delim
22007 LDFLAGS!$LDFLAGS$ac_delim
22008 CPPFLAGS!$CPPFLAGS$ac_delim
22009 ac_ct_CC!$ac_ct_CC$ac_delim
22010 EXEEXT!$EXEEXT$ac_delim
22011 OBJEXT!$OBJEXT$ac_delim
22012 LIBSYMPATHY_MAJOR_VERSION!$LIBSYMPATHY_MAJOR_VERSION$ac_delim
22013 LIBSYMPATHY_MINOR_VERSION!$LIBSYMPATHY_MINOR_VERSION$ac_delim
22014 LIBSYMPATHY_MICRO_VERSION!$LIBSYMPATHY_MICRO_VERSION$ac_delim
22015 LIBSYMPATHY_VERSION!$LIBSYMPATHY_VERSION$ac_delim
22016 LIBSYMPATHY_INTERFACE_VERSION_MIN!$LIBSYMPATHY_INTERFACE_VERSION_MIN$ac_delim
22017 LIBSYMPATHY_INTERFACE_VERSION_MAX!$LIBSYMPATHY_INTERFACE_VERSION_MAX$ac_delim
22018 LIBSYMPATHY_INTERFACE_REVISION!$LIBSYMPATHY_INTERFACE_REVISION$ac_delim
22019 LT_RELEASE!$LT_RELEASE$ac_delim
22020 LT_CURRENT!$LT_CURRENT$ac_delim
22021 LT_REVISION!$LT_REVISION$ac_delim
22022 LT_AGE!$LT_AGE$ac_delim
22023 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22024 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22025 INSTALL_DATA!$INSTALL_DATA$ac_delim
22026 am__isrc!$am__isrc$ac_delim
22027 CYGPATH_W!$CYGPATH_W$ac_delim
22028 PACKAGE!$PACKAGE$ac_delim
22029 VERSION!$VERSION$ac_delim
22030 ACLOCAL!$ACLOCAL$ac_delim
22031 AUTOCONF!$AUTOCONF$ac_delim
22032 AUTOMAKE!$AUTOMAKE$ac_delim
22033 AUTOHEADER!$AUTOHEADER$ac_delim
22034 MAKEINFO!$MAKEINFO$ac_delim
22035 install_sh!$install_sh$ac_delim
22036 STRIP!$STRIP$ac_delim
22037 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
22038 mkdir_p!$mkdir_p$ac_delim
22040 SET_MAKE!$SET_MAKE$ac_delim
22041 am__leading_dot!$am__leading_dot$ac_delim
22042 AMTAR!$AMTAR$ac_delim
22043 am__tar!$am__tar$ac_delim
22044 am__untar!$am__untar$ac_delim
22045 DEPDIR!$DEPDIR$ac_delim
22046 am__include!$am__include$ac_delim
22047 am__quote!$am__quote$ac_delim
22048 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
22049 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
22050 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
22051 CCDEPMODE!$CCDEPMODE$ac_delim
22052 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
22053 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
22054 build!$build$ac_delim
22055 build_cpu!$build_cpu$ac_delim
22056 build_vendor!$build_vendor$ac_delim
22057 build_os!$build_os$ac_delim
22058 host!$host$ac_delim
22059 host_cpu!$host_cpu$ac_delim
22060 host_vendor!$host_vendor$ac_delim
22061 host_os!$host_os$ac_delim
22063 GREP!$GREP$ac_delim
22064 EGREP!$EGREP$ac_delim
22067 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22069 elif $ac_last_try; then
22070 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22071 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22072 { (exit 1); exit 1; }; }
22074 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22078 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22079 if test -n "$ac_eof"; then
22080 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22081 ac_eof=`expr $ac_eof + 1`
22084 cat >>$CONFIG_STATUS <<_ACEOF
22085 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22086 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22089 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22090 s/^/s,@/; s/!/@,|#_!!_#|/
22093 s/'"$ac_delim"'$/,g/; t
22095 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22096 ' >>$CONFIG_STATUS <conf$$subs.sed
22097 rm -f conf$$subs.sed
22098 cat >>$CONFIG_STATUS <<_ACEOF
22104 for ac_last_try in false false false false false :; do
22105 cat >conf$$subs.sed <<_ACEOF
22106 LN_S!$LN_S$ac_delim
22107 ECHO!$ECHO$ac_delim
22109 RANLIB!$RANLIB$ac_delim
22110 DSYMUTIL!$DSYMUTIL$ac_delim
22111 NMEDIT!$NMEDIT$ac_delim
22114 CXXFLAGS!$CXXFLAGS$ac_delim
22115 ac_ct_CXX!$ac_ct_CXX$ac_delim
22116 CXXDEPMODE!$CXXDEPMODE$ac_delim
22117 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
22118 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
22119 CXXCPP!$CXXCPP$ac_delim
22121 FFLAGS!$FFLAGS$ac_delim
22122 ac_ct_F77!$ac_ct_F77$ac_delim
22123 LIBTOOL!$LIBTOOL$ac_delim
22124 MD5SUM!$MD5SUM$ac_delim
22125 G2_TM_H!$G2_TM_H$ac_delim
22126 G2_HAVE_STDINT_H!$G2_HAVE_STDINT_H$ac_delim
22127 G2_HAVE_SYS_INT_TYPES_H!$G2_HAVE_SYS_INT_TYPES_H$ac_delim
22128 G2_HAVE_UNISTD_H!$G2_HAVE_UNISTD_H$ac_delim
22129 G2_HAVE_MALLOC_H!$G2_HAVE_MALLOC_H$ac_delim
22130 G2_TIME_WITH_SYS_TIME!$G2_TIME_WITH_SYS_TIME$ac_delim
22131 G2_TM_IN_SYS_TIME!$G2_TM_IN_SYS_TIME$ac_delim
22132 LIBOBJS!$LIBOBJS$ac_delim
22133 LTLIBOBJS!$LTLIBOBJS$ac_delim
22136 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 28; then
22138 elif $ac_last_try; then
22139 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22140 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22141 { (exit 1); exit 1; }; }
22143 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22147 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22148 if test -n "$ac_eof"; then
22149 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22150 ac_eof=`expr $ac_eof + 1`
22153 cat >>$CONFIG_STATUS <<_ACEOF
22154 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22155 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22158 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22159 s/^/s,@/; s/!/@,|#_!!_#|/
22162 s/'"$ac_delim"'$/,g/; t
22164 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22165 ' >>$CONFIG_STATUS <conf$$subs.sed
22166 rm -f conf$$subs.sed
22167 cat >>$CONFIG_STATUS <<_ACEOF
22174 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22175 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22176 # trailing colons and then remove the whole line if VPATH becomes empty
22177 # (actually we leave an empty line to preserve line numbers).
22178 if test "x$srcdir" = x.; then
22179 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22180 s/:*\$(srcdir):*/:/
22181 s/:*\${srcdir}:*/:/
22183 s/^\([^=]*=[ ]*\):*/\1/
22189 cat >>$CONFIG_STATUS <<\_ACEOF
22190 fi # test -n "$CONFIG_FILES"
22193 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22196 :[FHLC]) ac_mode=$ac_tag; continue;;
22198 case $ac_mode$ac_tag in
22200 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22201 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22202 { (exit 1); exit 1; }; };;
22203 :[FH]-) ac_tag=-:-;;
22204 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22221 -) ac_f="$tmp/stdin";;
22222 *) # Look for the file first in the build tree, then in the source tree
22223 # (if the path is not absolute). The absolute path cannot be DOS-style,
22224 # because $ac_f cannot contain `:'.
22228 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22230 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22231 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22232 { (exit 1); exit 1; }; };;
22234 ac_file_inputs="$ac_file_inputs $ac_f"
22237 # Let's still pretend it is `configure' which instantiates (i.e., don't
22238 # use $as_me), people would be surprised to read:
22239 # /* config.h. Generated by config.status. */
22240 configure_input="Generated from "`IFS=:
22241 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22242 if test x"$ac_file" != x-; then
22243 configure_input="$ac_file. $configure_input"
22244 { echo "$as_me:$LINENO: creating $ac_file" >&5
22245 echo "$as_me: creating $ac_file" >&6;}
22249 *:-:* | *:-) cat >"$tmp/stdin";;
22254 ac_dir=`$as_dirname -- "$ac_file" ||
22255 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22256 X"$ac_file" : 'X\(//\)[^/]' \| \
22257 X"$ac_file" : 'X\(//\)$' \| \
22258 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22264 /^X\(\/\/\)[^/].*/{
22279 -*) as_dir=./$as_dir;;
22281 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22285 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22286 *) as_qdir=$as_dir;;
22288 as_dirs="'$as_qdir' $as_dirs"
22289 as_dir=`$as_dirname -- "$as_dir" ||
22290 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22291 X"$as_dir" : 'X\(//\)[^/]' \| \
22292 X"$as_dir" : 'X\(//\)$' \| \
22293 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22295 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22299 /^X\(\/\/\)[^/].*/{
22312 test -d "$as_dir" && break
22314 test -z "$as_dirs" || eval "mkdir $as_dirs"
22315 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22316 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22317 { (exit 1); exit 1; }; }; }
22321 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22323 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22324 # A ".." for each directory in $ac_dir_suffix.
22325 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22326 case $ac_top_builddir_sub in
22327 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22328 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22331 ac_abs_top_builddir=$ac_pwd
22332 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22333 # for backward compatibility:
22334 ac_top_builddir=$ac_top_build_prefix
22337 .) # We are building in place.
22339 ac_top_srcdir=$ac_top_builddir_sub
22340 ac_abs_top_srcdir=$ac_pwd ;;
22341 [\\/]* | ?:[\\/]* ) # Absolute name.
22342 ac_srcdir=$srcdir$ac_dir_suffix;
22343 ac_top_srcdir=$srcdir
22344 ac_abs_top_srcdir=$srcdir ;;
22345 *) # Relative name.
22346 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22347 ac_top_srcdir=$ac_top_build_prefix$srcdir
22348 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22350 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22360 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22361 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22363 ac_MKDIR_P=$MKDIR_P
22365 [\\/$]* | ?:[\\/]* ) ;;
22366 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22370 cat >>$CONFIG_STATUS <<\_ACEOF
22371 # If the template does not know about datarootdir, expand it.
22372 # FIXME: This hack should be removed a few years after 2.60.
22373 ac_datarootdir_hack=; ac_datarootdir_seen=
22375 case `sed -n '/datarootdir/ {
22384 ' $ac_file_inputs` in
22385 *datarootdir*) ac_datarootdir_seen=yes;;
22386 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22387 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22388 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22390 cat >>$CONFIG_STATUS <<_ACEOF
22391 ac_datarootdir_hack='
22392 s&@datadir@&$datadir&g
22393 s&@docdir@&$docdir&g
22394 s&@infodir@&$infodir&g
22395 s&@localedir@&$localedir&g
22396 s&@mandir@&$mandir&g
22397 s&\\\${datarootdir}&$datarootdir&g' ;;
22401 # Neutralize VPATH when `$srcdir' = `.'.
22402 # Shell code in configure.ac might set extrasub.
22403 # FIXME: do we really want to maintain this feature?
22404 cat >>$CONFIG_STATUS <<_ACEOF
22408 cat >>$CONFIG_STATUS <<\_ACEOF
22410 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22411 s&@configure_input@&$configure_input&;t t
22412 s&@top_builddir@&$ac_top_builddir_sub&;t t
22413 s&@srcdir@&$ac_srcdir&;t t
22414 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22415 s&@top_srcdir@&$ac_top_srcdir&;t t
22416 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22417 s&@builddir@&$ac_builddir&;t t
22418 s&@abs_builddir@&$ac_abs_builddir&;t t
22419 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22420 s&@INSTALL@&$ac_INSTALL&;t t
22421 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22422 $ac_datarootdir_hack
22423 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22425 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22426 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22427 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22428 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22429 which seems to be undefined. Please make sure it is defined." >&5
22430 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22431 which seems to be undefined. Please make sure it is defined." >&2;}
22435 -) cat "$tmp/out"; rm -f "$tmp/out";;
22436 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22445 # Transform confdefs.h into a sed script `conftest.defines', that
22446 # substitutes the proper values into config.h.in to produce config.h.
22447 rm -f conftest.defines conftest.tail
22448 # First, append a space to every undef/define line, to ease matching.
22449 echo 's/$/ /' >conftest.defines
22450 # Then, protect against being on the right side of a sed subst, or in
22451 # an unquoted here document, in config.status. If some macros were
22452 # called several times there might be several #defines for the same
22453 # symbol, which is useless. But do not sort them, since the last
22454 # AC_DEFINE must be honored.
22455 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22456 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22457 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22458 # PARAMS is the parameter list in the macro definition--in most cases, it's
22459 # just an empty string.
22460 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22461 ac_dB='\\)[ (].*,\\1define\\2'
22469 s/^[ ]*#[ ]*define[ ][ ]*//
22474 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22475 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22476 ' >>conftest.defines
22478 # Remove the space that was appended to ease matching.
22479 # Then replace #undef with comments. This is necessary, for
22480 # example, in the case of _POSIX_SOURCE, which is predefined and required
22481 # on some systems where configure will not decide to define it.
22482 # (The regexp can be short, since the line contains either #define or #undef.)
22484 s,^[ #]*u.*,/* & */,' >>conftest.defines
22486 # Break up conftest.defines:
22487 ac_max_sed_lines=50
22489 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22490 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22491 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22493 ac_in='$ac_file_inputs'
22494 ac_out='"$tmp/out1"'
22495 ac_nxt='"$tmp/out2"'
22499 # Write a here document:
22500 cat >>$CONFIG_STATUS <<_ACEOF
22501 # First, check the format of the line:
22502 cat >"\$tmp/defines.sed" <<\\CEOF
22503 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22504 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22508 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22510 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22511 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22512 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22513 grep . conftest.tail >/dev/null || break
22514 rm -f conftest.defines
22515 mv conftest.tail conftest.defines
22517 rm -f conftest.defines conftest.tail
22519 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22520 cat >>$CONFIG_STATUS <<\_ACEOF
22521 if test x"$ac_file" != x-; then
22522 echo "/* $configure_input */" >"$tmp/config.h"
22523 cat "$ac_result" >>"$tmp/config.h"
22524 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22525 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22526 echo "$as_me: $ac_file is unchanged" >&6;}
22529 mv "$tmp/config.h" $ac_file
22532 echo "/* $configure_input */"
22536 # Compute $ac_file's index in $config_headers.
22539 for _am_header in $config_headers :; do
22540 case $_am_header in
22541 $_am_arg | $_am_arg:* )
22544 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22547 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22548 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22549 X"$_am_arg" : 'X\(//\)[^/]' \| \
22550 X"$_am_arg" : 'X\(//\)$' \| \
22551 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22553 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22557 /^X\(\/\/\)[^/].*/{
22569 s/.*/./; q'`/stamp-h$_am_stamp_count
22572 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22573 echo "$as_me: executing $ac_file commands" >&6;}
22578 case $ac_file$ac_mode in
22579 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22580 # Strip MF so we end up with the name of the file.
22581 mf=`echo "$mf" | sed -e 's/:.*$//'`
22582 # Check whether this is an Automake generated Makefile or not.
22583 # We used to match only the files named `Makefile.in', but
22584 # some people rename them; so instead we look at the file content.
22585 # Grep'ing the first line is not enough: some people post-process
22586 # each Makefile.in and add a new line on top of each file to say so.
22587 # Grep'ing the whole file is not good either: AIX grep has a line
22588 # limit of 2048, but all sed's we know have understand at least 4000.
22589 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22590 dirpart=`$as_dirname -- "$mf" ||
22591 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22592 X"$mf" : 'X\(//\)[^/]' \| \
22593 X"$mf" : 'X\(//\)$' \| \
22594 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22596 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22600 /^X\(\/\/\)[^/].*/{
22616 # Extract the definition of DEPDIR, am__include, and am__quote
22617 # from the Makefile without running `make'.
22618 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22619 test -z "$DEPDIR" && continue
22620 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22621 test -z "am__include" && continue
22622 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22623 # When using ansi2knr, U may be empty or an underscore; expand it
22624 U=`sed -n 's/^U = //p' < "$mf"`
22625 # Find all dependency output files, they are included files with
22626 # $(DEPDIR) in their names. We invoke sed twice because it is the
22627 # simplest approach to changing $(DEPDIR) to its actual value in the
22629 for file in `sed -n "
22630 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22631 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22632 # Make sure the directory exists.
22633 test -f "$dirpart/$file" && continue
22634 fdir=`$as_dirname -- "$file" ||
22635 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22636 X"$file" : 'X\(//\)[^/]' \| \
22637 X"$file" : 'X\(//\)$' \| \
22638 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22640 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22644 /^X\(\/\/\)[^/].*/{
22657 { as_dir=$dirpart/$fdir
22659 -*) as_dir=./$as_dir;;
22661 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22665 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22666 *) as_qdir=$as_dir;;
22668 as_dirs="'$as_qdir' $as_dirs"
22669 as_dir=`$as_dirname -- "$as_dir" ||
22670 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22671 X"$as_dir" : 'X\(//\)[^/]' \| \
22672 X"$as_dir" : 'X\(//\)$' \| \
22673 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22675 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22679 /^X\(\/\/\)[^/].*/{
22692 test -d "$as_dir" && break
22694 test -z "$as_dirs" || eval "mkdir $as_dirs"
22695 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22696 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22697 { (exit 1); exit 1; }; }; }
22698 # echo "creating $dirpart/$file"
22699 echo '# dummy' > "$dirpart/$file"
22703 "default":C) chmod +x libsympathy-config.src ;;
22709 { (exit 0); exit 0; }
22711 chmod +x $CONFIG_STATUS
22712 ac_clean_files=$ac_clean_files_save
22715 # configure is writing to config.log, and then calls config.status.
22716 # config.status does its own redirection, appending to config.log.
22717 # Unfortunately, on DOS this fails, as config.log is still kept open
22718 # by configure, so config.status won't be able to write to it; its
22719 # output is simply discarded. So we exec the FD to /dev/null,
22720 # effectively closing config.log, so it can be properly (re)opened and
22721 # appended to by config.status. When coming back to configure, we
22722 # need to make the FD available again.
22723 if test "$no_create" != yes; then
22725 ac_config_status_args=
22726 test "$silent" = yes &&
22727 ac_config_status_args="$ac_config_status_args --quiet"
22729 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22731 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22732 # would make configure fail if this is the last instruction.
22733 $ac_cs_success || { (exit 1); exit 1; }