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/sysync/engineinterface.cpp"
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
821 INSTALL_STRIP_PROGRAM
894 ac_precious_vars='build_alias
922 # Initialize some variables set by options.
924 ac_init_version=false
925 # The variables have the same names as the options, with
926 # dashes changed to underlines.
934 program_transform_name=s,x,x,
942 # Installation directory options.
943 # These are left unexpanded so users can "make install exec_prefix=/foo"
944 # and all the variables that are supposed to be based on exec_prefix
945 # by default will actually change.
946 # Use braces instead of parens because sh, perl, etc. also accept them.
947 # (The list follows the same order as the GNU Coding Standards.)
948 bindir='${exec_prefix}/bin'
949 sbindir='${exec_prefix}/sbin'
950 libexecdir='${exec_prefix}/libexec'
951 datarootdir='${prefix}/share'
952 datadir='${datarootdir}'
953 sysconfdir='${prefix}/etc'
954 sharedstatedir='${prefix}/com'
955 localstatedir='${prefix}/var'
956 includedir='${prefix}/include'
957 oldincludedir='/usr/include'
958 docdir='${datarootdir}/doc/${PACKAGE}'
959 infodir='${datarootdir}/info'
964 libdir='${exec_prefix}/lib'
965 localedir='${datarootdir}/locale'
966 mandir='${datarootdir}/man'
972 # If the previous option needs an argument, assign it.
973 if test -n "$ac_prev"; then
974 eval $ac_prev=\$ac_option
980 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
984 # Accept the important Cygnus configure options, so we can diagnose typos.
986 case $ac_dashdash$ac_option in
990 -bindir | --bindir | --bindi | --bind | --bin | --bi)
992 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
995 -build | --build | --buil | --bui | --bu)
996 ac_prev=build_alias ;;
997 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
998 build_alias=$ac_optarg ;;
1000 -cache-file | --cache-file | --cache-fil | --cache-fi \
1001 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1002 ac_prev=cache_file ;;
1003 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1004 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1005 cache_file=$ac_optarg ;;
1007 --config-cache | -C)
1008 cache_file=config.cache ;;
1010 -datadir | --datadir | --datadi | --datad)
1012 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1013 datadir=$ac_optarg ;;
1015 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1016 | --dataroo | --dataro | --datar)
1017 ac_prev=datarootdir ;;
1018 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1019 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1020 datarootdir=$ac_optarg ;;
1022 -disable-* | --disable-*)
1023 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1024 # Reject names that are not valid shell variable names.
1025 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1026 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1027 { (exit 1); exit 1; }; }
1028 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1029 eval enable_$ac_feature=no ;;
1031 -docdir | --docdir | --docdi | --doc | --do)
1033 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1034 docdir=$ac_optarg ;;
1036 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1038 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1039 dvidir=$ac_optarg ;;
1041 -enable-* | --enable-*)
1042 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1043 # Reject names that are not valid shell variable names.
1044 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1045 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1046 { (exit 1); exit 1; }; }
1047 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1048 eval enable_$ac_feature=\$ac_optarg ;;
1050 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1051 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1052 | --exec | --exe | --ex)
1053 ac_prev=exec_prefix ;;
1054 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1055 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1056 | --exec=* | --exe=* | --ex=*)
1057 exec_prefix=$ac_optarg ;;
1059 -gas | --gas | --ga | --g)
1060 # Obsolete; use --with-gas.
1063 -help | --help | --hel | --he | -h)
1064 ac_init_help=long ;;
1065 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1066 ac_init_help=recursive ;;
1067 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1068 ac_init_help=short ;;
1070 -host | --host | --hos | --ho)
1071 ac_prev=host_alias ;;
1072 -host=* | --host=* | --hos=* | --ho=*)
1073 host_alias=$ac_optarg ;;
1075 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1077 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1079 htmldir=$ac_optarg ;;
1081 -includedir | --includedir | --includedi | --included | --include \
1082 | --includ | --inclu | --incl | --inc)
1083 ac_prev=includedir ;;
1084 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1085 | --includ=* | --inclu=* | --incl=* | --inc=*)
1086 includedir=$ac_optarg ;;
1088 -infodir | --infodir | --infodi | --infod | --info | --inf)
1090 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1091 infodir=$ac_optarg ;;
1093 -libdir | --libdir | --libdi | --libd)
1095 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1096 libdir=$ac_optarg ;;
1098 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1099 | --libexe | --libex | --libe)
1100 ac_prev=libexecdir ;;
1101 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1102 | --libexe=* | --libex=* | --libe=*)
1103 libexecdir=$ac_optarg ;;
1105 -localedir | --localedir | --localedi | --localed | --locale)
1106 ac_prev=localedir ;;
1107 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1108 localedir=$ac_optarg ;;
1110 -localstatedir | --localstatedir | --localstatedi | --localstated \
1111 | --localstate | --localstat | --localsta | --localst | --locals)
1112 ac_prev=localstatedir ;;
1113 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1114 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1115 localstatedir=$ac_optarg ;;
1117 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1119 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1120 mandir=$ac_optarg ;;
1122 -nfp | --nfp | --nf)
1123 # Obsolete; use --without-fp.
1126 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1127 | --no-cr | --no-c | -n)
1130 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1131 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1134 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1135 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1136 | --oldin | --oldi | --old | --ol | --o)
1137 ac_prev=oldincludedir ;;
1138 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1139 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1140 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1141 oldincludedir=$ac_optarg ;;
1143 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1145 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1146 prefix=$ac_optarg ;;
1148 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1149 | --program-pre | --program-pr | --program-p)
1150 ac_prev=program_prefix ;;
1151 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1152 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1153 program_prefix=$ac_optarg ;;
1155 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1156 | --program-suf | --program-su | --program-s)
1157 ac_prev=program_suffix ;;
1158 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1159 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1160 program_suffix=$ac_optarg ;;
1162 -program-transform-name | --program-transform-name \
1163 | --program-transform-nam | --program-transform-na \
1164 | --program-transform-n | --program-transform- \
1165 | --program-transform | --program-transfor \
1166 | --program-transfo | --program-transf \
1167 | --program-trans | --program-tran \
1168 | --progr-tra | --program-tr | --program-t)
1169 ac_prev=program_transform_name ;;
1170 -program-transform-name=* | --program-transform-name=* \
1171 | --program-transform-nam=* | --program-transform-na=* \
1172 | --program-transform-n=* | --program-transform-=* \
1173 | --program-transform=* | --program-transfor=* \
1174 | --program-transfo=* | --program-transf=* \
1175 | --program-trans=* | --program-tran=* \
1176 | --progr-tra=* | --program-tr=* | --program-t=*)
1177 program_transform_name=$ac_optarg ;;
1179 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1181 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1182 pdfdir=$ac_optarg ;;
1184 -psdir | --psdir | --psdi | --psd | --ps)
1186 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1189 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1190 | -silent | --silent | --silen | --sile | --sil)
1193 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1195 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1197 sbindir=$ac_optarg ;;
1199 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1200 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1201 | --sharedst | --shareds | --shared | --share | --shar \
1203 ac_prev=sharedstatedir ;;
1204 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1205 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1206 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1208 sharedstatedir=$ac_optarg ;;
1210 -site | --site | --sit)
1212 -site=* | --site=* | --sit=*)
1215 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1217 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1218 srcdir=$ac_optarg ;;
1220 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1221 | --syscon | --sysco | --sysc | --sys | --sy)
1222 ac_prev=sysconfdir ;;
1223 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1224 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1225 sysconfdir=$ac_optarg ;;
1227 -target | --target | --targe | --targ | --tar | --ta | --t)
1228 ac_prev=target_alias ;;
1229 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1230 target_alias=$ac_optarg ;;
1232 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1235 -version | --version | --versio | --versi | --vers | -V)
1236 ac_init_version=: ;;
1239 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
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=\$ac_optarg ;;
1247 -without-* | --without-*)
1248 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1249 # Reject names that are not valid shell variable names.
1250 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1251 { echo "$as_me: error: invalid package name: $ac_package" >&2
1252 { (exit 1); exit 1; }; }
1253 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1254 eval with_$ac_package=no ;;
1257 # Obsolete; use --with-x.
1260 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1261 | --x-incl | --x-inc | --x-in | --x-i)
1262 ac_prev=x_includes ;;
1263 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1264 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1265 x_includes=$ac_optarg ;;
1267 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1268 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1269 ac_prev=x_libraries ;;
1270 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1271 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1272 x_libraries=$ac_optarg ;;
1274 -*) { echo "$as_me: error: unrecognized option: $ac_option
1275 Try \`$0 --help' for more information." >&2
1276 { (exit 1); exit 1; }; }
1280 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1281 # Reject names that are not valid shell variable names.
1282 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1283 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1284 { (exit 1); exit 1; }; }
1285 eval $ac_envvar=\$ac_optarg
1286 export $ac_envvar ;;
1289 # FIXME: should be removed in autoconf 3.0.
1290 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1291 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1292 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1293 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1299 if test -n "$ac_prev"; then
1300 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1301 { echo "$as_me: error: missing argument to $ac_option" >&2
1302 { (exit 1); exit 1; }; }
1305 # Be sure to have absolute directory names.
1306 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1307 datadir sysconfdir sharedstatedir localstatedir includedir \
1308 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1309 libdir localedir mandir
1311 eval ac_val=\$$ac_var
1313 [\\/$]* | ?:[\\/]* ) continue;;
1314 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1316 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1317 { (exit 1); exit 1; }; }
1320 # There might be people who depend on the old broken behavior: `$host'
1321 # used to hold the argument of --host etc.
1322 # FIXME: To remove some day.
1325 target=$target_alias
1327 # FIXME: To remove some day.
1328 if test "x$host_alias" != x; then
1329 if test "x$build_alias" = x; then
1330 cross_compiling=maybe
1331 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1332 If a cross compiler is detected then cross compile mode will be used." >&2
1333 elif test "x$build_alias" != "x$host_alias"; then
1339 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1341 test "$silent" = yes && exec 6>/dev/null
1344 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1345 ac_ls_di=`ls -di .` &&
1346 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1347 { echo "$as_me: error: Working directory cannot be determined" >&2
1348 { (exit 1); exit 1; }; }
1349 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1350 { echo "$as_me: error: pwd does not report name of working directory" >&2
1351 { (exit 1); exit 1; }; }
1354 # Find the source files, if location was not specified.
1355 if test -z "$srcdir"; then
1356 ac_srcdir_defaulted=yes
1357 # Try the directory containing this script, then the parent directory.
1358 ac_confdir=`$as_dirname -- "$0" ||
1359 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1360 X"$0" : 'X\(//\)[^/]' \| \
1361 X"$0" : 'X\(//\)$' \| \
1362 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1364 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1382 if test ! -r "$srcdir/$ac_unique_file"; then
1386 ac_srcdir_defaulted=no
1388 if test ! -r "$srcdir/$ac_unique_file"; then
1389 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1390 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1391 { (exit 1); exit 1; }; }
1393 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1395 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1396 { (exit 1); exit 1; }; }
1398 # When building in place, set srcdir=.
1399 if test "$ac_abs_confdir" = "$ac_pwd"; then
1402 # Remove unnecessary trailing slashes from srcdir.
1403 # Double slashes in file names in object file debugging info
1404 # mess up M-x gdb in Emacs.
1406 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1408 for ac_var in $ac_precious_vars; do
1409 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1410 eval ac_env_${ac_var}_value=\$${ac_var}
1411 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1412 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1416 # Report the --help message.
1418 if test "$ac_init_help" = "long"; then
1419 # Omit some internal or obsolete options to make the list less imposing.
1420 # This message is too long to be a string in the A/UX 3.1 sh.
1422 \`configure' configures this package to adapt to many kinds of systems.
1424 Usage: $0 [OPTION]... [VAR=VALUE]...
1426 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1427 VAR=VALUE. See below for descriptions of some of the useful variables.
1429 Defaults for the options are specified in brackets.
1432 -h, --help display this help and exit
1433 --help=short display options specific to this package
1434 --help=recursive display the short help of all the included packages
1435 -V, --version display version information and exit
1436 -q, --quiet, --silent do not print \`checking...' messages
1437 --cache-file=FILE cache test results in FILE [disabled]
1438 -C, --config-cache alias for \`--cache-file=config.cache'
1439 -n, --no-create do not create output files
1440 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1442 Installation directories:
1443 --prefix=PREFIX install architecture-independent files in PREFIX
1444 [$ac_default_prefix]
1445 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1448 By default, \`make install' will install all the files in
1449 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1450 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1451 for instance \`--prefix=\$HOME'.
1453 For better control, use the options below.
1455 Fine tuning of the installation directories:
1456 --bindir=DIR user executables [EPREFIX/bin]
1457 --sbindir=DIR system admin executables [EPREFIX/sbin]
1458 --libexecdir=DIR program executables [EPREFIX/libexec]
1459 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1460 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1461 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1462 --libdir=DIR object code libraries [EPREFIX/lib]
1463 --includedir=DIR C header files [PREFIX/include]
1464 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1465 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1466 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1467 --infodir=DIR info documentation [DATAROOTDIR/info]
1468 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1469 --mandir=DIR man documentation [DATAROOTDIR/man]
1470 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1471 --htmldir=DIR html documentation [DOCDIR]
1472 --dvidir=DIR dvi documentation [DOCDIR]
1473 --pdfdir=DIR pdf documentation [DOCDIR]
1474 --psdir=DIR ps documentation [DOCDIR]
1480 --program-prefix=PREFIX prepend PREFIX to installed program names
1481 --program-suffix=SUFFIX append SUFFIX to installed program names
1482 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1485 --build=BUILD configure for building on BUILD [guessed]
1486 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1490 if test -n "$ac_init_help"; then
1495 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1496 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1497 --disable-dependency-tracking speeds up one-time build
1498 --enable-dependency-tracking do not reject slow dependency extractors
1499 --enable-shared[=PKGS] build shared libraries [default=yes]
1500 --enable-static[=PKGS] build static libraries [default=yes]
1501 --enable-fast-install[=PKGS]
1502 optimize for fast installation [default=yes]
1503 --disable-libtool-lock avoid locking (might break parallel builds)
1504 --enable-sqlite enable the sqlite-based ODBC backend, depends on
1505 libsqlite3, enabled by default
1506 --enable-regex enable regular expression support in scripts,
1507 depends on libpcre, enabled by default
1508 --enable-libical use libical (if necessary, the one in libecal) to
1509 improve time zone support, enabled by default if
1510 necessary libs are found
1511 --enable-evolution-compatibility
1512 build executables which only call Evolution via
1513 dlopen/dlsym: this avoids all hard dependencies on
1514 EDS shared objects, but might lead to crashes when
1518 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1519 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1520 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1521 --with-pic try to use only PIC/non-PIC objects [default=use
1523 --with-tags[=TAGS] include additional configurations [automatic]
1524 --with-xmltok=<builtin|system|path>
1525 Chooses which xmltok/xmlparse gets used. "builtin" =
1526 compile code into libsynthesis. "system" = use
1527 header files and libxmlparse from standard search
1528 paths. "path" = use header files in "path/include"
1529 and libxmlparse in "path/lib". Default is system if
1530 header files are found, otherwise builtin.
1531 --with-expat=<system|path>
1532 Choose expat as the XML parser library. Replaces
1533 --with-xmltok. "system" = use header files and
1534 libexpat from standard search paths. "path" = use
1535 header files in "path/include", and libexpat in
1538 Some influential environment variables:
1539 CXX C++ compiler command
1540 CXXFLAGS C++ compiler flags
1541 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1542 nonstandard directory <lib dir>
1543 LIBS libraries to pass to the linker, e.g. -l<library>
1544 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1545 you have headers in a nonstandard directory <include dir>
1546 CC C compiler command
1547 CFLAGS C compiler flags
1549 CXXCPP C++ preprocessor
1550 F77 Fortran 77 compiler command
1551 FFLAGS Fortran 77 compiler flags
1552 PKG_CONFIG path to pkg-config utility
1554 C compiler flags for FOOBAR, overriding pkg-config
1555 FOOBAR_LIBS linker flags for FOOBAR, overriding pkg-config
1557 C compiler flags for SQLITE3, overriding pkg-config
1559 linker flags for SQLITE3, overriding pkg-config
1560 PCRE_CFLAGS C compiler flags for PCRE, overriding pkg-config
1561 PCRE_LIBS linker flags for PCRE, overriding pkg-config
1563 C compiler flags for LIBICAL, overriding pkg-config
1565 linker flags for LIBICAL, overriding pkg-config
1567 C compiler flags for LIBECAL, overriding pkg-config
1569 linker flags for LIBECAL, overriding pkg-config
1571 Use these variables to override the choices made by `configure' or to help
1572 it to find libraries and programs with nonstandard names/locations.
1578 if test "$ac_init_help" = "recursive"; then
1579 # If there are subdirs, report their specific --help.
1580 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1581 test -d "$ac_dir" || continue
1585 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1587 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1588 # A ".." for each directory in $ac_dir_suffix.
1589 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1590 case $ac_top_builddir_sub in
1591 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1592 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1595 ac_abs_top_builddir=$ac_pwd
1596 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1597 # for backward compatibility:
1598 ac_top_builddir=$ac_top_build_prefix
1601 .) # We are building in place.
1603 ac_top_srcdir=$ac_top_builddir_sub
1604 ac_abs_top_srcdir=$ac_pwd ;;
1605 [\\/]* | ?:[\\/]* ) # Absolute name.
1606 ac_srcdir=$srcdir$ac_dir_suffix;
1607 ac_top_srcdir=$srcdir
1608 ac_abs_top_srcdir=$srcdir ;;
1610 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1611 ac_top_srcdir=$ac_top_build_prefix$srcdir
1612 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1614 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1616 cd "$ac_dir" || { ac_status=$?; continue; }
1617 # Check for guested configure.
1618 if test -f "$ac_srcdir/configure.gnu"; then
1620 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1621 elif test -f "$ac_srcdir/configure"; then
1623 $SHELL "$ac_srcdir/configure" --help=recursive
1625 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1627 cd "$ac_pwd" || { ac_status=$?; break; }
1631 test -n "$ac_init_help" && exit $ac_status
1632 if $ac_init_version; then
1635 generated by GNU Autoconf 2.61
1637 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1638 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1639 This configure script is free software; the Free Software Foundation
1640 gives unlimited permission to copy, distribute and modify it.
1644 cat >config.log <<_ACEOF
1645 This file contains any messages produced by compilers while
1646 running configure, to aid debugging if configure makes a mistake.
1648 It was created by $as_me, which was
1649 generated by GNU Autoconf 2.61. Invocation command line was
1661 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1662 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1663 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1664 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1665 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1667 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1668 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1670 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1671 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1672 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1673 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1674 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1675 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1676 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1684 test -z "$as_dir" && as_dir=.
1685 echo "PATH: $as_dir"
1701 # Keep a trace of the command line.
1702 # Strip out --no-create and --no-recursion so they do not pile up.
1703 # Strip out --silent because we don't want to record it for future runs.
1704 # Also quote any args containing shell meta-characters.
1705 # Make two passes to allow for proper duplicate-argument suppression.
1709 ac_must_keep_next=false
1715 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1716 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1717 | -silent | --silent | --silen | --sile | --sil)
1720 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1723 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1725 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1726 if test $ac_must_keep_next = true; then
1727 ac_must_keep_next=false # Got value, back to normal.
1730 *=* | --config-cache | -C | -disable-* | --disable-* \
1731 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1732 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1733 | -with-* | --with-* | -without-* | --without-* | --x)
1734 case "$ac_configure_args0 " in
1735 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1738 -* ) ac_must_keep_next=true ;;
1741 ac_configure_args="$ac_configure_args '$ac_arg'"
1746 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1747 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1749 # When interrupted or exit'd, cleanup temporary files, and complete
1750 # config.log. We remove comments because anyway the quotes in there
1751 # would cause problems or look ugly.
1752 # WARNING: Use '\'' to represent an apostrophe within the trap.
1753 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1754 trap 'exit_status=$?
1755 # Save into config.log some information that might help in debugging.
1760 ## ---------------- ##
1761 ## Cache variables. ##
1762 ## ---------------- ##
1765 # The following way of writing the cache mishandles newlines in values,
1767 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1768 eval ac_val=\$$ac_var
1772 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1773 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1776 _ | IFS | as_nl) ;; #(
1777 *) $as_unset $ac_var ;;
1782 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1783 *${as_nl}ac_space=\ *)
1785 "s/'\''/'\''\\\\'\'''\''/g;
1786 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1789 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1797 ## ----------------- ##
1798 ## Output variables. ##
1799 ## ----------------- ##
1802 for ac_var in $ac_subst_vars
1804 eval ac_val=\$$ac_var
1806 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1808 echo "$ac_var='\''$ac_val'\''"
1812 if test -n "$ac_subst_files"; then
1814 ## ------------------- ##
1815 ## File substitutions. ##
1816 ## ------------------- ##
1819 for ac_var in $ac_subst_files
1821 eval ac_val=\$$ac_var
1823 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1825 echo "$ac_var='\''$ac_val'\''"
1830 if test -s confdefs.h; then
1840 test "$ac_signal" != 0 &&
1841 echo "$as_me: caught signal $ac_signal"
1842 echo "$as_me: exit $exit_status"
1844 rm -f core *.core core.conftest.* &&
1845 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1848 for ac_signal in 1 2 13 15; do
1849 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1853 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1854 rm -f -r conftest* confdefs.h
1856 # Predefined preprocessor variables.
1858 cat >>confdefs.h <<_ACEOF
1859 #define PACKAGE_NAME "$PACKAGE_NAME"
1863 cat >>confdefs.h <<_ACEOF
1864 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1868 cat >>confdefs.h <<_ACEOF
1869 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1873 cat >>confdefs.h <<_ACEOF
1874 #define PACKAGE_STRING "$PACKAGE_STRING"
1878 cat >>confdefs.h <<_ACEOF
1879 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1883 # Let the site file select an alternate cache file if it wants to.
1884 # Prefer explicitly selected file to automatically selected ones.
1885 if test -n "$CONFIG_SITE"; then
1886 set x "$CONFIG_SITE"
1887 elif test "x$prefix" != xNONE; then
1888 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1890 set x "$ac_default_prefix/share/config.site" \
1891 "$ac_default_prefix/etc/config.site"
1896 if test -r "$ac_site_file"; then
1897 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1898 echo "$as_me: loading site script $ac_site_file" >&6;}
1899 sed 's/^/| /' "$ac_site_file" >&5
1904 if test -r "$cache_file"; then
1905 # Some versions of bash will fail to source /dev/null (special
1906 # files actually), so we avoid doing that.
1907 if test -f "$cache_file"; then
1908 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1909 echo "$as_me: loading cache $cache_file" >&6;}
1911 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1912 *) . "./$cache_file";;
1916 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1917 echo "$as_me: creating cache $cache_file" >&6;}
1921 # Check that the precious variables saved in the cache have kept the same
1923 ac_cache_corrupted=false
1924 for ac_var in $ac_precious_vars; do
1925 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1926 eval ac_new_set=\$ac_env_${ac_var}_set
1927 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1928 eval ac_new_val=\$ac_env_${ac_var}_value
1929 case $ac_old_set,$ac_new_set in
1931 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1932 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1933 ac_cache_corrupted=: ;;
1935 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1936 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1937 ac_cache_corrupted=: ;;
1940 if test "x$ac_old_val" != "x$ac_new_val"; then
1941 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1942 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1943 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1944 echo "$as_me: former value: $ac_old_val" >&2;}
1945 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1946 echo "$as_me: current value: $ac_new_val" >&2;}
1947 ac_cache_corrupted=:
1950 # Pass precious variables to config.status.
1951 if test "$ac_new_set" = set; then
1953 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1954 *) ac_arg=$ac_var=$ac_new_val ;;
1956 case " $ac_configure_args " in
1957 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1958 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1962 if $ac_cache_corrupted; then
1963 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1964 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1965 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1966 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1967 { (exit 1); exit 1; }; }
1987 ac_cpp='$CPP $CPPFLAGS'
1988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1994 am__api_version='1.10'
1997 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1998 if test -f "$ac_dir/install-sh"; then
2000 ac_install_sh="$ac_aux_dir/install-sh -c"
2002 elif test -f "$ac_dir/install.sh"; then
2004 ac_install_sh="$ac_aux_dir/install.sh -c"
2006 elif test -f "$ac_dir/shtool"; then
2008 ac_install_sh="$ac_aux_dir/shtool install -c"
2012 if test -z "$ac_aux_dir"; then
2013 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2014 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2015 { (exit 1); exit 1; }; }
2018 # These three variables are undocumented and unsupported,
2019 # and are intended to be withdrawn in a future Autoconf release.
2020 # They can cause serious problems if a builder's source tree is in a directory
2021 # whose full name contains unusual characters.
2022 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2023 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2024 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2027 # Find a good install program. We prefer a C program (faster),
2028 # so one script is as good as another. But avoid the broken or
2029 # incompatible versions:
2030 # SysV /etc/install, /usr/sbin/install
2031 # SunOS /usr/etc/install
2032 # IRIX /sbin/install
2034 # AmigaOS /C/install, which installs bootblocks on floppy discs
2035 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2036 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2037 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2038 # OS/2's system install, which has a completely different semantic
2039 # ./install, which can be erroneously created by make from ./install.sh.
2040 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2041 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2042 if test -z "$INSTALL"; then
2043 if test "${ac_cv_path_install+set}" = set; then
2044 echo $ECHO_N "(cached) $ECHO_C" >&6
2046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2050 test -z "$as_dir" && as_dir=.
2051 # Account for people who put trailing slashes in PATH elements.
2053 ./ | .// | /cC/* | \
2054 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2055 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2058 # OSF1 and SCO ODT 3.0 have their own names for install.
2059 # Don't use installbsd from OSF since it installs stuff as root
2061 for ac_prog in ginstall scoinst install; do
2062 for ac_exec_ext in '' $ac_executable_extensions; do
2063 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2064 if test $ac_prog = install &&
2065 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2066 # AIX install. It has an incompatible calling convention.
2068 elif test $ac_prog = install &&
2069 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2070 # program-specific install script used by HP pwplus--don't use.
2073 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2086 if test "${ac_cv_path_install+set}" = set; then
2087 INSTALL=$ac_cv_path_install
2089 # As a last resort, use the slow shell script. Don't cache a
2090 # value for INSTALL within a source directory, because that will
2091 # break other packages using the cache if that directory is
2092 # removed, or if the value is a relative name.
2093 INSTALL=$ac_install_sh
2096 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2097 echo "${ECHO_T}$INSTALL" >&6; }
2099 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2100 # It thinks the first close brace ends the variable substitution.
2101 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2103 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2105 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2107 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2108 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2111 echo timestamp > conftest.file
2112 # Do `set' in a subshell so we don't clobber the current shell's
2113 # arguments. Must try -L first in case configure is actually a
2114 # symlink; some systems play weird games with the mod time of symlinks
2115 # (eg FreeBSD returns the mod time of the symlink's containing
2118 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2119 if test "$*" = "X"; then
2121 set X `ls -t $srcdir/configure conftest.file`
2124 if test "$*" != "X $srcdir/configure conftest.file" \
2125 && test "$*" != "X conftest.file $srcdir/configure"; then
2127 # If neither matched, then we have a broken ls. This can happen
2128 # if, for instance, CONFIG_SHELL is bash and it inherits a
2129 # broken ls alias from the environment. This has actually
2130 # happened. Such a system could not be considered "sane".
2131 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2132 alias in your environment" >&5
2133 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2134 alias in your environment" >&2;}
2135 { (exit 1); exit 1; }; }
2138 test "$2" = conftest.file
2144 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2145 Check your system clock" >&5
2146 echo "$as_me: error: newly created file is older than distributed files!
2147 Check your system clock" >&2;}
2148 { (exit 1); exit 1; }; }
2150 { echo "$as_me:$LINENO: result: yes" >&5
2151 echo "${ECHO_T}yes" >&6; }
2152 test "$program_prefix" != NONE &&
2153 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2154 # Use a double $ so make ignores it.
2155 test "$program_suffix" != NONE &&
2156 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2157 # Double any \ or $. echo might interpret backslashes.
2158 # By default was `s,x,x', remove it if useless.
2159 cat <<\_ACEOF >conftest.sed
2160 s/[\\$]/&&/g;s/;s,x,x,$//
2162 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2165 # expand $ac_aux_dir to an absolute path
2166 am_aux_dir=`cd $ac_aux_dir && pwd`
2168 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2169 # Use eval to expand $SHELL
2170 if eval "$MISSING --run true"; then
2171 am_missing_run="$MISSING --run "
2174 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2175 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2178 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2179 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2180 if test -z "$MKDIR_P"; then
2181 if test "${ac_cv_path_mkdir+set}" = set; then
2182 echo $ECHO_N "(cached) $ECHO_C" >&6
2184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2185 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2188 test -z "$as_dir" && as_dir=.
2189 for ac_prog in mkdir gmkdir; do
2190 for ac_exec_ext in '' $ac_executable_extensions; do
2191 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2192 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2193 'mkdir (GNU coreutils) '* | \
2194 'mkdir (coreutils) '* | \
2195 'mkdir (fileutils) '4.1*)
2196 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2206 if test "${ac_cv_path_mkdir+set}" = set; then
2207 MKDIR_P="$ac_cv_path_mkdir -p"
2209 # As a last resort, use the slow shell script. Don't cache a
2210 # value for MKDIR_P within a source directory, because that will
2211 # break other packages using the cache if that directory is
2212 # removed, or if the value is a relative name.
2213 test -d ./--version && rmdir ./--version
2214 MKDIR_P="$ac_install_sh -d"
2217 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2218 echo "${ECHO_T}$MKDIR_P" >&6; }
2222 [\\/$]* | ?:[\\/]*) ;;
2223 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2226 for ac_prog in gawk mawk nawk awk
2228 # Extract the first word of "$ac_prog", so it can be a program name with args.
2229 set dummy $ac_prog; ac_word=$2
2230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2232 if test "${ac_cv_prog_AWK+set}" = set; then
2233 echo $ECHO_N "(cached) $ECHO_C" >&6
2235 if test -n "$AWK"; then
2236 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2242 test -z "$as_dir" && as_dir=.
2243 for ac_exec_ext in '' $ac_executable_extensions; do
2244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2245 ac_cv_prog_AWK="$ac_prog"
2246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2256 if test -n "$AWK"; then
2257 { echo "$as_me:$LINENO: result: $AWK" >&5
2258 echo "${ECHO_T}$AWK" >&6; }
2260 { echo "$as_me:$LINENO: result: no" >&5
2261 echo "${ECHO_T}no" >&6; }
2265 test -n "$AWK" && break
2268 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2269 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2270 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2271 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2272 echo $ECHO_N "(cached) $ECHO_C" >&6
2274 cat >conftest.make <<\_ACEOF
2277 @echo '@@@%%%=$(MAKE)=@@@%%%'
2279 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2280 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2282 eval ac_cv_prog_make_${ac_make}_set=yes;;
2284 eval ac_cv_prog_make_${ac_make}_set=no;;
2288 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2289 { echo "$as_me:$LINENO: result: yes" >&5
2290 echo "${ECHO_T}yes" >&6; }
2293 { echo "$as_me:$LINENO: result: no" >&5
2294 echo "${ECHO_T}no" >&6; }
2295 SET_MAKE="MAKE=${MAKE-make}"
2298 rm -rf .tst 2>/dev/null
2299 mkdir .tst 2>/dev/null
2300 if test -d .tst; then
2305 rmdir .tst 2>/dev/null
2307 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2308 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2309 # is not polluted with repeated "-I."
2310 am__isrc=' -I$(srcdir)'
2311 # test to see if srcdir already configured
2312 if test -f $srcdir/config.status; then
2313 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2314 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2315 { (exit 1); exit 1; }; }
2319 # test whether we have cygpath
2320 if test -z "$CYGPATH_W"; then
2321 if (cygpath --version) >/dev/null 2>/dev/null; then
2322 CYGPATH_W='cygpath -w'
2329 # Define the identity of the package.
2330 PACKAGE=syncevolution
2334 cat >>confdefs.h <<_ACEOF
2335 #define PACKAGE "$PACKAGE"
2339 cat >>confdefs.h <<_ACEOF
2340 #define VERSION "$VERSION"
2343 # Some tools Automake needs.
2345 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2348 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2351 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2354 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2357 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2359 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2361 # Installed binaries are usually stripped using `strip' when the user
2362 # run `make install-strip'. However `strip' might not be the right
2363 # tool to use in cross-compilation environments, therefore Automake
2364 # will honor the `STRIP' environment variable to overrule this program.
2365 if test "$cross_compiling" != no; then
2366 if test -n "$ac_tool_prefix"; then
2367 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2368 set dummy ${ac_tool_prefix}strip; ac_word=$2
2369 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2371 if test "${ac_cv_prog_STRIP+set}" = set; then
2372 echo $ECHO_N "(cached) $ECHO_C" >&6
2374 if test -n "$STRIP"; then
2375 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2381 test -z "$as_dir" && as_dir=.
2382 for ac_exec_ext in '' $ac_executable_extensions; do
2383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2384 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2394 STRIP=$ac_cv_prog_STRIP
2395 if test -n "$STRIP"; then
2396 { echo "$as_me:$LINENO: result: $STRIP" >&5
2397 echo "${ECHO_T}$STRIP" >&6; }
2399 { echo "$as_me:$LINENO: result: no" >&5
2400 echo "${ECHO_T}no" >&6; }
2405 if test -z "$ac_cv_prog_STRIP"; then
2407 # Extract the first word of "strip", so it can be a program name with args.
2408 set dummy strip; ac_word=$2
2409 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2411 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2412 echo $ECHO_N "(cached) $ECHO_C" >&6
2414 if test -n "$ac_ct_STRIP"; then
2415 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2421 test -z "$as_dir" && as_dir=.
2422 for ac_exec_ext in '' $ac_executable_extensions; do
2423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2424 ac_cv_prog_ac_ct_STRIP="strip"
2425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2434 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2435 if test -n "$ac_ct_STRIP"; then
2436 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2437 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2439 { echo "$as_me:$LINENO: result: no" >&5
2440 echo "${ECHO_T}no" >&6; }
2443 if test "x$ac_ct_STRIP" = x; then
2446 case $cross_compiling:$ac_tool_warned in
2448 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2449 whose name does not start with the host triplet. If you think this
2450 configuration is useful to you, please write to autoconf@gnu.org." >&5
2451 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2452 whose name does not start with the host triplet. If you think this
2453 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2454 ac_tool_warned=yes ;;
2459 STRIP="$ac_cv_prog_STRIP"
2463 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2465 # We need awk for the "check" target. The system "awk" is bad on
2467 # Always define AMTAR for backward compatibility.
2469 AMTAR=${AMTAR-"${am_missing_run}tar"}
2471 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2477 ac_config_headers="$ac_config_headers config.h"
2483 ac_cpp='$CXXCPP $CPPFLAGS'
2484 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2485 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2486 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2487 if test -z "$CXX"; then
2488 if test -n "$CCC"; then
2491 if test -n "$ac_tool_prefix"; then
2492 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2494 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2495 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2496 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2498 if test "${ac_cv_prog_CXX+set}" = set; then
2499 echo $ECHO_N "(cached) $ECHO_C" >&6
2501 if test -n "$CXX"; then
2502 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2508 test -z "$as_dir" && as_dir=.
2509 for ac_exec_ext in '' $ac_executable_extensions; do
2510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2511 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2522 if test -n "$CXX"; then
2523 { echo "$as_me:$LINENO: result: $CXX" >&5
2524 echo "${ECHO_T}$CXX" >&6; }
2526 { echo "$as_me:$LINENO: result: no" >&5
2527 echo "${ECHO_T}no" >&6; }
2531 test -n "$CXX" && break
2534 if test -z "$CXX"; then
2536 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2538 # Extract the first word of "$ac_prog", so it can be a program name with args.
2539 set dummy $ac_prog; ac_word=$2
2540 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2542 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2543 echo $ECHO_N "(cached) $ECHO_C" >&6
2545 if test -n "$ac_ct_CXX"; then
2546 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2552 test -z "$as_dir" && as_dir=.
2553 for ac_exec_ext in '' $ac_executable_extensions; do
2554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2555 ac_cv_prog_ac_ct_CXX="$ac_prog"
2556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2565 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2566 if test -n "$ac_ct_CXX"; then
2567 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2568 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2570 { echo "$as_me:$LINENO: result: no" >&5
2571 echo "${ECHO_T}no" >&6; }
2575 test -n "$ac_ct_CXX" && break
2578 if test "x$ac_ct_CXX" = x; then
2581 case $cross_compiling:$ac_tool_warned in
2583 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2584 whose name does not start with the host triplet. If you think this
2585 configuration is useful to you, please write to autoconf@gnu.org." >&5
2586 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2587 whose name does not start with the host triplet. If you think this
2588 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2589 ac_tool_warned=yes ;;
2597 # Provide some information about the compiler.
2598 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2599 ac_compiler=`set X $ac_compile; echo $2`
2600 { (ac_try="$ac_compiler --version >&5"
2602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2603 *) ac_try_echo=$ac_try;;
2605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2606 (eval "$ac_compiler --version >&5") 2>&5
2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609 (exit $ac_status); }
2610 { (ac_try="$ac_compiler -v >&5"
2612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2613 *) ac_try_echo=$ac_try;;
2615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2616 (eval "$ac_compiler -v >&5") 2>&5
2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); }
2620 { (ac_try="$ac_compiler -V >&5"
2622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2623 *) ac_try_echo=$ac_try;;
2625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2626 (eval "$ac_compiler -V >&5") 2>&5
2628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629 (exit $ac_status); }
2631 cat >conftest.$ac_ext <<_ACEOF
2634 cat confdefs.h >>conftest.$ac_ext
2635 cat >>conftest.$ac_ext <<_ACEOF
2636 /* end confdefs.h. */
2646 ac_clean_files_save=$ac_clean_files
2647 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2648 # Try to create an executable without -o first, disregard a.out.
2649 # It will help us diagnose broken compilers, and finding out an intuition
2651 { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2652 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
2653 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2655 # List of possible output files, starting from the most likely.
2656 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2657 # only as a last resort. b.out is created by i960 compilers.
2658 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2660 # The IRIX 6 linker writes into existing files which may not be
2661 # executable, retaining their permissions. Remove them first so a
2662 # subsequent execution test works.
2664 for ac_file in $ac_files
2667 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2668 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2673 if { (ac_try="$ac_link_default"
2675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2676 *) ac_try_echo=$ac_try;;
2678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2679 (eval "$ac_link_default") 2>&5
2681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682 (exit $ac_status); }; then
2683 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2684 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2685 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2686 # so that the user can short-circuit this test for compilers unknown to
2688 for ac_file in $ac_files ''
2690 test -f "$ac_file" || continue
2692 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2695 # We found the default executable, but exeext='' is most
2699 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2701 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2703 # We set ac_cv_exeext here because the later test for it is not
2704 # safe: cross compilers may not add the suffix if given an `-o'
2705 # argument, so we may need to know it at that point already.
2706 # Even if this section looks crufty: it has the advantage of
2713 test "$ac_cv_exeext" = no && ac_cv_exeext=
2719 { echo "$as_me:$LINENO: result: $ac_file" >&5
2720 echo "${ECHO_T}$ac_file" >&6; }
2721 if test -z "$ac_file"; then
2722 echo "$as_me: failed program was:" >&5
2723 sed 's/^/| /' conftest.$ac_ext >&5
2725 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2726 See \`config.log' for more details." >&5
2727 echo "$as_me: error: C++ compiler cannot create executables
2728 See \`config.log' for more details." >&2;}
2729 { (exit 77); exit 77; }; }
2732 ac_exeext=$ac_cv_exeext
2734 # Check that the compiler produces executables we can run. If not, either
2735 # the compiler is broken, or we cross compile.
2736 { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2737 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2738 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2739 # If not cross compiling, check that we can run a simple program.
2740 if test "$cross_compiling" != yes; then
2741 if { ac_try='./$ac_file'
2742 { (case "(($ac_try" in
2743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2744 *) ac_try_echo=$ac_try;;
2746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2747 (eval "$ac_try") 2>&5
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); }; }; then
2753 if test "$cross_compiling" = maybe; then
2756 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2757 If you meant to cross compile, use \`--host'.
2758 See \`config.log' for more details." >&5
2759 echo "$as_me: error: cannot run C++ compiled programs.
2760 If you meant to cross compile, use \`--host'.
2761 See \`config.log' for more details." >&2;}
2762 { (exit 1); exit 1; }; }
2766 { echo "$as_me:$LINENO: result: yes" >&5
2767 echo "${ECHO_T}yes" >&6; }
2769 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2770 ac_clean_files=$ac_clean_files_save
2771 # Check that the compiler produces executables we can run. If not, either
2772 # the compiler is broken, or we cross compile.
2773 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2774 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2775 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2776 echo "${ECHO_T}$cross_compiling" >&6; }
2778 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2779 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2780 if { (ac_try="$ac_link"
2782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2783 *) ac_try_echo=$ac_try;;
2785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2786 (eval "$ac_link") 2>&5
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); }; then
2790 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2791 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2792 # work properly (i.e., refer to `conftest.exe'), while it won't with
2794 for ac_file in conftest.exe conftest conftest.*; do
2795 test -f "$ac_file" || continue
2797 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2798 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2804 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2805 See \`config.log' for more details." >&5
2806 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2807 See \`config.log' for more details." >&2;}
2808 { (exit 1); exit 1; }; }
2811 rm -f conftest$ac_cv_exeext
2812 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2813 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2815 rm -f conftest.$ac_ext
2816 EXEEXT=$ac_cv_exeext
2818 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2819 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2820 if test "${ac_cv_objext+set}" = set; then
2821 echo $ECHO_N "(cached) $ECHO_C" >&6
2823 cat >conftest.$ac_ext <<_ACEOF
2826 cat confdefs.h >>conftest.$ac_ext
2827 cat >>conftest.$ac_ext <<_ACEOF
2828 /* end confdefs.h. */
2838 rm -f conftest.o conftest.obj
2839 if { (ac_try="$ac_compile"
2841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2842 *) ac_try_echo=$ac_try;;
2844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2845 (eval "$ac_compile") 2>&5
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); }; then
2849 for ac_file in conftest.o conftest.obj conftest.*; do
2850 test -f "$ac_file" || continue;
2852 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2853 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2858 echo "$as_me: failed program was:" >&5
2859 sed 's/^/| /' conftest.$ac_ext >&5
2861 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2862 See \`config.log' for more details." >&5
2863 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2864 See \`config.log' for more details." >&2;}
2865 { (exit 1); exit 1; }; }
2868 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2870 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2871 echo "${ECHO_T}$ac_cv_objext" >&6; }
2872 OBJEXT=$ac_cv_objext
2874 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2875 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2876 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2877 echo $ECHO_N "(cached) $ECHO_C" >&6
2879 cat >conftest.$ac_ext <<_ACEOF
2882 cat confdefs.h >>conftest.$ac_ext
2883 cat >>conftest.$ac_ext <<_ACEOF
2884 /* end confdefs.h. */
2897 rm -f conftest.$ac_objext
2898 if { (ac_try="$ac_compile"
2900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2901 *) ac_try_echo=$ac_try;;
2903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2904 (eval "$ac_compile") 2>conftest.er1
2906 grep -v '^ *+' conftest.er1 >conftest.err
2908 cat conftest.err >&5
2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910 (exit $ac_status); } && {
2911 test -z "$ac_cxx_werror_flag" ||
2912 test ! -s conftest.err
2913 } && test -s conftest.$ac_objext; then
2916 echo "$as_me: failed program was:" >&5
2917 sed 's/^/| /' conftest.$ac_ext >&5
2922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2923 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2926 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2927 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2928 GXX=`test $ac_compiler_gnu = yes && echo yes`
2929 ac_test_CXXFLAGS=${CXXFLAGS+set}
2930 ac_save_CXXFLAGS=$CXXFLAGS
2931 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2932 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2933 if test "${ac_cv_prog_cxx_g+set}" = set; then
2934 echo $ECHO_N "(cached) $ECHO_C" >&6
2936 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2937 ac_cxx_werror_flag=yes
2940 cat >conftest.$ac_ext <<_ACEOF
2943 cat confdefs.h >>conftest.$ac_ext
2944 cat >>conftest.$ac_ext <<_ACEOF
2945 /* end confdefs.h. */
2955 rm -f conftest.$ac_objext
2956 if { (ac_try="$ac_compile"
2958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2959 *) ac_try_echo=$ac_try;;
2961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2962 (eval "$ac_compile") 2>conftest.er1
2964 grep -v '^ *+' conftest.er1 >conftest.err
2966 cat conftest.err >&5
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); } && {
2969 test -z "$ac_cxx_werror_flag" ||
2970 test ! -s conftest.err
2971 } && test -s conftest.$ac_objext; then
2972 ac_cv_prog_cxx_g=yes
2974 echo "$as_me: failed program was:" >&5
2975 sed 's/^/| /' conftest.$ac_ext >&5
2978 cat >conftest.$ac_ext <<_ACEOF
2981 cat confdefs.h >>conftest.$ac_ext
2982 cat >>conftest.$ac_ext <<_ACEOF
2983 /* end confdefs.h. */
2993 rm -f conftest.$ac_objext
2994 if { (ac_try="$ac_compile"
2996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2997 *) ac_try_echo=$ac_try;;
2999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3000 (eval "$ac_compile") 2>conftest.er1
3002 grep -v '^ *+' conftest.er1 >conftest.err
3004 cat conftest.err >&5
3005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006 (exit $ac_status); } && {
3007 test -z "$ac_cxx_werror_flag" ||
3008 test ! -s conftest.err
3009 } && test -s conftest.$ac_objext; then
3012 echo "$as_me: failed program was:" >&5
3013 sed 's/^/| /' conftest.$ac_ext >&5
3015 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3017 cat >conftest.$ac_ext <<_ACEOF
3020 cat confdefs.h >>conftest.$ac_ext
3021 cat >>conftest.$ac_ext <<_ACEOF
3022 /* end confdefs.h. */
3032 rm -f conftest.$ac_objext
3033 if { (ac_try="$ac_compile"
3035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3036 *) ac_try_echo=$ac_try;;
3038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3039 (eval "$ac_compile") 2>conftest.er1
3041 grep -v '^ *+' conftest.er1 >conftest.err
3043 cat conftest.err >&5
3044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045 (exit $ac_status); } && {
3046 test -z "$ac_cxx_werror_flag" ||
3047 test ! -s conftest.err
3048 } && test -s conftest.$ac_objext; then
3049 ac_cv_prog_cxx_g=yes
3051 echo "$as_me: failed program was:" >&5
3052 sed 's/^/| /' conftest.$ac_ext >&5
3057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3064 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3066 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3067 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3068 if test "$ac_test_CXXFLAGS" = set; then
3069 CXXFLAGS=$ac_save_CXXFLAGS
3070 elif test $ac_cv_prog_cxx_g = yes; then
3071 if test "$GXX" = yes; then
3077 if test "$GXX" = yes; then
3084 ac_cpp='$CPP $CPPFLAGS'
3085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3088 DEPDIR="${am__leading_dot}deps"
3090 ac_config_commands="$ac_config_commands depfiles"
3093 am_make=${MAKE-make}
3094 cat > confinc << 'END'
3099 # If we don't find an include directive, just comment out the code.
3100 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3101 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3105 # First try GNU make style include.
3106 echo "include confinc" > confmf
3107 # We grep out `Entering directory' and `Leaving directory'
3108 # messages which can occur if `w' ends up in MAKEFLAGS.
3109 # In particular we don't look at `^make:' because GNU make might
3110 # be invoked under some other name (usually "gmake"), in which
3111 # case it prints its new name instead of `make'.
3112 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3117 # Now try BSD make style include.
3118 if test "$am__include" = "#"; then
3119 echo '.include "confinc"' > confmf
3120 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3121 am__include=.include
3128 { echo "$as_me:$LINENO: result: $_am_result" >&5
3129 echo "${ECHO_T}$_am_result" >&6; }
3130 rm -f confinc confmf
3132 # Check whether --enable-dependency-tracking was given.
3133 if test "${enable_dependency_tracking+set}" = set; then
3134 enableval=$enable_dependency_tracking;
3137 if test "x$enable_dependency_tracking" != xno; then
3138 am_depcomp="$ac_aux_dir/depcomp"
3141 if test "x$enable_dependency_tracking" != xno; then
3151 depcc="$CXX" am_compiler_list=
3153 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3154 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3155 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3156 echo $ECHO_N "(cached) $ECHO_C" >&6
3158 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3159 # We make a subdir and do the tests there. Otherwise we can end up
3160 # making bogus files that we don't know about and never remove. For
3161 # instance it was reported that on HP-UX the gcc test will end up
3162 # making a dummy file named `D' -- because `-MD' means `put the output
3165 # Copy depcomp to subdir because otherwise we won't find it if we're
3166 # using a relative directory.
3167 cp "$am_depcomp" conftest.dir
3169 # We will build objects and dependencies in a subdirectory because
3170 # it helps to detect inapplicable dependency modes. For instance
3171 # both Tru64's cc and ICC support -MD to output dependencies as a
3172 # side effect of compilation, but ICC will put the dependencies in
3173 # the current directory while Tru64 will put them in the object
3177 am_cv_CXX_dependencies_compiler_type=none
3178 if test "$am_compiler_list" = ""; then
3179 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3181 for depmode in $am_compiler_list; do
3182 # Setup a source with many dependencies, because some compilers
3183 # like to wrap large dependency lists on column 80 (with \), and
3184 # we should not choose a depcomp mode which is confused by this.
3186 # We need to recreate these files for each test, as the compiler may
3187 # overwrite some of them when testing with obscure command lines.
3188 # This happens at least with the AIX C compiler.
3190 for i in 1 2 3 4 5 6; do
3191 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3192 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3193 # Solaris 8's {/usr,}/bin/sh.
3194 touch sub/conftst$i.h
3196 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3200 # after this tag, mechanisms are not by side-effect, so they'll
3201 # only be used when explicitly requested
3202 if test "x$enable_dependency_tracking" = xyes; then
3210 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3211 # mode. It turns out that the SunPro C++ compiler does not properly
3212 # handle `-M -o', and we need to detect this.
3213 if depmode=$depmode \
3214 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3215 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3216 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3217 >/dev/null 2>conftest.err &&
3218 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3219 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3220 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3221 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3222 # icc doesn't choke on unknown options, it will just issue warnings
3223 # or remarks (even with -Werror). So we grep stderr for any message
3224 # that says an option was ignored or not supported.
3225 # When given -MP, icc 7.0 and 7.1 complain thusly:
3226 # icc: Command line warning: ignoring option '-M'; no argument required
3227 # The diagnosis changed in icc 8.0:
3228 # icc: Command line remark: option '-MP' not supported
3229 if (grep 'ignoring option' conftest.err ||
3230 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3231 am_cv_CXX_dependencies_compiler_type=$depmode
3240 am_cv_CXX_dependencies_compiler_type=none
3244 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3245 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
3246 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3249 test "x$enable_dependency_tracking" != xno \
3250 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3251 am__fastdepCXX_TRUE=
3252 am__fastdepCXX_FALSE='#'
3254 am__fastdepCXX_TRUE='#'
3255 am__fastdepCXX_FALSE=
3259 # Check whether --enable-shared was given.
3260 if test "${enable_shared+set}" = set; then
3261 enableval=$enable_shared; p=${PACKAGE-default}
3263 yes) enable_shared=yes ;;
3264 no) enable_shared=no ;;
3267 # Look at the argument we got. We use all the common list separators.
3268 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3269 for pkg in $enableval; do
3271 if test "X$pkg" = "X$p"; then
3283 # Check whether --enable-static was given.
3284 if test "${enable_static+set}" = set; then
3285 enableval=$enable_static; p=${PACKAGE-default}
3287 yes) enable_static=yes ;;
3288 no) enable_static=no ;;
3291 # Look at the argument we got. We use all the common list separators.
3292 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3293 for pkg in $enableval; do
3295 if test "X$pkg" = "X$p"; then
3307 # Check whether --enable-fast-install was given.
3308 if test "${enable_fast_install+set}" = set; then
3309 enableval=$enable_fast_install; p=${PACKAGE-default}
3311 yes) enable_fast_install=yes ;;
3312 no) enable_fast_install=no ;;
3314 enable_fast_install=no
3315 # Look at the argument we got. We use all the common list separators.
3316 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3317 for pkg in $enableval; do
3319 if test "X$pkg" = "X$p"; then
3320 enable_fast_install=yes
3327 enable_fast_install=yes
3331 # Make sure we can run config.sub.
3332 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3333 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3334 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3335 { (exit 1); exit 1; }; }
3337 { echo "$as_me:$LINENO: checking build system type" >&5
3338 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3339 if test "${ac_cv_build+set}" = set; then
3340 echo $ECHO_N "(cached) $ECHO_C" >&6
3342 ac_build_alias=$build_alias
3343 test "x$ac_build_alias" = x &&
3344 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3345 test "x$ac_build_alias" = x &&
3346 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3347 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3348 { (exit 1); exit 1; }; }
3349 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3350 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3351 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3352 { (exit 1); exit 1; }; }
3355 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3356 echo "${ECHO_T}$ac_cv_build" >&6; }
3357 case $ac_cv_build in
3359 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3360 echo "$as_me: error: invalid value of canonical build" >&2;}
3361 { (exit 1); exit 1; }; };;
3364 ac_save_IFS=$IFS; IFS='-'
3370 # Remember, the first character of IFS is used to create $*,
3371 # except with old shells:
3374 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3377 { echo "$as_me:$LINENO: checking host system type" >&5
3378 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3379 if test "${ac_cv_host+set}" = set; then
3380 echo $ECHO_N "(cached) $ECHO_C" >&6
3382 if test "x$host_alias" = x; then
3383 ac_cv_host=$ac_cv_build
3385 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3386 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3387 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3388 { (exit 1); exit 1; }; }
3392 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3393 echo "${ECHO_T}$ac_cv_host" >&6; }
3396 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3397 echo "$as_me: error: invalid value of canonical host" >&2;}
3398 { (exit 1); exit 1; }; };;
3401 ac_save_IFS=$IFS; IFS='-'
3407 # Remember, the first character of IFS is used to create $*,
3408 # except with old shells:
3411 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3415 ac_cpp='$CPP $CPPFLAGS'
3416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3419 if test -n "$ac_tool_prefix"; then
3420 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3421 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3422 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3424 if test "${ac_cv_prog_CC+set}" = set; then
3425 echo $ECHO_N "(cached) $ECHO_C" >&6
3427 if test -n "$CC"; then
3428 ac_cv_prog_CC="$CC" # Let the user override the test.
3430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3434 test -z "$as_dir" && as_dir=.
3435 for ac_exec_ext in '' $ac_executable_extensions; do
3436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3437 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3448 if test -n "$CC"; then
3449 { echo "$as_me:$LINENO: result: $CC" >&5
3450 echo "${ECHO_T}$CC" >&6; }
3452 { echo "$as_me:$LINENO: result: no" >&5
3453 echo "${ECHO_T}no" >&6; }
3458 if test -z "$ac_cv_prog_CC"; then
3460 # Extract the first word of "gcc", so it can be a program name with args.
3461 set dummy gcc; ac_word=$2
3462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3464 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3465 echo $ECHO_N "(cached) $ECHO_C" >&6
3467 if test -n "$ac_ct_CC"; then
3468 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3474 test -z "$as_dir" && as_dir=.
3475 for ac_exec_ext in '' $ac_executable_extensions; do
3476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3477 ac_cv_prog_ac_ct_CC="gcc"
3478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3487 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3488 if test -n "$ac_ct_CC"; then
3489 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3490 echo "${ECHO_T}$ac_ct_CC" >&6; }
3492 { echo "$as_me:$LINENO: result: no" >&5
3493 echo "${ECHO_T}no" >&6; }
3496 if test "x$ac_ct_CC" = x; then
3499 case $cross_compiling:$ac_tool_warned in
3501 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3502 whose name does not start with the host triplet. If you think this
3503 configuration is useful to you, please write to autoconf@gnu.org." >&5
3504 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3505 whose name does not start with the host triplet. If you think this
3506 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3507 ac_tool_warned=yes ;;
3515 if test -z "$CC"; then
3516 if test -n "$ac_tool_prefix"; then
3517 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3518 set dummy ${ac_tool_prefix}cc; ac_word=$2
3519 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3521 if test "${ac_cv_prog_CC+set}" = set; then
3522 echo $ECHO_N "(cached) $ECHO_C" >&6
3524 if test -n "$CC"; then
3525 ac_cv_prog_CC="$CC" # Let the user override the test.
3527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3531 test -z "$as_dir" && as_dir=.
3532 for ac_exec_ext in '' $ac_executable_extensions; do
3533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3534 ac_cv_prog_CC="${ac_tool_prefix}cc"
3535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3545 if test -n "$CC"; then
3546 { echo "$as_me:$LINENO: result: $CC" >&5
3547 echo "${ECHO_T}$CC" >&6; }
3549 { echo "$as_me:$LINENO: result: no" >&5
3550 echo "${ECHO_T}no" >&6; }
3556 if test -z "$CC"; then
3557 # Extract the first word of "cc", so it can be a program name with args.
3558 set dummy cc; ac_word=$2
3559 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3561 if test "${ac_cv_prog_CC+set}" = set; then
3562 echo $ECHO_N "(cached) $ECHO_C" >&6
3564 if test -n "$CC"; then
3565 ac_cv_prog_CC="$CC" # Let the user override the test.
3568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3572 test -z "$as_dir" && as_dir=.
3573 for ac_exec_ext in '' $ac_executable_extensions; do
3574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3575 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3576 ac_prog_rejected=yes
3580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3587 if test $ac_prog_rejected = yes; then
3588 # We found a bogon in the path, so make sure we never use it.
3589 set dummy $ac_cv_prog_CC
3591 if test $# != 0; then
3592 # We chose a different compiler from the bogus one.
3593 # However, it has the same basename, so the bogon will be chosen
3594 # first if we set CC to just the basename; use the full file name.
3596 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3602 if test -n "$CC"; then
3603 { echo "$as_me:$LINENO: result: $CC" >&5
3604 echo "${ECHO_T}$CC" >&6; }
3606 { echo "$as_me:$LINENO: result: no" >&5
3607 echo "${ECHO_T}no" >&6; }
3612 if test -z "$CC"; then
3613 if test -n "$ac_tool_prefix"; then
3614 for ac_prog in cl.exe
3616 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3617 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3618 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3620 if test "${ac_cv_prog_CC+set}" = set; then
3621 echo $ECHO_N "(cached) $ECHO_C" >&6
3623 if test -n "$CC"; then
3624 ac_cv_prog_CC="$CC" # Let the user override the test.
3626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3630 test -z "$as_dir" && as_dir=.
3631 for ac_exec_ext in '' $ac_executable_extensions; do
3632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3633 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3644 if test -n "$CC"; then
3645 { echo "$as_me:$LINENO: result: $CC" >&5
3646 echo "${ECHO_T}$CC" >&6; }
3648 { echo "$as_me:$LINENO: result: no" >&5
3649 echo "${ECHO_T}no" >&6; }
3653 test -n "$CC" && break
3656 if test -z "$CC"; then
3658 for ac_prog in cl.exe
3660 # Extract the first word of "$ac_prog", so it can be a program name with args.
3661 set dummy $ac_prog; ac_word=$2
3662 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3664 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3665 echo $ECHO_N "(cached) $ECHO_C" >&6
3667 if test -n "$ac_ct_CC"; then
3668 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3674 test -z "$as_dir" && as_dir=.
3675 for ac_exec_ext in '' $ac_executable_extensions; do
3676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3677 ac_cv_prog_ac_ct_CC="$ac_prog"
3678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3687 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3688 if test -n "$ac_ct_CC"; then
3689 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3690 echo "${ECHO_T}$ac_ct_CC" >&6; }
3692 { echo "$as_me:$LINENO: result: no" >&5
3693 echo "${ECHO_T}no" >&6; }
3697 test -n "$ac_ct_CC" && break
3700 if test "x$ac_ct_CC" = x; then
3703 case $cross_compiling:$ac_tool_warned in
3705 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3706 whose name does not start with the host triplet. If you think this
3707 configuration is useful to you, please write to autoconf@gnu.org." >&5
3708 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3709 whose name does not start with the host triplet. If you think this
3710 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3711 ac_tool_warned=yes ;;
3720 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3721 See \`config.log' for more details." >&5
3722 echo "$as_me: error: no acceptable C compiler found in \$PATH
3723 See \`config.log' for more details." >&2;}
3724 { (exit 1); exit 1; }; }
3726 # Provide some information about the compiler.
3727 echo "$as_me:$LINENO: checking for C compiler version" >&5
3728 ac_compiler=`set X $ac_compile; echo $2`
3729 { (ac_try="$ac_compiler --version >&5"
3731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3732 *) ac_try_echo=$ac_try;;
3734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3735 (eval "$ac_compiler --version >&5") 2>&5
3737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738 (exit $ac_status); }
3739 { (ac_try="$ac_compiler -v >&5"
3741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3742 *) ac_try_echo=$ac_try;;
3744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3745 (eval "$ac_compiler -v >&5") 2>&5
3747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748 (exit $ac_status); }
3749 { (ac_try="$ac_compiler -V >&5"
3751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3752 *) ac_try_echo=$ac_try;;
3754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3755 (eval "$ac_compiler -V >&5") 2>&5
3757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758 (exit $ac_status); }
3760 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3761 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3762 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3763 echo $ECHO_N "(cached) $ECHO_C" >&6
3765 cat >conftest.$ac_ext <<_ACEOF
3768 cat confdefs.h >>conftest.$ac_ext
3769 cat >>conftest.$ac_ext <<_ACEOF
3770 /* end confdefs.h. */
3783 rm -f conftest.$ac_objext
3784 if { (ac_try="$ac_compile"
3786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3787 *) ac_try_echo=$ac_try;;
3789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3790 (eval "$ac_compile") 2>conftest.er1
3792 grep -v '^ *+' conftest.er1 >conftest.err
3794 cat conftest.err >&5
3795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796 (exit $ac_status); } && {
3797 test -z "$ac_c_werror_flag" ||
3798 test ! -s conftest.err
3799 } && test -s conftest.$ac_objext; then
3802 echo "$as_me: failed program was:" >&5
3803 sed 's/^/| /' conftest.$ac_ext >&5
3808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3809 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3812 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3813 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3814 GCC=`test $ac_compiler_gnu = yes && echo yes`
3815 ac_test_CFLAGS=${CFLAGS+set}
3816 ac_save_CFLAGS=$CFLAGS
3817 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3818 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3819 if test "${ac_cv_prog_cc_g+set}" = set; then
3820 echo $ECHO_N "(cached) $ECHO_C" >&6
3822 ac_save_c_werror_flag=$ac_c_werror_flag
3823 ac_c_werror_flag=yes
3826 cat >conftest.$ac_ext <<_ACEOF
3829 cat confdefs.h >>conftest.$ac_ext
3830 cat >>conftest.$ac_ext <<_ACEOF
3831 /* end confdefs.h. */
3841 rm -f conftest.$ac_objext
3842 if { (ac_try="$ac_compile"
3844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3845 *) ac_try_echo=$ac_try;;
3847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3848 (eval "$ac_compile") 2>conftest.er1
3850 grep -v '^ *+' conftest.er1 >conftest.err
3852 cat conftest.err >&5
3853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854 (exit $ac_status); } && {
3855 test -z "$ac_c_werror_flag" ||
3856 test ! -s conftest.err
3857 } && test -s conftest.$ac_objext; then
3860 echo "$as_me: failed program was:" >&5
3861 sed 's/^/| /' conftest.$ac_ext >&5
3864 cat >conftest.$ac_ext <<_ACEOF
3867 cat confdefs.h >>conftest.$ac_ext
3868 cat >>conftest.$ac_ext <<_ACEOF
3869 /* end confdefs.h. */
3879 rm -f conftest.$ac_objext
3880 if { (ac_try="$ac_compile"
3882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3883 *) ac_try_echo=$ac_try;;
3885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3886 (eval "$ac_compile") 2>conftest.er1
3888 grep -v '^ *+' conftest.er1 >conftest.err
3890 cat conftest.err >&5
3891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892 (exit $ac_status); } && {
3893 test -z "$ac_c_werror_flag" ||
3894 test ! -s conftest.err
3895 } && test -s conftest.$ac_objext; then
3898 echo "$as_me: failed program was:" >&5
3899 sed 's/^/| /' conftest.$ac_ext >&5
3901 ac_c_werror_flag=$ac_save_c_werror_flag
3903 cat >conftest.$ac_ext <<_ACEOF
3906 cat confdefs.h >>conftest.$ac_ext
3907 cat >>conftest.$ac_ext <<_ACEOF
3908 /* end confdefs.h. */
3918 rm -f conftest.$ac_objext
3919 if { (ac_try="$ac_compile"
3921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3922 *) ac_try_echo=$ac_try;;
3924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3925 (eval "$ac_compile") 2>conftest.er1
3927 grep -v '^ *+' conftest.er1 >conftest.err
3929 cat conftest.err >&5
3930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931 (exit $ac_status); } && {
3932 test -z "$ac_c_werror_flag" ||
3933 test ! -s conftest.err
3934 } && test -s conftest.$ac_objext; then
3937 echo "$as_me: failed program was:" >&5
3938 sed 's/^/| /' conftest.$ac_ext >&5
3943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3950 ac_c_werror_flag=$ac_save_c_werror_flag
3952 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3953 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3954 if test "$ac_test_CFLAGS" = set; then
3955 CFLAGS=$ac_save_CFLAGS
3956 elif test $ac_cv_prog_cc_g = yes; then
3957 if test "$GCC" = yes; then
3963 if test "$GCC" = yes; then
3969 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3970 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3971 if test "${ac_cv_prog_cc_c89+set}" = set; then
3972 echo $ECHO_N "(cached) $ECHO_C" >&6
3974 ac_cv_prog_cc_c89=no
3976 cat >conftest.$ac_ext <<_ACEOF
3979 cat confdefs.h >>conftest.$ac_ext
3980 cat >>conftest.$ac_ext <<_ACEOF
3981 /* end confdefs.h. */
3984 #include <sys/types.h>
3985 #include <sys/stat.h>
3986 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3987 struct buf { int x; };
3988 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3989 static char *e (p, i)
3995 static char *f (char * (*g) (char **, int), char **p, ...)
4000 s = g (p, va_arg (v,int));
4005 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4006 function prototypes and stuff, but not '\xHH' hex character constants.
4007 These don't provoke an error unfortunately, instead are silently treated
4008 as 'x'. The following induces an error, until -std is added to get
4009 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4010 array size at least. It's necessary to write '\x00'==0 to get something
4011 that's true only with -std. */
4012 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4014 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4015 inside strings and character constants. */
4017 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4019 int test (int i, double x);
4020 struct s1 {int (*f) (int a);};
4021 struct s2 {int (*f) (double a);};
4022 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4028 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4033 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4034 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4036 CC="$ac_save_CC $ac_arg"
4037 rm -f conftest.$ac_objext
4038 if { (ac_try="$ac_compile"
4040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4041 *) ac_try_echo=$ac_try;;
4043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4044 (eval "$ac_compile") 2>conftest.er1
4046 grep -v '^ *+' conftest.er1 >conftest.err
4048 cat conftest.err >&5
4049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050 (exit $ac_status); } && {
4051 test -z "$ac_c_werror_flag" ||
4052 test ! -s conftest.err
4053 } && test -s conftest.$ac_objext; then
4054 ac_cv_prog_cc_c89=$ac_arg
4056 echo "$as_me: failed program was:" >&5
4057 sed 's/^/| /' conftest.$ac_ext >&5
4062 rm -f core conftest.err conftest.$ac_objext
4063 test "x$ac_cv_prog_cc_c89" != "xno" && break
4065 rm -f conftest.$ac_ext
4070 case "x$ac_cv_prog_cc_c89" in
4072 { echo "$as_me:$LINENO: result: none needed" >&5
4073 echo "${ECHO_T}none needed" >&6; } ;;
4075 { echo "$as_me:$LINENO: result: unsupported" >&5
4076 echo "${ECHO_T}unsupported" >&6; } ;;
4078 CC="$CC $ac_cv_prog_cc_c89"
4079 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4080 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4085 ac_cpp='$CPP $CPPFLAGS'
4086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4090 depcc="$CC" am_compiler_list=
4092 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4093 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4094 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4095 echo $ECHO_N "(cached) $ECHO_C" >&6
4097 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4098 # We make a subdir and do the tests there. Otherwise we can end up
4099 # making bogus files that we don't know about and never remove. For
4100 # instance it was reported that on HP-UX the gcc test will end up
4101 # making a dummy file named `D' -- because `-MD' means `put the output
4104 # Copy depcomp to subdir because otherwise we won't find it if we're
4105 # using a relative directory.
4106 cp "$am_depcomp" conftest.dir
4108 # We will build objects and dependencies in a subdirectory because
4109 # it helps to detect inapplicable dependency modes. For instance
4110 # both Tru64's cc and ICC support -MD to output dependencies as a
4111 # side effect of compilation, but ICC will put the dependencies in
4112 # the current directory while Tru64 will put them in the object
4116 am_cv_CC_dependencies_compiler_type=none
4117 if test "$am_compiler_list" = ""; then
4118 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4120 for depmode in $am_compiler_list; do
4121 # Setup a source with many dependencies, because some compilers
4122 # like to wrap large dependency lists on column 80 (with \), and
4123 # we should not choose a depcomp mode which is confused by this.
4125 # We need to recreate these files for each test, as the compiler may
4126 # overwrite some of them when testing with obscure command lines.
4127 # This happens at least with the AIX C compiler.
4129 for i in 1 2 3 4 5 6; do
4130 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4131 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4132 # Solaris 8's {/usr,}/bin/sh.
4133 touch sub/conftst$i.h
4135 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4139 # after this tag, mechanisms are not by side-effect, so they'll
4140 # only be used when explicitly requested
4141 if test "x$enable_dependency_tracking" = xyes; then
4149 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4150 # mode. It turns out that the SunPro C++ compiler does not properly
4151 # handle `-M -o', and we need to detect this.
4152 if depmode=$depmode \
4153 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4154 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4155 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4156 >/dev/null 2>conftest.err &&
4157 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4158 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4159 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4160 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4161 # icc doesn't choke on unknown options, it will just issue warnings
4162 # or remarks (even with -Werror). So we grep stderr for any message
4163 # that says an option was ignored or not supported.
4164 # When given -MP, icc 7.0 and 7.1 complain thusly:
4165 # icc: Command line warning: ignoring option '-M'; no argument required
4166 # The diagnosis changed in icc 8.0:
4167 # icc: Command line remark: option '-MP' not supported
4168 if (grep 'ignoring option' conftest.err ||
4169 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4170 am_cv_CC_dependencies_compiler_type=$depmode
4179 am_cv_CC_dependencies_compiler_type=none
4183 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4184 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4185 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4188 test "x$enable_dependency_tracking" != xno \
4189 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4191 am__fastdepCC_FALSE='#'
4193 am__fastdepCC_TRUE='#'
4194 am__fastdepCC_FALSE=
4198 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4199 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4200 if test "${lt_cv_path_SED+set}" = set; then
4201 echo $ECHO_N "(cached) $ECHO_C" >&6
4203 # Loop through the user's path and test for sed and gsed.
4204 # Then use that list of sed's as ones to test for truncation.
4205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4209 test -z "$as_dir" && as_dir=.
4210 for lt_ac_prog in sed gsed; do
4211 for ac_exec_ext in '' $ac_executable_extensions; do
4212 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4213 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4221 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4222 # along with /bin/sed that truncates output.
4223 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4224 test ! -f $lt_ac_sed && continue
4225 cat /dev/null > conftest.in
4227 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4228 # Check for GNU sed and select it if it is found.
4229 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4230 lt_cv_path_SED=$lt_ac_sed
4234 cat conftest.in conftest.in >conftest.tmp
4235 mv conftest.tmp conftest.in
4236 cp conftest.in conftest.nl
4238 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4239 cmp -s conftest.out conftest.nl || break
4240 # 10000 chars as input seems more than enough
4241 test $lt_ac_count -gt 10 && break
4242 lt_ac_count=`expr $lt_ac_count + 1`
4243 if test $lt_ac_count -gt $lt_ac_max; then
4244 lt_ac_max=$lt_ac_count
4245 lt_cv_path_SED=$lt_ac_sed
4254 { echo "$as_me:$LINENO: result: $SED" >&5
4255 echo "${ECHO_T}$SED" >&6; }
4257 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4258 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4259 if test "${ac_cv_path_GREP+set}" = set; then
4260 echo $ECHO_N "(cached) $ECHO_C" >&6
4262 # Extract the first word of "grep ggrep" to use in msg output
4263 if test -z "$GREP"; then
4264 set dummy grep ggrep; ac_prog_name=$2
4265 if test "${ac_cv_path_GREP+set}" = set; then
4266 echo $ECHO_N "(cached) $ECHO_C" >&6
4268 ac_path_GREP_found=false
4269 # Loop through the user's path and test for each of PROGNAME-LIST
4270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4271 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4274 test -z "$as_dir" && as_dir=.
4275 for ac_prog in grep ggrep; do
4276 for ac_exec_ext in '' $ac_executable_extensions; do
4277 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4278 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4279 # Check for GNU ac_path_GREP and select it if it is found.
4280 # Check for GNU $ac_path_GREP
4281 case `"$ac_path_GREP" --version 2>&1` in
4283 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4286 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4289 cat "conftest.in" "conftest.in" >"conftest.tmp"
4290 mv "conftest.tmp" "conftest.in"
4291 cp "conftest.in" "conftest.nl"
4292 echo 'GREP' >> "conftest.nl"
4293 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4294 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4295 ac_count=`expr $ac_count + 1`
4296 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4297 # Best one so far, save it but keep looking for a better one
4298 ac_cv_path_GREP="$ac_path_GREP"
4299 ac_path_GREP_max=$ac_count
4301 # 10*(2^10) chars as input seems more than enough
4302 test $ac_count -gt 10 && break
4304 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4308 $ac_path_GREP_found && break 3
4318 GREP="$ac_cv_path_GREP"
4319 if test -z "$GREP"; then
4320 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4321 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4322 { (exit 1); exit 1; }; }
4326 ac_cv_path_GREP=$GREP
4331 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4332 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4333 GREP="$ac_cv_path_GREP"
4336 { echo "$as_me:$LINENO: checking for egrep" >&5
4337 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4338 if test "${ac_cv_path_EGREP+set}" = set; then
4339 echo $ECHO_N "(cached) $ECHO_C" >&6
4341 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4342 then ac_cv_path_EGREP="$GREP -E"
4344 # Extract the first word of "egrep" to use in msg output
4345 if test -z "$EGREP"; then
4346 set dummy egrep; ac_prog_name=$2
4347 if test "${ac_cv_path_EGREP+set}" = set; then
4348 echo $ECHO_N "(cached) $ECHO_C" >&6
4350 ac_path_EGREP_found=false
4351 # Loop through the user's path and test for each of PROGNAME-LIST
4352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4353 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4356 test -z "$as_dir" && as_dir=.
4357 for ac_prog in egrep; do
4358 for ac_exec_ext in '' $ac_executable_extensions; do
4359 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4360 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4361 # Check for GNU ac_path_EGREP and select it if it is found.
4362 # Check for GNU $ac_path_EGREP
4363 case `"$ac_path_EGREP" --version 2>&1` in
4365 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4368 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4371 cat "conftest.in" "conftest.in" >"conftest.tmp"
4372 mv "conftest.tmp" "conftest.in"
4373 cp "conftest.in" "conftest.nl"
4374 echo 'EGREP' >> "conftest.nl"
4375 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4376 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4377 ac_count=`expr $ac_count + 1`
4378 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4379 # Best one so far, save it but keep looking for a better one
4380 ac_cv_path_EGREP="$ac_path_EGREP"
4381 ac_path_EGREP_max=$ac_count
4383 # 10*(2^10) chars as input seems more than enough
4384 test $ac_count -gt 10 && break
4386 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4390 $ac_path_EGREP_found && break 3
4400 EGREP="$ac_cv_path_EGREP"
4401 if test -z "$EGREP"; then
4402 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4403 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4404 { (exit 1); exit 1; }; }
4408 ac_cv_path_EGREP=$EGREP
4414 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4415 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4416 EGREP="$ac_cv_path_EGREP"
4420 # Check whether --with-gnu-ld was given.
4421 if test "${with_gnu_ld+set}" = set; then
4422 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4428 if test "$GCC" = yes; then
4429 # Check if gcc -print-prog-name=ld gives a path.
4430 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4431 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4434 # gcc leaves a trailing carriage return which upsets mingw
4435 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4437 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4440 # Accept absolute paths.
4442 re_direlt='/[^/][^/]*/\.\./'
4443 # Canonicalize the pathname of ld
4444 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4445 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4446 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4448 test -z "$LD" && LD="$ac_prog"
4451 # If it fails, then pretend we aren't using GCC.
4455 # If it is relative, then search for the first ld in PATH.
4459 elif test "$with_gnu_ld" = yes; then
4460 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4461 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4463 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4464 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4466 if test "${lt_cv_path_LD+set}" = set; then
4467 echo $ECHO_N "(cached) $ECHO_C" >&6
4469 if test -z "$LD"; then
4470 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4471 for ac_dir in $PATH; do
4473 test -z "$ac_dir" && ac_dir=.
4474 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4475 lt_cv_path_LD="$ac_dir/$ac_prog"
4476 # Check to see if the program is GNU ld. I'd rather use --version,
4477 # but apparently some variants of GNU ld only accept -v.
4478 # Break only if it was the GNU/non-GNU ld that we prefer.
4479 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4480 *GNU* | *'with BFD'*)
4481 test "$with_gnu_ld" != no && break
4484 test "$with_gnu_ld" != yes && break
4491 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4496 if test -n "$LD"; then
4497 { echo "$as_me:$LINENO: result: $LD" >&5
4498 echo "${ECHO_T}$LD" >&6; }
4500 { echo "$as_me:$LINENO: result: no" >&5
4501 echo "${ECHO_T}no" >&6; }
4503 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4504 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4505 { (exit 1); exit 1; }; }
4506 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4507 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4508 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4509 echo $ECHO_N "(cached) $ECHO_C" >&6
4511 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4512 case `$LD -v 2>&1 </dev/null` in
4513 *GNU* | *'with BFD'*)
4514 lt_cv_prog_gnu_ld=yes
4517 lt_cv_prog_gnu_ld=no
4521 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4522 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4523 with_gnu_ld=$lt_cv_prog_gnu_ld
4526 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4527 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4528 if test "${lt_cv_ld_reload_flag+set}" = set; then
4529 echo $ECHO_N "(cached) $ECHO_C" >&6
4531 lt_cv_ld_reload_flag='-r'
4533 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4534 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4535 reload_flag=$lt_cv_ld_reload_flag
4536 case $reload_flag in
4538 *) reload_flag=" $reload_flag" ;;
4540 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4543 if test "$GCC" = yes; then
4544 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4546 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4551 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4552 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4553 if test "${lt_cv_path_NM+set}" = set; then
4554 echo $ECHO_N "(cached) $ECHO_C" >&6
4556 if test -n "$NM"; then
4557 # Let the user override the test.
4560 lt_nm_to_check="${ac_tool_prefix}nm"
4561 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4562 lt_nm_to_check="$lt_nm_to_check nm"
4564 for lt_tmp_nm in $lt_nm_to_check; do
4565 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4566 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4568 test -z "$ac_dir" && ac_dir=.
4569 tmp_nm="$ac_dir/$lt_tmp_nm"
4570 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4571 # Check to see if the nm accepts a BSD-compat flag.
4572 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4573 # nm: unknown option "B" ignored
4574 # Tru64's nm complains that /dev/null is an invalid object file
4575 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4576 */dev/null* | *'Invalid file or object type'*)
4577 lt_cv_path_NM="$tmp_nm -B"
4581 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4583 lt_cv_path_NM="$tmp_nm -p"
4587 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4588 continue # so that we can try to find one that supports BSD flags
4597 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4600 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4601 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4604 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4605 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4607 if test "$LN_S" = "ln -s"; then
4608 { echo "$as_me:$LINENO: result: yes" >&5
4609 echo "${ECHO_T}yes" >&6; }
4611 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4612 echo "${ECHO_T}no, using $LN_S" >&6; }
4615 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4616 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4617 if test "${lt_cv_deplibs_check_method+set}" = set; then
4618 echo $ECHO_N "(cached) $ECHO_C" >&6
4620 lt_cv_file_magic_cmd='$MAGIC_CMD'
4621 lt_cv_file_magic_test_file=
4622 lt_cv_deplibs_check_method='unknown'
4623 # Need to set the preceding variable on all platforms that support
4624 # interlibrary dependencies.
4625 # 'none' -- dependencies not supported.
4626 # `unknown' -- same as none, but documents that we really don't know.
4627 # 'pass_all' -- all dependencies passed with no checks.
4628 # 'test_compile' -- check by making test program.
4629 # 'file_magic [[regex]]' -- check by looking for files in library path
4630 # which responds to the $file_magic_cmd with a given extended regex.
4631 # If you have `file' or equivalent on your system and you're not sure
4632 # whether `pass_all' will *always* work, you probably want this one.
4636 lt_cv_deplibs_check_method=pass_all
4640 lt_cv_deplibs_check_method=pass_all
4644 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4645 lt_cv_file_magic_cmd='/usr/bin/file -L'
4646 lt_cv_file_magic_test_file=/shlib/libc.so
4650 # func_win32_libid is a shell function defined in ltmain.sh
4651 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4652 lt_cv_file_magic_cmd='func_win32_libid'
4656 # Base MSYS/MinGW do not provide the 'file' command needed by
4657 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4658 # unless we find 'file', for example because we are cross-compiling.
4659 if ( file / ) >/dev/null 2>&1; then
4660 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4661 lt_cv_file_magic_cmd='func_win32_libid'
4663 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4664 lt_cv_file_magic_cmd='$OBJDUMP -f'
4668 darwin* | rhapsody*)
4669 lt_cv_deplibs_check_method=pass_all
4672 freebsd* | dragonfly*)
4673 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4676 # Not sure whether the presence of OpenBSD here was a mistake.
4677 # Let's accept both of them until this is cleared up.
4678 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4679 lt_cv_file_magic_cmd=/usr/bin/file
4680 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4684 lt_cv_deplibs_check_method=pass_all
4689 lt_cv_deplibs_check_method=pass_all
4692 hpux10.20* | hpux11*)
4693 lt_cv_file_magic_cmd=/usr/bin/file
4696 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4697 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4700 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]'
4701 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4704 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4705 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4711 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4712 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4715 irix5* | irix6* | nonstopux*)
4717 *-32|*"-32 ") libmagic=32-bit;;
4718 *-n32|*"-n32 ") libmagic=N32;;
4719 *-64|*"-64 ") libmagic=64-bit;;
4720 *) libmagic=never-match;;
4722 lt_cv_deplibs_check_method=pass_all
4725 # This must be Linux ELF.
4726 linux* | k*bsd*-gnu)
4727 lt_cv_deplibs_check_method=pass_all
4730 netbsd* | netbsdelf*-gnu)
4731 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4732 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4734 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4739 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4740 lt_cv_file_magic_cmd=/usr/bin/file
4741 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4745 lt_cv_deplibs_check_method=unknown
4749 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4750 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4752 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4756 osf3* | osf4* | osf5*)
4757 lt_cv_deplibs_check_method=pass_all
4761 lt_cv_deplibs_check_method=pass_all
4765 lt_cv_deplibs_check_method=pass_all
4769 case $host_vendor in
4771 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]'
4772 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4775 lt_cv_deplibs_check_method=pass_all
4778 lt_cv_file_magic_cmd='/bin/file'
4779 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4782 lt_cv_file_magic_cmd='/bin/file'
4783 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4784 lt_cv_file_magic_test_file=/lib/libc.so
4787 lt_cv_deplibs_check_method=pass_all
4790 lt_cv_deplibs_check_method=pass_all
4795 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4796 lt_cv_deplibs_check_method=pass_all
4801 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4802 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4803 file_magic_cmd=$lt_cv_file_magic_cmd
4804 deplibs_check_method=$lt_cv_deplibs_check_method
4805 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4810 # If no C compiler was specified, use CC.
4813 # If no C compiler flags were specified, use CFLAGS.
4814 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4816 # Allow CC to be a program name with arguments.
4820 # Check whether --enable-libtool-lock was given.
4821 if test "${enable_libtool_lock+set}" = set; then
4822 enableval=$enable_libtool_lock;
4825 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4827 # Some flags need to be propagated to the compiler or linker for good
4831 # Find out which ABI we are using.
4832 echo 'int i;' > conftest.$ac_ext
4833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4834 (eval $ac_compile) 2>&5
4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837 (exit $ac_status); }; then
4838 case `/usr/bin/file conftest.$ac_objext` in
4850 # Find out which ABI we are using.
4851 echo '#line 4851 "configure"' > conftest.$ac_ext
4852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4853 (eval $ac_compile) 2>&5
4855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); }; then
4857 if test "$lt_cv_prog_gnu_ld" = yes; then
4858 case `/usr/bin/file conftest.$ac_objext` in
4860 LD="${LD-ld} -melf32bsmip"
4863 LD="${LD-ld} -melf32bmipn32"
4866 LD="${LD-ld} -melf64bmip"
4870 case `/usr/bin/file conftest.$ac_objext` in
4886 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4887 s390*-*linux*|sparc*-*linux*)
4888 # Find out which ABI we are using.
4889 echo 'int i;' > conftest.$ac_ext
4890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4891 (eval $ac_compile) 2>&5
4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); }; then
4895 case `/usr/bin/file conftest.o` in
4898 x86_64-*kfreebsd*-gnu)
4899 LD="${LD-ld} -m elf_i386_fbsd"
4902 LD="${LD-ld} -m elf_i386"
4904 ppc64-*linux*|powerpc64-*linux*)
4905 LD="${LD-ld} -m elf32ppclinux"
4908 LD="${LD-ld} -m elf_s390"
4911 LD="${LD-ld} -m elf32_sparc"
4917 x86_64-*kfreebsd*-gnu)
4918 LD="${LD-ld} -m elf_x86_64_fbsd"
4921 LD="${LD-ld} -m elf_x86_64"
4923 ppc*-*linux*|powerpc*-*linux*)
4924 LD="${LD-ld} -m elf64ppc"
4927 LD="${LD-ld} -m elf64_s390"
4930 LD="${LD-ld} -m elf64_sparc"
4940 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4941 SAVE_CFLAGS="$CFLAGS"
4942 CFLAGS="$CFLAGS -belf"
4943 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4944 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4945 if test "${lt_cv_cc_needs_belf+set}" = set; then
4946 echo $ECHO_N "(cached) $ECHO_C" >&6
4949 ac_cpp='$CPP $CPPFLAGS'
4950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4954 cat >conftest.$ac_ext <<_ACEOF
4957 cat confdefs.h >>conftest.$ac_ext
4958 cat >>conftest.$ac_ext <<_ACEOF
4959 /* end confdefs.h. */
4969 rm -f conftest.$ac_objext conftest$ac_exeext
4970 if { (ac_try="$ac_link"
4972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4973 *) ac_try_echo=$ac_try;;
4975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4976 (eval "$ac_link") 2>conftest.er1
4978 grep -v '^ *+' conftest.er1 >conftest.err
4980 cat conftest.err >&5
4981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982 (exit $ac_status); } && {
4983 test -z "$ac_c_werror_flag" ||
4984 test ! -s conftest.err
4985 } && test -s conftest$ac_exeext &&
4986 $as_test_x conftest$ac_exeext; then
4987 lt_cv_cc_needs_belf=yes
4989 echo "$as_me: failed program was:" >&5
4990 sed 's/^/| /' conftest.$ac_ext >&5
4992 lt_cv_cc_needs_belf=no
4995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4996 conftest$ac_exeext conftest.$ac_ext
4998 ac_cpp='$CPP $CPPFLAGS'
4999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5004 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5005 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5006 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5007 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5008 CFLAGS="$SAVE_CFLAGS"
5012 # Find out which ABI we are using.
5013 echo 'int i;' > conftest.$ac_ext
5014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5015 (eval $ac_compile) 2>&5
5017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018 (exit $ac_status); }; then
5019 case `/usr/bin/file conftest.o` in
5021 case $lt_cv_prog_gnu_ld in
5022 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5024 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5038 need_locks="$enable_libtool_lock"
5042 ac_cpp='$CPP $CPPFLAGS'
5043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5046 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5047 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5048 # On Suns, sometimes $CPP names a directory.
5049 if test -n "$CPP" && test -d "$CPP"; then
5052 if test -z "$CPP"; then
5053 if test "${ac_cv_prog_CPP+set}" = set; then
5054 echo $ECHO_N "(cached) $ECHO_C" >&6
5056 # Double quotes because CPP needs to be expanded
5057 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5060 for ac_c_preproc_warn_flag in '' yes
5062 # Use a header file that comes with gcc, so configuring glibc
5063 # with a fresh cross-compiler works.
5064 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5065 # <limits.h> exists even on freestanding compilers.
5066 # On the NeXT, cc -E runs the code through the compiler's parser,
5067 # not just through cpp. "Syntax error" is here to catch this case.
5068 cat >conftest.$ac_ext <<_ACEOF
5071 cat confdefs.h >>conftest.$ac_ext
5072 cat >>conftest.$ac_ext <<_ACEOF
5073 /* end confdefs.h. */
5075 # include <limits.h>
5077 # include <assert.h>
5081 if { (ac_try="$ac_cpp conftest.$ac_ext"
5083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5084 *) ac_try_echo=$ac_try;;
5086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5087 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5089 grep -v '^ *+' conftest.er1 >conftest.err
5091 cat conftest.err >&5
5092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093 (exit $ac_status); } >/dev/null && {
5094 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5095 test ! -s conftest.err
5099 echo "$as_me: failed program was:" >&5
5100 sed 's/^/| /' conftest.$ac_ext >&5
5102 # Broken: fails on valid input.
5106 rm -f conftest.err conftest.$ac_ext
5108 # OK, works on sane cases. Now check whether nonexistent headers
5109 # can be detected and how.
5110 cat >conftest.$ac_ext <<_ACEOF
5113 cat confdefs.h >>conftest.$ac_ext
5114 cat >>conftest.$ac_ext <<_ACEOF
5115 /* end confdefs.h. */
5116 #include <ac_nonexistent.h>
5118 if { (ac_try="$ac_cpp conftest.$ac_ext"
5120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5121 *) ac_try_echo=$ac_try;;
5123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5124 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5126 grep -v '^ *+' conftest.er1 >conftest.err
5128 cat conftest.err >&5
5129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130 (exit $ac_status); } >/dev/null && {
5131 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5132 test ! -s conftest.err
5134 # Broken: success on invalid input.
5137 echo "$as_me: failed program was:" >&5
5138 sed 's/^/| /' conftest.$ac_ext >&5
5140 # Passes both tests.
5145 rm -f conftest.err conftest.$ac_ext
5148 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5149 rm -f conftest.err conftest.$ac_ext
5150 if $ac_preproc_ok; then
5162 { echo "$as_me:$LINENO: result: $CPP" >&5
5163 echo "${ECHO_T}$CPP" >&6; }
5165 for ac_c_preproc_warn_flag in '' yes
5167 # Use a header file that comes with gcc, so configuring glibc
5168 # with a fresh cross-compiler works.
5169 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5170 # <limits.h> exists even on freestanding compilers.
5171 # On the NeXT, cc -E runs the code through the compiler's parser,
5172 # not just through cpp. "Syntax error" is here to catch this case.
5173 cat >conftest.$ac_ext <<_ACEOF
5176 cat confdefs.h >>conftest.$ac_ext
5177 cat >>conftest.$ac_ext <<_ACEOF
5178 /* end confdefs.h. */
5180 # include <limits.h>
5182 # include <assert.h>
5186 if { (ac_try="$ac_cpp conftest.$ac_ext"
5188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5189 *) ac_try_echo=$ac_try;;
5191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5192 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5194 grep -v '^ *+' conftest.er1 >conftest.err
5196 cat conftest.err >&5
5197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198 (exit $ac_status); } >/dev/null && {
5199 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5200 test ! -s conftest.err
5204 echo "$as_me: failed program was:" >&5
5205 sed 's/^/| /' conftest.$ac_ext >&5
5207 # Broken: fails on valid input.
5211 rm -f conftest.err conftest.$ac_ext
5213 # OK, works on sane cases. Now check whether nonexistent headers
5214 # can be detected and how.
5215 cat >conftest.$ac_ext <<_ACEOF
5218 cat confdefs.h >>conftest.$ac_ext
5219 cat >>conftest.$ac_ext <<_ACEOF
5220 /* end confdefs.h. */
5221 #include <ac_nonexistent.h>
5223 if { (ac_try="$ac_cpp conftest.$ac_ext"
5225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5226 *) ac_try_echo=$ac_try;;
5228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5229 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5231 grep -v '^ *+' conftest.er1 >conftest.err
5233 cat conftest.err >&5
5234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235 (exit $ac_status); } >/dev/null && {
5236 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5237 test ! -s conftest.err
5239 # Broken: success on invalid input.
5242 echo "$as_me: failed program was:" >&5
5243 sed 's/^/| /' conftest.$ac_ext >&5
5245 # Passes both tests.
5250 rm -f conftest.err conftest.$ac_ext
5253 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5254 rm -f conftest.err conftest.$ac_ext
5255 if $ac_preproc_ok; then
5258 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5259 See \`config.log' for more details." >&5
5260 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5261 See \`config.log' for more details." >&2;}
5262 { (exit 1); exit 1; }; }
5266 ac_cpp='$CPP $CPPFLAGS'
5267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5272 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5273 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5274 if test "${ac_cv_header_stdc+set}" = set; then
5275 echo $ECHO_N "(cached) $ECHO_C" >&6
5277 cat >conftest.$ac_ext <<_ACEOF
5280 cat confdefs.h >>conftest.$ac_ext
5281 cat >>conftest.$ac_ext <<_ACEOF
5282 /* end confdefs.h. */
5296 rm -f conftest.$ac_objext
5297 if { (ac_try="$ac_compile"
5299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5300 *) ac_try_echo=$ac_try;;
5302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5303 (eval "$ac_compile") 2>conftest.er1
5305 grep -v '^ *+' conftest.er1 >conftest.err
5307 cat conftest.err >&5
5308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309 (exit $ac_status); } && {
5310 test -z "$ac_c_werror_flag" ||
5311 test ! -s conftest.err
5312 } && test -s conftest.$ac_objext; then
5313 ac_cv_header_stdc=yes
5315 echo "$as_me: failed program was:" >&5
5316 sed 's/^/| /' conftest.$ac_ext >&5
5318 ac_cv_header_stdc=no
5321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5323 if test $ac_cv_header_stdc = yes; then
5324 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5325 cat >conftest.$ac_ext <<_ACEOF
5328 cat confdefs.h >>conftest.$ac_ext
5329 cat >>conftest.$ac_ext <<_ACEOF
5330 /* end confdefs.h. */
5334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5335 $EGREP "memchr" >/dev/null 2>&1; then
5338 ac_cv_header_stdc=no
5344 if test $ac_cv_header_stdc = yes; then
5345 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5346 cat >conftest.$ac_ext <<_ACEOF
5349 cat confdefs.h >>conftest.$ac_ext
5350 cat >>conftest.$ac_ext <<_ACEOF
5351 /* end confdefs.h. */
5355 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5356 $EGREP "free" >/dev/null 2>&1; then
5359 ac_cv_header_stdc=no
5365 if test $ac_cv_header_stdc = yes; then
5366 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5367 if test "$cross_compiling" = yes; then
5370 cat >conftest.$ac_ext <<_ACEOF
5373 cat confdefs.h >>conftest.$ac_ext
5374 cat >>conftest.$ac_ext <<_ACEOF
5375 /* end confdefs.h. */
5378 #if ((' ' & 0x0FF) == 0x020)
5379 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5380 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5382 # define ISLOWER(c) \
5383 (('a' <= (c) && (c) <= 'i') \
5384 || ('j' <= (c) && (c) <= 'r') \
5385 || ('s' <= (c) && (c) <= 'z'))
5386 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5389 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5394 for (i = 0; i < 256; i++)
5395 if (XOR (islower (i), ISLOWER (i))
5396 || toupper (i) != TOUPPER (i))
5401 rm -f conftest$ac_exeext
5402 if { (ac_try="$ac_link"
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_link") 2>&5
5410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5412 { (case "(($ac_try" in
5413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5414 *) ac_try_echo=$ac_try;;
5416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5417 (eval "$ac_try") 2>&5
5419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420 (exit $ac_status); }; }; then
5423 echo "$as_me: program exited with status $ac_status" >&5
5424 echo "$as_me: failed program was:" >&5
5425 sed 's/^/| /' conftest.$ac_ext >&5
5428 ac_cv_header_stdc=no
5430 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5436 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5437 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5438 if test $ac_cv_header_stdc = yes; then
5440 cat >>confdefs.h <<\_ACEOF
5441 #define STDC_HEADERS 1
5446 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5456 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5457 inttypes.h stdint.h unistd.h
5459 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5460 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5462 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5463 echo $ECHO_N "(cached) $ECHO_C" >&6
5465 cat >conftest.$ac_ext <<_ACEOF
5468 cat confdefs.h >>conftest.$ac_ext
5469 cat >>conftest.$ac_ext <<_ACEOF
5470 /* end confdefs.h. */
5471 $ac_includes_default
5473 #include <$ac_header>
5475 rm -f conftest.$ac_objext
5476 if { (ac_try="$ac_compile"
5478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5479 *) ac_try_echo=$ac_try;;
5481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5482 (eval "$ac_compile") 2>conftest.er1
5484 grep -v '^ *+' conftest.er1 >conftest.err
5486 cat conftest.err >&5
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488 (exit $ac_status); } && {
5489 test -z "$ac_c_werror_flag" ||
5490 test ! -s conftest.err
5491 } && test -s conftest.$ac_objext; then
5492 eval "$as_ac_Header=yes"
5494 echo "$as_me: failed program was:" >&5
5495 sed 's/^/| /' conftest.$ac_ext >&5
5497 eval "$as_ac_Header=no"
5500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5502 ac_res=`eval echo '${'$as_ac_Header'}'`
5503 { echo "$as_me:$LINENO: result: $ac_res" >&5
5504 echo "${ECHO_T}$ac_res" >&6; }
5505 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5506 cat >>confdefs.h <<_ACEOF
5507 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5516 for ac_header in dlfcn.h
5518 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5519 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5520 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5522 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5523 echo $ECHO_N "(cached) $ECHO_C" >&6
5525 ac_res=`eval echo '${'$as_ac_Header'}'`
5526 { echo "$as_me:$LINENO: result: $ac_res" >&5
5527 echo "${ECHO_T}$ac_res" >&6; }
5529 # Is the header compilable?
5530 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5531 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5532 cat >conftest.$ac_ext <<_ACEOF
5535 cat confdefs.h >>conftest.$ac_ext
5536 cat >>conftest.$ac_ext <<_ACEOF
5537 /* end confdefs.h. */
5538 $ac_includes_default
5539 #include <$ac_header>
5541 rm -f conftest.$ac_objext
5542 if { (ac_try="$ac_compile"
5544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5545 *) ac_try_echo=$ac_try;;
5547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5548 (eval "$ac_compile") 2>conftest.er1
5550 grep -v '^ *+' conftest.er1 >conftest.err
5552 cat conftest.err >&5
5553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554 (exit $ac_status); } && {
5555 test -z "$ac_c_werror_flag" ||
5556 test ! -s conftest.err
5557 } && test -s conftest.$ac_objext; then
5558 ac_header_compiler=yes
5560 echo "$as_me: failed program was:" >&5
5561 sed 's/^/| /' conftest.$ac_ext >&5
5563 ac_header_compiler=no
5566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5567 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5568 echo "${ECHO_T}$ac_header_compiler" >&6; }
5570 # Is the header present?
5571 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5572 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5573 cat >conftest.$ac_ext <<_ACEOF
5576 cat confdefs.h >>conftest.$ac_ext
5577 cat >>conftest.$ac_ext <<_ACEOF
5578 /* end confdefs.h. */
5579 #include <$ac_header>
5581 if { (ac_try="$ac_cpp conftest.$ac_ext"
5583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5584 *) ac_try_echo=$ac_try;;
5586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5587 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5589 grep -v '^ *+' conftest.er1 >conftest.err
5591 cat conftest.err >&5
5592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593 (exit $ac_status); } >/dev/null && {
5594 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5595 test ! -s conftest.err
5597 ac_header_preproc=yes
5599 echo "$as_me: failed program was:" >&5
5600 sed 's/^/| /' conftest.$ac_ext >&5
5602 ac_header_preproc=no
5605 rm -f conftest.err conftest.$ac_ext
5606 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5607 echo "${ECHO_T}$ac_header_preproc" >&6; }
5609 # So? What about this header?
5610 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5612 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5613 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5614 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5615 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5616 ac_header_preproc=yes
5619 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5620 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5621 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5622 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5623 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5624 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5625 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5626 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5627 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5628 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5629 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5630 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5634 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5636 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5637 echo $ECHO_N "(cached) $ECHO_C" >&6
5639 eval "$as_ac_Header=\$ac_header_preproc"
5641 ac_res=`eval echo '${'$as_ac_Header'}'`
5642 { echo "$as_me:$LINENO: result: $ac_res" >&5
5643 echo "${ECHO_T}$ac_res" >&6; }
5646 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5647 cat >>confdefs.h <<_ACEOF
5648 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5657 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5658 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5659 (test "X$CXX" != "Xg++"))) ; then
5661 ac_cpp='$CXXCPP $CPPFLAGS'
5662 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5663 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5664 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5665 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5666 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5667 if test -z "$CXXCPP"; then
5668 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5669 echo $ECHO_N "(cached) $ECHO_C" >&6
5671 # Double quotes because CXXCPP needs to be expanded
5672 for CXXCPP in "$CXX -E" "/lib/cpp"
5675 for ac_cxx_preproc_warn_flag in '' yes
5677 # Use a header file that comes with gcc, so configuring glibc
5678 # with a fresh cross-compiler works.
5679 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5680 # <limits.h> exists even on freestanding compilers.
5681 # On the NeXT, cc -E runs the code through the compiler's parser,
5682 # not just through cpp. "Syntax error" is here to catch this case.
5683 cat >conftest.$ac_ext <<_ACEOF
5686 cat confdefs.h >>conftest.$ac_ext
5687 cat >>conftest.$ac_ext <<_ACEOF
5688 /* end confdefs.h. */
5690 # include <limits.h>
5692 # include <assert.h>
5696 if { (ac_try="$ac_cpp conftest.$ac_ext"
5698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5699 *) ac_try_echo=$ac_try;;
5701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5702 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5704 grep -v '^ *+' conftest.er1 >conftest.err
5706 cat conftest.err >&5
5707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708 (exit $ac_status); } >/dev/null && {
5709 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5710 test ! -s conftest.err
5714 echo "$as_me: failed program was:" >&5
5715 sed 's/^/| /' conftest.$ac_ext >&5
5717 # Broken: fails on valid input.
5721 rm -f conftest.err conftest.$ac_ext
5723 # OK, works on sane cases. Now check whether nonexistent headers
5724 # can be detected and how.
5725 cat >conftest.$ac_ext <<_ACEOF
5728 cat confdefs.h >>conftest.$ac_ext
5729 cat >>conftest.$ac_ext <<_ACEOF
5730 /* end confdefs.h. */
5731 #include <ac_nonexistent.h>
5733 if { (ac_try="$ac_cpp conftest.$ac_ext"
5735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5736 *) ac_try_echo=$ac_try;;
5738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5739 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5741 grep -v '^ *+' conftest.er1 >conftest.err
5743 cat conftest.err >&5
5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745 (exit $ac_status); } >/dev/null && {
5746 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5747 test ! -s conftest.err
5749 # Broken: success on invalid input.
5752 echo "$as_me: failed program was:" >&5
5753 sed 's/^/| /' conftest.$ac_ext >&5
5755 # Passes both tests.
5760 rm -f conftest.err conftest.$ac_ext
5763 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5764 rm -f conftest.err conftest.$ac_ext
5765 if $ac_preproc_ok; then
5770 ac_cv_prog_CXXCPP=$CXXCPP
5773 CXXCPP=$ac_cv_prog_CXXCPP
5775 ac_cv_prog_CXXCPP=$CXXCPP
5777 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5778 echo "${ECHO_T}$CXXCPP" >&6; }
5780 for ac_cxx_preproc_warn_flag in '' yes
5782 # Use a header file that comes with gcc, so configuring glibc
5783 # with a fresh cross-compiler works.
5784 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5785 # <limits.h> exists even on freestanding compilers.
5786 # On the NeXT, cc -E runs the code through the compiler's parser,
5787 # not just through cpp. "Syntax error" is here to catch this case.
5788 cat >conftest.$ac_ext <<_ACEOF
5791 cat confdefs.h >>conftest.$ac_ext
5792 cat >>conftest.$ac_ext <<_ACEOF
5793 /* end confdefs.h. */
5795 # include <limits.h>
5797 # include <assert.h>
5801 if { (ac_try="$ac_cpp conftest.$ac_ext"
5803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5804 *) ac_try_echo=$ac_try;;
5806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5807 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5809 grep -v '^ *+' conftest.er1 >conftest.err
5811 cat conftest.err >&5
5812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813 (exit $ac_status); } >/dev/null && {
5814 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5815 test ! -s conftest.err
5819 echo "$as_me: failed program was:" >&5
5820 sed 's/^/| /' conftest.$ac_ext >&5
5822 # Broken: fails on valid input.
5826 rm -f conftest.err conftest.$ac_ext
5828 # OK, works on sane cases. Now check whether nonexistent headers
5829 # can be detected and how.
5830 cat >conftest.$ac_ext <<_ACEOF
5833 cat confdefs.h >>conftest.$ac_ext
5834 cat >>conftest.$ac_ext <<_ACEOF
5835 /* end confdefs.h. */
5836 #include <ac_nonexistent.h>
5838 if { (ac_try="$ac_cpp conftest.$ac_ext"
5840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5841 *) ac_try_echo=$ac_try;;
5843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5844 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5846 grep -v '^ *+' conftest.er1 >conftest.err
5848 cat conftest.err >&5
5849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850 (exit $ac_status); } >/dev/null && {
5851 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5852 test ! -s conftest.err
5854 # Broken: success on invalid input.
5857 echo "$as_me: failed program was:" >&5
5858 sed 's/^/| /' conftest.$ac_ext >&5
5860 # Passes both tests.
5865 rm -f conftest.err conftest.$ac_ext
5868 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5869 rm -f conftest.err conftest.$ac_ext
5870 if $ac_preproc_ok; then
5873 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5874 See \`config.log' for more details." >&5
5875 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5876 See \`config.log' for more details." >&2;}
5877 { (exit 1); exit 1; }; }
5881 ac_cpp='$CXXCPP $CPPFLAGS'
5882 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5883 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5884 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5890 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5891 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5892 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5893 if test -n "$ac_tool_prefix"; then
5894 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
5896 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5897 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5898 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5900 if test "${ac_cv_prog_F77+set}" = set; then
5901 echo $ECHO_N "(cached) $ECHO_C" >&6
5903 if test -n "$F77"; then
5904 ac_cv_prog_F77="$F77" # Let the user override the test.
5906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5910 test -z "$as_dir" && as_dir=.
5911 for ac_exec_ext in '' $ac_executable_extensions; do
5912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5913 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5924 if test -n "$F77"; then
5925 { echo "$as_me:$LINENO: result: $F77" >&5
5926 echo "${ECHO_T}$F77" >&6; }
5928 { echo "$as_me:$LINENO: result: no" >&5
5929 echo "${ECHO_T}no" >&6; }
5933 test -n "$F77" && break
5936 if test -z "$F77"; then
5938 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
5940 # Extract the first word of "$ac_prog", so it can be a program name with args.
5941 set dummy $ac_prog; ac_word=$2
5942 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5944 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5945 echo $ECHO_N "(cached) $ECHO_C" >&6
5947 if test -n "$ac_ct_F77"; then
5948 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5954 test -z "$as_dir" && as_dir=.
5955 for ac_exec_ext in '' $ac_executable_extensions; do
5956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5957 ac_cv_prog_ac_ct_F77="$ac_prog"
5958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5967 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5968 if test -n "$ac_ct_F77"; then
5969 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5970 echo "${ECHO_T}$ac_ct_F77" >&6; }
5972 { echo "$as_me:$LINENO: result: no" >&5
5973 echo "${ECHO_T}no" >&6; }
5977 test -n "$ac_ct_F77" && break
5980 if test "x$ac_ct_F77" = x; then
5983 case $cross_compiling:$ac_tool_warned in
5985 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5986 whose name does not start with the host triplet. If you think this
5987 configuration is useful to you, please write to autoconf@gnu.org." >&5
5988 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5989 whose name does not start with the host triplet. If you think this
5990 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5991 ac_tool_warned=yes ;;
5998 # Provide some information about the compiler.
5999 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6000 ac_compiler=`set X $ac_compile; echo $2`
6001 { (ac_try="$ac_compiler --version >&5"
6003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6004 *) ac_try_echo=$ac_try;;
6006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6007 (eval "$ac_compiler --version >&5") 2>&5
6009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010 (exit $ac_status); }
6011 { (ac_try="$ac_compiler -v >&5"
6013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6014 *) ac_try_echo=$ac_try;;
6016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6017 (eval "$ac_compiler -v >&5") 2>&5
6019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); }
6021 { (ac_try="$ac_compiler -V >&5"
6023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6024 *) ac_try_echo=$ac_try;;
6026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6027 (eval "$ac_compiler -V >&5") 2>&5
6029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6030 (exit $ac_status); }
6033 # If we don't use `.F' as extension, the preprocessor is not run on the
6034 # input file. (Note that this only needs to work for GNU compilers.)
6037 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6038 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6039 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6040 echo $ECHO_N "(cached) $ECHO_C" >&6
6042 cat >conftest.$ac_ext <<_ACEOF
6050 rm -f conftest.$ac_objext
6051 if { (ac_try="$ac_compile"
6053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6054 *) ac_try_echo=$ac_try;;
6056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6057 (eval "$ac_compile") 2>conftest.er1
6059 grep -v '^ *+' conftest.er1 >conftest.err
6061 cat conftest.err >&5
6062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063 (exit $ac_status); } && {
6064 test -z "$ac_f77_werror_flag" ||
6065 test ! -s conftest.err
6066 } && test -s conftest.$ac_objext; then
6069 echo "$as_me: failed program was:" >&5
6070 sed 's/^/| /' conftest.$ac_ext >&5
6075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6076 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6079 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6080 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6082 ac_test_FFLAGS=${FFLAGS+set}
6083 ac_save_FFLAGS=$FFLAGS
6085 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6086 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6087 if test "${ac_cv_prog_f77_g+set}" = set; then
6088 echo $ECHO_N "(cached) $ECHO_C" >&6
6091 cat >conftest.$ac_ext <<_ACEOF
6096 rm -f conftest.$ac_objext
6097 if { (ac_try="$ac_compile"
6099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6100 *) ac_try_echo=$ac_try;;
6102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6103 (eval "$ac_compile") 2>conftest.er1
6105 grep -v '^ *+' conftest.er1 >conftest.err
6107 cat conftest.err >&5
6108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109 (exit $ac_status); } && {
6110 test -z "$ac_f77_werror_flag" ||
6111 test ! -s conftest.err
6112 } && test -s conftest.$ac_objext; then
6113 ac_cv_prog_f77_g=yes
6115 echo "$as_me: failed program was:" >&5
6116 sed 's/^/| /' conftest.$ac_ext >&5
6121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6124 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6125 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6126 if test "$ac_test_FFLAGS" = set; then
6127 FFLAGS=$ac_save_FFLAGS
6128 elif test $ac_cv_prog_f77_g = yes; then
6129 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6135 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6142 G77=`test $ac_compiler_gnu = yes && echo yes`
6144 ac_cpp='$CPP $CPPFLAGS'
6145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6151 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6152 # find the maximum length of command line arguments
6153 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6154 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6155 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6156 echo $ECHO_N "(cached) $ECHO_C" >&6
6163 # On DJGPP, this test can blow up pretty badly due to problems in libc
6164 # (any single argument exceeding 2000 bytes causes a buffer overrun
6165 # during glob expansion). Even if it were fixed, the result of this
6166 # check would be larger than it should be.
6167 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6171 # Under GNU Hurd, this test is not required because there is
6172 # no limit to the length of command line arguments.
6173 # Libtool will interpret -1 as no limit whatsoever
6174 lt_cv_sys_max_cmd_len=-1;
6178 # On Win9x/ME, this test blows up -- it succeeds, but takes
6179 # about 5 minutes as the teststring grows exponentially.
6180 # Worse, since 9x/ME are not pre-emptively multitasking,
6181 # you end up with a "frozen" computer, even though with patience
6182 # the test eventually succeeds (with a max line length of 256k).
6183 # Instead, let's just punt: use the minimum linelength reported by
6184 # all of the supported platforms: 8192 (on NT/2K/XP).
6185 lt_cv_sys_max_cmd_len=8192;
6189 # On AmigaOS with pdksh, this test takes hours, literally.
6190 # So we just punt and use a minimum line length of 8192.
6191 lt_cv_sys_max_cmd_len=8192;
6194 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6195 # This has been around since 386BSD, at least. Likely further.
6196 if test -x /sbin/sysctl; then
6197 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6198 elif test -x /usr/sbin/sysctl; then
6199 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6201 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6203 # And add a safety zone
6204 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6205 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6209 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6210 lt_cv_sys_max_cmd_len=196608
6214 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6215 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6216 # nice to cause kernel panics so lets avoid the loop below.
6217 # First set a reasonable default.
6218 lt_cv_sys_max_cmd_len=16384
6220 if test -x /sbin/sysconfig; then
6221 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6222 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6227 lt_cv_sys_max_cmd_len=102400
6229 sysv5* | sco5v6* | sysv4.2uw2*)
6230 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6231 if test -n "$kargmax"; then
6232 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6234 lt_cv_sys_max_cmd_len=32768
6238 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6239 if test -n "$lt_cv_sys_max_cmd_len"; then
6240 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6241 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6243 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6244 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6245 = "XX$teststring") >/dev/null 2>&1 &&
6246 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6247 lt_cv_sys_max_cmd_len=$new_result &&
6248 test $i != 17 # 1/2 MB should be enough
6251 teststring=$teststring$teststring
6254 # Add a significant safety factor because C++ compilers can tack on massive
6255 # amounts of additional arguments before passing them to the linker.
6256 # It appears as though 1/2 is a usable value.
6257 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6264 if test -n $lt_cv_sys_max_cmd_len ; then
6265 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6266 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6268 { echo "$as_me:$LINENO: result: none" >&5
6269 echo "${ECHO_T}none" >&6; }
6276 # Check for command to grab the raw symbol name followed by C symbol from nm.
6277 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6278 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6279 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6280 echo $ECHO_N "(cached) $ECHO_C" >&6
6283 # These are sane defaults that work on at least a few old systems.
6284 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6286 # Character class describing NM global symbol codes.
6287 symcode='[BCDEGRST]'
6289 # Regexp to match symbols that can be accessed directly from C.
6290 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6292 # Transform an extracted symbol line into a proper C declaration
6293 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6295 # Transform an extracted symbol line into symbol name and symbol address
6296 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'"
6298 # Define system-specific variables.
6303 cygwin* | mingw* | pw32*)
6304 symcode='[ABCDGISTW]'
6306 hpux*) # Its linker distinguishes data from code symbols
6307 if test "$host_cpu" = ia64; then
6308 symcode='[ABCDEGRST]'
6310 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6311 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'"
6313 linux* | k*bsd*-gnu)
6314 if test "$host_cpu" = ia64; then
6315 symcode='[ABCDGIRSTW]'
6316 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6317 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'"
6321 symcode='[BCDEGRST]'
6324 symcode='[BCDEGQRST]'
6335 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6343 # Handle CRLF in mingw tool chain
6347 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6351 # If we're using GNU nm, then use its standard symbol codes.
6352 case `$NM -V 2>&1` in
6353 *GNU* | *'with BFD'*)
6354 symcode='[ABCDGIRSTW]' ;;
6357 # Try without a prefix undercore, then with it.
6358 for ac_symprfx in "" "_"; do
6360 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6361 symxfrm="\\1 $ac_symprfx\\2 \\2"
6363 # Write the raw and C identifiers.
6364 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6366 # Check to see that the pipe works correctly.
6370 cat > conftest.$ac_ext <<EOF
6375 void nm_test_func(){}
6379 int main(){nm_test_var='a';nm_test_func();return(0);}
6382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6383 (eval $ac_compile) 2>&5
6385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386 (exit $ac_status); }; then
6387 # Now try to grab the symbols.
6389 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6390 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393 (exit $ac_status); } && test -s "$nlist"; then
6394 # Try sorting and uniquifying the output.
6395 if sort "$nlist" | uniq > "$nlist"T; then
6396 mv -f "$nlist"T "$nlist"
6401 # Make sure that we snagged all the symbols we need.
6402 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6403 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6404 cat <<EOF > conftest.$ac_ext
6410 # Now generate the symbol file.
6411 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6413 cat <<EOF >> conftest.$ac_ext
6414 #if defined (__STDC__) && __STDC__
6415 # define lt_ptr_t void *
6417 # define lt_ptr_t char *
6421 /* The mapping between symbol names and symbols. */
6426 lt_preloaded_symbols[] =
6429 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6430 cat <<\EOF >> conftest.$ac_ext
6438 # Now try linking the two files.
6439 mv conftest.$ac_objext conftstm.$ac_objext
6440 lt_save_LIBS="$LIBS"
6441 lt_save_CFLAGS="$CFLAGS"
6442 LIBS="conftstm.$ac_objext"
6443 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6445 (eval $ac_link) 2>&5
6447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6451 LIBS="$lt_save_LIBS"
6452 CFLAGS="$lt_save_CFLAGS"
6454 echo "cannot find nm_test_func in $nlist" >&5
6457 echo "cannot find nm_test_var in $nlist" >&5
6460 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6463 echo "$progname: failed program was:" >&5
6464 cat conftest.$ac_ext >&5
6466 rm -rf conftest* conftst*
6468 # Do not use the global_symbol_pipe unless it works.
6469 if test "$pipe_works" = yes; then
6472 lt_cv_sys_global_symbol_pipe=
6478 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6479 lt_cv_sys_global_symbol_to_cdecl=
6481 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6482 { echo "$as_me:$LINENO: result: failed" >&5
6483 echo "${ECHO_T}failed" >&6; }
6485 { echo "$as_me:$LINENO: result: ok" >&5
6486 echo "${ECHO_T}ok" >&6; }
6489 { echo "$as_me:$LINENO: checking for objdir" >&5
6490 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6491 if test "${lt_cv_objdir+set}" = set; then
6492 echo $ECHO_N "(cached) $ECHO_C" >&6
6494 rm -f .libs 2>/dev/null
6495 mkdir .libs 2>/dev/null
6496 if test -d .libs; then
6499 # MS-DOS does not allow filenames that begin with a dot.
6502 rmdir .libs 2>/dev/null
6504 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6505 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6506 objdir=$lt_cv_objdir
6514 # AIX sometimes has problems with the GCC collect2 program. For some
6515 # reason, if we set the COLLECT_NAMES environment variable, the problems
6516 # vanish in a puff of smoke.
6517 if test "X${COLLECT_NAMES+set}" != Xset; then
6519 export COLLECT_NAMES
6524 # Sed substitution that helps us do robust quoting. It backslashifies
6525 # metacharacters that are still active within double-quoted strings.
6526 Xsed='sed -e 1s/^X//'
6527 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6529 # Same as above, but do not quote variable references.
6530 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6532 # Sed substitution to delay expansion of an escaped shell variable in a
6533 # double_quote_subst'ed string.
6534 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6536 # Sed substitution to avoid accidental globbing in evaled expressions
6537 no_glob_subst='s/\*/\\\*/g'
6543 default_ofile=libtool
6544 can_build_shared=yes
6546 # All known linkers require a `.a' archive for static linking (except MSVC,
6547 # which needs '.lib').
6549 ltmain="$ac_aux_dir/ltmain.sh"
6550 ofile="$default_ofile"
6551 with_gnu_ld="$lt_cv_prog_gnu_ld"
6553 if test -n "$ac_tool_prefix"; then
6554 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6555 set dummy ${ac_tool_prefix}ar; ac_word=$2
6556 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6558 if test "${ac_cv_prog_AR+set}" = set; then
6559 echo $ECHO_N "(cached) $ECHO_C" >&6
6561 if test -n "$AR"; then
6562 ac_cv_prog_AR="$AR" # Let the user override the test.
6564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6568 test -z "$as_dir" && as_dir=.
6569 for ac_exec_ext in '' $ac_executable_extensions; do
6570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6571 ac_cv_prog_AR="${ac_tool_prefix}ar"
6572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6582 if test -n "$AR"; then
6583 { echo "$as_me:$LINENO: result: $AR" >&5
6584 echo "${ECHO_T}$AR" >&6; }
6586 { echo "$as_me:$LINENO: result: no" >&5
6587 echo "${ECHO_T}no" >&6; }
6592 if test -z "$ac_cv_prog_AR"; then
6594 # Extract the first word of "ar", so it can be a program name with args.
6595 set dummy ar; ac_word=$2
6596 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6598 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6599 echo $ECHO_N "(cached) $ECHO_C" >&6
6601 if test -n "$ac_ct_AR"; then
6602 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6608 test -z "$as_dir" && as_dir=.
6609 for ac_exec_ext in '' $ac_executable_extensions; do
6610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6611 ac_cv_prog_ac_ct_AR="ar"
6612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6621 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6622 if test -n "$ac_ct_AR"; then
6623 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6624 echo "${ECHO_T}$ac_ct_AR" >&6; }
6626 { echo "$as_me:$LINENO: result: no" >&5
6627 echo "${ECHO_T}no" >&6; }
6630 if test "x$ac_ct_AR" = x; then
6633 case $cross_compiling:$ac_tool_warned in
6635 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6636 whose name does not start with the host triplet. If you think this
6637 configuration is useful to you, please write to autoconf@gnu.org." >&5
6638 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6639 whose name does not start with the host triplet. If you think this
6640 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6641 ac_tool_warned=yes ;;
6649 if test -n "$ac_tool_prefix"; then
6650 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6651 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6652 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6654 if test "${ac_cv_prog_RANLIB+set}" = set; then
6655 echo $ECHO_N "(cached) $ECHO_C" >&6
6657 if test -n "$RANLIB"; then
6658 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6664 test -z "$as_dir" && as_dir=.
6665 for ac_exec_ext in '' $ac_executable_extensions; do
6666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6667 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6677 RANLIB=$ac_cv_prog_RANLIB
6678 if test -n "$RANLIB"; then
6679 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6680 echo "${ECHO_T}$RANLIB" >&6; }
6682 { echo "$as_me:$LINENO: result: no" >&5
6683 echo "${ECHO_T}no" >&6; }
6688 if test -z "$ac_cv_prog_RANLIB"; then
6689 ac_ct_RANLIB=$RANLIB
6690 # Extract the first word of "ranlib", so it can be a program name with args.
6691 set dummy ranlib; ac_word=$2
6692 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6694 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6695 echo $ECHO_N "(cached) $ECHO_C" >&6
6697 if test -n "$ac_ct_RANLIB"; then
6698 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6704 test -z "$as_dir" && as_dir=.
6705 for ac_exec_ext in '' $ac_executable_extensions; do
6706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6707 ac_cv_prog_ac_ct_RANLIB="ranlib"
6708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6717 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6718 if test -n "$ac_ct_RANLIB"; then
6719 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6720 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6722 { echo "$as_me:$LINENO: result: no" >&5
6723 echo "${ECHO_T}no" >&6; }
6726 if test "x$ac_ct_RANLIB" = x; then
6729 case $cross_compiling:$ac_tool_warned in
6731 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6732 whose name does not start with the host triplet. If you think this
6733 configuration is useful to you, please write to autoconf@gnu.org." >&5
6734 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6735 whose name does not start with the host triplet. If you think this
6736 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6737 ac_tool_warned=yes ;;
6739 RANLIB=$ac_ct_RANLIB
6742 RANLIB="$ac_cv_prog_RANLIB"
6745 if test -n "$ac_tool_prefix"; then
6746 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6747 set dummy ${ac_tool_prefix}strip; ac_word=$2
6748 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6750 if test "${ac_cv_prog_STRIP+set}" = set; then
6751 echo $ECHO_N "(cached) $ECHO_C" >&6
6753 if test -n "$STRIP"; then
6754 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6760 test -z "$as_dir" && as_dir=.
6761 for ac_exec_ext in '' $ac_executable_extensions; do
6762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6763 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6773 STRIP=$ac_cv_prog_STRIP
6774 if test -n "$STRIP"; then
6775 { echo "$as_me:$LINENO: result: $STRIP" >&5
6776 echo "${ECHO_T}$STRIP" >&6; }
6778 { echo "$as_me:$LINENO: result: no" >&5
6779 echo "${ECHO_T}no" >&6; }
6784 if test -z "$ac_cv_prog_STRIP"; then
6786 # Extract the first word of "strip", so it can be a program name with args.
6787 set dummy strip; ac_word=$2
6788 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6790 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6791 echo $ECHO_N "(cached) $ECHO_C" >&6
6793 if test -n "$ac_ct_STRIP"; then
6794 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6800 test -z "$as_dir" && as_dir=.
6801 for ac_exec_ext in '' $ac_executable_extensions; do
6802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6803 ac_cv_prog_ac_ct_STRIP="strip"
6804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6813 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6814 if test -n "$ac_ct_STRIP"; then
6815 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6816 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6818 { echo "$as_me:$LINENO: result: no" >&5
6819 echo "${ECHO_T}no" >&6; }
6822 if test "x$ac_ct_STRIP" = x; then
6825 case $cross_compiling:$ac_tool_warned in
6827 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6828 whose name does not start with the host triplet. If you think this
6829 configuration is useful to you, please write to autoconf@gnu.org." >&5
6830 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6831 whose name does not start with the host triplet. If you think this
6832 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6833 ac_tool_warned=yes ;;
6838 STRIP="$ac_cv_prog_STRIP"
6843 old_CFLAGS="$CFLAGS"
6845 # Set sane defaults for various variables
6846 test -z "$AR" && AR=ar
6847 test -z "$AR_FLAGS" && AR_FLAGS=cru
6848 test -z "$AS" && AS=as
6849 test -z "$CC" && CC=cc
6850 test -z "$LTCC" && LTCC=$CC
6851 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6852 test -z "$DLLTOOL" && DLLTOOL=dlltool
6853 test -z "$LD" && LD=ld
6854 test -z "$LN_S" && LN_S="ln -s"
6855 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6856 test -z "$NM" && NM=nm
6857 test -z "$SED" && SED=sed
6858 test -z "$OBJDUMP" && OBJDUMP=objdump
6859 test -z "$RANLIB" && RANLIB=:
6860 test -z "$STRIP" && STRIP=:
6861 test -z "$ac_objext" && ac_objext=o
6863 # Determine commands to create old-style static archives.
6864 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6865 old_postinstall_cmds='chmod 644 $oldlib'
6866 old_postuninstall_cmds=
6868 if test -n "$RANLIB"; then
6871 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6874 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6877 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6880 for cc_temp in $compiler""; do
6882 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6883 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6888 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6891 # Only perform the check for file, if the check method requires it
6892 case $deplibs_check_method in
6894 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6895 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6896 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6897 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6898 echo $ECHO_N "(cached) $ECHO_C" >&6
6902 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6905 lt_save_MAGIC_CMD="$MAGIC_CMD"
6906 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6907 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6908 for ac_dir in $ac_dummy; do
6910 test -z "$ac_dir" && ac_dir=.
6911 if test -f $ac_dir/${ac_tool_prefix}file; then
6912 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6913 if test -n "$file_magic_test_file"; then
6914 case $deplibs_check_method in
6916 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6917 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6918 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6919 $EGREP "$file_magic_regex" > /dev/null; then
6924 *** Warning: the command libtool uses to detect shared libraries,
6925 *** $file_magic_cmd, produces output that libtool cannot recognize.
6926 *** The result is that libtool may fail to recognize shared libraries
6927 *** as such. This will affect the creation of libtool libraries that
6928 *** depend on shared libraries, but programs linked with such libtool
6929 *** libraries will work regardless of this problem. Nevertheless, you
6930 *** may want to report the problem to your system manager and/or to
6931 *** bug-libtool@gnu.org
6941 MAGIC_CMD="$lt_save_MAGIC_CMD"
6946 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6947 if test -n "$MAGIC_CMD"; then
6948 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6949 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6951 { echo "$as_me:$LINENO: result: no" >&5
6952 echo "${ECHO_T}no" >&6; }
6955 if test -z "$lt_cv_path_MAGIC_CMD"; then
6956 if test -n "$ac_tool_prefix"; then
6957 { echo "$as_me:$LINENO: checking for file" >&5
6958 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6959 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6960 echo $ECHO_N "(cached) $ECHO_C" >&6
6964 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6967 lt_save_MAGIC_CMD="$MAGIC_CMD"
6968 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6969 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6970 for ac_dir in $ac_dummy; do
6972 test -z "$ac_dir" && ac_dir=.
6973 if test -f $ac_dir/file; then
6974 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6975 if test -n "$file_magic_test_file"; then
6976 case $deplibs_check_method in
6978 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6979 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6980 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6981 $EGREP "$file_magic_regex" > /dev/null; then
6986 *** Warning: the command libtool uses to detect shared libraries,
6987 *** $file_magic_cmd, produces output that libtool cannot recognize.
6988 *** The result is that libtool may fail to recognize shared libraries
6989 *** as such. This will affect the creation of libtool libraries that
6990 *** depend on shared libraries, but programs linked with such libtool
6991 *** libraries will work regardless of this problem. Nevertheless, you
6992 *** may want to report the problem to your system manager and/or to
6993 *** bug-libtool@gnu.org
7003 MAGIC_CMD="$lt_save_MAGIC_CMD"
7008 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7009 if test -n "$MAGIC_CMD"; then
7010 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7011 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7013 { echo "$as_me:$LINENO: result: no" >&5
7014 echo "${ECHO_T}no" >&6; }
7028 rhapsody* | darwin*)
7029 if test -n "$ac_tool_prefix"; then
7030 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7031 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7032 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7034 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7035 echo $ECHO_N "(cached) $ECHO_C" >&6
7037 if test -n "$DSYMUTIL"; then
7038 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7044 test -z "$as_dir" && as_dir=.
7045 for ac_exec_ext in '' $ac_executable_extensions; do
7046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7047 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7057 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7058 if test -n "$DSYMUTIL"; then
7059 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7060 echo "${ECHO_T}$DSYMUTIL" >&6; }
7062 { echo "$as_me:$LINENO: result: no" >&5
7063 echo "${ECHO_T}no" >&6; }
7068 if test -z "$ac_cv_prog_DSYMUTIL"; then
7069 ac_ct_DSYMUTIL=$DSYMUTIL
7070 # Extract the first word of "dsymutil", so it can be a program name with args.
7071 set dummy dsymutil; ac_word=$2
7072 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7074 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7075 echo $ECHO_N "(cached) $ECHO_C" >&6
7077 if test -n "$ac_ct_DSYMUTIL"; then
7078 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7084 test -z "$as_dir" && as_dir=.
7085 for ac_exec_ext in '' $ac_executable_extensions; do
7086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7087 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7097 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7098 if test -n "$ac_ct_DSYMUTIL"; then
7099 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7100 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7102 { echo "$as_me:$LINENO: result: no" >&5
7103 echo "${ECHO_T}no" >&6; }
7106 if test "x$ac_ct_DSYMUTIL" = x; then
7109 case $cross_compiling:$ac_tool_warned in
7111 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7112 whose name does not start with the host triplet. If you think this
7113 configuration is useful to you, please write to autoconf@gnu.org." >&5
7114 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7115 whose name does not start with the host triplet. If you think this
7116 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7117 ac_tool_warned=yes ;;
7119 DSYMUTIL=$ac_ct_DSYMUTIL
7122 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7125 if test -n "$ac_tool_prefix"; then
7126 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7127 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7128 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7130 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7131 echo $ECHO_N "(cached) $ECHO_C" >&6
7133 if test -n "$NMEDIT"; then
7134 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7140 test -z "$as_dir" && as_dir=.
7141 for ac_exec_ext in '' $ac_executable_extensions; do
7142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7143 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7153 NMEDIT=$ac_cv_prog_NMEDIT
7154 if test -n "$NMEDIT"; then
7155 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7156 echo "${ECHO_T}$NMEDIT" >&6; }
7158 { echo "$as_me:$LINENO: result: no" >&5
7159 echo "${ECHO_T}no" >&6; }
7164 if test -z "$ac_cv_prog_NMEDIT"; then
7165 ac_ct_NMEDIT=$NMEDIT
7166 # Extract the first word of "nmedit", so it can be a program name with args.
7167 set dummy nmedit; ac_word=$2
7168 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7170 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7171 echo $ECHO_N "(cached) $ECHO_C" >&6
7173 if test -n "$ac_ct_NMEDIT"; then
7174 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7180 test -z "$as_dir" && as_dir=.
7181 for ac_exec_ext in '' $ac_executable_extensions; do
7182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7183 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7193 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7194 if test -n "$ac_ct_NMEDIT"; then
7195 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7196 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7198 { echo "$as_me:$LINENO: result: no" >&5
7199 echo "${ECHO_T}no" >&6; }
7202 if test "x$ac_ct_NMEDIT" = x; then
7205 case $cross_compiling:$ac_tool_warned in
7207 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7208 whose name does not start with the host triplet. If you think this
7209 configuration is useful to you, please write to autoconf@gnu.org." >&5
7210 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7211 whose name does not start with the host triplet. If you think this
7212 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7213 ac_tool_warned=yes ;;
7215 NMEDIT=$ac_ct_NMEDIT
7218 NMEDIT="$ac_cv_prog_NMEDIT"
7222 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7223 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7224 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7225 echo $ECHO_N "(cached) $ECHO_C" >&6
7227 lt_cv_apple_cc_single_mod=no
7228 if test -z "${LT_MULTI_MODULE}"; then
7229 # By default we will add the -single_module flag. You can override
7230 # by either setting the environment variable LT_MULTI_MODULE
7231 # non-empty at configure time, or by adding -multi_module to the
7233 echo "int foo(void){return 1;}" > conftest.c
7234 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7235 -dynamiclib ${wl}-single_module conftest.c
7236 if test -f libconftest.dylib; then
7237 lt_cv_apple_cc_single_mod=yes
7238 rm -rf libconftest.dylib*
7243 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7244 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7245 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7246 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7247 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7248 echo $ECHO_N "(cached) $ECHO_C" >&6
7250 lt_cv_ld_exported_symbols_list=no
7251 save_LDFLAGS=$LDFLAGS
7252 echo "_main" > conftest.sym
7253 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7254 cat >conftest.$ac_ext <<_ACEOF
7257 cat confdefs.h >>conftest.$ac_ext
7258 cat >>conftest.$ac_ext <<_ACEOF
7259 /* end confdefs.h. */
7269 rm -f conftest.$ac_objext conftest$ac_exeext
7270 if { (ac_try="$ac_link"
7272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7273 *) ac_try_echo=$ac_try;;
7275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7276 (eval "$ac_link") 2>conftest.er1
7278 grep -v '^ *+' conftest.er1 >conftest.err
7280 cat conftest.err >&5
7281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7282 (exit $ac_status); } && {
7283 test -z "$ac_c_werror_flag" ||
7284 test ! -s conftest.err
7285 } && test -s conftest$ac_exeext &&
7286 $as_test_x conftest$ac_exeext; then
7287 lt_cv_ld_exported_symbols_list=yes
7289 echo "$as_me: failed program was:" >&5
7290 sed 's/^/| /' conftest.$ac_ext >&5
7292 lt_cv_ld_exported_symbols_list=no
7295 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7296 conftest$ac_exeext conftest.$ac_ext
7297 LDFLAGS="$save_LDFLAGS"
7300 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7301 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7303 rhapsody* | darwin1.[0123])
7304 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7306 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7308 # if running on 10.5 or later, the deployment target defaults
7309 # to the OS version, if on x86, and 10.4, the deployment
7310 # target defaults to 10.4. Don't you love it?
7311 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7312 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7313 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7315 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7317 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7321 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7322 _lt_dar_single_mod='$single_module'
7324 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7325 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7327 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7329 if test "$DSYMUTIL" != ":"; then
7330 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7341 # Check whether --enable-libtool-lock was given.
7342 if test "${enable_libtool_lock+set}" = set; then
7343 enableval=$enable_libtool_lock;
7346 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7349 # Check whether --with-pic was given.
7350 if test "${with_pic+set}" = set; then
7351 withval=$with_pic; pic_mode="$withval"
7356 test -z "$pic_mode" && pic_mode=default
7358 # Use C for the default configuration in the libtool script
7362 ac_cpp='$CPP $CPPFLAGS'
7363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7368 # Source file extension for C test sources.
7371 # Object file extension for compiled C test sources.
7375 # Code to be used in simple compile tests
7376 lt_simple_compile_test_code="int some_variable = 0;"
7378 # Code to be used in simple link tests
7379 lt_simple_link_test_code='int main(){return(0);}'
7382 # If no C compiler was specified, use CC.
7385 # If no C compiler flags were specified, use CFLAGS.
7386 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7388 # Allow CC to be a program name with arguments.
7392 # save warnings/boilerplate of simple test code
7393 ac_outfile=conftest.$ac_objext
7394 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7395 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7396 _lt_compiler_boilerplate=`cat conftest.err`
7399 ac_outfile=conftest.$ac_objext
7400 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7401 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7402 _lt_linker_boilerplate=`cat conftest.err`
7407 lt_prog_compiler_no_builtin_flag=
7409 if test "$GCC" = yes; then
7410 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7413 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7414 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7415 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7416 echo $ECHO_N "(cached) $ECHO_C" >&6
7418 lt_cv_prog_compiler_rtti_exceptions=no
7419 ac_outfile=conftest.$ac_objext
7420 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7421 lt_compiler_flag="-fno-rtti -fno-exceptions"
7422 # Insert the option either (1) after the last *FLAGS variable, or
7423 # (2) before a word containing "conftest.", or (3) at the end.
7424 # Note that $ac_compile itself does not contain backslashes and begins
7425 # with a dollar sign (not a hyphen), so the echo should work correctly.
7426 # The option is referenced via a variable to avoid confusing sed.
7427 lt_compile=`echo "$ac_compile" | $SED \
7428 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7429 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7430 -e 's:$: $lt_compiler_flag:'`
7431 (eval echo "\"\$as_me:7431: $lt_compile\"" >&5)
7432 (eval "$lt_compile" 2>conftest.err)
7434 cat conftest.err >&5
7435 echo "$as_me:7435: \$? = $ac_status" >&5
7436 if (exit $ac_status) && test -s "$ac_outfile"; then
7437 # The compiler can only warn and ignore the option if not recognized
7438 # So say no if there are warnings other than the usual output.
7439 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7440 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7441 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7442 lt_cv_prog_compiler_rtti_exceptions=yes
7448 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7449 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7451 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7452 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7459 lt_prog_compiler_wl=
7460 lt_prog_compiler_pic=
7461 lt_prog_compiler_static=
7463 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7464 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7466 if test "$GCC" = yes; then
7467 lt_prog_compiler_wl='-Wl,'
7468 lt_prog_compiler_static='-static'
7472 # All AIX code is PIC.
7473 if test "$host_cpu" = ia64; then
7474 # AIX 5 now supports IA64 processor
7475 lt_prog_compiler_static='-Bstatic'
7480 # FIXME: we need at least 68020 code to build shared libraries, but
7481 # adding the `-m68020' flag to GCC prevents building anything better,
7483 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7486 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7487 # PIC is the default for these OSes.
7490 mingw* | cygwin* | pw32* | os2*)
7491 # This hack is so that the source file can tell whether it is being
7492 # built for inclusion in a dll (and should export symbols for example).
7493 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7494 # (--disable-auto-import) libraries
7495 lt_prog_compiler_pic='-DDLL_EXPORT'
7498 darwin* | rhapsody*)
7499 # PIC is the default on this platform
7500 # Common symbols not allowed in MH_DYLIB files
7501 lt_prog_compiler_pic='-fno-common'
7505 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7506 # Instead, we relocate shared libraries at runtime.
7510 # Just because we use GCC doesn't mean we suddenly get shared libraries
7511 # on systems that don't support them.
7512 lt_prog_compiler_can_build_shared=no
7517 if test -d /usr/nec; then
7518 lt_prog_compiler_pic=-Kconform_pic
7523 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7530 lt_prog_compiler_pic='-fPIC'
7536 lt_prog_compiler_pic='-fPIC'
7540 # PORTME Check for flag to pass linker flags through the system compiler.
7543 lt_prog_compiler_wl='-Wl,'
7544 if test "$host_cpu" = ia64; then
7545 # AIX 5 now supports IA64 processor
7546 lt_prog_compiler_static='-Bstatic'
7548 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7552 # PIC is the default on this platform
7553 # Common symbols not allowed in MH_DYLIB files
7554 case $cc_basename in
7556 lt_prog_compiler_pic='-qnocommon'
7557 lt_prog_compiler_wl='-Wl,'
7562 mingw* | cygwin* | pw32* | os2*)
7563 # This hack is so that the source file can tell whether it is being
7564 # built for inclusion in a dll (and should export symbols for example).
7565 lt_prog_compiler_pic='-DDLL_EXPORT'
7568 hpux9* | hpux10* | hpux11*)
7569 lt_prog_compiler_wl='-Wl,'
7570 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7577 lt_prog_compiler_pic='+Z'
7580 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7581 lt_prog_compiler_static='${wl}-a ${wl}archive'
7584 irix5* | irix6* | nonstopux*)
7585 lt_prog_compiler_wl='-Wl,'
7586 # PIC (with -KPIC) is the default.
7587 lt_prog_compiler_static='-non_shared'
7591 lt_prog_compiler_pic='-KPIC'
7592 lt_prog_compiler_static='-Bstatic'
7595 linux* | k*bsd*-gnu)
7596 case $cc_basename in
7598 lt_prog_compiler_wl='-Wl,'
7599 lt_prog_compiler_pic='-KPIC'
7600 lt_prog_compiler_static='-static'
7602 pgcc* | pgf77* | pgf90* | pgf95*)
7603 # Portland Group compilers (*not* the Pentium gcc compiler,
7604 # which looks to be a dead project)
7605 lt_prog_compiler_wl='-Wl,'
7606 lt_prog_compiler_pic='-fpic'
7607 lt_prog_compiler_static='-Bstatic'
7610 lt_prog_compiler_wl='-Wl,'
7611 # All Alpha code is PIC.
7612 lt_prog_compiler_static='-non_shared'
7615 case `$CC -V 2>&1 | sed 5q` in
7618 lt_prog_compiler_pic='-KPIC'
7619 lt_prog_compiler_static='-Bstatic'
7620 lt_prog_compiler_wl='-Wl,'
7623 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7624 lt_prog_compiler_pic='-KPIC'
7625 lt_prog_compiler_static='-Bstatic'
7626 lt_prog_compiler_wl=''
7633 osf3* | osf4* | osf5*)
7634 lt_prog_compiler_wl='-Wl,'
7635 # All OSF/1 code is PIC.
7636 lt_prog_compiler_static='-non_shared'
7640 lt_prog_compiler_static='-non_shared'
7644 lt_prog_compiler_pic='-KPIC'
7645 lt_prog_compiler_static='-Bstatic'
7646 case $cc_basename in
7648 lt_prog_compiler_wl='-Qoption ld ';;
7650 lt_prog_compiler_wl='-Wl,';;
7655 lt_prog_compiler_wl='-Qoption ld '
7656 lt_prog_compiler_pic='-PIC'
7657 lt_prog_compiler_static='-Bstatic'
7660 sysv4 | sysv4.2uw2* | sysv4.3*)
7661 lt_prog_compiler_wl='-Wl,'
7662 lt_prog_compiler_pic='-KPIC'
7663 lt_prog_compiler_static='-Bstatic'
7667 if test -d /usr/nec ;then
7668 lt_prog_compiler_pic='-Kconform_pic'
7669 lt_prog_compiler_static='-Bstatic'
7673 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7674 lt_prog_compiler_wl='-Wl,'
7675 lt_prog_compiler_pic='-KPIC'
7676 lt_prog_compiler_static='-Bstatic'
7680 lt_prog_compiler_wl='-Wl,'
7681 lt_prog_compiler_can_build_shared=no
7685 lt_prog_compiler_pic='-pic'
7686 lt_prog_compiler_static='-Bstatic'
7690 lt_prog_compiler_can_build_shared=no
7695 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7696 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7699 # Check to make sure the PIC flag actually works.
7701 if test -n "$lt_prog_compiler_pic"; then
7703 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7704 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7705 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7706 echo $ECHO_N "(cached) $ECHO_C" >&6
7708 lt_cv_prog_compiler_pic_works=no
7709 ac_outfile=conftest.$ac_objext
7710 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7711 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7712 # Insert the option either (1) after the last *FLAGS variable, or
7713 # (2) before a word containing "conftest.", or (3) at the end.
7714 # Note that $ac_compile itself does not contain backslashes and begins
7715 # with a dollar sign (not a hyphen), so the echo should work correctly.
7716 # The option is referenced via a variable to avoid confusing sed.
7717 lt_compile=`echo "$ac_compile" | $SED \
7718 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7719 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7720 -e 's:$: $lt_compiler_flag:'`
7721 (eval echo "\"\$as_me:7721: $lt_compile\"" >&5)
7722 (eval "$lt_compile" 2>conftest.err)
7724 cat conftest.err >&5
7725 echo "$as_me:7725: \$? = $ac_status" >&5
7726 if (exit $ac_status) && test -s "$ac_outfile"; then
7727 # The compiler can only warn and ignore the option if not recognized
7728 # So say no if there are warnings other than the usual output.
7729 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7730 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7731 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7732 lt_cv_prog_compiler_pic_works=yes
7738 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7739 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7741 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7742 case $lt_prog_compiler_pic in
7744 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7747 lt_prog_compiler_pic=
7748 lt_prog_compiler_can_build_shared=no
7753 # For platforms which do not support PIC, -DPIC is meaningless:
7755 lt_prog_compiler_pic=
7758 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7763 # Check to make sure the static flag actually works.
7765 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7766 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7767 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7768 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7769 echo $ECHO_N "(cached) $ECHO_C" >&6
7771 lt_cv_prog_compiler_static_works=no
7772 save_LDFLAGS="$LDFLAGS"
7773 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7774 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7775 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7776 # The linker can only warn and ignore the option if not recognized
7777 # So say no if there are warnings
7778 if test -s conftest.err; then
7779 # Append any errors to the config.log.
7780 cat conftest.err 1>&5
7781 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7782 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7783 if diff conftest.exp conftest.er2 >/dev/null; then
7784 lt_cv_prog_compiler_static_works=yes
7787 lt_cv_prog_compiler_static_works=yes
7791 LDFLAGS="$save_LDFLAGS"
7794 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7795 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7797 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7800 lt_prog_compiler_static=
7804 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7805 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7806 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7807 echo $ECHO_N "(cached) $ECHO_C" >&6
7809 lt_cv_prog_compiler_c_o=no
7810 $rm -r conftest 2>/dev/null
7814 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7816 lt_compiler_flag="-o out/conftest2.$ac_objext"
7817 # Insert the option either (1) after the last *FLAGS variable, or
7818 # (2) before a word containing "conftest.", or (3) at the end.
7819 # Note that $ac_compile itself does not contain backslashes and begins
7820 # with a dollar sign (not a hyphen), so the echo should work correctly.
7821 lt_compile=`echo "$ac_compile" | $SED \
7822 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7823 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7824 -e 's:$: $lt_compiler_flag:'`
7825 (eval echo "\"\$as_me:7825: $lt_compile\"" >&5)
7826 (eval "$lt_compile" 2>out/conftest.err)
7828 cat out/conftest.err >&5
7829 echo "$as_me:7829: \$? = $ac_status" >&5
7830 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7832 # The compiler can only warn and ignore the option if not recognized
7833 # So say no if there are warnings
7834 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7835 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7836 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7837 lt_cv_prog_compiler_c_o=yes
7842 # SGI C++ compiler will create directory out/ii_files/ for
7843 # template instantiation
7844 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7845 $rm out/* && rmdir out
7851 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7852 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7855 hard_links="nottested"
7856 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7857 # do not overwrite the value of need_locks provided by the user
7858 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7859 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7862 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7864 ln conftest.a conftest.b 2>&5 || hard_links=no
7865 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7866 { echo "$as_me:$LINENO: result: $hard_links" >&5
7867 echo "${ECHO_T}$hard_links" >&6; }
7868 if test "$hard_links" = no; then
7869 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7870 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7877 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7878 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7881 allow_undefined_flag=
7882 enable_shared_with_static_runtimes=no
7884 archive_expsym_cmds=
7885 old_archive_From_new_cmds=
7886 old_archive_from_expsyms_cmds=
7887 export_dynamic_flag_spec=
7888 whole_archive_flag_spec=
7889 thread_safe_flag_spec=
7890 hardcode_libdir_flag_spec=
7891 hardcode_libdir_flag_spec_ld=
7892 hardcode_libdir_separator=
7895 hardcode_shlibpath_var=unsupported
7896 link_all_deplibs=unknown
7897 hardcode_automatic=no
7900 always_export_symbols=no
7901 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7902 # include_expsyms should be a list of space-separated symbols to be *always*
7903 # included in the symbol list
7905 # exclude_expsyms can be an extended regexp of symbols to exclude
7906 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7907 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7908 # as well as any symbol that contains `d'.
7909 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7910 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7911 # platforms (ab)use it in PIC code, but their linkers get confused if
7912 # the symbol is explicitly referenced. Since portable code cannot
7913 # rely on this symbol name, it's probably fine to never include it in
7914 # preloaded symbol tables.
7915 # Exclude shared library initialization/finalization symbols.
7916 extract_expsyms_cmds=
7917 # Just being paranoid about ensuring that cc_basename is set.
7918 for cc_temp in $compiler""; do
7920 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7921 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7926 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7929 cygwin* | mingw* | pw32*)
7930 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7931 # When not using gcc, we currently assume that we are using
7932 # Microsoft Visual C++.
7933 if test "$GCC" != yes; then
7938 # we just hope/assume this is gcc and not c89 (= MSVC++)
7947 if test "$with_gnu_ld" = yes; then
7948 # If archive_cmds runs LD, not CC, wlarc should be empty
7951 # Set some defaults for GNU ld with shared library support. These
7952 # are reset later if shared libraries are not supported. Putting them
7953 # here allows them to be overridden if necessary.
7954 runpath_var=LD_RUN_PATH
7955 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7956 export_dynamic_flag_spec='${wl}--export-dynamic'
7957 # ancient GNU ld didn't support --whole-archive et. al.
7958 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7959 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7961 whole_archive_flag_spec=
7963 supports_anon_versioning=no
7964 case `$LD -v 2>/dev/null` in
7965 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7966 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7967 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7968 *\ 2.11.*) ;; # other 2.11 versions
7969 *) supports_anon_versioning=yes ;;
7972 # See if GNU ld supports shared libraries.
7975 # On AIX/PPC, the GNU linker is very broken
7976 if test "$host_cpu" != ia64; then
7980 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7981 *** to be unable to reliably create shared libraries on AIX.
7982 *** Therefore, libtool is disabling shared libraries support. If you
7983 *** really care for shared libraries, you may want to modify your PATH
7984 *** so that a non-GNU linker is found, and then restart.
7991 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)'
7992 hardcode_libdir_flag_spec='-L$libdir'
7993 hardcode_minus_L=yes
7995 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7996 # that the semantics of dynamic libraries on AmigaOS, at least up
7997 # to version 4, is to share data among multiple programs linked
7998 # with the same dynamic library. Since this doesn't match the
7999 # behavior of shared libraries on other platforms, we can't use
8005 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8006 allow_undefined_flag=unsupported
8007 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8008 # support --undefined. This deserves some investigation. FIXME
8009 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8015 cygwin* | mingw* | pw32*)
8016 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8017 # as there is no search path for DLLs.
8018 hardcode_libdir_flag_spec='-L$libdir'
8019 allow_undefined_flag=unsupported
8020 always_export_symbols=no
8021 enable_shared_with_static_runtimes=yes
8022 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8024 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8025 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8026 # If the export-symbols file already is a .def file (1st line
8027 # is EXPORTS), use it as is; otherwise, prepend...
8028 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8029 cp $export_symbols $output_objdir/$soname.def;
8031 echo EXPORTS > $output_objdir/$soname.def;
8032 cat $export_symbols >> $output_objdir/$soname.def;
8034 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8042 hardcode_shlibpath_var=no
8043 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8044 export_dynamic_flag_spec='${wl}-E'
8045 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8046 # Instead, shared libraries are loaded at an image base (0x10000000 by
8047 # default) and relocated if they conflict, which is a slow very memory
8048 # consuming and fragmenting process. To avoid this, we pick a random,
8049 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8050 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8051 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8052 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'
8055 gnu* | linux* | k*bsd*-gnu)
8056 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8058 case $cc_basename,$host_cpu in
8059 pgcc*) # Portland Group C compiler
8060 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'
8061 tmp_addflag=' $pic_flag'
8063 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8064 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'
8065 tmp_addflag=' $pic_flag -Mnomain' ;;
8066 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8067 tmp_addflag=' -i_dynamic' ;;
8068 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8069 tmp_addflag=' -i_dynamic -nofor_main' ;;
8070 ifc* | ifort*) # Intel Fortran compiler
8071 tmp_addflag=' -nofor_main' ;;
8073 case `$CC -V 2>&1 | sed 5q` in
8074 *Sun\ C*) # Sun C 5.9
8075 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'
8076 tmp_sharedflag='-G' ;;
8077 *Sun\ F*) # Sun Fortran 8.3
8078 tmp_sharedflag='-G' ;;
8080 tmp_sharedflag='-shared' ;;
8082 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8084 if test $supports_anon_versioning = yes; then
8085 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8086 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8087 $echo "local: *; };" >> $output_objdir/$libname.ver~
8088 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8096 netbsd* | netbsdelf*-gnu)
8097 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8098 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8101 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8102 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8107 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8111 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8112 *** create shared libraries on Solaris systems. Therefore, libtool
8113 *** is disabling shared libraries support. We urge you to upgrade GNU
8114 *** binutils to release 2.9.1 or newer. Another option is to modify
8115 *** your PATH or compiler configuration so that the native linker is
8116 *** used, and then restart.
8119 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8120 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8121 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8127 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8128 case `$LD -v 2>&1` in
8129 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8133 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8134 *** reliably create shared libraries on SCO systems. Therefore, libtool
8135 *** is disabling shared libraries support. We urge you to upgrade GNU
8136 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8137 *** your PATH or compiler configuration so that the native linker is
8138 *** used, and then restart.
8143 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8144 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8145 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8146 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8155 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8158 hardcode_shlibpath_var=no
8162 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8163 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8164 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8171 if test "$ld_shlibs" = no; then
8173 hardcode_libdir_flag_spec=
8174 export_dynamic_flag_spec=
8175 whole_archive_flag_spec=
8178 # PORTME fill in a description of your system's linker (not GNU ld)
8181 allow_undefined_flag=unsupported
8182 always_export_symbols=yes
8183 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'
8184 # Note: this linker hardcodes the directories in LIBPATH if there
8185 # are no directories specified by -L.
8186 hardcode_minus_L=yes
8187 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8188 # Neither direct hardcoding nor static linking is supported with a
8190 hardcode_direct=unsupported
8195 if test "$host_cpu" = ia64; then
8196 # On IA64, the linker does run time linking by default, so we don't
8197 # have to do anything special.
8198 aix_use_runtimelinking=no
8199 exp_sym_flag='-Bexport'
8202 # If we're using GNU nm, then we don't want the "-C" option.
8203 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8204 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8205 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'
8207 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'
8209 aix_use_runtimelinking=no
8211 # Test if we are trying to use run time linking or normal
8212 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8213 # need to do runtime linking.
8214 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8215 for ld_flag in $LDFLAGS; do
8216 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8217 aix_use_runtimelinking=yes
8224 exp_sym_flag='-bexport'
8225 no_entry_flag='-bnoentry'
8228 # When large executables or shared objects are built, AIX ld can
8229 # have problems creating the table of contents. If linking a library
8230 # or program results in "error TOC overflow" add -mminimal-toc to
8231 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8232 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8236 hardcode_libdir_separator=':'
8237 link_all_deplibs=yes
8239 if test "$GCC" = yes; then
8240 case $host_os in aix4.[012]|aix4.[012].*)
8241 # We only want to do this on AIX 4.2 and lower, the check
8242 # below for broken collect2 doesn't work under 4.3+
8243 collect2name=`${CC} -print-prog-name=collect2`
8244 if test -f "$collect2name" && \
8245 strings "$collect2name" | grep resolve_lib_name >/dev/null
8247 # We have reworked collect2
8250 # We have old collect2
8251 hardcode_direct=unsupported
8252 # It fails to find uninstalled libraries when the uninstalled
8253 # path is not listed in the libpath. Setting hardcode_minus_L
8254 # to unsupported forces relinking
8255 hardcode_minus_L=yes
8256 hardcode_libdir_flag_spec='-L$libdir'
8257 hardcode_libdir_separator=
8261 shared_flag='-shared'
8262 if test "$aix_use_runtimelinking" = yes; then
8263 shared_flag="$shared_flag "'${wl}-G'
8267 if test "$host_cpu" = ia64; then
8268 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8269 # chokes on -Wl,-G. The following line is correct:
8272 if test "$aix_use_runtimelinking" = yes; then
8273 shared_flag='${wl}-G'
8275 shared_flag='${wl}-bM:SRE'
8280 # It seems that -bexpall does not export symbols beginning with
8281 # underscore (_), so it is better to generate a list of symbols to export.
8282 always_export_symbols=yes
8283 if test "$aix_use_runtimelinking" = yes; then
8284 # Warning - without using the other runtime loading flags (-brtl),
8285 # -berok will link without error, but may produce a broken library.
8286 allow_undefined_flag='-berok'
8287 # Determine the default libpath from the value encoded in an empty executable.
8288 cat >conftest.$ac_ext <<_ACEOF
8291 cat confdefs.h >>conftest.$ac_ext
8292 cat >>conftest.$ac_ext <<_ACEOF
8293 /* end confdefs.h. */
8303 rm -f conftest.$ac_objext conftest$ac_exeext
8304 if { (ac_try="$ac_link"
8306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8307 *) ac_try_echo=$ac_try;;
8309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8310 (eval "$ac_link") 2>conftest.er1
8312 grep -v '^ *+' conftest.er1 >conftest.err
8314 cat conftest.err >&5
8315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316 (exit $ac_status); } && {
8317 test -z "$ac_c_werror_flag" ||
8318 test ! -s conftest.err
8319 } && test -s conftest$ac_exeext &&
8320 $as_test_x conftest$ac_exeext; then
8322 lt_aix_libpath_sed='
8323 /Import File Strings/,/^$/ {
8329 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8330 # Check for a 64-bit object if we didn't find anything.
8331 if test -z "$aix_libpath"; then
8332 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8335 echo "$as_me: failed program was:" >&5
8336 sed 's/^/| /' conftest.$ac_ext >&5
8341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8342 conftest$ac_exeext conftest.$ac_ext
8343 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8345 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8346 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"
8348 if test "$host_cpu" = ia64; then
8349 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8350 allow_undefined_flag="-z nodefs"
8351 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"
8353 # Determine the default libpath from the value encoded in an empty executable.
8354 cat >conftest.$ac_ext <<_ACEOF
8357 cat confdefs.h >>conftest.$ac_ext
8358 cat >>conftest.$ac_ext <<_ACEOF
8359 /* end confdefs.h. */
8369 rm -f conftest.$ac_objext conftest$ac_exeext
8370 if { (ac_try="$ac_link"
8372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8373 *) ac_try_echo=$ac_try;;
8375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8376 (eval "$ac_link") 2>conftest.er1
8378 grep -v '^ *+' conftest.er1 >conftest.err
8380 cat conftest.err >&5
8381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382 (exit $ac_status); } && {
8383 test -z "$ac_c_werror_flag" ||
8384 test ! -s conftest.err
8385 } && test -s conftest$ac_exeext &&
8386 $as_test_x conftest$ac_exeext; then
8388 lt_aix_libpath_sed='
8389 /Import File Strings/,/^$/ {
8395 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8396 # Check for a 64-bit object if we didn't find anything.
8397 if test -z "$aix_libpath"; then
8398 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8401 echo "$as_me: failed program was:" >&5
8402 sed 's/^/| /' conftest.$ac_ext >&5
8407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8408 conftest$ac_exeext conftest.$ac_ext
8409 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8411 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8412 # Warning - without using the other run time loading flags,
8413 # -berok will link without error, but may produce a broken library.
8414 no_undefined_flag=' ${wl}-bernotok'
8415 allow_undefined_flag=' ${wl}-berok'
8416 # Exported symbols can be pulled into shared objects from archives
8417 whole_archive_flag_spec='$convenience'
8418 archive_cmds_need_lc=yes
8419 # This is similar to how AIX traditionally builds its shared libraries.
8420 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'
8426 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)'
8427 hardcode_libdir_flag_spec='-L$libdir'
8428 hardcode_minus_L=yes
8429 # see comment about different semantics on the GNU ld section
8434 export_dynamic_flag_spec=-rdynamic
8437 cygwin* | mingw* | pw32*)
8438 # When not using gcc, we currently assume that we are using
8439 # Microsoft Visual C++.
8440 # hardcode_libdir_flag_spec is actually meaningless, as there is
8441 # no search path for DLLs.
8442 hardcode_libdir_flag_spec=' '
8443 allow_undefined_flag=unsupported
8444 # Tell ltmain to make .lib files, not .a files.
8446 # Tell ltmain to make .dll files, not .so files.
8448 # FIXME: Setting linknames here is a bad hack.
8449 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8450 # The linker will automatically build a .lib file if we build a DLL.
8451 old_archive_From_new_cmds='true'
8452 # FIXME: Should let the user specify the lib program.
8453 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8454 fix_srcfile_path='`cygpath -w "$srcfile"`'
8455 enable_shared_with_static_runtimes=yes
8458 darwin* | rhapsody*)
8460 rhapsody* | darwin1.[012])
8461 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8464 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8465 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8467 case ${MACOSX_DEPLOYMENT_TARGET} in
8469 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8472 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8478 archive_cmds_need_lc=no
8480 hardcode_automatic=yes
8481 hardcode_shlibpath_var=unsupported
8482 whole_archive_flag_spec=''
8483 link_all_deplibs=yes
8484 if test "$GCC" = yes ; then
8485 output_verbose_link_cmd='echo'
8486 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8487 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8488 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}"
8489 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}"
8491 case $cc_basename in
8493 output_verbose_link_cmd='echo'
8494 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8495 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8496 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8497 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}'
8498 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}'
8508 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8509 hardcode_libdir_flag_spec='-L$libdir'
8510 hardcode_shlibpath_var=no
8517 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8518 # support. Future versions do this automatically, but an explicit c++rt0.o
8519 # does not break anything, and helps significantly (at the cost of a little
8522 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8523 hardcode_libdir_flag_spec='-R$libdir'
8525 hardcode_shlibpath_var=no
8528 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8530 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8532 hardcode_minus_L=yes
8533 hardcode_shlibpath_var=no
8536 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8537 freebsd* | dragonfly*)
8538 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8539 hardcode_libdir_flag_spec='-R$libdir'
8541 hardcode_shlibpath_var=no
8545 if test "$GCC" = yes; then
8546 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'
8548 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'
8550 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8551 hardcode_libdir_separator=:
8554 # hardcode_minus_L: Not really in the search PATH,
8555 # but as the default location of the library.
8556 hardcode_minus_L=yes
8557 export_dynamic_flag_spec='${wl}-E'
8561 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8562 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8564 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8566 if test "$with_gnu_ld" = no; then
8567 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8568 hardcode_libdir_separator=:
8571 export_dynamic_flag_spec='${wl}-E'
8573 # hardcode_minus_L: Not really in the search PATH,
8574 # but as the default location of the library.
8575 hardcode_minus_L=yes
8580 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8583 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8586 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8589 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8595 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8598 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8601 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8605 if test "$with_gnu_ld" = no; then
8606 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8607 hardcode_libdir_separator=:
8611 hardcode_libdir_flag_spec_ld='+b $libdir'
8613 hardcode_shlibpath_var=no
8617 export_dynamic_flag_spec='${wl}-E'
8619 # hardcode_minus_L: Not really in the search PATH,
8620 # but as the default location of the library.
8621 hardcode_minus_L=yes
8627 irix5* | irix6* | nonstopux*)
8628 if test "$GCC" = yes; then
8629 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'
8631 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'
8632 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8634 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8635 hardcode_libdir_separator=:
8636 link_all_deplibs=yes
8639 netbsd* | netbsdelf*-gnu)
8640 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8641 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8643 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8645 hardcode_libdir_flag_spec='-R$libdir'
8647 hardcode_shlibpath_var=no
8651 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8653 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8654 hardcode_libdir_separator=:
8655 hardcode_shlibpath_var=no
8659 if test -f /usr/libexec/ld.so; then
8661 hardcode_shlibpath_var=no
8662 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8663 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8664 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8665 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8666 export_dynamic_flag_spec='${wl}-E'
8669 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8670 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8671 hardcode_libdir_flag_spec='-R$libdir'
8674 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8675 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8685 hardcode_libdir_flag_spec='-L$libdir'
8686 hardcode_minus_L=yes
8687 allow_undefined_flag=unsupported
8688 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'
8689 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8693 if test "$GCC" = yes; then
8694 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8695 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'
8697 allow_undefined_flag=' -expect_unresolved \*'
8698 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'
8700 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8701 hardcode_libdir_separator=:
8704 osf4* | osf5*) # as osf3* with the addition of -msym flag
8705 if test "$GCC" = yes; then
8706 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8707 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'
8708 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8710 allow_undefined_flag=' -expect_unresolved \*'
8711 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'
8712 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8713 $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'
8715 # Both c and cxx compiler support -rpath directly
8716 hardcode_libdir_flag_spec='-rpath $libdir'
8718 hardcode_libdir_separator=:
8722 no_undefined_flag=' -z text'
8723 if test "$GCC" = yes; then
8725 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8726 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8727 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8730 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8731 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8732 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8734 hardcode_libdir_flag_spec='-R$libdir'
8735 hardcode_shlibpath_var=no
8737 solaris2.[0-5] | solaris2.[0-5].*) ;;
8739 # The compiler driver will combine and reorder linker options,
8740 # but understands `-z linker_flag'. GCC discards it without `$wl',
8741 # but is careful enough not to reorder.
8742 # Supported since Solaris 2.6 (maybe 2.5.1?)
8743 if test "$GCC" = yes; then
8744 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8746 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8750 link_all_deplibs=yes
8754 if test "x$host_vendor" = xsequent; then
8755 # Use $CC to link under sequent, because it throws in some extra .o
8756 # files that make .init and .fini sections work.
8757 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8759 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8761 hardcode_libdir_flag_spec='-L$libdir'
8763 hardcode_minus_L=yes
8764 hardcode_shlibpath_var=no
8768 case $host_vendor in
8770 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8771 hardcode_direct=yes # is this really true???
8774 ## LD is ld it makes a PLAMLIB
8775 ## CC just makes a GrossModule.
8776 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8777 reload_cmds='$CC -r -o $output$reload_objs'
8781 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8782 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8785 runpath_var='LD_RUN_PATH'
8786 hardcode_shlibpath_var=no
8790 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8791 hardcode_shlibpath_var=no
8792 export_dynamic_flag_spec='-Bexport'
8796 if test -d /usr/nec; then
8797 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8798 hardcode_shlibpath_var=no
8799 runpath_var=LD_RUN_PATH
8800 hardcode_runpath_var=yes
8805 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8806 no_undefined_flag='${wl}-z,text'
8807 archive_cmds_need_lc=no
8808 hardcode_shlibpath_var=no
8809 runpath_var='LD_RUN_PATH'
8811 if test "$GCC" = yes; then
8812 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8813 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8815 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8816 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8820 sysv5* | sco3.2v5* | sco5v6*)
8821 # Note: We can NOT use -z defs as we might desire, because we do not
8822 # link with -lc, and that would cause any symbols used from libc to
8823 # always be unresolved, which means just about no library would
8824 # ever link correctly. If we're not using GNU ld we use -z text
8825 # though, which does catch some bad symbols but isn't as heavy-handed
8827 no_undefined_flag='${wl}-z,text'
8828 allow_undefined_flag='${wl}-z,nodefs'
8829 archive_cmds_need_lc=no
8830 hardcode_shlibpath_var=no
8831 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8832 hardcode_libdir_separator=':'
8833 link_all_deplibs=yes
8834 export_dynamic_flag_spec='${wl}-Bexport'
8835 runpath_var='LD_RUN_PATH'
8837 if test "$GCC" = yes; then
8838 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8839 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8841 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8842 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8847 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8848 hardcode_libdir_flag_spec='-L$libdir'
8849 hardcode_shlibpath_var=no
8858 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8859 echo "${ECHO_T}$ld_shlibs" >&6; }
8860 test "$ld_shlibs" = no && can_build_shared=no
8863 # Do we need to explicitly link libc?
8865 case "x$archive_cmds_need_lc" in
8867 # Assume -lc should be added
8868 archive_cmds_need_lc=yes
8870 if test "$enable_shared" = yes && test "$GCC" = yes; then
8871 case $archive_cmds in
8873 # FIXME: we may have to deal with multi-command sequences.
8876 # Test whether the compiler implicitly links with -lc since on some
8877 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8878 # to ld, don't add -lc before -lgcc.
8879 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8880 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8882 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8885 (eval $ac_compile) 2>&5
8887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888 (exit $ac_status); } 2>conftest.err; then
8891 libobjs=conftest.$ac_objext
8893 wl=$lt_prog_compiler_wl
8894 pic_flag=$lt_prog_compiler_pic
8900 lt_save_allow_undefined_flag=$allow_undefined_flag
8901 allow_undefined_flag=
8902 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8903 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906 (exit $ac_status); }
8908 archive_cmds_need_lc=no
8910 archive_cmds_need_lc=yes
8912 allow_undefined_flag=$lt_save_allow_undefined_flag
8914 cat conftest.err 1>&5
8917 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8918 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8925 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8926 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8928 libname_spec='lib$name'
8936 shlibpath_overrides_runpath=unknown
8938 dynamic_linker="$host_os ld.so"
8939 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8941 if test "$GCC" = yes; then
8943 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8944 *) lt_awk_arg="/^libraries:/" ;;
8946 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8947 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8948 # if the path contains ";" then we assume it to be the separator
8949 # otherwise default to the standard path separator (i.e. ":") - it is
8950 # assumed that no part of a normal pathname contains ";" but that should
8951 # okay in the real world where ";" in dirpaths is itself problematic.
8952 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8954 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8956 # Ok, now we have the path, separated by spaces, we can step through it
8957 # and add multilib dir if necessary.
8958 lt_tmp_lt_search_path_spec=
8959 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8960 for lt_sys_path in $lt_search_path_spec; do
8961 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8962 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8964 test -d "$lt_sys_path" && \
8965 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8968 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8969 BEGIN {RS=" "; FS="/|\n";} {
8972 for (lt_i = NF; lt_i > 0; lt_i--) {
8973 if ($lt_i != "" && $lt_i != ".") {
8974 if ($lt_i == "..") {
8977 if (lt_count == 0) {
8978 lt_foo="/" $lt_i lt_foo;
8985 if (lt_foo != "") { lt_freq[lt_foo]++; }
8986 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8988 sys_lib_search_path_spec=`echo $lt_search_path_spec`
8990 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8992 need_lib_prefix=unknown
8993 hardcode_into_libs=no
8995 # when you set need_version to no, make sure it does not cause -set_version
8996 # flags to be left without arguments
8997 need_version=unknown
9002 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9003 shlibpath_var=LIBPATH
9005 # AIX 3 has no versioning support, so we append a major version to the name.
9006 soname_spec='${libname}${release}${shared_ext}$major'
9013 hardcode_into_libs=yes
9014 if test "$host_cpu" = ia64; then
9015 # AIX 5 supports IA64
9016 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9017 shlibpath_var=LD_LIBRARY_PATH
9019 # With GCC up to 2.95.x, collect2 would create an import file
9020 # for dependence libraries. The import file would start with
9021 # the line `#! .'. This would cause the generated library to
9022 # depend on `.', always an invalid library. This was fixed in
9023 # development snapshots of GCC prior to 3.0.
9025 aix4 | aix4.[01] | aix4.[01].*)
9026 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9028 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9035 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9036 # soname into executable. Probably we can add versioning support to
9037 # collect2, so additional links can be useful in future.
9038 if test "$aix_use_runtimelinking" = yes; then
9039 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9040 # instead of lib<name>.a to let people know that these are not
9041 # typical AIX shared libraries.
9042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9044 # We preserve .a as extension for shared libraries through AIX4.2
9045 # and later when we are not doing run time linking.
9046 library_names_spec='${libname}${release}.a $libname.a'
9047 soname_spec='${libname}${release}${shared_ext}$major'
9049 shlibpath_var=LIBPATH
9054 library_names_spec='$libname.ixlibrary $libname.a'
9055 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9056 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'
9060 library_names_spec='${libname}${shared_ext}'
9061 dynamic_linker="$host_os ld.so"
9062 shlibpath_var=LIBRARY_PATH
9068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9069 soname_spec='${libname}${release}${shared_ext}$major'
9070 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9071 shlibpath_var=LD_LIBRARY_PATH
9072 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9073 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9074 # the default ld.so.conf also contains /usr/contrib/lib and
9075 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9076 # libtool to hard-code these into programs
9079 cygwin* | mingw* | pw32*)
9080 version_type=windows
9085 case $GCC,$host_os in
9086 yes,cygwin* | yes,mingw* | yes,pw32*)
9087 library_names_spec='$libname.dll.a'
9088 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9089 postinstall_cmds='base_file=`basename \${file}`~
9090 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9091 dldir=$destdir/`dirname \$dlpath`~
9092 test -d \$dldir || mkdir -p \$dldir~
9093 $install_prog $dir/$dlname \$dldir/$dlname~
9094 chmod a+x \$dldir/$dlname'
9095 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9096 dlpath=$dir/\$dldll~
9098 shlibpath_overrides_runpath=yes
9102 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9103 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9104 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9107 # MinGW DLLs use traditional 'lib' prefix
9108 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9109 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9110 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9111 # It is most probably a Windows format PATH printed by
9112 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9113 # path with ; separators, and with drive letters. We can handle the
9114 # drive letters (cygwin fileutils understands them), so leave them,
9115 # especially as we might pass files found there to a mingw objdump,
9116 # which wouldn't understand a cygwinified path. Ahh.
9117 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9119 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9123 # pw32 DLLs use 'pw' prefix rather than 'lib'
9124 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9130 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9133 dynamic_linker='Win32 ld.exe'
9134 # FIXME: first we should search . and the directory the executable is in
9138 darwin* | rhapsody*)
9139 dynamic_linker="$host_os dyld"
9143 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9144 soname_spec='${libname}${release}${major}$shared_ext'
9145 shlibpath_overrides_runpath=yes
9146 shlibpath_var=DYLD_LIBRARY_PATH
9147 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9149 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9150 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9158 soname_spec='${libname}${release}${shared_ext}$major'
9159 shlibpath_var=LD_LIBRARY_PATH
9166 freebsd* | dragonfly*)
9167 # DragonFly does not have aout. When/if they implement a new
9168 # versioning mechanism, adjust this.
9169 if test -x /usr/bin/objformat; then
9170 objformat=`/usr/bin/objformat`
9173 freebsd[123]*) objformat=aout ;;
9177 version_type=freebsd-$objformat
9178 case $version_type in
9180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9185 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9189 shlibpath_var=LD_LIBRARY_PATH
9192 shlibpath_overrides_runpath=yes
9194 freebsd3.[01]* | freebsdelf3.[01]*)
9195 shlibpath_overrides_runpath=yes
9196 hardcode_into_libs=yes
9198 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9199 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9200 shlibpath_overrides_runpath=no
9201 hardcode_into_libs=yes
9203 *) # from 4.6 on, and DragonFly
9204 shlibpath_overrides_runpath=yes
9205 hardcode_into_libs=yes
9214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9215 soname_spec='${libname}${release}${shared_ext}$major'
9216 shlibpath_var=LD_LIBRARY_PATH
9217 hardcode_into_libs=yes
9220 hpux9* | hpux10* | hpux11*)
9221 # Give a soname corresponding to the major version so that dld.sl refuses to
9222 # link against other versions.
9229 hardcode_into_libs=yes
9230 dynamic_linker="$host_os dld.so"
9231 shlibpath_var=LD_LIBRARY_PATH
9232 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9234 soname_spec='${libname}${release}${shared_ext}$major'
9235 if test "X$HPUX_IA64_MODE" = X32; then
9236 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9238 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9240 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9244 hardcode_into_libs=yes
9245 dynamic_linker="$host_os dld.sl"
9246 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9247 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9249 soname_spec='${libname}${release}${shared_ext}$major'
9250 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9251 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9255 dynamic_linker="$host_os dld.sl"
9256 shlibpath_var=SHLIB_PATH
9257 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9259 soname_spec='${libname}${release}${shared_ext}$major'
9262 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9263 postinstall_cmds='chmod 555 $lib'
9270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9271 soname_spec='${libname}${release}${shared_ext}$major'
9272 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9273 shlibpath_var=LD_LIBRARY_PATH
9274 shlibpath_overrides_runpath=no
9275 hardcode_into_libs=yes
9278 irix5* | irix6* | nonstopux*)
9280 nonstopux*) version_type=nonstopux ;;
9282 if test "$lt_cv_prog_gnu_ld" = yes; then
9290 soname_spec='${libname}${release}${shared_ext}$major'
9291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9293 irix5* | nonstopux*)
9297 case $LD in # libtool.m4 will add one of these switches to LD
9298 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9299 libsuff= shlibsuff= libmagic=32-bit;;
9300 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9301 libsuff=32 shlibsuff=N32 libmagic=N32;;
9302 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9303 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9304 *) libsuff= shlibsuff= libmagic=never-match;;
9308 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9309 shlibpath_overrides_runpath=no
9310 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9311 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9312 hardcode_into_libs=yes
9315 # No shared lib support for Linux oldld, aout, or coff.
9316 linux*oldld* | linux*aout* | linux*coff*)
9320 # This must be Linux ELF.
9321 linux* | k*bsd*-gnu)
9325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9326 soname_spec='${libname}${release}${shared_ext}$major'
9327 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9328 shlibpath_var=LD_LIBRARY_PATH
9329 shlibpath_overrides_runpath=no
9330 # This implies no fast_install, which is unacceptable.
9331 # Some rework will be needed to allow for fast_install
9332 # before this can be enabled.
9333 hardcode_into_libs=yes
9335 # Append ld.so.conf contents to the search path
9336 if test -f /etc/ld.so.conf; then
9337 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' ' '`
9338 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9341 # We used to test for /lib/ld.so.1 and disable shared libraries on
9342 # powerpc, because MkLinux only supported shared libraries with the
9343 # GNU dynamic linker. Since this was broken with cross compilers,
9344 # most powerpc-linux boxes support dynamic linking these days and
9345 # people can always --disable-shared, the test was removed, and we
9346 # assume the GNU/Linux dynamic linker is in use.
9347 dynamic_linker='GNU/Linux ld.so'
9354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9355 soname_spec='${libname}${release}${shared_ext}$major'
9356 shlibpath_var=LD_LIBRARY_PATH
9357 shlibpath_overrides_runpath=no
9358 hardcode_into_libs=yes
9359 dynamic_linker='NetBSD ld.elf_so'
9366 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9368 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9369 dynamic_linker='NetBSD (a.out) ld.so'
9371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9372 soname_spec='${libname}${release}${shared_ext}$major'
9373 dynamic_linker='NetBSD ld.elf_so'
9375 shlibpath_var=LD_LIBRARY_PATH
9376 shlibpath_overrides_runpath=yes
9377 hardcode_into_libs=yes
9382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9383 shlibpath_var=LD_LIBRARY_PATH
9384 shlibpath_overrides_runpath=yes
9391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9392 soname_spec='${libname}${release}${shared_ext}$major'
9393 shlibpath_var=LD_LIBRARY_PATH
9394 shlibpath_overrides_runpath=yes
9399 sys_lib_dlsearch_path_spec="/usr/lib"
9401 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9403 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9404 *) need_version=no ;;
9406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9407 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9408 shlibpath_var=LD_LIBRARY_PATH
9409 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9411 openbsd2.[89] | openbsd2.[89].*)
9412 shlibpath_overrides_runpath=no
9415 shlibpath_overrides_runpath=yes
9419 shlibpath_overrides_runpath=yes
9424 libname_spec='$name'
9427 library_names_spec='$libname${shared_ext} $libname.a'
9428 dynamic_linker='OS/2 ld.exe'
9429 shlibpath_var=LIBPATH
9432 osf3* | osf4* | osf5*)
9436 soname_spec='${libname}${release}${shared_ext}$major'
9437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9438 shlibpath_var=LD_LIBRARY_PATH
9439 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9440 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9452 soname_spec='${libname}${release}${shared_ext}$major'
9453 shlibpath_var=LD_LIBRARY_PATH
9454 shlibpath_overrides_runpath=yes
9455 hardcode_into_libs=yes
9456 # ldd complains unless libraries are executable
9457 postinstall_cmds='chmod +x $lib'
9462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9463 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9464 shlibpath_var=LD_LIBRARY_PATH
9465 shlibpath_overrides_runpath=yes
9466 if test "$with_gnu_ld" = yes; then
9474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9475 soname_spec='${libname}${release}${shared_ext}$major'
9476 shlibpath_var=LD_LIBRARY_PATH
9477 case $host_vendor in
9479 shlibpath_overrides_runpath=no
9481 export_dynamic_flag_spec='${wl}-Blargedynsym'
9482 runpath_var=LD_RUN_PATH
9490 shlibpath_overrides_runpath=no
9491 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9497 if test -d /usr/nec ;then
9499 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9500 soname_spec='$libname${shared_ext}.$major'
9501 shlibpath_var=LD_LIBRARY_PATH
9505 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9506 version_type=freebsd-elf
9509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9510 soname_spec='${libname}${release}${shared_ext}$major'
9511 shlibpath_var=LD_LIBRARY_PATH
9512 hardcode_into_libs=yes
9513 if test "$with_gnu_ld" = yes; then
9514 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9515 shlibpath_overrides_runpath=no
9517 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9518 shlibpath_overrides_runpath=yes
9521 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9525 sys_lib_dlsearch_path_spec='/usr/lib'
9530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9531 soname_spec='${libname}${release}${shared_ext}$major'
9532 shlibpath_var=LD_LIBRARY_PATH
9539 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9540 echo "${ECHO_T}$dynamic_linker" >&6; }
9541 test "$dynamic_linker" = no && can_build_shared=no
9543 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9544 echo $ECHO_N "(cached) $ECHO_C" >&6
9546 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9549 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9550 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9551 echo $ECHO_N "(cached) $ECHO_C" >&6
9553 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9556 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9558 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9559 if test "$GCC" = yes; then
9560 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9563 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9564 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9566 if test -n "$hardcode_libdir_flag_spec" || \
9567 test -n "$runpath_var" || \
9568 test "X$hardcode_automatic" = "Xyes" ; then
9570 # We can hardcode non-existant directories.
9571 if test "$hardcode_direct" != no &&
9572 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9573 # have to relink, otherwise we might link with an installed library
9574 # when we should be linking with a yet-to-be-installed one
9575 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9576 test "$hardcode_minus_L" != no; then
9577 # Linking always hardcodes the temporary library directory.
9578 hardcode_action=relink
9580 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9581 hardcode_action=immediate
9584 # We cannot hardcode anything, or else we can only hardcode existing
9586 hardcode_action=unsupported
9588 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9589 echo "${ECHO_T}$hardcode_action" >&6; }
9591 if test "$hardcode_action" = relink; then
9592 # Fast installation is not supported
9593 enable_fast_install=no
9594 elif test "$shlibpath_overrides_runpath" = yes ||
9595 test "$enable_shared" = no; then
9596 # Fast installation is not necessary
9597 enable_fast_install=needless
9602 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9603 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9604 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9605 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9606 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9607 { echo "$as_me:$LINENO: result: yes" >&5
9608 echo "${ECHO_T}yes" >&6; }
9610 # FIXME - insert some real tests, host_os isn't really good enough
9613 if test -n "$STRIP" ; then
9614 striplib="$STRIP -x"
9615 old_striplib="$STRIP -S"
9616 { echo "$as_me:$LINENO: result: yes" >&5
9617 echo "${ECHO_T}yes" >&6; }
9619 { echo "$as_me:$LINENO: result: no" >&5
9620 echo "${ECHO_T}no" >&6; }
9624 { echo "$as_me:$LINENO: result: no" >&5
9625 echo "${ECHO_T}no" >&6; }
9630 if test "x$enable_dlopen" != xyes; then
9631 enable_dlopen=unknown
9632 enable_dlopen_self=unknown
9633 enable_dlopen_self_static=unknown
9640 lt_cv_dlopen="load_add_on"
9642 lt_cv_dlopen_self=yes
9646 lt_cv_dlopen="LoadLibrary"
9651 lt_cv_dlopen="dlopen"
9656 # if libdl is installed we need to link against it
9657 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9658 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9659 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9660 echo $ECHO_N "(cached) $ECHO_C" >&6
9662 ac_check_lib_save_LIBS=$LIBS
9664 cat >conftest.$ac_ext <<_ACEOF
9667 cat confdefs.h >>conftest.$ac_ext
9668 cat >>conftest.$ac_ext <<_ACEOF
9669 /* end confdefs.h. */
9671 /* Override any GCC internal prototype to avoid an error.
9672 Use char because int might match the return type of a GCC
9673 builtin and then its argument prototype would still apply. */
9686 rm -f conftest.$ac_objext conftest$ac_exeext
9687 if { (ac_try="$ac_link"
9689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9690 *) ac_try_echo=$ac_try;;
9692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9693 (eval "$ac_link") 2>conftest.er1
9695 grep -v '^ *+' conftest.er1 >conftest.err
9697 cat conftest.err >&5
9698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9699 (exit $ac_status); } && {
9700 test -z "$ac_c_werror_flag" ||
9701 test ! -s conftest.err
9702 } && test -s conftest$ac_exeext &&
9703 $as_test_x conftest$ac_exeext; then
9704 ac_cv_lib_dl_dlopen=yes
9706 echo "$as_me: failed program was:" >&5
9707 sed 's/^/| /' conftest.$ac_ext >&5
9709 ac_cv_lib_dl_dlopen=no
9712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9713 conftest$ac_exeext conftest.$ac_ext
9714 LIBS=$ac_check_lib_save_LIBS
9716 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9717 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9718 if test $ac_cv_lib_dl_dlopen = yes; then
9719 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9724 lt_cv_dlopen_self=yes
9731 { echo "$as_me:$LINENO: checking for shl_load" >&5
9732 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9733 if test "${ac_cv_func_shl_load+set}" = set; then
9734 echo $ECHO_N "(cached) $ECHO_C" >&6
9736 cat >conftest.$ac_ext <<_ACEOF
9739 cat confdefs.h >>conftest.$ac_ext
9740 cat >>conftest.$ac_ext <<_ACEOF
9741 /* end confdefs.h. */
9742 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9743 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9744 #define shl_load innocuous_shl_load
9746 /* System header to define __stub macros and hopefully few prototypes,
9747 which can conflict with char shl_load (); below.
9748 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9749 <limits.h> exists even on freestanding compilers. */
9752 # include <limits.h>
9754 # include <assert.h>
9759 /* Override any GCC internal prototype to avoid an error.
9760 Use char because int might match the return type of a GCC
9761 builtin and then its argument prototype would still apply. */
9766 /* The GNU C library defines this for functions which it implements
9767 to always fail with ENOSYS. Some functions are actually named
9768 something starting with __ and the normal name is an alias. */
9769 #if defined __stub_shl_load || defined __stub___shl_load
9781 rm -f conftest.$ac_objext conftest$ac_exeext
9782 if { (ac_try="$ac_link"
9784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9785 *) ac_try_echo=$ac_try;;
9787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9788 (eval "$ac_link") 2>conftest.er1
9790 grep -v '^ *+' conftest.er1 >conftest.err
9792 cat conftest.err >&5
9793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794 (exit $ac_status); } && {
9795 test -z "$ac_c_werror_flag" ||
9796 test ! -s conftest.err
9797 } && test -s conftest$ac_exeext &&
9798 $as_test_x conftest$ac_exeext; then
9799 ac_cv_func_shl_load=yes
9801 echo "$as_me: failed program was:" >&5
9802 sed 's/^/| /' conftest.$ac_ext >&5
9804 ac_cv_func_shl_load=no
9807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9808 conftest$ac_exeext conftest.$ac_ext
9810 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9811 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9812 if test $ac_cv_func_shl_load = yes; then
9813 lt_cv_dlopen="shl_load"
9815 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9816 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9817 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9818 echo $ECHO_N "(cached) $ECHO_C" >&6
9820 ac_check_lib_save_LIBS=$LIBS
9822 cat >conftest.$ac_ext <<_ACEOF
9825 cat confdefs.h >>conftest.$ac_ext
9826 cat >>conftest.$ac_ext <<_ACEOF
9827 /* end confdefs.h. */
9829 /* Override any GCC internal prototype to avoid an error.
9830 Use char because int might match the return type of a GCC
9831 builtin and then its argument prototype would still apply. */
9844 rm -f conftest.$ac_objext conftest$ac_exeext
9845 if { (ac_try="$ac_link"
9847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9848 *) ac_try_echo=$ac_try;;
9850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9851 (eval "$ac_link") 2>conftest.er1
9853 grep -v '^ *+' conftest.er1 >conftest.err
9855 cat conftest.err >&5
9856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857 (exit $ac_status); } && {
9858 test -z "$ac_c_werror_flag" ||
9859 test ! -s conftest.err
9860 } && test -s conftest$ac_exeext &&
9861 $as_test_x conftest$ac_exeext; then
9862 ac_cv_lib_dld_shl_load=yes
9864 echo "$as_me: failed program was:" >&5
9865 sed 's/^/| /' conftest.$ac_ext >&5
9867 ac_cv_lib_dld_shl_load=no
9870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9871 conftest$ac_exeext conftest.$ac_ext
9872 LIBS=$ac_check_lib_save_LIBS
9874 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9875 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9876 if test $ac_cv_lib_dld_shl_load = yes; then
9877 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9879 { echo "$as_me:$LINENO: checking for dlopen" >&5
9880 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9881 if test "${ac_cv_func_dlopen+set}" = set; then
9882 echo $ECHO_N "(cached) $ECHO_C" >&6
9884 cat >conftest.$ac_ext <<_ACEOF
9887 cat confdefs.h >>conftest.$ac_ext
9888 cat >>conftest.$ac_ext <<_ACEOF
9889 /* end confdefs.h. */
9890 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9892 #define dlopen innocuous_dlopen
9894 /* System header to define __stub macros and hopefully few prototypes,
9895 which can conflict with char dlopen (); below.
9896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9897 <limits.h> exists even on freestanding compilers. */
9900 # include <limits.h>
9902 # include <assert.h>
9907 /* Override any GCC internal prototype to avoid an error.
9908 Use char because int might match the return type of a GCC
9909 builtin and then its argument prototype would still apply. */
9914 /* The GNU C library defines this for functions which it implements
9915 to always fail with ENOSYS. Some functions are actually named
9916 something starting with __ and the normal name is an alias. */
9917 #if defined __stub_dlopen || defined __stub___dlopen
9929 rm -f conftest.$ac_objext conftest$ac_exeext
9930 if { (ac_try="$ac_link"
9932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9933 *) ac_try_echo=$ac_try;;
9935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9936 (eval "$ac_link") 2>conftest.er1
9938 grep -v '^ *+' conftest.er1 >conftest.err
9940 cat conftest.err >&5
9941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942 (exit $ac_status); } && {
9943 test -z "$ac_c_werror_flag" ||
9944 test ! -s conftest.err
9945 } && test -s conftest$ac_exeext &&
9946 $as_test_x conftest$ac_exeext; then
9947 ac_cv_func_dlopen=yes
9949 echo "$as_me: failed program was:" >&5
9950 sed 's/^/| /' conftest.$ac_ext >&5
9952 ac_cv_func_dlopen=no
9955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9956 conftest$ac_exeext conftest.$ac_ext
9958 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9959 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9960 if test $ac_cv_func_dlopen = yes; then
9961 lt_cv_dlopen="dlopen"
9963 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9964 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9965 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9966 echo $ECHO_N "(cached) $ECHO_C" >&6
9968 ac_check_lib_save_LIBS=$LIBS
9970 cat >conftest.$ac_ext <<_ACEOF
9973 cat confdefs.h >>conftest.$ac_ext
9974 cat >>conftest.$ac_ext <<_ACEOF
9975 /* end confdefs.h. */
9977 /* Override any GCC internal prototype to avoid an error.
9978 Use char because int might match the return type of a GCC
9979 builtin and then its argument prototype would still apply. */
9992 rm -f conftest.$ac_objext conftest$ac_exeext
9993 if { (ac_try="$ac_link"
9995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9996 *) ac_try_echo=$ac_try;;
9998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9999 (eval "$ac_link") 2>conftest.er1
10001 grep -v '^ *+' conftest.er1 >conftest.err
10003 cat conftest.err >&5
10004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10005 (exit $ac_status); } && {
10006 test -z "$ac_c_werror_flag" ||
10007 test ! -s conftest.err
10008 } && test -s conftest$ac_exeext &&
10009 $as_test_x conftest$ac_exeext; then
10010 ac_cv_lib_dl_dlopen=yes
10012 echo "$as_me: failed program was:" >&5
10013 sed 's/^/| /' conftest.$ac_ext >&5
10015 ac_cv_lib_dl_dlopen=no
10018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10019 conftest$ac_exeext conftest.$ac_ext
10020 LIBS=$ac_check_lib_save_LIBS
10022 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10023 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10024 if test $ac_cv_lib_dl_dlopen = yes; then
10025 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10027 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10028 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10029 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10030 echo $ECHO_N "(cached) $ECHO_C" >&6
10032 ac_check_lib_save_LIBS=$LIBS
10033 LIBS="-lsvld $LIBS"
10034 cat >conftest.$ac_ext <<_ACEOF
10037 cat confdefs.h >>conftest.$ac_ext
10038 cat >>conftest.$ac_ext <<_ACEOF
10039 /* end confdefs.h. */
10041 /* Override any GCC internal prototype to avoid an error.
10042 Use char because int might match the return type of a GCC
10043 builtin and then its argument prototype would still apply. */
10056 rm -f conftest.$ac_objext conftest$ac_exeext
10057 if { (ac_try="$ac_link"
10058 case "(($ac_try" in
10059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10060 *) ac_try_echo=$ac_try;;
10062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10063 (eval "$ac_link") 2>conftest.er1
10065 grep -v '^ *+' conftest.er1 >conftest.err
10067 cat conftest.err >&5
10068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069 (exit $ac_status); } && {
10070 test -z "$ac_c_werror_flag" ||
10071 test ! -s conftest.err
10072 } && test -s conftest$ac_exeext &&
10073 $as_test_x conftest$ac_exeext; then
10074 ac_cv_lib_svld_dlopen=yes
10076 echo "$as_me: failed program was:" >&5
10077 sed 's/^/| /' conftest.$ac_ext >&5
10079 ac_cv_lib_svld_dlopen=no
10082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10083 conftest$ac_exeext conftest.$ac_ext
10084 LIBS=$ac_check_lib_save_LIBS
10086 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10087 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10088 if test $ac_cv_lib_svld_dlopen = yes; then
10089 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10091 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10092 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10093 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10094 echo $ECHO_N "(cached) $ECHO_C" >&6
10096 ac_check_lib_save_LIBS=$LIBS
10098 cat >conftest.$ac_ext <<_ACEOF
10101 cat confdefs.h >>conftest.$ac_ext
10102 cat >>conftest.$ac_ext <<_ACEOF
10103 /* end confdefs.h. */
10105 /* Override any GCC internal prototype to avoid an error.
10106 Use char because int might match the return type of a GCC
10107 builtin and then its argument prototype would still apply. */
10115 return dld_link ();
10120 rm -f conftest.$ac_objext conftest$ac_exeext
10121 if { (ac_try="$ac_link"
10122 case "(($ac_try" in
10123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10124 *) ac_try_echo=$ac_try;;
10126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10127 (eval "$ac_link") 2>conftest.er1
10129 grep -v '^ *+' conftest.er1 >conftest.err
10131 cat conftest.err >&5
10132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133 (exit $ac_status); } && {
10134 test -z "$ac_c_werror_flag" ||
10135 test ! -s conftest.err
10136 } && test -s conftest$ac_exeext &&
10137 $as_test_x conftest$ac_exeext; then
10138 ac_cv_lib_dld_dld_link=yes
10140 echo "$as_me: failed program was:" >&5
10141 sed 's/^/| /' conftest.$ac_ext >&5
10143 ac_cv_lib_dld_dld_link=no
10146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10147 conftest$ac_exeext conftest.$ac_ext
10148 LIBS=$ac_check_lib_save_LIBS
10150 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10151 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10152 if test $ac_cv_lib_dld_dld_link = yes; then
10153 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10174 if test "x$lt_cv_dlopen" != xno; then
10180 case $lt_cv_dlopen in
10182 save_CPPFLAGS="$CPPFLAGS"
10183 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10185 save_LDFLAGS="$LDFLAGS"
10186 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10189 LIBS="$lt_cv_dlopen_libs $LIBS"
10191 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10192 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10193 if test "${lt_cv_dlopen_self+set}" = set; then
10194 echo $ECHO_N "(cached) $ECHO_C" >&6
10196 if test "$cross_compiling" = yes; then :
10197 lt_cv_dlopen_self=cross
10199 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10200 lt_status=$lt_dlunknown
10201 cat > conftest.$ac_ext <<EOF
10202 #line 10202 "configure"
10203 #include "confdefs.h"
10212 # define LT_DLGLOBAL RTLD_GLOBAL
10215 # define LT_DLGLOBAL DL_GLOBAL
10217 # define LT_DLGLOBAL 0
10221 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10222 find out it does not work in some platform. */
10223 #ifndef LT_DLLAZY_OR_NOW
10225 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10228 # define LT_DLLAZY_OR_NOW DL_LAZY
10231 # define LT_DLLAZY_OR_NOW RTLD_NOW
10234 # define LT_DLLAZY_OR_NOW DL_NOW
10236 # define LT_DLLAZY_OR_NOW 0
10244 extern "C" void exit (int);
10247 void fnord() { int i=42;}
10250 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10251 int status = $lt_dlunknown;
10255 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10256 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10257 /* dlclose (self); */
10265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10266 (eval $ac_link) 2>&5
10268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10270 (./conftest; exit; ) >&5 2>/dev/null
10272 case x$lt_status in
10273 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10274 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10275 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10278 # compilation failed
10279 lt_cv_dlopen_self=no
10286 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10287 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10289 if test "x$lt_cv_dlopen_self" = xyes; then
10290 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10291 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10292 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10293 if test "${lt_cv_dlopen_self_static+set}" = set; then
10294 echo $ECHO_N "(cached) $ECHO_C" >&6
10296 if test "$cross_compiling" = yes; then :
10297 lt_cv_dlopen_self_static=cross
10299 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10300 lt_status=$lt_dlunknown
10301 cat > conftest.$ac_ext <<EOF
10302 #line 10302 "configure"
10303 #include "confdefs.h"
10312 # define LT_DLGLOBAL RTLD_GLOBAL
10315 # define LT_DLGLOBAL DL_GLOBAL
10317 # define LT_DLGLOBAL 0
10321 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10322 find out it does not work in some platform. */
10323 #ifndef LT_DLLAZY_OR_NOW
10325 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10328 # define LT_DLLAZY_OR_NOW DL_LAZY
10331 # define LT_DLLAZY_OR_NOW RTLD_NOW
10334 # define LT_DLLAZY_OR_NOW DL_NOW
10336 # define LT_DLLAZY_OR_NOW 0
10344 extern "C" void exit (int);
10347 void fnord() { int i=42;}
10350 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10351 int status = $lt_dlunknown;
10355 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10356 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10357 /* dlclose (self); */
10365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10366 (eval $ac_link) 2>&5
10368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10370 (./conftest; exit; ) >&5 2>/dev/null
10372 case x$lt_status in
10373 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10374 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10375 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10378 # compilation failed
10379 lt_cv_dlopen_self_static=no
10386 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10387 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10390 CPPFLAGS="$save_CPPFLAGS"
10391 LDFLAGS="$save_LDFLAGS"
10396 case $lt_cv_dlopen_self in
10397 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10398 *) enable_dlopen_self=unknown ;;
10401 case $lt_cv_dlopen_self_static in
10402 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10403 *) enable_dlopen_self_static=unknown ;;
10408 # Report which library types will actually be built
10409 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10410 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10411 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10412 echo "${ECHO_T}$can_build_shared" >&6; }
10414 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10415 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10416 test "$can_build_shared" = "no" && enable_shared=no
10418 # On AIX, shared libraries and static libraries use the same namespace, and
10419 # are all built from PIC.
10422 test "$enable_shared" = yes && enable_static=no
10423 if test -n "$RANLIB"; then
10424 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10425 postinstall_cmds='$RANLIB $lib'
10430 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10431 test "$enable_shared" = yes && enable_static=no
10435 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10436 echo "${ECHO_T}$enable_shared" >&6; }
10438 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10439 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10440 # Make sure either enable_shared or enable_static is yes.
10441 test "$enable_shared" = yes || enable_static=yes
10442 { echo "$as_me:$LINENO: result: $enable_static" >&5
10443 echo "${ECHO_T}$enable_static" >&6; }
10445 # The else clause should only fire when bootstrapping the
10446 # libtool distribution, otherwise you forgot to ship ltmain.sh
10447 # with your package, and you will get complaints that there are
10448 # no rules to generate ltmain.sh.
10449 if test -f "$ltmain"; then
10450 # See if we are running on zsh, and set the options which allow our commands through
10451 # without removal of \ escapes.
10452 if test -n "${ZSH_VERSION+set}" ; then
10453 setopt NO_GLOB_SUBST
10455 # Now quote all the things that may contain metacharacters while being
10456 # careful not to overquote the AC_SUBSTed values. We take copies of the
10457 # variables and quote the copies for generation of the libtool script.
10458 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10460 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10461 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10462 deplibs_check_method reload_flag reload_cmds need_locks \
10463 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10464 lt_cv_sys_global_symbol_to_c_name_address \
10465 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10466 old_postinstall_cmds old_postuninstall_cmds \
10470 lt_prog_compiler_wl \
10471 lt_prog_compiler_pic \
10472 lt_prog_compiler_static \
10473 lt_prog_compiler_no_builtin_flag \
10474 export_dynamic_flag_spec \
10475 thread_safe_flag_spec \
10476 whole_archive_flag_spec \
10477 enable_shared_with_static_runtimes \
10479 old_archive_from_new_cmds \
10484 compiler_lib_search_path \
10485 compiler_lib_search_dirs \
10487 archive_expsym_cmds \
10489 postuninstall_cmds \
10490 old_archive_from_expsyms_cmds \
10491 allow_undefined_flag \
10492 no_undefined_flag \
10493 export_symbols_cmds \
10494 hardcode_libdir_flag_spec \
10495 hardcode_libdir_flag_spec_ld \
10496 hardcode_libdir_separator \
10497 hardcode_automatic \
10499 module_expsym_cmds \
10500 lt_cv_prog_compiler_c_o \
10503 include_expsyms; do
10506 old_archive_cmds | \
10507 old_archive_from_new_cmds | \
10509 archive_expsym_cmds | \
10511 module_expsym_cmds | \
10512 old_archive_from_expsyms_cmds | \
10513 export_symbols_cmds | \
10514 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10515 postinstall_cmds | postuninstall_cmds | \
10516 old_postinstall_cmds | old_postuninstall_cmds | \
10517 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10518 # Double-quote double-evaled strings.
10519 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10522 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10528 *'\$0 --fallback-echo"')
10529 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10533 cfgfile="${ofile}T"
10534 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10536 { echo "$as_me:$LINENO: creating $ofile" >&5
10537 echo "$as_me: creating $ofile" >&6;}
10539 cat <<__EOF__ >> "$cfgfile"
10542 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10543 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10544 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10546 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10547 # Free Software Foundation, Inc.
10549 # This file is part of GNU Libtool:
10550 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10552 # This program is free software; you can redistribute it and/or modify
10553 # it under the terms of the GNU General Public License as published by
10554 # the Free Software Foundation; either version 2 of the License, or
10555 # (at your option) any later version.
10557 # This program is distributed in the hope that it will be useful, but
10558 # WITHOUT ANY WARRANTY; without even the implied warranty of
10559 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10560 # General Public License for more details.
10562 # You should have received a copy of the GNU General Public License
10563 # along with this program; if not, write to the Free Software
10564 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10566 # As a special exception to the GNU General Public License, if you
10567 # distribute this file as part of a program that contains a
10568 # configuration script generated by Autoconf, you may include it under
10569 # the same distribution terms that you use for the rest of that program.
10571 # A sed program that does not truncate output.
10574 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10575 Xsed="$SED -e 1s/^X//"
10577 # The HP-UX ksh and POSIX shell print the target directory to stdout
10578 # if CDPATH is set.
10579 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10581 # The names of the tagged configurations supported by this script.
10584 # ### BEGIN LIBTOOL CONFIG
10586 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10588 # Shell to use when invoking shell scripts.
10591 # Whether or not to build shared libraries.
10592 build_libtool_libs=$enable_shared
10594 # Whether or not to build static libraries.
10595 build_old_libs=$enable_static
10597 # Whether or not to add -lc for building shared libraries.
10598 build_libtool_need_lc=$archive_cmds_need_lc
10600 # Whether or not to disallow shared libs when runtime libs are static
10601 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10603 # Whether or not to optimize for fast installation.
10604 fast_install=$enable_fast_install
10607 host_alias=$host_alias
10611 # The build system.
10612 build_alias=$build_alias
10616 # An echo program that does not interpret backslashes.
10621 AR_FLAGS=$lt_AR_FLAGS
10626 # LTCC compiler flags.
10627 LTCFLAGS=$lt_LTCFLAGS
10629 # A language-specific compiler.
10632 # Is the compiler the GNU C compiler?
10638 # The linker used to build libraries.
10641 # Whether we need hard or soft links.
10644 # A BSD-compatible nm program.
10647 # A symbol stripping program
10650 # Used to examine libraries when file_magic_cmd begins "file"
10651 MAGIC_CMD=$MAGIC_CMD
10653 # Used on cygwin: DLL creation program.
10656 # Used on cygwin: object dumper.
10659 # Used on cygwin: assembler.
10662 # The name of the directory that contains temporary libtool files.
10665 # How to create reloadable object files.
10666 reload_flag=$lt_reload_flag
10667 reload_cmds=$lt_reload_cmds
10669 # How to pass a linker flag through the compiler.
10670 wl=$lt_lt_prog_compiler_wl
10672 # Object file suffix (normally "o").
10673 objext="$ac_objext"
10675 # Old archive suffix (normally "a").
10678 # Shared library suffix (normally ".so").
10679 shrext_cmds='$shrext_cmds'
10681 # Executable file suffix (normally "").
10684 # Additional compiler flags for building library objects.
10685 pic_flag=$lt_lt_prog_compiler_pic
10688 # What is the maximum length of a command?
10689 max_cmd_len=$lt_cv_sys_max_cmd_len
10691 # Does compiler simultaneously support -c and -o options?
10692 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10694 # Must we lock files when doing compilation?
10695 need_locks=$lt_need_locks
10697 # Do we need the lib prefix for modules?
10698 need_lib_prefix=$need_lib_prefix
10700 # Do we need a version for libraries?
10701 need_version=$need_version
10703 # Whether dlopen is supported.
10704 dlopen_support=$enable_dlopen
10706 # Whether dlopen of programs is supported.
10707 dlopen_self=$enable_dlopen_self
10709 # Whether dlopen of statically linked programs is supported.
10710 dlopen_self_static=$enable_dlopen_self_static
10712 # Compiler flag to prevent dynamic linking.
10713 link_static_flag=$lt_lt_prog_compiler_static
10715 # Compiler flag to turn off builtin functions.
10716 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10718 # Compiler flag to allow reflexive dlopens.
10719 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10721 # Compiler flag to generate shared objects directly from archives.
10722 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10724 # Compiler flag to generate thread-safe objects.
10725 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10727 # Library versioning type.
10728 version_type=$version_type
10730 # Format of library name prefix.
10731 libname_spec=$lt_libname_spec
10733 # List of archive names. First name is the real one, the rest are links.
10734 # The last name is the one that the linker finds with -lNAME.
10735 library_names_spec=$lt_library_names_spec
10737 # The coded name of the library, if different from the real name.
10738 soname_spec=$lt_soname_spec
10740 # Commands used to build and install an old-style archive.
10742 old_archive_cmds=$lt_old_archive_cmds
10743 old_postinstall_cmds=$lt_old_postinstall_cmds
10744 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10746 # Create an old-style archive from a shared archive.
10747 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10749 # Create a temporary old-style archive to link instead of a shared archive.
10750 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10752 # Commands used to build and install a shared archive.
10753 archive_cmds=$lt_archive_cmds
10754 archive_expsym_cmds=$lt_archive_expsym_cmds
10755 postinstall_cmds=$lt_postinstall_cmds
10756 postuninstall_cmds=$lt_postuninstall_cmds
10758 # Commands used to build a loadable module (assumed same as above if empty)
10759 module_cmds=$lt_module_cmds
10760 module_expsym_cmds=$lt_module_expsym_cmds
10762 # Commands to strip libraries.
10763 old_striplib=$lt_old_striplib
10764 striplib=$lt_striplib
10766 # Dependencies to place before the objects being linked to create a
10768 predep_objects=$lt_predep_objects
10770 # Dependencies to place after the objects being linked to create a
10772 postdep_objects=$lt_postdep_objects
10774 # Dependencies to place before the objects being linked to create a
10776 predeps=$lt_predeps
10778 # Dependencies to place after the objects being linked to create a
10780 postdeps=$lt_postdeps
10782 # The directories searched by this compiler when creating a shared
10784 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10786 # The library search path used internally by the compiler when linking
10787 # a shared library.
10788 compiler_lib_search_path=$lt_compiler_lib_search_path
10790 # Method to check whether dependent libraries are shared objects.
10791 deplibs_check_method=$lt_deplibs_check_method
10793 # Command to use when deplibs_check_method == file_magic.
10794 file_magic_cmd=$lt_file_magic_cmd
10796 # Flag that allows shared libraries with undefined symbols to be built.
10797 allow_undefined_flag=$lt_allow_undefined_flag
10799 # Flag that forces no undefined symbols.
10800 no_undefined_flag=$lt_no_undefined_flag
10802 # Commands used to finish a libtool library installation in a directory.
10803 finish_cmds=$lt_finish_cmds
10805 # Same as above, but a single script fragment to be evaled but not shown.
10806 finish_eval=$lt_finish_eval
10808 # Take the output of nm and produce a listing of raw symbols and C names.
10809 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10811 # Transform the output of nm in a proper C declaration
10812 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10814 # Transform the output of nm in a C name address pair
10815 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10817 # This is the shared library runtime path variable.
10818 runpath_var=$runpath_var
10820 # This is the shared library path variable.
10821 shlibpath_var=$shlibpath_var
10823 # Is shlibpath searched before the hard-coded library search path?
10824 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10826 # How to hardcode a shared library path into an executable.
10827 hardcode_action=$hardcode_action
10829 # Whether we should hardcode library paths into libraries.
10830 hardcode_into_libs=$hardcode_into_libs
10832 # Flag to hardcode \$libdir into a binary during linking.
10833 # This must work even if \$libdir does not exist.
10834 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10836 # If ld is used when linking, flag to hardcode \$libdir into
10837 # a binary during linking. This must work even if \$libdir does
10839 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10841 # Whether we need a single -rpath flag with a separated argument.
10842 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10844 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10845 # resulting binary.
10846 hardcode_direct=$hardcode_direct
10848 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10849 # resulting binary.
10850 hardcode_minus_L=$hardcode_minus_L
10852 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10853 # the resulting binary.
10854 hardcode_shlibpath_var=$hardcode_shlibpath_var
10856 # Set to yes if building a shared library automatically hardcodes DIR into the library
10857 # and all subsequent libraries and executables linked against it.
10858 hardcode_automatic=$hardcode_automatic
10860 # Variables whose values should be saved in libtool wrapper scripts and
10861 # restored at relink time.
10862 variables_saved_for_relink="$variables_saved_for_relink"
10864 # Whether libtool must link a program against all its dependency libraries.
10865 link_all_deplibs=$link_all_deplibs
10867 # Compile-time system search path for libraries
10868 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10870 # Run-time system search path for libraries
10871 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10873 # Fix the shell variable \$srcfile for the compiler.
10874 fix_srcfile_path=$lt_fix_srcfile_path
10876 # Set to yes if exported symbols are required.
10877 always_export_symbols=$always_export_symbols
10879 # The commands to list exported symbols.
10880 export_symbols_cmds=$lt_export_symbols_cmds
10882 # The commands to extract the exported symbol list from a shared archive.
10883 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10885 # Symbols that should not be listed in the preloaded symbols.
10886 exclude_expsyms=$lt_exclude_expsyms
10888 # Symbols that must always be exported.
10889 include_expsyms=$lt_include_expsyms
10891 # ### END LIBTOOL CONFIG
10898 cat <<\EOF >> "$cfgfile"
10900 # AIX sometimes has problems with the GCC collect2 program. For some
10901 # reason, if we set the COLLECT_NAMES environment variable, the problems
10902 # vanish in a puff of smoke.
10903 if test "X${COLLECT_NAMES+set}" != Xset; then
10905 export COLLECT_NAMES
10911 # We use sed instead of cat because bash on DJGPP gets confused if
10912 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10913 # text mode, it properly converts lines to CR/LF. This bash problem
10914 # is reportedly fixed, but why not run on old versions too?
10915 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10917 mv -f "$cfgfile" "$ofile" || \
10918 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10922 # If there is no Makefile yet, we rely on a make rule to execute
10923 # `config.status --recheck' to rerun these tests and create the
10924 # libtool script then.
10925 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10926 if test -f "$ltmain_in"; then
10927 test -f Makefile && make "$ltmain"
10933 ac_cpp='$CPP $CPPFLAGS'
10934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10941 # Check whether --with-tags was given.
10942 if test "${with_tags+set}" = set; then
10943 withval=$with_tags; tagnames="$withval"
10947 if test -f "$ltmain" && test -n "$tagnames"; then
10948 if test ! -f "${ofile}"; then
10949 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10950 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10953 if test -z "$LTCC"; then
10954 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10955 if test -z "$LTCC"; then
10956 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10957 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10959 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10960 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10963 if test -z "$LTCFLAGS"; then
10964 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10967 # Extract list of available tagged configurations in $ofile.
10968 # Note that this assumes the entire list is on one line.
10969 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10971 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10972 for tagname in $tagnames; do
10974 # Check whether tagname contains only valid characters
10975 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10977 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10978 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10979 { (exit 1); exit 1; }; }
10983 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10985 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10986 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10987 { (exit 1); exit 1; }; }
10990 # Update the list of available tags.
10991 if test -n "$tagname"; then
10992 echo appending configuration tag \"$tagname\" to $ofile
10996 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10997 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10998 (test "X$CXX" != "Xg++"))) ; then
11000 ac_cpp='$CXXCPP $CPPFLAGS'
11001 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11002 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11003 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11008 archive_cmds_need_lc_CXX=no
11009 allow_undefined_flag_CXX=
11010 always_export_symbols_CXX=no
11011 archive_expsym_cmds_CXX=
11012 export_dynamic_flag_spec_CXX=
11013 hardcode_direct_CXX=no
11014 hardcode_libdir_flag_spec_CXX=
11015 hardcode_libdir_flag_spec_ld_CXX=
11016 hardcode_libdir_separator_CXX=
11017 hardcode_minus_L_CXX=no
11018 hardcode_shlibpath_var_CXX=unsupported
11019 hardcode_automatic_CXX=no
11021 module_expsym_cmds_CXX=
11022 link_all_deplibs_CXX=unknown
11023 old_archive_cmds_CXX=$old_archive_cmds
11024 no_undefined_flag_CXX=
11025 whole_archive_flag_spec_CXX=
11026 enable_shared_with_static_runtimes_CXX=no
11028 # Dependencies to place before and after the object being linked:
11029 predep_objects_CXX=
11030 postdep_objects_CXX=
11033 compiler_lib_search_path_CXX=
11034 compiler_lib_search_dirs_CXX=
11036 # Source file extension for C++ test sources.
11039 # Object file extension for compiled C++ test sources.
11043 # Code to be used in simple compile tests
11044 lt_simple_compile_test_code="int some_variable = 0;"
11046 # Code to be used in simple link tests
11047 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11049 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11051 # If no C compiler was specified, use CC.
11054 # If no C compiler flags were specified, use CFLAGS.
11055 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11057 # Allow CC to be a program name with arguments.
11061 # save warnings/boilerplate of simple test code
11062 ac_outfile=conftest.$ac_objext
11063 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11064 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11065 _lt_compiler_boilerplate=`cat conftest.err`
11068 ac_outfile=conftest.$ac_objext
11069 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11070 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11071 _lt_linker_boilerplate=`cat conftest.err`
11075 # Allow CC to be a program name with arguments.
11080 lt_save_with_gnu_ld=$with_gnu_ld
11081 lt_save_path_LD=$lt_cv_path_LD
11082 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11083 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11085 $as_unset lt_cv_prog_gnu_ld
11087 if test -n "${lt_cv_path_LDCXX+set}"; then
11088 lt_cv_path_LD=$lt_cv_path_LDCXX
11090 $as_unset lt_cv_path_LD
11092 test -z "${LDCXX+set}" || LD=$LDCXX
11096 for cc_temp in $compiler""; do
11098 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11099 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11104 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11107 # We don't want -fno-exception wen compiling C++ code, so set the
11108 # no_builtin_flag separately
11109 if test "$GXX" = yes; then
11110 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11112 lt_prog_compiler_no_builtin_flag_CXX=
11115 if test "$GXX" = yes; then
11116 # Set up default GNU C++ configuration
11119 # Check whether --with-gnu-ld was given.
11120 if test "${with_gnu_ld+set}" = set; then
11121 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11127 if test "$GCC" = yes; then
11128 # Check if gcc -print-prog-name=ld gives a path.
11129 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11130 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11133 # gcc leaves a trailing carriage return which upsets mingw
11134 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11136 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11139 # Accept absolute paths.
11141 re_direlt='/[^/][^/]*/\.\./'
11142 # Canonicalize the pathname of ld
11143 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11144 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11145 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11147 test -z "$LD" && LD="$ac_prog"
11150 # If it fails, then pretend we aren't using GCC.
11154 # If it is relative, then search for the first ld in PATH.
11155 with_gnu_ld=unknown
11158 elif test "$with_gnu_ld" = yes; then
11159 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11160 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11162 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11163 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11165 if test "${lt_cv_path_LD+set}" = set; then
11166 echo $ECHO_N "(cached) $ECHO_C" >&6
11168 if test -z "$LD"; then
11169 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11170 for ac_dir in $PATH; do
11172 test -z "$ac_dir" && ac_dir=.
11173 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11174 lt_cv_path_LD="$ac_dir/$ac_prog"
11175 # Check to see if the program is GNU ld. I'd rather use --version,
11176 # but apparently some variants of GNU ld only accept -v.
11177 # Break only if it was the GNU/non-GNU ld that we prefer.
11178 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11179 *GNU* | *'with BFD'*)
11180 test "$with_gnu_ld" != no && break
11183 test "$with_gnu_ld" != yes && break
11190 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11194 LD="$lt_cv_path_LD"
11195 if test -n "$LD"; then
11196 { echo "$as_me:$LINENO: result: $LD" >&5
11197 echo "${ECHO_T}$LD" >&6; }
11199 { echo "$as_me:$LINENO: result: no" >&5
11200 echo "${ECHO_T}no" >&6; }
11202 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11203 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11204 { (exit 1); exit 1; }; }
11205 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11206 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11207 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11208 echo $ECHO_N "(cached) $ECHO_C" >&6
11210 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11211 case `$LD -v 2>&1 </dev/null` in
11212 *GNU* | *'with BFD'*)
11213 lt_cv_prog_gnu_ld=yes
11216 lt_cv_prog_gnu_ld=no
11220 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11221 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11222 with_gnu_ld=$lt_cv_prog_gnu_ld
11226 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11227 # archiving commands below assume that GNU ld is being used.
11228 if test "$with_gnu_ld" = yes; then
11229 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11230 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'
11232 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11233 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11235 # If archive_cmds runs LD, not CC, wlarc should be empty
11236 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11237 # investigate it a little bit more. (MM)
11240 # ancient GNU ld didn't support --whole-archive et. al.
11241 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11242 grep 'no-whole-archive' > /dev/null; then
11243 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11245 whole_archive_flag_spec_CXX=
11251 # A generic and very simple default shared library creation
11252 # command for GNU C++ for the case where it uses the native
11253 # linker, instead of GNU ld. If possible, this setting should
11254 # overridden to take advantage of the native linker features on
11255 # the platform it is being used on.
11256 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11259 # Commands to make compiler produce verbose output that lists
11260 # what "hidden" libraries, object files and flags are used when
11261 # linking a shared library.
11262 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11270 # PORTME: fill in a description of your system's C++ link characteristics
11271 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11272 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11276 # FIXME: insert proper C++ library support
11280 if test "$host_cpu" = ia64; then
11281 # On IA64, the linker does run time linking by default, so we don't
11282 # have to do anything special.
11283 aix_use_runtimelinking=no
11284 exp_sym_flag='-Bexport'
11287 aix_use_runtimelinking=no
11289 # Test if we are trying to use run time linking or normal
11290 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11291 # need to do runtime linking.
11292 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11293 for ld_flag in $LDFLAGS; do
11296 aix_use_runtimelinking=yes
11304 exp_sym_flag='-bexport'
11305 no_entry_flag='-bnoentry'
11308 # When large executables or shared objects are built, AIX ld can
11309 # have problems creating the table of contents. If linking a library
11310 # or program results in "error TOC overflow" add -mminimal-toc to
11311 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11312 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11314 archive_cmds_CXX=''
11315 hardcode_direct_CXX=yes
11316 hardcode_libdir_separator_CXX=':'
11317 link_all_deplibs_CXX=yes
11319 if test "$GXX" = yes; then
11320 case $host_os in aix4.[012]|aix4.[012].*)
11321 # We only want to do this on AIX 4.2 and lower, the check
11322 # below for broken collect2 doesn't work under 4.3+
11323 collect2name=`${CC} -print-prog-name=collect2`
11324 if test -f "$collect2name" && \
11325 strings "$collect2name" | grep resolve_lib_name >/dev/null
11327 # We have reworked collect2
11330 # We have old collect2
11331 hardcode_direct_CXX=unsupported
11332 # It fails to find uninstalled libraries when the uninstalled
11333 # path is not listed in the libpath. Setting hardcode_minus_L
11334 # to unsupported forces relinking
11335 hardcode_minus_L_CXX=yes
11336 hardcode_libdir_flag_spec_CXX='-L$libdir'
11337 hardcode_libdir_separator_CXX=
11341 shared_flag='-shared'
11342 if test "$aix_use_runtimelinking" = yes; then
11343 shared_flag="$shared_flag "'${wl}-G'
11347 if test "$host_cpu" = ia64; then
11348 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11349 # chokes on -Wl,-G. The following line is correct:
11352 if test "$aix_use_runtimelinking" = yes; then
11353 shared_flag='${wl}-G'
11355 shared_flag='${wl}-bM:SRE'
11360 # It seems that -bexpall does not export symbols beginning with
11361 # underscore (_), so it is better to generate a list of symbols to export.
11362 always_export_symbols_CXX=yes
11363 if test "$aix_use_runtimelinking" = yes; then
11364 # Warning - without using the other runtime loading flags (-brtl),
11365 # -berok will link without error, but may produce a broken library.
11366 allow_undefined_flag_CXX='-berok'
11367 # Determine the default libpath from the value encoded in an empty executable.
11368 cat >conftest.$ac_ext <<_ACEOF
11371 cat confdefs.h >>conftest.$ac_ext
11372 cat >>conftest.$ac_ext <<_ACEOF
11373 /* end confdefs.h. */
11383 rm -f conftest.$ac_objext conftest$ac_exeext
11384 if { (ac_try="$ac_link"
11385 case "(($ac_try" in
11386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11387 *) ac_try_echo=$ac_try;;
11389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11390 (eval "$ac_link") 2>conftest.er1
11392 grep -v '^ *+' conftest.er1 >conftest.err
11394 cat conftest.err >&5
11395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396 (exit $ac_status); } && {
11397 test -z "$ac_cxx_werror_flag" ||
11398 test ! -s conftest.err
11399 } && test -s conftest$ac_exeext &&
11400 $as_test_x conftest$ac_exeext; then
11402 lt_aix_libpath_sed='
11403 /Import File Strings/,/^$/ {
11409 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11410 # Check for a 64-bit object if we didn't find anything.
11411 if test -z "$aix_libpath"; then
11412 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11415 echo "$as_me: failed program was:" >&5
11416 sed 's/^/| /' conftest.$ac_ext >&5
11421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11422 conftest$ac_exeext conftest.$ac_ext
11423 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11425 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11427 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"
11429 if test "$host_cpu" = ia64; then
11430 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11431 allow_undefined_flag_CXX="-z nodefs"
11432 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"
11434 # Determine the default libpath from the value encoded in an empty executable.
11435 cat >conftest.$ac_ext <<_ACEOF
11438 cat confdefs.h >>conftest.$ac_ext
11439 cat >>conftest.$ac_ext <<_ACEOF
11440 /* end confdefs.h. */
11450 rm -f conftest.$ac_objext conftest$ac_exeext
11451 if { (ac_try="$ac_link"
11452 case "(($ac_try" in
11453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11454 *) ac_try_echo=$ac_try;;
11456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11457 (eval "$ac_link") 2>conftest.er1
11459 grep -v '^ *+' conftest.er1 >conftest.err
11461 cat conftest.err >&5
11462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11463 (exit $ac_status); } && {
11464 test -z "$ac_cxx_werror_flag" ||
11465 test ! -s conftest.err
11466 } && test -s conftest$ac_exeext &&
11467 $as_test_x conftest$ac_exeext; then
11469 lt_aix_libpath_sed='
11470 /Import File Strings/,/^$/ {
11476 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11477 # Check for a 64-bit object if we didn't find anything.
11478 if test -z "$aix_libpath"; then
11479 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11482 echo "$as_me: failed program was:" >&5
11483 sed 's/^/| /' conftest.$ac_ext >&5
11488 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11489 conftest$ac_exeext conftest.$ac_ext
11490 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11492 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11493 # Warning - without using the other run time loading flags,
11494 # -berok will link without error, but may produce a broken library.
11495 no_undefined_flag_CXX=' ${wl}-bernotok'
11496 allow_undefined_flag_CXX=' ${wl}-berok'
11497 # Exported symbols can be pulled into shared objects from archives
11498 whole_archive_flag_spec_CXX='$convenience'
11499 archive_cmds_need_lc_CXX=yes
11500 # This is similar to how AIX traditionally builds its shared libraries.
11501 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'
11507 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11508 allow_undefined_flag_CXX=unsupported
11509 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11510 # support --undefined. This deserves some investigation. FIXME
11511 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11518 case $cc_basename in
11520 # FIXME: insert proper C++ library support
11526 cygwin* | mingw* | pw32*)
11527 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11528 # as there is no search path for DLLs.
11529 hardcode_libdir_flag_spec_CXX='-L$libdir'
11530 allow_undefined_flag_CXX=unsupported
11531 always_export_symbols_CXX=no
11532 enable_shared_with_static_runtimes_CXX=yes
11534 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11535 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'
11536 # If the export-symbols file already is a .def file (1st line
11537 # is EXPORTS), use it as is; otherwise, prepend...
11538 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11539 cp $export_symbols $output_objdir/$soname.def;
11541 echo EXPORTS > $output_objdir/$soname.def;
11542 cat $export_symbols >> $output_objdir/$soname.def;
11544 $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'
11549 darwin* | rhapsody*)
11550 archive_cmds_need_lc_CXX=no
11551 hardcode_direct_CXX=no
11552 hardcode_automatic_CXX=yes
11553 hardcode_shlibpath_var_CXX=unsupported
11554 whole_archive_flag_spec_CXX=''
11555 link_all_deplibs_CXX=yes
11556 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11557 if test "$GXX" = yes ; then
11558 output_verbose_link_cmd='echo'
11559 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}"
11560 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11561 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}"
11562 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}"
11563 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11564 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}"
11565 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}"
11568 case $cc_basename in
11570 output_verbose_link_cmd='echo'
11571 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'
11572 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11573 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11574 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}'
11575 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}'
11585 case $cc_basename in
11587 # FIXME: insert proper C++ library support
11591 # Green Hills C++ Compiler
11592 # FIXME: insert proper C++ library support
11596 # FIXME: insert proper C++ library support
11602 # C++ shared libraries reported to be fairly broken before switch to ELF
11606 archive_cmds_need_lc_CXX=no
11608 freebsd* | dragonfly*)
11609 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11616 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11617 hardcode_libdir_separator_CXX=:
11618 export_dynamic_flag_spec_CXX='${wl}-E'
11619 hardcode_direct_CXX=yes
11620 hardcode_minus_L_CXX=yes # Not in the search PATH,
11621 # but as the default
11622 # location of the library.
11624 case $cc_basename in
11626 # FIXME: insert proper C++ library support
11630 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'
11631 # Commands to make compiler produce verbose output that lists
11632 # what "hidden" libraries, object files and flags are used when
11633 # linking a shared library.
11635 # There doesn't appear to be a way to prevent this compiler from
11636 # explicitly linking system object files so we need to strip them
11637 # from the output so that they don't get included in the library
11639 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'
11642 if test "$GXX" = yes; then
11643 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'
11645 # FIXME: insert proper C++ library support
11652 if test $with_gnu_ld = no; then
11653 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11654 hardcode_libdir_separator_CXX=:
11659 export_dynamic_flag_spec_CXX='${wl}-E'
11665 hardcode_direct_CXX=no
11666 hardcode_shlibpath_var_CXX=no
11669 hardcode_direct_CXX=yes
11670 hardcode_minus_L_CXX=yes # Not in the search PATH,
11671 # but as the default
11672 # location of the library.
11676 case $cc_basename in
11678 # FIXME: insert proper C++ library support
11684 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11687 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11690 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11693 # Commands to make compiler produce verbose output that lists
11694 # what "hidden" libraries, object files and flags are used when
11695 # linking a shared library.
11697 # There doesn't appear to be a way to prevent this compiler from
11698 # explicitly linking system object files so we need to strip them
11699 # from the output so that they don't get included in the library
11701 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'
11704 if test "$GXX" = yes; then
11705 if test $with_gnu_ld = no; then
11708 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11711 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11714 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'
11719 # FIXME: insert proper C++ library support
11726 hardcode_direct_CXX=no
11727 hardcode_shlibpath_var_CXX=no
11728 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11729 export_dynamic_flag_spec_CXX='${wl}-E'
11730 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11731 # Instead, shared libraries are loaded at an image base (0x10000000 by
11732 # default) and relocated if they conflict, which is a slow very memory
11733 # consuming and fragmenting process. To avoid this, we pick a random,
11734 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11735 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11736 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'
11737 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'
11740 case $cc_basename in
11743 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'
11745 # Archives containing C++ object files must be created using
11746 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11747 # necessary to make sure instantiated templates are included
11749 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11752 if test "$GXX" = yes; then
11753 if test "$with_gnu_ld" = no; then
11754 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'
11756 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'
11759 link_all_deplibs_CXX=yes
11762 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11763 hardcode_libdir_separator_CXX=:
11765 linux* | k*bsd*-gnu)
11766 case $cc_basename in
11768 # Kuck and Associates, Inc. (KAI) C++ Compiler
11770 # KCC will only create a shared library if the output file
11771 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11772 # to its proper name (with version) after linking.
11773 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'
11774 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'
11775 # Commands to make compiler produce verbose output that lists
11776 # what "hidden" libraries, object files and flags are used when
11777 # linking a shared library.
11779 # There doesn't appear to be a way to prevent this compiler from
11780 # explicitly linking system object files so we need to strip them
11781 # from the output so that they don't get included in the library
11783 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'
11785 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11786 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11788 # Archives containing C++ object files must be created using
11789 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11790 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11795 # version 8.0 and above of icpc choke on multiply defined symbols
11796 # if we add $predep_objects and $postdep_objects, however 7.1 and
11797 # earlier do not add the objects themselves.
11798 case `$CC -V 2>&1` in
11800 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11801 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'
11803 *) # Version 8.0 or newer
11806 ia64*) tmp_idyn=' -i_dynamic';;
11808 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11809 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'
11812 archive_cmds_need_lc_CXX=no
11813 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11814 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11815 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11818 # Portland Group C++ compiler
11819 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11820 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'
11822 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11823 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11824 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'
11828 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11829 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'
11831 runpath_var=LD_RUN_PATH
11832 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11833 hardcode_libdir_separator_CXX=:
11835 # Commands to make compiler produce verbose output that lists
11836 # what "hidden" libraries, object files and flags are used when
11837 # linking a shared library.
11839 # There doesn't appear to be a way to prevent this compiler from
11840 # explicitly linking system object files so we need to strip them
11841 # from the output so that they don't get included in the library
11843 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'
11846 case `$CC -V 2>&1 | sed 5q` in
11849 no_undefined_flag_CXX=' -zdefs'
11850 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11851 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'
11852 hardcode_libdir_flag_spec_CXX='-R$libdir'
11853 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'
11855 # Not sure whether something based on
11856 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11858 output_verbose_link_cmd='echo'
11860 # Archives containing C++ object files must be created using
11861 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11862 # necessary to make sure instantiated templates are included
11864 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11871 # FIXME: insert proper C++ library support
11875 # FIXME: insert proper C++ library support
11879 case $cc_basename in
11881 # FIXME: insert proper C++ library support
11885 # FIXME: insert proper C++ library support
11890 netbsd* | netbsdelf*-gnu)
11891 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11892 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11894 hardcode_libdir_flag_spec_CXX='-R$libdir'
11895 hardcode_direct_CXX=yes
11896 hardcode_shlibpath_var_CXX=no
11898 # Workaround some broken pre-1.5 toolchains
11899 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11902 # C++ shared libraries are fairly broken
11906 if test -f /usr/libexec/ld.so; then
11907 hardcode_direct_CXX=yes
11908 hardcode_shlibpath_var_CXX=no
11909 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11910 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11911 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11912 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11913 export_dynamic_flag_spec_CXX='${wl}-E'
11914 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11916 output_verbose_link_cmd='echo'
11922 case $cc_basename in
11924 # Kuck and Associates, Inc. (KAI) C++ Compiler
11926 # KCC will only create a shared library if the output file
11927 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11928 # to its proper name (with version) after linking.
11929 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'
11931 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11932 hardcode_libdir_separator_CXX=:
11934 # Archives containing C++ object files must be created using
11935 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11936 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11940 # Rational C++ 2.4.1
11941 # FIXME: insert proper C++ library support
11945 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11946 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'
11948 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11949 hardcode_libdir_separator_CXX=:
11951 # Commands to make compiler produce verbose output that lists
11952 # what "hidden" libraries, object files and flags are used when
11953 # linking a shared library.
11955 # There doesn't appear to be a way to prevent this compiler from
11956 # explicitly linking system object files so we need to strip them
11957 # from the output so that they don't get included in the library
11959 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'
11962 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11963 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11964 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'
11966 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11967 hardcode_libdir_separator_CXX=:
11969 # Commands to make compiler produce verbose output that lists
11970 # what "hidden" libraries, object files and flags are used when
11971 # linking a shared library.
11972 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11975 # FIXME: insert proper C++ library support
11982 case $cc_basename in
11984 # Kuck and Associates, Inc. (KAI) C++ Compiler
11986 # KCC will only create a shared library if the output file
11987 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11988 # to its proper name (with version) after linking.
11989 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'
11991 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11992 hardcode_libdir_separator_CXX=:
11994 # Archives containing C++ object files must be created using
11995 # the KAI C++ compiler.
11996 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11999 # Rational C++ 2.4.1
12000 # FIXME: insert proper C++ library support
12004 allow_undefined_flag_CXX=' -expect_unresolved \*'
12005 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'
12006 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12007 echo "-hidden">> $lib.exp~
12008 $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~
12011 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12012 hardcode_libdir_separator_CXX=:
12014 # Commands to make compiler produce verbose output that lists
12015 # what "hidden" libraries, object files and flags are used when
12016 # linking a shared library.
12018 # There doesn't appear to be a way to prevent this compiler from
12019 # explicitly linking system object files so we need to strip them
12020 # from the output so that they don't get included in the library
12022 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'
12025 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12026 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12027 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'
12029 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12030 hardcode_libdir_separator_CXX=:
12032 # Commands to make compiler produce verbose output that lists
12033 # what "hidden" libraries, object files and flags are used when
12034 # linking a shared library.
12035 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12038 # FIXME: insert proper C++ library support
12045 # FIXME: insert proper C++ library support
12049 case $cc_basename in
12052 # FIXME: insert proper C++ library support
12057 # FIXME: insert proper C++ library support
12061 # FIXME: insert proper C++ library support
12067 case $cc_basename in
12069 # Sun C++ 4.2, 5.x and Centerline C++
12070 archive_cmds_need_lc_CXX=yes
12071 no_undefined_flag_CXX=' -zdefs'
12072 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12073 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12074 $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'
12076 hardcode_libdir_flag_spec_CXX='-R$libdir'
12077 hardcode_shlibpath_var_CXX=no
12079 solaris2.[0-5] | solaris2.[0-5].*) ;;
12081 # The compiler driver will combine and reorder linker options,
12082 # but understands `-z linker_flag'.
12083 # Supported since Solaris 2.6 (maybe 2.5.1?)
12084 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12087 link_all_deplibs_CXX=yes
12089 output_verbose_link_cmd='echo'
12091 # Archives containing C++ object files must be created using
12092 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12093 # necessary to make sure instantiated templates are included
12095 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12098 # Green Hills C++ Compiler
12099 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12101 # The C++ compiler must be used to create the archive.
12102 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12105 # GNU C++ compiler with Solaris linker
12106 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12107 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12108 if $CC --version | grep -v '^2\.7' > /dev/null; then
12109 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12110 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12111 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12113 # Commands to make compiler produce verbose output that lists
12114 # what "hidden" libraries, object files and flags are used when
12115 # linking a shared library.
12116 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12118 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12120 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12121 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12122 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12124 # Commands to make compiler produce verbose output that lists
12125 # what "hidden" libraries, object files and flags are used when
12126 # linking a shared library.
12127 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12130 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12132 solaris2.[0-5] | solaris2.[0-5].*) ;;
12134 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12141 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12142 no_undefined_flag_CXX='${wl}-z,text'
12143 archive_cmds_need_lc_CXX=no
12144 hardcode_shlibpath_var_CXX=no
12145 runpath_var='LD_RUN_PATH'
12147 case $cc_basename in
12149 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12150 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12153 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12154 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12158 sysv5* | sco3.2v5* | sco5v6*)
12159 # Note: We can NOT use -z defs as we might desire, because we do not
12160 # link with -lc, and that would cause any symbols used from libc to
12161 # always be unresolved, which means just about no library would
12162 # ever link correctly. If we're not using GNU ld we use -z text
12163 # though, which does catch some bad symbols but isn't as heavy-handed
12165 # For security reasons, it is highly recommended that you always
12166 # use absolute paths for naming shared libraries, and exclude the
12167 # DT_RUNPATH tag from executables and libraries. But doing so
12168 # requires that you compile everything twice, which is a pain.
12169 # So that behaviour is only enabled if SCOABSPATH is set to a
12170 # non-empty value in the environment. Most likely only useful for
12171 # creating official distributions of packages.
12172 # This is a hack until libtool officially supports absolute path
12173 # names for shared libraries.
12174 no_undefined_flag_CXX='${wl}-z,text'
12175 allow_undefined_flag_CXX='${wl}-z,nodefs'
12176 archive_cmds_need_lc_CXX=no
12177 hardcode_shlibpath_var_CXX=no
12178 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12179 hardcode_libdir_separator_CXX=':'
12180 link_all_deplibs_CXX=yes
12181 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12182 runpath_var='LD_RUN_PATH'
12184 case $cc_basename in
12186 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12187 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12190 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12191 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12196 case $cc_basename in
12198 # NonStop-UX NCC 3.20
12199 # FIXME: insert proper C++ library support
12203 # FIXME: insert proper C++ library support
12209 # FIXME: insert proper C++ library support
12213 # FIXME: insert proper C++ library support
12217 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12218 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12219 test "$ld_shlibs_CXX" = no && can_build_shared=no
12224 cat > conftest.$ac_ext <<EOF
12228 Foo (void) { a = 0; }
12234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12235 (eval $ac_compile) 2>&5
12237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12238 (exit $ac_status); }; then
12239 # Parse the compiler output and extract the necessary
12240 # objects, libraries and library flags.
12242 # Sentinel used to keep track of whether or not we are before
12243 # the conftest object file.
12244 pre_test_object_deps_done=no
12246 # The `*' in the case matches for architectures that use `case' in
12247 # $output_verbose_cmd can trigger glob expansion during the loop
12248 # eval without this substitution.
12249 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12251 for p in `eval $output_verbose_link_cmd`; do
12255 # Some compilers place space between "-{L,R}" and the path.
12256 # Remove the space.
12257 if test $p = "-L" \
12258 || test $p = "-R"; then
12265 if test "$pre_test_object_deps_done" = no; then
12268 # Internal compiler library paths should come after those
12269 # provided the user. The postdeps already come after the
12270 # user supplied libs so there is no need to process them.
12271 if test -z "$compiler_lib_search_path_CXX"; then
12272 compiler_lib_search_path_CXX="${prev}${p}"
12274 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12277 # The "-l" case would never come before the object being
12278 # linked, so don't bother handling this case.
12281 if test -z "$postdeps_CXX"; then
12282 postdeps_CXX="${prev}${p}"
12284 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12290 # This assumes that the test object file only shows up
12291 # once in the compiler output.
12292 if test "$p" = "conftest.$objext"; then
12293 pre_test_object_deps_done=yes
12297 if test "$pre_test_object_deps_done" = no; then
12298 if test -z "$predep_objects_CXX"; then
12299 predep_objects_CXX="$p"
12301 predep_objects_CXX="$predep_objects_CXX $p"
12304 if test -z "$postdep_objects_CXX"; then
12305 postdep_objects_CXX="$p"
12307 postdep_objects_CXX="$postdep_objects_CXX $p"
12312 *) ;; # Ignore the rest.
12320 echo "libtool.m4: error: problem compiling CXX test program"
12323 $rm -f confest.$objext
12325 compiler_lib_search_dirs_CXX=
12326 if test -n "$compiler_lib_search_path_CXX"; then
12327 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12330 # PORTME: override above test on systems where it is broken
12333 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12334 # hack all around it, let's just trust "g++" to DTRT.
12335 predep_objects_CXX=
12336 postdep_objects_CXX=
12341 case `$CC -V 2>&1 | sed 5q` in
12345 # The more standards-conforming stlport4 library is
12346 # incompatible with the Cstd library. Avoid specifying
12347 # it if it's in CXXFLAGS. Ignore libCrun as
12348 # -library=stlport4 depends on it.
12349 case " $CXX $CXXFLAGS " in
12350 *" -library=stlport4 "*)
12351 solaris_use_stlport4=yes
12354 if test "$solaris_use_stlport4" != yes; then
12355 postdeps_CXX='-library=Cstd -library=Crun'
12362 case $cc_basename in
12364 # The more standards-conforming stlport4 library is
12365 # incompatible with the Cstd library. Avoid specifying
12366 # it if it's in CXXFLAGS. Ignore libCrun as
12367 # -library=stlport4 depends on it.
12368 case " $CXX $CXXFLAGS " in
12369 *" -library=stlport4 "*)
12370 solaris_use_stlport4=yes
12374 # Adding this requires a known-good setup of shared libraries for
12375 # Sun compiler versions before 5.6, else PIC objects from an old
12376 # archive will be linked into the output, leading to subtle bugs.
12377 if test "$solaris_use_stlport4" != yes; then
12378 postdeps_CXX='-library=Cstd -library=Crun'
12385 case " $postdeps_CXX " in
12386 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12389 lt_prog_compiler_wl_CXX=
12390 lt_prog_compiler_pic_CXX=
12391 lt_prog_compiler_static_CXX=
12393 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12394 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12396 # C++ specific cases for pic, static, wl, etc.
12397 if test "$GXX" = yes; then
12398 lt_prog_compiler_wl_CXX='-Wl,'
12399 lt_prog_compiler_static_CXX='-static'
12403 # All AIX code is PIC.
12404 if test "$host_cpu" = ia64; then
12405 # AIX 5 now supports IA64 processor
12406 lt_prog_compiler_static_CXX='-Bstatic'
12410 # FIXME: we need at least 68020 code to build shared libraries, but
12411 # adding the `-m68020' flag to GCC prevents building anything better,
12413 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12415 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12416 # PIC is the default for these OSes.
12418 mingw* | cygwin* | os2* | pw32*)
12419 # This hack is so that the source file can tell whether it is being
12420 # built for inclusion in a dll (and should export symbols for example).
12421 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12422 # (--disable-auto-import) libraries
12423 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12425 darwin* | rhapsody*)
12426 # PIC is the default on this platform
12427 # Common symbols not allowed in MH_DYLIB files
12428 lt_prog_compiler_pic_CXX='-fno-common'
12431 # DJGPP does not support shared libraries at all
12432 lt_prog_compiler_pic_CXX=
12435 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12436 # Instead, we relocate shared libraries at runtime.
12439 if test -d /usr/nec; then
12440 lt_prog_compiler_pic_CXX=-Kconform_pic
12444 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12445 # not for PA HP-UX.
12450 lt_prog_compiler_pic_CXX='-fPIC'
12455 lt_prog_compiler_pic_CXX='-fPIC'
12461 # All AIX code is PIC.
12462 if test "$host_cpu" = ia64; then
12463 # AIX 5 now supports IA64 processor
12464 lt_prog_compiler_static_CXX='-Bstatic'
12466 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12470 case $cc_basename in
12472 # Green Hills C++ Compiler
12473 # _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"
12478 # PIC is the default on this platform
12479 # Common symbols not allowed in MH_DYLIB files
12480 case $cc_basename in
12482 lt_prog_compiler_pic_CXX='-qnocommon'
12483 lt_prog_compiler_wl_CXX='-Wl,'
12488 case $cc_basename in
12490 lt_prog_compiler_pic_CXX='-KPIC'
12493 # Green Hills C++ Compiler
12494 lt_prog_compiler_pic_CXX='-pic'
12500 freebsd* | dragonfly*)
12501 # FreeBSD uses GNU C++
12503 hpux9* | hpux10* | hpux11*)
12504 case $cc_basename in
12506 lt_prog_compiler_wl_CXX='-Wl,'
12507 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12508 if test "$host_cpu" != ia64; then
12509 lt_prog_compiler_pic_CXX='+Z'
12513 lt_prog_compiler_wl_CXX='-Wl,'
12514 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12520 lt_prog_compiler_pic_CXX='+Z'
12529 # This is c89, which is MS Visual C++ (no shared libs)
12530 # Anyone wants to do a port?
12532 irix5* | irix6* | nonstopux*)
12533 case $cc_basename in
12535 lt_prog_compiler_wl_CXX='-Wl,'
12536 lt_prog_compiler_static_CXX='-non_shared'
12537 # CC pic flag -KPIC is the default.
12543 linux* | k*bsd*-gnu)
12544 case $cc_basename in
12547 lt_prog_compiler_wl_CXX='--backend -Wl,'
12548 lt_prog_compiler_pic_CXX='-fPIC'
12552 lt_prog_compiler_wl_CXX='-Wl,'
12553 lt_prog_compiler_pic_CXX='-KPIC'
12554 lt_prog_compiler_static_CXX='-static'
12557 # Portland Group C++ compiler.
12558 lt_prog_compiler_wl_CXX='-Wl,'
12559 lt_prog_compiler_pic_CXX='-fpic'
12560 lt_prog_compiler_static_CXX='-Bstatic'
12564 # Make sure the PIC flag is empty. It appears that all Alpha
12565 # Linux and Compaq Tru64 Unix objects are PIC.
12566 lt_prog_compiler_pic_CXX=
12567 lt_prog_compiler_static_CXX='-non_shared'
12570 case `$CC -V 2>&1 | sed 5q` in
12573 lt_prog_compiler_pic_CXX='-KPIC'
12574 lt_prog_compiler_static_CXX='-Bstatic'
12575 lt_prog_compiler_wl_CXX='-Qoption ld '
12586 case $cc_basename in
12588 lt_prog_compiler_pic_CXX='-W c,exportall'
12594 netbsd* | netbsdelf*-gnu)
12596 osf3* | osf4* | osf5*)
12597 case $cc_basename in
12599 lt_prog_compiler_wl_CXX='--backend -Wl,'
12602 # Rational C++ 2.4.1
12603 lt_prog_compiler_pic_CXX='-pic'
12606 # Digital/Compaq C++
12607 lt_prog_compiler_wl_CXX='-Wl,'
12608 # Make sure the PIC flag is empty. It appears that all Alpha
12609 # Linux and Compaq Tru64 Unix objects are PIC.
12610 lt_prog_compiler_pic_CXX=
12611 lt_prog_compiler_static_CXX='-non_shared'
12620 case $cc_basename in
12622 # Sun C++ 4.2, 5.x and Centerline C++
12623 lt_prog_compiler_pic_CXX='-KPIC'
12624 lt_prog_compiler_static_CXX='-Bstatic'
12625 lt_prog_compiler_wl_CXX='-Qoption ld '
12628 # Green Hills C++ Compiler
12629 lt_prog_compiler_pic_CXX='-PIC'
12636 case $cc_basename in
12639 lt_prog_compiler_pic_CXX='-pic'
12640 lt_prog_compiler_static_CXX='-Bstatic'
12644 lt_prog_compiler_pic_CXX='-pic'
12651 case $cc_basename in
12653 # NonStop-UX NCC 3.20
12654 lt_prog_compiler_pic_CXX='-KPIC'
12660 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12661 case $cc_basename in
12663 lt_prog_compiler_wl_CXX='-Wl,'
12664 lt_prog_compiler_pic_CXX='-KPIC'
12665 lt_prog_compiler_static_CXX='-Bstatic'
12672 lt_prog_compiler_can_build_shared_CXX=no
12677 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12678 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12681 # Check to make sure the PIC flag actually works.
12683 if test -n "$lt_prog_compiler_pic_CXX"; then
12685 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12686 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12687 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12688 echo $ECHO_N "(cached) $ECHO_C" >&6
12690 lt_cv_prog_compiler_pic_works_CXX=no
12691 ac_outfile=conftest.$ac_objext
12692 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12693 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12694 # Insert the option either (1) after the last *FLAGS variable, or
12695 # (2) before a word containing "conftest.", or (3) at the end.
12696 # Note that $ac_compile itself does not contain backslashes and begins
12697 # with a dollar sign (not a hyphen), so the echo should work correctly.
12698 # The option is referenced via a variable to avoid confusing sed.
12699 lt_compile=`echo "$ac_compile" | $SED \
12700 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12701 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12702 -e 's:$: $lt_compiler_flag:'`
12703 (eval echo "\"\$as_me:12703: $lt_compile\"" >&5)
12704 (eval "$lt_compile" 2>conftest.err)
12706 cat conftest.err >&5
12707 echo "$as_me:12707: \$? = $ac_status" >&5
12708 if (exit $ac_status) && test -s "$ac_outfile"; then
12709 # The compiler can only warn and ignore the option if not recognized
12710 # So say no if there are warnings other than the usual output.
12711 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12712 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12713 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12714 lt_cv_prog_compiler_pic_works_CXX=yes
12720 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12721 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12723 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12724 case $lt_prog_compiler_pic_CXX in
12726 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12729 lt_prog_compiler_pic_CXX=
12730 lt_prog_compiler_can_build_shared_CXX=no
12735 # For platforms which do not support PIC, -DPIC is meaningless:
12737 lt_prog_compiler_pic_CXX=
12740 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12745 # Check to make sure the static flag actually works.
12747 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12748 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12749 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12750 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12751 echo $ECHO_N "(cached) $ECHO_C" >&6
12753 lt_cv_prog_compiler_static_works_CXX=no
12754 save_LDFLAGS="$LDFLAGS"
12755 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12756 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12757 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12758 # The linker can only warn and ignore the option if not recognized
12759 # So say no if there are warnings
12760 if test -s conftest.err; then
12761 # Append any errors to the config.log.
12762 cat conftest.err 1>&5
12763 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12764 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12765 if diff conftest.exp conftest.er2 >/dev/null; then
12766 lt_cv_prog_compiler_static_works_CXX=yes
12769 lt_cv_prog_compiler_static_works_CXX=yes
12773 LDFLAGS="$save_LDFLAGS"
12776 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12777 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12779 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12782 lt_prog_compiler_static_CXX=
12786 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12787 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12788 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12789 echo $ECHO_N "(cached) $ECHO_C" >&6
12791 lt_cv_prog_compiler_c_o_CXX=no
12792 $rm -r conftest 2>/dev/null
12796 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12798 lt_compiler_flag="-o out/conftest2.$ac_objext"
12799 # Insert the option either (1) after the last *FLAGS variable, or
12800 # (2) before a word containing "conftest.", or (3) at the end.
12801 # Note that $ac_compile itself does not contain backslashes and begins
12802 # with a dollar sign (not a hyphen), so the echo should work correctly.
12803 lt_compile=`echo "$ac_compile" | $SED \
12804 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12805 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12806 -e 's:$: $lt_compiler_flag:'`
12807 (eval echo "\"\$as_me:12807: $lt_compile\"" >&5)
12808 (eval "$lt_compile" 2>out/conftest.err)
12810 cat out/conftest.err >&5
12811 echo "$as_me:12811: \$? = $ac_status" >&5
12812 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12814 # The compiler can only warn and ignore the option if not recognized
12815 # So say no if there are warnings
12816 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12817 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12818 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12819 lt_cv_prog_compiler_c_o_CXX=yes
12824 # SGI C++ compiler will create directory out/ii_files/ for
12825 # template instantiation
12826 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12827 $rm out/* && rmdir out
12833 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12834 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12837 hard_links="nottested"
12838 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12839 # do not overwrite the value of need_locks provided by the user
12840 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12841 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12844 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12846 ln conftest.a conftest.b 2>&5 || hard_links=no
12847 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12848 { echo "$as_me:$LINENO: result: $hard_links" >&5
12849 echo "${ECHO_T}$hard_links" >&6; }
12850 if test "$hard_links" = no; then
12851 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12852 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12859 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12860 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12862 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12865 # If we're using GNU nm, then we don't want the "-C" option.
12866 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12867 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12868 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'
12870 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'
12874 export_symbols_cmds_CXX="$ltdll_cmds"
12877 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'
12879 linux* | k*bsd*-gnu)
12880 link_all_deplibs_CXX=no
12883 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12886 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12888 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12889 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12890 test "$ld_shlibs_CXX" = no && can_build_shared=no
12893 # Do we need to explicitly link libc?
12895 case "x$archive_cmds_need_lc_CXX" in
12897 # Assume -lc should be added
12898 archive_cmds_need_lc_CXX=yes
12900 if test "$enable_shared" = yes && test "$GCC" = yes; then
12901 case $archive_cmds_CXX in
12903 # FIXME: we may have to deal with multi-command sequences.
12906 # Test whether the compiler implicitly links with -lc since on some
12907 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12908 # to ld, don't add -lc before -lgcc.
12909 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12910 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12912 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12915 (eval $ac_compile) 2>&5
12917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918 (exit $ac_status); } 2>conftest.err; then
12921 libobjs=conftest.$ac_objext
12923 wl=$lt_prog_compiler_wl_CXX
12924 pic_flag=$lt_prog_compiler_pic_CXX
12930 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12931 allow_undefined_flag_CXX=
12932 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12933 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936 (exit $ac_status); }
12938 archive_cmds_need_lc_CXX=no
12940 archive_cmds_need_lc_CXX=yes
12942 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12944 cat conftest.err 1>&5
12947 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12948 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12955 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12956 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12957 library_names_spec=
12958 libname_spec='lib$name'
12962 postuninstall_cmds=
12966 shlibpath_overrides_runpath=unknown
12968 dynamic_linker="$host_os ld.so"
12969 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12971 need_lib_prefix=unknown
12972 hardcode_into_libs=no
12974 # when you set need_version to no, make sure it does not cause -set_version
12975 # flags to be left without arguments
12976 need_version=unknown
12981 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12982 shlibpath_var=LIBPATH
12984 # AIX 3 has no versioning support, so we append a major version to the name.
12985 soname_spec='${libname}${release}${shared_ext}$major'
12992 hardcode_into_libs=yes
12993 if test "$host_cpu" = ia64; then
12994 # AIX 5 supports IA64
12995 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12996 shlibpath_var=LD_LIBRARY_PATH
12998 # With GCC up to 2.95.x, collect2 would create an import file
12999 # for dependence libraries. The import file would start with
13000 # the line `#! .'. This would cause the generated library to
13001 # depend on `.', always an invalid library. This was fixed in
13002 # development snapshots of GCC prior to 3.0.
13004 aix4 | aix4.[01] | aix4.[01].*)
13005 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13007 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13010 can_build_shared=no
13014 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13015 # soname into executable. Probably we can add versioning support to
13016 # collect2, so additional links can be useful in future.
13017 if test "$aix_use_runtimelinking" = yes; then
13018 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13019 # instead of lib<name>.a to let people know that these are not
13020 # typical AIX shared libraries.
13021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13023 # We preserve .a as extension for shared libraries through AIX4.2
13024 # and later when we are not doing run time linking.
13025 library_names_spec='${libname}${release}.a $libname.a'
13026 soname_spec='${libname}${release}${shared_ext}$major'
13028 shlibpath_var=LIBPATH
13033 library_names_spec='$libname.ixlibrary $libname.a'
13034 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13035 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'
13039 library_names_spec='${libname}${shared_ext}'
13040 dynamic_linker="$host_os ld.so"
13041 shlibpath_var=LIBRARY_PATH
13047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13048 soname_spec='${libname}${release}${shared_ext}$major'
13049 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13050 shlibpath_var=LD_LIBRARY_PATH
13051 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13052 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13053 # the default ld.so.conf also contains /usr/contrib/lib and
13054 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13055 # libtool to hard-code these into programs
13058 cygwin* | mingw* | pw32*)
13059 version_type=windows
13064 case $GCC,$host_os in
13065 yes,cygwin* | yes,mingw* | yes,pw32*)
13066 library_names_spec='$libname.dll.a'
13067 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13068 postinstall_cmds='base_file=`basename \${file}`~
13069 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13070 dldir=$destdir/`dirname \$dlpath`~
13071 test -d \$dldir || mkdir -p \$dldir~
13072 $install_prog $dir/$dlname \$dldir/$dlname~
13073 chmod a+x \$dldir/$dlname'
13074 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13075 dlpath=$dir/\$dldll~
13077 shlibpath_overrides_runpath=yes
13081 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13082 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13083 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13086 # MinGW DLLs use traditional 'lib' prefix
13087 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13088 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13089 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13090 # It is most probably a Windows format PATH printed by
13091 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13092 # path with ; separators, and with drive letters. We can handle the
13093 # drive letters (cygwin fileutils understands them), so leave them,
13094 # especially as we might pass files found there to a mingw objdump,
13095 # which wouldn't understand a cygwinified path. Ahh.
13096 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13098 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13102 # pw32 DLLs use 'pw' prefix rather than 'lib'
13103 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13109 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13112 dynamic_linker='Win32 ld.exe'
13113 # FIXME: first we should search . and the directory the executable is in
13117 darwin* | rhapsody*)
13118 dynamic_linker="$host_os dyld"
13119 version_type=darwin
13122 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13123 soname_spec='${libname}${release}${major}$shared_ext'
13124 shlibpath_overrides_runpath=yes
13125 shlibpath_var=DYLD_LIBRARY_PATH
13126 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13128 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13136 soname_spec='${libname}${release}${shared_ext}$major'
13137 shlibpath_var=LD_LIBRARY_PATH
13144 freebsd* | dragonfly*)
13145 # DragonFly does not have aout. When/if they implement a new
13146 # versioning mechanism, adjust this.
13147 if test -x /usr/bin/objformat; then
13148 objformat=`/usr/bin/objformat`
13151 freebsd[123]*) objformat=aout ;;
13152 *) objformat=elf ;;
13155 version_type=freebsd-$objformat
13156 case $version_type in
13158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13163 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13167 shlibpath_var=LD_LIBRARY_PATH
13170 shlibpath_overrides_runpath=yes
13172 freebsd3.[01]* | freebsdelf3.[01]*)
13173 shlibpath_overrides_runpath=yes
13174 hardcode_into_libs=yes
13176 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13177 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13178 shlibpath_overrides_runpath=no
13179 hardcode_into_libs=yes
13181 *) # from 4.6 on, and DragonFly
13182 shlibpath_overrides_runpath=yes
13183 hardcode_into_libs=yes
13192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13193 soname_spec='${libname}${release}${shared_ext}$major'
13194 shlibpath_var=LD_LIBRARY_PATH
13195 hardcode_into_libs=yes
13198 hpux9* | hpux10* | hpux11*)
13199 # Give a soname corresponding to the major version so that dld.sl refuses to
13200 # link against other versions.
13207 hardcode_into_libs=yes
13208 dynamic_linker="$host_os dld.so"
13209 shlibpath_var=LD_LIBRARY_PATH
13210 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13212 soname_spec='${libname}${release}${shared_ext}$major'
13213 if test "X$HPUX_IA64_MODE" = X32; then
13214 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13216 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13218 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13222 hardcode_into_libs=yes
13223 dynamic_linker="$host_os dld.sl"
13224 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13225 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13227 soname_spec='${libname}${release}${shared_ext}$major'
13228 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13229 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13233 dynamic_linker="$host_os dld.sl"
13234 shlibpath_var=SHLIB_PATH
13235 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13237 soname_spec='${libname}${release}${shared_ext}$major'
13240 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13241 postinstall_cmds='chmod 555 $lib'
13248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13249 soname_spec='${libname}${release}${shared_ext}$major'
13250 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13251 shlibpath_var=LD_LIBRARY_PATH
13252 shlibpath_overrides_runpath=no
13253 hardcode_into_libs=yes
13256 irix5* | irix6* | nonstopux*)
13258 nonstopux*) version_type=nonstopux ;;
13260 if test "$lt_cv_prog_gnu_ld" = yes; then
13268 soname_spec='${libname}${release}${shared_ext}$major'
13269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13271 irix5* | nonstopux*)
13272 libsuff= shlibsuff=
13275 case $LD in # libtool.m4 will add one of these switches to LD
13276 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13277 libsuff= shlibsuff= libmagic=32-bit;;
13278 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13279 libsuff=32 shlibsuff=N32 libmagic=N32;;
13280 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13281 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13282 *) libsuff= shlibsuff= libmagic=never-match;;
13286 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13287 shlibpath_overrides_runpath=no
13288 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13289 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13290 hardcode_into_libs=yes
13293 # No shared lib support for Linux oldld, aout, or coff.
13294 linux*oldld* | linux*aout* | linux*coff*)
13298 # This must be Linux ELF.
13299 linux* | k*bsd*-gnu)
13303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13304 soname_spec='${libname}${release}${shared_ext}$major'
13305 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13306 shlibpath_var=LD_LIBRARY_PATH
13307 shlibpath_overrides_runpath=no
13308 # This implies no fast_install, which is unacceptable.
13309 # Some rework will be needed to allow for fast_install
13310 # before this can be enabled.
13311 hardcode_into_libs=yes
13313 # Append ld.so.conf contents to the search path
13314 if test -f /etc/ld.so.conf; then
13315 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' ' '`
13316 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13319 # We used to test for /lib/ld.so.1 and disable shared libraries on
13320 # powerpc, because MkLinux only supported shared libraries with the
13321 # GNU dynamic linker. Since this was broken with cross compilers,
13322 # most powerpc-linux boxes support dynamic linking these days and
13323 # people can always --disable-shared, the test was removed, and we
13324 # assume the GNU/Linux dynamic linker is in use.
13325 dynamic_linker='GNU/Linux ld.so'
13332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13333 soname_spec='${libname}${release}${shared_ext}$major'
13334 shlibpath_var=LD_LIBRARY_PATH
13335 shlibpath_overrides_runpath=no
13336 hardcode_into_libs=yes
13337 dynamic_linker='NetBSD ld.elf_so'
13344 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13346 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13347 dynamic_linker='NetBSD (a.out) ld.so'
13349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13350 soname_spec='${libname}${release}${shared_ext}$major'
13351 dynamic_linker='NetBSD ld.elf_so'
13353 shlibpath_var=LD_LIBRARY_PATH
13354 shlibpath_overrides_runpath=yes
13355 hardcode_into_libs=yes
13360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13361 shlibpath_var=LD_LIBRARY_PATH
13362 shlibpath_overrides_runpath=yes
13369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13370 soname_spec='${libname}${release}${shared_ext}$major'
13371 shlibpath_var=LD_LIBRARY_PATH
13372 shlibpath_overrides_runpath=yes
13377 sys_lib_dlsearch_path_spec="/usr/lib"
13379 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13381 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13382 *) need_version=no ;;
13384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13385 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13386 shlibpath_var=LD_LIBRARY_PATH
13387 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13389 openbsd2.[89] | openbsd2.[89].*)
13390 shlibpath_overrides_runpath=no
13393 shlibpath_overrides_runpath=yes
13397 shlibpath_overrides_runpath=yes
13402 libname_spec='$name'
13405 library_names_spec='$libname${shared_ext} $libname.a'
13406 dynamic_linker='OS/2 ld.exe'
13407 shlibpath_var=LIBPATH
13410 osf3* | osf4* | osf5*)
13414 soname_spec='${libname}${release}${shared_ext}$major'
13415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13416 shlibpath_var=LD_LIBRARY_PATH
13417 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13418 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13430 soname_spec='${libname}${release}${shared_ext}$major'
13431 shlibpath_var=LD_LIBRARY_PATH
13432 shlibpath_overrides_runpath=yes
13433 hardcode_into_libs=yes
13434 # ldd complains unless libraries are executable
13435 postinstall_cmds='chmod +x $lib'
13440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13441 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13442 shlibpath_var=LD_LIBRARY_PATH
13443 shlibpath_overrides_runpath=yes
13444 if test "$with_gnu_ld" = yes; then
13452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13453 soname_spec='${libname}${release}${shared_ext}$major'
13454 shlibpath_var=LD_LIBRARY_PATH
13455 case $host_vendor in
13457 shlibpath_overrides_runpath=no
13459 export_dynamic_flag_spec='${wl}-Blargedynsym'
13460 runpath_var=LD_RUN_PATH
13468 shlibpath_overrides_runpath=no
13469 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13475 if test -d /usr/nec ;then
13477 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13478 soname_spec='$libname${shared_ext}.$major'
13479 shlibpath_var=LD_LIBRARY_PATH
13483 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13484 version_type=freebsd-elf
13487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13488 soname_spec='${libname}${release}${shared_ext}$major'
13489 shlibpath_var=LD_LIBRARY_PATH
13490 hardcode_into_libs=yes
13491 if test "$with_gnu_ld" = yes; then
13492 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13493 shlibpath_overrides_runpath=no
13495 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13496 shlibpath_overrides_runpath=yes
13499 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13503 sys_lib_dlsearch_path_spec='/usr/lib'
13508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13509 soname_spec='${libname}${release}${shared_ext}$major'
13510 shlibpath_var=LD_LIBRARY_PATH
13517 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13518 echo "${ECHO_T}$dynamic_linker" >&6; }
13519 test "$dynamic_linker" = no && can_build_shared=no
13521 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13522 echo $ECHO_N "(cached) $ECHO_C" >&6
13524 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13527 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13528 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13529 echo $ECHO_N "(cached) $ECHO_C" >&6
13531 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13534 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13536 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13537 if test "$GCC" = yes; then
13538 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13541 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13542 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13543 hardcode_action_CXX=
13544 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13545 test -n "$runpath_var_CXX" || \
13546 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13548 # We can hardcode non-existant directories.
13549 if test "$hardcode_direct_CXX" != no &&
13550 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13551 # have to relink, otherwise we might link with an installed library
13552 # when we should be linking with a yet-to-be-installed one
13553 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13554 test "$hardcode_minus_L_CXX" != no; then
13555 # Linking always hardcodes the temporary library directory.
13556 hardcode_action_CXX=relink
13558 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13559 hardcode_action_CXX=immediate
13562 # We cannot hardcode anything, or else we can only hardcode existing
13564 hardcode_action_CXX=unsupported
13566 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13567 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13569 if test "$hardcode_action_CXX" = relink; then
13570 # Fast installation is not supported
13571 enable_fast_install=no
13572 elif test "$shlibpath_overrides_runpath" = yes ||
13573 test "$enable_shared" = no; then
13574 # Fast installation is not necessary
13575 enable_fast_install=needless
13579 # The else clause should only fire when bootstrapping the
13580 # libtool distribution, otherwise you forgot to ship ltmain.sh
13581 # with your package, and you will get complaints that there are
13582 # no rules to generate ltmain.sh.
13583 if test -f "$ltmain"; then
13584 # See if we are running on zsh, and set the options which allow our commands through
13585 # without removal of \ escapes.
13586 if test -n "${ZSH_VERSION+set}" ; then
13587 setopt NO_GLOB_SUBST
13589 # Now quote all the things that may contain metacharacters while being
13590 # careful not to overquote the AC_SUBSTed values. We take copies of the
13591 # variables and quote the copies for generation of the libtool script.
13592 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13594 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13595 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13596 deplibs_check_method reload_flag reload_cmds need_locks \
13597 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13598 lt_cv_sys_global_symbol_to_c_name_address \
13599 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13600 old_postinstall_cmds old_postuninstall_cmds \
13604 lt_prog_compiler_wl_CXX \
13605 lt_prog_compiler_pic_CXX \
13606 lt_prog_compiler_static_CXX \
13607 lt_prog_compiler_no_builtin_flag_CXX \
13608 export_dynamic_flag_spec_CXX \
13609 thread_safe_flag_spec_CXX \
13610 whole_archive_flag_spec_CXX \
13611 enable_shared_with_static_runtimes_CXX \
13612 old_archive_cmds_CXX \
13613 old_archive_from_new_cmds_CXX \
13614 predep_objects_CXX \
13615 postdep_objects_CXX \
13618 compiler_lib_search_path_CXX \
13619 compiler_lib_search_dirs_CXX \
13621 archive_expsym_cmds_CXX \
13622 postinstall_cmds_CXX \
13623 postuninstall_cmds_CXX \
13624 old_archive_from_expsyms_cmds_CXX \
13625 allow_undefined_flag_CXX \
13626 no_undefined_flag_CXX \
13627 export_symbols_cmds_CXX \
13628 hardcode_libdir_flag_spec_CXX \
13629 hardcode_libdir_flag_spec_ld_CXX \
13630 hardcode_libdir_separator_CXX \
13631 hardcode_automatic_CXX \
13633 module_expsym_cmds_CXX \
13634 lt_cv_prog_compiler_c_o_CXX \
13635 fix_srcfile_path_CXX \
13636 exclude_expsyms_CXX \
13637 include_expsyms_CXX; do
13640 old_archive_cmds_CXX | \
13641 old_archive_from_new_cmds_CXX | \
13642 archive_cmds_CXX | \
13643 archive_expsym_cmds_CXX | \
13644 module_cmds_CXX | \
13645 module_expsym_cmds_CXX | \
13646 old_archive_from_expsyms_cmds_CXX | \
13647 export_symbols_cmds_CXX | \
13648 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13649 postinstall_cmds | postuninstall_cmds | \
13650 old_postinstall_cmds | old_postuninstall_cmds | \
13651 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13652 # Double-quote double-evaled strings.
13653 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13656 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13662 *'\$0 --fallback-echo"')
13663 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13669 cat <<__EOF__ >> "$cfgfile"
13670 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13672 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13674 # Shell to use when invoking shell scripts.
13677 # Whether or not to build shared libraries.
13678 build_libtool_libs=$enable_shared
13680 # Whether or not to build static libraries.
13681 build_old_libs=$enable_static
13683 # Whether or not to add -lc for building shared libraries.
13684 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13686 # Whether or not to disallow shared libs when runtime libs are static
13687 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13689 # Whether or not to optimize for fast installation.
13690 fast_install=$enable_fast_install
13693 host_alias=$host_alias
13697 # The build system.
13698 build_alias=$build_alias
13702 # An echo program that does not interpret backslashes.
13707 AR_FLAGS=$lt_AR_FLAGS
13712 # LTCC compiler flags.
13713 LTCFLAGS=$lt_LTCFLAGS
13715 # A language-specific compiler.
13716 CC=$lt_compiler_CXX
13718 # Is the compiler the GNU C compiler?
13724 # The linker used to build libraries.
13727 # Whether we need hard or soft links.
13730 # A BSD-compatible nm program.
13733 # A symbol stripping program
13736 # Used to examine libraries when file_magic_cmd begins "file"
13737 MAGIC_CMD=$MAGIC_CMD
13739 # Used on cygwin: DLL creation program.
13742 # Used on cygwin: object dumper.
13745 # Used on cygwin: assembler.
13748 # The name of the directory that contains temporary libtool files.
13751 # How to create reloadable object files.
13752 reload_flag=$lt_reload_flag
13753 reload_cmds=$lt_reload_cmds
13755 # How to pass a linker flag through the compiler.
13756 wl=$lt_lt_prog_compiler_wl_CXX
13758 # Object file suffix (normally "o").
13759 objext="$ac_objext"
13761 # Old archive suffix (normally "a").
13764 # Shared library suffix (normally ".so").
13765 shrext_cmds='$shrext_cmds'
13767 # Executable file suffix (normally "").
13770 # Additional compiler flags for building library objects.
13771 pic_flag=$lt_lt_prog_compiler_pic_CXX
13774 # What is the maximum length of a command?
13775 max_cmd_len=$lt_cv_sys_max_cmd_len
13777 # Does compiler simultaneously support -c and -o options?
13778 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13780 # Must we lock files when doing compilation?
13781 need_locks=$lt_need_locks
13783 # Do we need the lib prefix for modules?
13784 need_lib_prefix=$need_lib_prefix
13786 # Do we need a version for libraries?
13787 need_version=$need_version
13789 # Whether dlopen is supported.
13790 dlopen_support=$enable_dlopen
13792 # Whether dlopen of programs is supported.
13793 dlopen_self=$enable_dlopen_self
13795 # Whether dlopen of statically linked programs is supported.
13796 dlopen_self_static=$enable_dlopen_self_static
13798 # Compiler flag to prevent dynamic linking.
13799 link_static_flag=$lt_lt_prog_compiler_static_CXX
13801 # Compiler flag to turn off builtin functions.
13802 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13804 # Compiler flag to allow reflexive dlopens.
13805 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13807 # Compiler flag to generate shared objects directly from archives.
13808 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13810 # Compiler flag to generate thread-safe objects.
13811 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13813 # Library versioning type.
13814 version_type=$version_type
13816 # Format of library name prefix.
13817 libname_spec=$lt_libname_spec
13819 # List of archive names. First name is the real one, the rest are links.
13820 # The last name is the one that the linker finds with -lNAME.
13821 library_names_spec=$lt_library_names_spec
13823 # The coded name of the library, if different from the real name.
13824 soname_spec=$lt_soname_spec
13826 # Commands used to build and install an old-style archive.
13828 old_archive_cmds=$lt_old_archive_cmds_CXX
13829 old_postinstall_cmds=$lt_old_postinstall_cmds
13830 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13832 # Create an old-style archive from a shared archive.
13833 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13835 # Create a temporary old-style archive to link instead of a shared archive.
13836 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13838 # Commands used to build and install a shared archive.
13839 archive_cmds=$lt_archive_cmds_CXX
13840 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13841 postinstall_cmds=$lt_postinstall_cmds
13842 postuninstall_cmds=$lt_postuninstall_cmds
13844 # Commands used to build a loadable module (assumed same as above if empty)
13845 module_cmds=$lt_module_cmds_CXX
13846 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13848 # Commands to strip libraries.
13849 old_striplib=$lt_old_striplib
13850 striplib=$lt_striplib
13852 # Dependencies to place before the objects being linked to create a
13854 predep_objects=$lt_predep_objects_CXX
13856 # Dependencies to place after the objects being linked to create a
13858 postdep_objects=$lt_postdep_objects_CXX
13860 # Dependencies to place before the objects being linked to create a
13862 predeps=$lt_predeps_CXX
13864 # Dependencies to place after the objects being linked to create a
13866 postdeps=$lt_postdeps_CXX
13868 # The directories searched by this compiler when creating a shared
13870 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13872 # The library search path used internally by the compiler when linking
13873 # a shared library.
13874 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13876 # Method to check whether dependent libraries are shared objects.
13877 deplibs_check_method=$lt_deplibs_check_method
13879 # Command to use when deplibs_check_method == file_magic.
13880 file_magic_cmd=$lt_file_magic_cmd
13882 # Flag that allows shared libraries with undefined symbols to be built.
13883 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13885 # Flag that forces no undefined symbols.
13886 no_undefined_flag=$lt_no_undefined_flag_CXX
13888 # Commands used to finish a libtool library installation in a directory.
13889 finish_cmds=$lt_finish_cmds
13891 # Same as above, but a single script fragment to be evaled but not shown.
13892 finish_eval=$lt_finish_eval
13894 # Take the output of nm and produce a listing of raw symbols and C names.
13895 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13897 # Transform the output of nm in a proper C declaration
13898 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13900 # Transform the output of nm in a C name address pair
13901 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13903 # This is the shared library runtime path variable.
13904 runpath_var=$runpath_var
13906 # This is the shared library path variable.
13907 shlibpath_var=$shlibpath_var
13909 # Is shlibpath searched before the hard-coded library search path?
13910 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13912 # How to hardcode a shared library path into an executable.
13913 hardcode_action=$hardcode_action_CXX
13915 # Whether we should hardcode library paths into libraries.
13916 hardcode_into_libs=$hardcode_into_libs
13918 # Flag to hardcode \$libdir into a binary during linking.
13919 # This must work even if \$libdir does not exist.
13920 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13922 # If ld is used when linking, flag to hardcode \$libdir into
13923 # a binary during linking. This must work even if \$libdir does
13925 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13927 # Whether we need a single -rpath flag with a separated argument.
13928 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13930 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13931 # resulting binary.
13932 hardcode_direct=$hardcode_direct_CXX
13934 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13935 # resulting binary.
13936 hardcode_minus_L=$hardcode_minus_L_CXX
13938 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13939 # the resulting binary.
13940 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13942 # Set to yes if building a shared library automatically hardcodes DIR into the library
13943 # and all subsequent libraries and executables linked against it.
13944 hardcode_automatic=$hardcode_automatic_CXX
13946 # Variables whose values should be saved in libtool wrapper scripts and
13947 # restored at relink time.
13948 variables_saved_for_relink="$variables_saved_for_relink"
13950 # Whether libtool must link a program against all its dependency libraries.
13951 link_all_deplibs=$link_all_deplibs_CXX
13953 # Compile-time system search path for libraries
13954 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13956 # Run-time system search path for libraries
13957 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13959 # Fix the shell variable \$srcfile for the compiler.
13960 fix_srcfile_path=$lt_fix_srcfile_path
13962 # Set to yes if exported symbols are required.
13963 always_export_symbols=$always_export_symbols_CXX
13965 # The commands to list exported symbols.
13966 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13968 # The commands to extract the exported symbol list from a shared archive.
13969 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13971 # Symbols that should not be listed in the preloaded symbols.
13972 exclude_expsyms=$lt_exclude_expsyms_CXX
13974 # Symbols that must always be exported.
13975 include_expsyms=$lt_include_expsyms_CXX
13977 # ### END LIBTOOL TAG CONFIG: $tagname
13983 # If there is no Makefile yet, we rely on a make rule to execute
13984 # `config.status --recheck' to rerun these tests and create the
13985 # libtool script then.
13986 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13987 if test -f "$ltmain_in"; then
13988 test -f Makefile && make "$ltmain"
13994 ac_cpp='$CPP $CPPFLAGS'
13995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14003 with_gnu_ldcxx=$with_gnu_ld
14004 with_gnu_ld=$lt_save_with_gnu_ld
14005 lt_cv_path_LDCXX=$lt_cv_path_LD
14006 lt_cv_path_LD=$lt_save_path_LD
14007 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14008 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14016 if test -n "$F77" && test "X$F77" != "Xno"; then
14019 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14020 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14021 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14024 archive_cmds_need_lc_F77=no
14025 allow_undefined_flag_F77=
14026 always_export_symbols_F77=no
14027 archive_expsym_cmds_F77=
14028 export_dynamic_flag_spec_F77=
14029 hardcode_direct_F77=no
14030 hardcode_libdir_flag_spec_F77=
14031 hardcode_libdir_flag_spec_ld_F77=
14032 hardcode_libdir_separator_F77=
14033 hardcode_minus_L_F77=no
14034 hardcode_automatic_F77=no
14036 module_expsym_cmds_F77=
14037 link_all_deplibs_F77=unknown
14038 old_archive_cmds_F77=$old_archive_cmds
14039 no_undefined_flag_F77=
14040 whole_archive_flag_spec_F77=
14041 enable_shared_with_static_runtimes_F77=no
14043 # Source file extension for f77 test sources.
14046 # Object file extension for compiled f77 test sources.
14050 # Code to be used in simple compile tests
14051 lt_simple_compile_test_code="\
14057 # Code to be used in simple link tests
14058 lt_simple_link_test_code="\
14063 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14065 # If no C compiler was specified, use CC.
14068 # If no C compiler flags were specified, use CFLAGS.
14069 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14071 # Allow CC to be a program name with arguments.
14075 # save warnings/boilerplate of simple test code
14076 ac_outfile=conftest.$ac_objext
14077 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14078 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14079 _lt_compiler_boilerplate=`cat conftest.err`
14082 ac_outfile=conftest.$ac_objext
14083 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14084 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14085 _lt_linker_boilerplate=`cat conftest.err`
14089 # Allow CC to be a program name with arguments.
14094 for cc_temp in $compiler""; do
14096 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14097 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14102 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14105 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14106 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14107 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14108 echo "${ECHO_T}$can_build_shared" >&6; }
14110 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14111 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14112 test "$can_build_shared" = "no" && enable_shared=no
14114 # On AIX, shared libraries and static libraries use the same namespace, and
14115 # are all built from PIC.
14118 test "$enable_shared" = yes && enable_static=no
14119 if test -n "$RANLIB"; then
14120 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14121 postinstall_cmds='$RANLIB $lib'
14125 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14126 test "$enable_shared" = yes && enable_static=no
14130 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14131 echo "${ECHO_T}$enable_shared" >&6; }
14133 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14134 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14135 # Make sure either enable_shared or enable_static is yes.
14136 test "$enable_shared" = yes || enable_static=yes
14137 { echo "$as_me:$LINENO: result: $enable_static" >&5
14138 echo "${ECHO_T}$enable_static" >&6; }
14143 lt_prog_compiler_wl_F77=
14144 lt_prog_compiler_pic_F77=
14145 lt_prog_compiler_static_F77=
14147 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14148 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14150 if test "$GCC" = yes; then
14151 lt_prog_compiler_wl_F77='-Wl,'
14152 lt_prog_compiler_static_F77='-static'
14156 # All AIX code is PIC.
14157 if test "$host_cpu" = ia64; then
14158 # AIX 5 now supports IA64 processor
14159 lt_prog_compiler_static_F77='-Bstatic'
14164 # FIXME: we need at least 68020 code to build shared libraries, but
14165 # adding the `-m68020' flag to GCC prevents building anything better,
14167 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14170 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14171 # PIC is the default for these OSes.
14174 mingw* | cygwin* | pw32* | os2*)
14175 # This hack is so that the source file can tell whether it is being
14176 # built for inclusion in a dll (and should export symbols for example).
14177 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14178 # (--disable-auto-import) libraries
14179 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14182 darwin* | rhapsody*)
14183 # PIC is the default on this platform
14184 # Common symbols not allowed in MH_DYLIB files
14185 lt_prog_compiler_pic_F77='-fno-common'
14189 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14190 # Instead, we relocate shared libraries at runtime.
14194 # Just because we use GCC doesn't mean we suddenly get shared libraries
14195 # on systems that don't support them.
14196 lt_prog_compiler_can_build_shared_F77=no
14201 if test -d /usr/nec; then
14202 lt_prog_compiler_pic_F77=-Kconform_pic
14207 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14208 # not for PA HP-UX.
14214 lt_prog_compiler_pic_F77='-fPIC'
14220 lt_prog_compiler_pic_F77='-fPIC'
14224 # PORTME Check for flag to pass linker flags through the system compiler.
14227 lt_prog_compiler_wl_F77='-Wl,'
14228 if test "$host_cpu" = ia64; then
14229 # AIX 5 now supports IA64 processor
14230 lt_prog_compiler_static_F77='-Bstatic'
14232 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14236 # PIC is the default on this platform
14237 # Common symbols not allowed in MH_DYLIB files
14238 case $cc_basename in
14240 lt_prog_compiler_pic_F77='-qnocommon'
14241 lt_prog_compiler_wl_F77='-Wl,'
14246 mingw* | cygwin* | pw32* | os2*)
14247 # This hack is so that the source file can tell whether it is being
14248 # built for inclusion in a dll (and should export symbols for example).
14249 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14252 hpux9* | hpux10* | hpux11*)
14253 lt_prog_compiler_wl_F77='-Wl,'
14254 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14255 # not for PA HP-UX.
14261 lt_prog_compiler_pic_F77='+Z'
14264 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14265 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14268 irix5* | irix6* | nonstopux*)
14269 lt_prog_compiler_wl_F77='-Wl,'
14270 # PIC (with -KPIC) is the default.
14271 lt_prog_compiler_static_F77='-non_shared'
14275 lt_prog_compiler_pic_F77='-KPIC'
14276 lt_prog_compiler_static_F77='-Bstatic'
14279 linux* | k*bsd*-gnu)
14280 case $cc_basename in
14282 lt_prog_compiler_wl_F77='-Wl,'
14283 lt_prog_compiler_pic_F77='-KPIC'
14284 lt_prog_compiler_static_F77='-static'
14286 pgcc* | pgf77* | pgf90* | pgf95*)
14287 # Portland Group compilers (*not* the Pentium gcc compiler,
14288 # which looks to be a dead project)
14289 lt_prog_compiler_wl_F77='-Wl,'
14290 lt_prog_compiler_pic_F77='-fpic'
14291 lt_prog_compiler_static_F77='-Bstatic'
14294 lt_prog_compiler_wl_F77='-Wl,'
14295 # All Alpha code is PIC.
14296 lt_prog_compiler_static_F77='-non_shared'
14299 case `$CC -V 2>&1 | sed 5q` in
14302 lt_prog_compiler_pic_F77='-KPIC'
14303 lt_prog_compiler_static_F77='-Bstatic'
14304 lt_prog_compiler_wl_F77='-Wl,'
14307 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14308 lt_prog_compiler_pic_F77='-KPIC'
14309 lt_prog_compiler_static_F77='-Bstatic'
14310 lt_prog_compiler_wl_F77=''
14317 osf3* | osf4* | osf5*)
14318 lt_prog_compiler_wl_F77='-Wl,'
14319 # All OSF/1 code is PIC.
14320 lt_prog_compiler_static_F77='-non_shared'
14324 lt_prog_compiler_static_F77='-non_shared'
14328 lt_prog_compiler_pic_F77='-KPIC'
14329 lt_prog_compiler_static_F77='-Bstatic'
14330 case $cc_basename in
14331 f77* | f90* | f95*)
14332 lt_prog_compiler_wl_F77='-Qoption ld ';;
14334 lt_prog_compiler_wl_F77='-Wl,';;
14339 lt_prog_compiler_wl_F77='-Qoption ld '
14340 lt_prog_compiler_pic_F77='-PIC'
14341 lt_prog_compiler_static_F77='-Bstatic'
14344 sysv4 | sysv4.2uw2* | sysv4.3*)
14345 lt_prog_compiler_wl_F77='-Wl,'
14346 lt_prog_compiler_pic_F77='-KPIC'
14347 lt_prog_compiler_static_F77='-Bstatic'
14351 if test -d /usr/nec ;then
14352 lt_prog_compiler_pic_F77='-Kconform_pic'
14353 lt_prog_compiler_static_F77='-Bstatic'
14357 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14358 lt_prog_compiler_wl_F77='-Wl,'
14359 lt_prog_compiler_pic_F77='-KPIC'
14360 lt_prog_compiler_static_F77='-Bstatic'
14364 lt_prog_compiler_wl_F77='-Wl,'
14365 lt_prog_compiler_can_build_shared_F77=no
14369 lt_prog_compiler_pic_F77='-pic'
14370 lt_prog_compiler_static_F77='-Bstatic'
14374 lt_prog_compiler_can_build_shared_F77=no
14379 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14380 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14383 # Check to make sure the PIC flag actually works.
14385 if test -n "$lt_prog_compiler_pic_F77"; then
14387 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14388 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14389 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14390 echo $ECHO_N "(cached) $ECHO_C" >&6
14392 lt_cv_prog_compiler_pic_works_F77=no
14393 ac_outfile=conftest.$ac_objext
14394 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14395 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14396 # Insert the option either (1) after the last *FLAGS variable, or
14397 # (2) before a word containing "conftest.", or (3) at the end.
14398 # Note that $ac_compile itself does not contain backslashes and begins
14399 # with a dollar sign (not a hyphen), so the echo should work correctly.
14400 # The option is referenced via a variable to avoid confusing sed.
14401 lt_compile=`echo "$ac_compile" | $SED \
14402 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14403 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14404 -e 's:$: $lt_compiler_flag:'`
14405 (eval echo "\"\$as_me:14405: $lt_compile\"" >&5)
14406 (eval "$lt_compile" 2>conftest.err)
14408 cat conftest.err >&5
14409 echo "$as_me:14409: \$? = $ac_status" >&5
14410 if (exit $ac_status) && test -s "$ac_outfile"; then
14411 # The compiler can only warn and ignore the option if not recognized
14412 # So say no if there are warnings other than the usual output.
14413 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14414 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14415 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14416 lt_cv_prog_compiler_pic_works_F77=yes
14422 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14423 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14425 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14426 case $lt_prog_compiler_pic_F77 in
14428 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14431 lt_prog_compiler_pic_F77=
14432 lt_prog_compiler_can_build_shared_F77=no
14437 # For platforms which do not support PIC, -DPIC is meaningless:
14439 lt_prog_compiler_pic_F77=
14442 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14447 # Check to make sure the static flag actually works.
14449 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14450 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14451 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14452 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14453 echo $ECHO_N "(cached) $ECHO_C" >&6
14455 lt_cv_prog_compiler_static_works_F77=no
14456 save_LDFLAGS="$LDFLAGS"
14457 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14458 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14459 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14460 # The linker can only warn and ignore the option if not recognized
14461 # So say no if there are warnings
14462 if test -s conftest.err; then
14463 # Append any errors to the config.log.
14464 cat conftest.err 1>&5
14465 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14466 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14467 if diff conftest.exp conftest.er2 >/dev/null; then
14468 lt_cv_prog_compiler_static_works_F77=yes
14471 lt_cv_prog_compiler_static_works_F77=yes
14475 LDFLAGS="$save_LDFLAGS"
14478 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14479 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14481 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14484 lt_prog_compiler_static_F77=
14488 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14489 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14490 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14491 echo $ECHO_N "(cached) $ECHO_C" >&6
14493 lt_cv_prog_compiler_c_o_F77=no
14494 $rm -r conftest 2>/dev/null
14498 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14500 lt_compiler_flag="-o out/conftest2.$ac_objext"
14501 # Insert the option either (1) after the last *FLAGS variable, or
14502 # (2) before a word containing "conftest.", or (3) at the end.
14503 # Note that $ac_compile itself does not contain backslashes and begins
14504 # with a dollar sign (not a hyphen), so the echo should work correctly.
14505 lt_compile=`echo "$ac_compile" | $SED \
14506 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14507 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14508 -e 's:$: $lt_compiler_flag:'`
14509 (eval echo "\"\$as_me:14509: $lt_compile\"" >&5)
14510 (eval "$lt_compile" 2>out/conftest.err)
14512 cat out/conftest.err >&5
14513 echo "$as_me:14513: \$? = $ac_status" >&5
14514 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14516 # The compiler can only warn and ignore the option if not recognized
14517 # So say no if there are warnings
14518 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14519 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14520 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14521 lt_cv_prog_compiler_c_o_F77=yes
14526 # SGI C++ compiler will create directory out/ii_files/ for
14527 # template instantiation
14528 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14529 $rm out/* && rmdir out
14535 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14536 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14539 hard_links="nottested"
14540 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14541 # do not overwrite the value of need_locks provided by the user
14542 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14543 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14546 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14548 ln conftest.a conftest.b 2>&5 || hard_links=no
14549 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14550 { echo "$as_me:$LINENO: result: $hard_links" >&5
14551 echo "${ECHO_T}$hard_links" >&6; }
14552 if test "$hard_links" = no; then
14553 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14554 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14561 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14562 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14565 allow_undefined_flag_F77=
14566 enable_shared_with_static_runtimes_F77=no
14568 archive_expsym_cmds_F77=
14569 old_archive_From_new_cmds_F77=
14570 old_archive_from_expsyms_cmds_F77=
14571 export_dynamic_flag_spec_F77=
14572 whole_archive_flag_spec_F77=
14573 thread_safe_flag_spec_F77=
14574 hardcode_libdir_flag_spec_F77=
14575 hardcode_libdir_flag_spec_ld_F77=
14576 hardcode_libdir_separator_F77=
14577 hardcode_direct_F77=no
14578 hardcode_minus_L_F77=no
14579 hardcode_shlibpath_var_F77=unsupported
14580 link_all_deplibs_F77=unknown
14581 hardcode_automatic_F77=no
14583 module_expsym_cmds_F77=
14584 always_export_symbols_F77=no
14585 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14586 # include_expsyms should be a list of space-separated symbols to be *always*
14587 # included in the symbol list
14588 include_expsyms_F77=
14589 # exclude_expsyms can be an extended regexp of symbols to exclude
14590 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14591 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14592 # as well as any symbol that contains `d'.
14593 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14594 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14595 # platforms (ab)use it in PIC code, but their linkers get confused if
14596 # the symbol is explicitly referenced. Since portable code cannot
14597 # rely on this symbol name, it's probably fine to never include it in
14598 # preloaded symbol tables.
14599 # Exclude shared library initialization/finalization symbols.
14600 extract_expsyms_cmds=
14601 # Just being paranoid about ensuring that cc_basename is set.
14602 for cc_temp in $compiler""; do
14604 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14605 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14610 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14613 cygwin* | mingw* | pw32*)
14614 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14615 # When not using gcc, we currently assume that we are using
14616 # Microsoft Visual C++.
14617 if test "$GCC" != yes; then
14622 # we just hope/assume this is gcc and not c89 (= MSVC++)
14631 if test "$with_gnu_ld" = yes; then
14632 # If archive_cmds runs LD, not CC, wlarc should be empty
14635 # Set some defaults for GNU ld with shared library support. These
14636 # are reset later if shared libraries are not supported. Putting them
14637 # here allows them to be overridden if necessary.
14638 runpath_var=LD_RUN_PATH
14639 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14640 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14641 # ancient GNU ld didn't support --whole-archive et. al.
14642 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14643 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14645 whole_archive_flag_spec_F77=
14647 supports_anon_versioning=no
14648 case `$LD -v 2>/dev/null` in
14649 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14650 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14651 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14652 *\ 2.11.*) ;; # other 2.11 versions
14653 *) supports_anon_versioning=yes ;;
14656 # See if GNU ld supports shared libraries.
14659 # On AIX/PPC, the GNU linker is very broken
14660 if test "$host_cpu" != ia64; then
14664 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14665 *** to be unable to reliably create shared libraries on AIX.
14666 *** Therefore, libtool is disabling shared libraries support. If you
14667 *** really care for shared libraries, you may want to modify your PATH
14668 *** so that a non-GNU linker is found, and then restart.
14675 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)'
14676 hardcode_libdir_flag_spec_F77='-L$libdir'
14677 hardcode_minus_L_F77=yes
14679 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14680 # that the semantics of dynamic libraries on AmigaOS, at least up
14681 # to version 4, is to share data among multiple programs linked
14682 # with the same dynamic library. Since this doesn't match the
14683 # behavior of shared libraries on other platforms, we can't use
14689 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14690 allow_undefined_flag_F77=unsupported
14691 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14692 # support --undefined. This deserves some investigation. FIXME
14693 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14699 cygwin* | mingw* | pw32*)
14700 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14701 # as there is no search path for DLLs.
14702 hardcode_libdir_flag_spec_F77='-L$libdir'
14703 allow_undefined_flag_F77=unsupported
14704 always_export_symbols_F77=no
14705 enable_shared_with_static_runtimes_F77=yes
14706 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14708 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14709 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14710 # If the export-symbols file already is a .def file (1st line
14711 # is EXPORTS), use it as is; otherwise, prepend...
14712 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14713 cp $export_symbols $output_objdir/$soname.def;
14715 echo EXPORTS > $output_objdir/$soname.def;
14716 cat $export_symbols >> $output_objdir/$soname.def;
14718 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14725 hardcode_direct_F77=no
14726 hardcode_shlibpath_var_F77=no
14727 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14728 export_dynamic_flag_spec_F77='${wl}-E'
14729 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14730 # Instead, shared libraries are loaded at an image base (0x10000000 by
14731 # default) and relocated if they conflict, which is a slow very memory
14732 # consuming and fragmenting process. To avoid this, we pick a random,
14733 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14734 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14735 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'
14736 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'
14739 gnu* | linux* | k*bsd*-gnu)
14740 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14742 case $cc_basename,$host_cpu in
14743 pgcc*) # Portland Group C compiler
14744 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'
14745 tmp_addflag=' $pic_flag'
14747 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14748 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'
14749 tmp_addflag=' $pic_flag -Mnomain' ;;
14750 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14751 tmp_addflag=' -i_dynamic' ;;
14752 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14753 tmp_addflag=' -i_dynamic -nofor_main' ;;
14754 ifc* | ifort*) # Intel Fortran compiler
14755 tmp_addflag=' -nofor_main' ;;
14757 case `$CC -V 2>&1 | sed 5q` in
14758 *Sun\ C*) # Sun C 5.9
14759 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'
14760 tmp_sharedflag='-G' ;;
14761 *Sun\ F*) # Sun Fortran 8.3
14762 tmp_sharedflag='-G' ;;
14764 tmp_sharedflag='-shared' ;;
14766 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14768 if test $supports_anon_versioning = yes; then
14769 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14770 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14771 $echo "local: *; };" >> $output_objdir/$libname.ver~
14772 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14774 link_all_deplibs_F77=no
14780 netbsd* | netbsdelf*-gnu)
14781 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14782 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14785 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14786 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14791 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14795 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14796 *** create shared libraries on Solaris systems. Therefore, libtool
14797 *** is disabling shared libraries support. We urge you to upgrade GNU
14798 *** binutils to release 2.9.1 or newer. Another option is to modify
14799 *** your PATH or compiler configuration so that the native linker is
14800 *** used, and then restart.
14803 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14804 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14805 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14811 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14812 case `$LD -v 2>&1` in
14813 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14817 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14818 *** reliably create shared libraries on SCO systems. Therefore, libtool
14819 *** is disabling shared libraries support. We urge you to upgrade GNU
14820 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14821 *** your PATH or compiler configuration so that the native linker is
14822 *** used, and then restart.
14827 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14828 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14829 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14830 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14839 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14841 hardcode_direct_F77=yes
14842 hardcode_shlibpath_var_F77=no
14846 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14847 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14848 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14855 if test "$ld_shlibs_F77" = no; then
14857 hardcode_libdir_flag_spec_F77=
14858 export_dynamic_flag_spec_F77=
14859 whole_archive_flag_spec_F77=
14862 # PORTME fill in a description of your system's linker (not GNU ld)
14865 allow_undefined_flag_F77=unsupported
14866 always_export_symbols_F77=yes
14867 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'
14868 # Note: this linker hardcodes the directories in LIBPATH if there
14869 # are no directories specified by -L.
14870 hardcode_minus_L_F77=yes
14871 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14872 # Neither direct hardcoding nor static linking is supported with a
14874 hardcode_direct_F77=unsupported
14879 if test "$host_cpu" = ia64; then
14880 # On IA64, the linker does run time linking by default, so we don't
14881 # have to do anything special.
14882 aix_use_runtimelinking=no
14883 exp_sym_flag='-Bexport'
14886 # If we're using GNU nm, then we don't want the "-C" option.
14887 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14888 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14889 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'
14891 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'
14893 aix_use_runtimelinking=no
14895 # Test if we are trying to use run time linking or normal
14896 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14897 # need to do runtime linking.
14898 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14899 for ld_flag in $LDFLAGS; do
14900 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14901 aix_use_runtimelinking=yes
14908 exp_sym_flag='-bexport'
14909 no_entry_flag='-bnoentry'
14912 # When large executables or shared objects are built, AIX ld can
14913 # have problems creating the table of contents. If linking a library
14914 # or program results in "error TOC overflow" add -mminimal-toc to
14915 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14916 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14918 archive_cmds_F77=''
14919 hardcode_direct_F77=yes
14920 hardcode_libdir_separator_F77=':'
14921 link_all_deplibs_F77=yes
14923 if test "$GCC" = yes; then
14924 case $host_os in aix4.[012]|aix4.[012].*)
14925 # We only want to do this on AIX 4.2 and lower, the check
14926 # below for broken collect2 doesn't work under 4.3+
14927 collect2name=`${CC} -print-prog-name=collect2`
14928 if test -f "$collect2name" && \
14929 strings "$collect2name" | grep resolve_lib_name >/dev/null
14931 # We have reworked collect2
14934 # We have old collect2
14935 hardcode_direct_F77=unsupported
14936 # It fails to find uninstalled libraries when the uninstalled
14937 # path is not listed in the libpath. Setting hardcode_minus_L
14938 # to unsupported forces relinking
14939 hardcode_minus_L_F77=yes
14940 hardcode_libdir_flag_spec_F77='-L$libdir'
14941 hardcode_libdir_separator_F77=
14945 shared_flag='-shared'
14946 if test "$aix_use_runtimelinking" = yes; then
14947 shared_flag="$shared_flag "'${wl}-G'
14951 if test "$host_cpu" = ia64; then
14952 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14953 # chokes on -Wl,-G. The following line is correct:
14956 if test "$aix_use_runtimelinking" = yes; then
14957 shared_flag='${wl}-G'
14959 shared_flag='${wl}-bM:SRE'
14964 # It seems that -bexpall does not export symbols beginning with
14965 # underscore (_), so it is better to generate a list of symbols to export.
14966 always_export_symbols_F77=yes
14967 if test "$aix_use_runtimelinking" = yes; then
14968 # Warning - without using the other runtime loading flags (-brtl),
14969 # -berok will link without error, but may produce a broken library.
14970 allow_undefined_flag_F77='-berok'
14971 # Determine the default libpath from the value encoded in an empty executable.
14972 cat >conftest.$ac_ext <<_ACEOF
14977 rm -f conftest.$ac_objext conftest$ac_exeext
14978 if { (ac_try="$ac_link"
14979 case "(($ac_try" in
14980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14981 *) ac_try_echo=$ac_try;;
14983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14984 (eval "$ac_link") 2>conftest.er1
14986 grep -v '^ *+' conftest.er1 >conftest.err
14988 cat conftest.err >&5
14989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990 (exit $ac_status); } && {
14991 test -z "$ac_f77_werror_flag" ||
14992 test ! -s conftest.err
14993 } && test -s conftest$ac_exeext &&
14994 $as_test_x conftest$ac_exeext; then
14996 lt_aix_libpath_sed='
14997 /Import File Strings/,/^$/ {
15003 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15004 # Check for a 64-bit object if we didn't find anything.
15005 if test -z "$aix_libpath"; then
15006 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15009 echo "$as_me: failed program was:" >&5
15010 sed 's/^/| /' conftest.$ac_ext >&5
15015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15016 conftest$ac_exeext conftest.$ac_ext
15017 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15019 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15020 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"
15022 if test "$host_cpu" = ia64; then
15023 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15024 allow_undefined_flag_F77="-z nodefs"
15025 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"
15027 # Determine the default libpath from the value encoded in an empty executable.
15028 cat >conftest.$ac_ext <<_ACEOF
15033 rm -f conftest.$ac_objext conftest$ac_exeext
15034 if { (ac_try="$ac_link"
15035 case "(($ac_try" in
15036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15037 *) ac_try_echo=$ac_try;;
15039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15040 (eval "$ac_link") 2>conftest.er1
15042 grep -v '^ *+' conftest.er1 >conftest.err
15044 cat conftest.err >&5
15045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046 (exit $ac_status); } && {
15047 test -z "$ac_f77_werror_flag" ||
15048 test ! -s conftest.err
15049 } && test -s conftest$ac_exeext &&
15050 $as_test_x conftest$ac_exeext; then
15052 lt_aix_libpath_sed='
15053 /Import File Strings/,/^$/ {
15059 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15060 # Check for a 64-bit object if we didn't find anything.
15061 if test -z "$aix_libpath"; then
15062 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15065 echo "$as_me: failed program was:" >&5
15066 sed 's/^/| /' conftest.$ac_ext >&5
15071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15072 conftest$ac_exeext conftest.$ac_ext
15073 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15075 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15076 # Warning - without using the other run time loading flags,
15077 # -berok will link without error, but may produce a broken library.
15078 no_undefined_flag_F77=' ${wl}-bernotok'
15079 allow_undefined_flag_F77=' ${wl}-berok'
15080 # Exported symbols can be pulled into shared objects from archives
15081 whole_archive_flag_spec_F77='$convenience'
15082 archive_cmds_need_lc_F77=yes
15083 # This is similar to how AIX traditionally builds its shared libraries.
15084 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'
15090 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)'
15091 hardcode_libdir_flag_spec_F77='-L$libdir'
15092 hardcode_minus_L_F77=yes
15093 # see comment about different semantics on the GNU ld section
15098 export_dynamic_flag_spec_F77=-rdynamic
15101 cygwin* | mingw* | pw32*)
15102 # When not using gcc, we currently assume that we are using
15103 # Microsoft Visual C++.
15104 # hardcode_libdir_flag_spec is actually meaningless, as there is
15105 # no search path for DLLs.
15106 hardcode_libdir_flag_spec_F77=' '
15107 allow_undefined_flag_F77=unsupported
15108 # Tell ltmain to make .lib files, not .a files.
15110 # Tell ltmain to make .dll files, not .so files.
15112 # FIXME: Setting linknames here is a bad hack.
15113 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15114 # The linker will automatically build a .lib file if we build a DLL.
15115 old_archive_From_new_cmds_F77='true'
15116 # FIXME: Should let the user specify the lib program.
15117 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15118 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15119 enable_shared_with_static_runtimes_F77=yes
15122 darwin* | rhapsody*)
15124 rhapsody* | darwin1.[012])
15125 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15128 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15129 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15131 case ${MACOSX_DEPLOYMENT_TARGET} in
15133 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15136 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15142 archive_cmds_need_lc_F77=no
15143 hardcode_direct_F77=no
15144 hardcode_automatic_F77=yes
15145 hardcode_shlibpath_var_F77=unsupported
15146 whole_archive_flag_spec_F77=''
15147 link_all_deplibs_F77=yes
15148 if test "$GCC" = yes ; then
15149 output_verbose_link_cmd='echo'
15150 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}"
15151 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15152 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}"
15153 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}"
15155 case $cc_basename in
15157 output_verbose_link_cmd='echo'
15158 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15159 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15160 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15161 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}'
15162 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}'
15172 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15173 hardcode_libdir_flag_spec_F77='-L$libdir'
15174 hardcode_shlibpath_var_F77=no
15181 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15182 # support. Future versions do this automatically, but an explicit c++rt0.o
15183 # does not break anything, and helps significantly (at the cost of a little
15186 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15187 hardcode_libdir_flag_spec_F77='-R$libdir'
15188 hardcode_direct_F77=yes
15189 hardcode_shlibpath_var_F77=no
15192 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15194 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15195 hardcode_direct_F77=yes
15196 hardcode_minus_L_F77=yes
15197 hardcode_shlibpath_var_F77=no
15200 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15201 freebsd* | dragonfly*)
15202 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15203 hardcode_libdir_flag_spec_F77='-R$libdir'
15204 hardcode_direct_F77=yes
15205 hardcode_shlibpath_var_F77=no
15209 if test "$GCC" = yes; then
15210 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'
15212 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'
15214 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15215 hardcode_libdir_separator_F77=:
15216 hardcode_direct_F77=yes
15218 # hardcode_minus_L: Not really in the search PATH,
15219 # but as the default location of the library.
15220 hardcode_minus_L_F77=yes
15221 export_dynamic_flag_spec_F77='${wl}-E'
15225 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15226 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15228 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15230 if test "$with_gnu_ld" = no; then
15231 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15232 hardcode_libdir_separator_F77=:
15234 hardcode_direct_F77=yes
15235 export_dynamic_flag_spec_F77='${wl}-E'
15237 # hardcode_minus_L: Not really in the search PATH,
15238 # but as the default location of the library.
15239 hardcode_minus_L_F77=yes
15244 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15247 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15250 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15253 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15259 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15262 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15265 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15269 if test "$with_gnu_ld" = no; then
15270 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15271 hardcode_libdir_separator_F77=:
15275 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15276 hardcode_direct_F77=no
15277 hardcode_shlibpath_var_F77=no
15280 hardcode_direct_F77=yes
15281 export_dynamic_flag_spec_F77='${wl}-E'
15283 # hardcode_minus_L: Not really in the search PATH,
15284 # but as the default location of the library.
15285 hardcode_minus_L_F77=yes
15291 irix5* | irix6* | nonstopux*)
15292 if test "$GCC" = yes; then
15293 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'
15295 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'
15296 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15298 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15299 hardcode_libdir_separator_F77=:
15300 link_all_deplibs_F77=yes
15303 netbsd* | netbsdelf*-gnu)
15304 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15305 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15307 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15309 hardcode_libdir_flag_spec_F77='-R$libdir'
15310 hardcode_direct_F77=yes
15311 hardcode_shlibpath_var_F77=no
15315 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15316 hardcode_direct_F77=yes
15317 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15318 hardcode_libdir_separator_F77=:
15319 hardcode_shlibpath_var_F77=no
15323 if test -f /usr/libexec/ld.so; then
15324 hardcode_direct_F77=yes
15325 hardcode_shlibpath_var_F77=no
15326 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15327 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15328 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15329 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15330 export_dynamic_flag_spec_F77='${wl}-E'
15333 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15334 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15335 hardcode_libdir_flag_spec_F77='-R$libdir'
15338 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15339 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15349 hardcode_libdir_flag_spec_F77='-L$libdir'
15350 hardcode_minus_L_F77=yes
15351 allow_undefined_flag_F77=unsupported
15352 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'
15353 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15357 if test "$GCC" = yes; then
15358 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15359 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'
15361 allow_undefined_flag_F77=' -expect_unresolved \*'
15362 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'
15364 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15365 hardcode_libdir_separator_F77=:
15368 osf4* | osf5*) # as osf3* with the addition of -msym flag
15369 if test "$GCC" = yes; then
15370 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15371 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'
15372 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15374 allow_undefined_flag_F77=' -expect_unresolved \*'
15375 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'
15376 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~
15377 $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'
15379 # Both c and cxx compiler support -rpath directly
15380 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15382 hardcode_libdir_separator_F77=:
15386 no_undefined_flag_F77=' -z text'
15387 if test "$GCC" = yes; then
15389 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15390 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15391 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15394 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15395 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15396 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15398 hardcode_libdir_flag_spec_F77='-R$libdir'
15399 hardcode_shlibpath_var_F77=no
15401 solaris2.[0-5] | solaris2.[0-5].*) ;;
15403 # The compiler driver will combine and reorder linker options,
15404 # but understands `-z linker_flag'. GCC discards it without `$wl',
15405 # but is careful enough not to reorder.
15406 # Supported since Solaris 2.6 (maybe 2.5.1?)
15407 if test "$GCC" = yes; then
15408 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15410 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15414 link_all_deplibs_F77=yes
15418 if test "x$host_vendor" = xsequent; then
15419 # Use $CC to link under sequent, because it throws in some extra .o
15420 # files that make .init and .fini sections work.
15421 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15423 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15425 hardcode_libdir_flag_spec_F77='-L$libdir'
15426 hardcode_direct_F77=yes
15427 hardcode_minus_L_F77=yes
15428 hardcode_shlibpath_var_F77=no
15432 case $host_vendor in
15434 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15435 hardcode_direct_F77=yes # is this really true???
15438 ## LD is ld it makes a PLAMLIB
15439 ## CC just makes a GrossModule.
15440 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15441 reload_cmds_F77='$CC -r -o $output$reload_objs'
15442 hardcode_direct_F77=no
15445 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15446 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15449 runpath_var='LD_RUN_PATH'
15450 hardcode_shlibpath_var_F77=no
15454 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15455 hardcode_shlibpath_var_F77=no
15456 export_dynamic_flag_spec_F77='-Bexport'
15460 if test -d /usr/nec; then
15461 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15462 hardcode_shlibpath_var_F77=no
15463 runpath_var=LD_RUN_PATH
15464 hardcode_runpath_var=yes
15469 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15470 no_undefined_flag_F77='${wl}-z,text'
15471 archive_cmds_need_lc_F77=no
15472 hardcode_shlibpath_var_F77=no
15473 runpath_var='LD_RUN_PATH'
15475 if test "$GCC" = yes; then
15476 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15477 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15479 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15480 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15484 sysv5* | sco3.2v5* | sco5v6*)
15485 # Note: We can NOT use -z defs as we might desire, because we do not
15486 # link with -lc, and that would cause any symbols used from libc to
15487 # always be unresolved, which means just about no library would
15488 # ever link correctly. If we're not using GNU ld we use -z text
15489 # though, which does catch some bad symbols but isn't as heavy-handed
15491 no_undefined_flag_F77='${wl}-z,text'
15492 allow_undefined_flag_F77='${wl}-z,nodefs'
15493 archive_cmds_need_lc_F77=no
15494 hardcode_shlibpath_var_F77=no
15495 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15496 hardcode_libdir_separator_F77=':'
15497 link_all_deplibs_F77=yes
15498 export_dynamic_flag_spec_F77='${wl}-Bexport'
15499 runpath_var='LD_RUN_PATH'
15501 if test "$GCC" = yes; then
15502 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15503 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15505 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15506 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15511 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15512 hardcode_libdir_flag_spec_F77='-L$libdir'
15513 hardcode_shlibpath_var_F77=no
15522 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15523 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15524 test "$ld_shlibs_F77" = no && can_build_shared=no
15527 # Do we need to explicitly link libc?
15529 case "x$archive_cmds_need_lc_F77" in
15531 # Assume -lc should be added
15532 archive_cmds_need_lc_F77=yes
15534 if test "$enable_shared" = yes && test "$GCC" = yes; then
15535 case $archive_cmds_F77 in
15537 # FIXME: we may have to deal with multi-command sequences.
15540 # Test whether the compiler implicitly links with -lc since on some
15541 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15542 # to ld, don't add -lc before -lgcc.
15543 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15544 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15546 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15549 (eval $ac_compile) 2>&5
15551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15552 (exit $ac_status); } 2>conftest.err; then
15555 libobjs=conftest.$ac_objext
15557 wl=$lt_prog_compiler_wl_F77
15558 pic_flag=$lt_prog_compiler_pic_F77
15564 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15565 allow_undefined_flag_F77=
15566 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15567 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15570 (exit $ac_status); }
15572 archive_cmds_need_lc_F77=no
15574 archive_cmds_need_lc_F77=yes
15576 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15578 cat conftest.err 1>&5
15581 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15582 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15589 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15590 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15591 library_names_spec=
15592 libname_spec='lib$name'
15596 postuninstall_cmds=
15600 shlibpath_overrides_runpath=unknown
15602 dynamic_linker="$host_os ld.so"
15603 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15605 need_lib_prefix=unknown
15606 hardcode_into_libs=no
15608 # when you set need_version to no, make sure it does not cause -set_version
15609 # flags to be left without arguments
15610 need_version=unknown
15615 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15616 shlibpath_var=LIBPATH
15618 # AIX 3 has no versioning support, so we append a major version to the name.
15619 soname_spec='${libname}${release}${shared_ext}$major'
15626 hardcode_into_libs=yes
15627 if test "$host_cpu" = ia64; then
15628 # AIX 5 supports IA64
15629 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15630 shlibpath_var=LD_LIBRARY_PATH
15632 # With GCC up to 2.95.x, collect2 would create an import file
15633 # for dependence libraries. The import file would start with
15634 # the line `#! .'. This would cause the generated library to
15635 # depend on `.', always an invalid library. This was fixed in
15636 # development snapshots of GCC prior to 3.0.
15638 aix4 | aix4.[01] | aix4.[01].*)
15639 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15641 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15644 can_build_shared=no
15648 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15649 # soname into executable. Probably we can add versioning support to
15650 # collect2, so additional links can be useful in future.
15651 if test "$aix_use_runtimelinking" = yes; then
15652 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15653 # instead of lib<name>.a to let people know that these are not
15654 # typical AIX shared libraries.
15655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15657 # We preserve .a as extension for shared libraries through AIX4.2
15658 # and later when we are not doing run time linking.
15659 library_names_spec='${libname}${release}.a $libname.a'
15660 soname_spec='${libname}${release}${shared_ext}$major'
15662 shlibpath_var=LIBPATH
15667 library_names_spec='$libname.ixlibrary $libname.a'
15668 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15669 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'
15673 library_names_spec='${libname}${shared_ext}'
15674 dynamic_linker="$host_os ld.so"
15675 shlibpath_var=LIBRARY_PATH
15681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15682 soname_spec='${libname}${release}${shared_ext}$major'
15683 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15684 shlibpath_var=LD_LIBRARY_PATH
15685 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15686 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15687 # the default ld.so.conf also contains /usr/contrib/lib and
15688 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15689 # libtool to hard-code these into programs
15692 cygwin* | mingw* | pw32*)
15693 version_type=windows
15698 case $GCC,$host_os in
15699 yes,cygwin* | yes,mingw* | yes,pw32*)
15700 library_names_spec='$libname.dll.a'
15701 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15702 postinstall_cmds='base_file=`basename \${file}`~
15703 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15704 dldir=$destdir/`dirname \$dlpath`~
15705 test -d \$dldir || mkdir -p \$dldir~
15706 $install_prog $dir/$dlname \$dldir/$dlname~
15707 chmod a+x \$dldir/$dlname'
15708 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15709 dlpath=$dir/\$dldll~
15711 shlibpath_overrides_runpath=yes
15715 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15716 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15717 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15720 # MinGW DLLs use traditional 'lib' prefix
15721 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15722 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15723 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15724 # It is most probably a Windows format PATH printed by
15725 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15726 # path with ; separators, and with drive letters. We can handle the
15727 # drive letters (cygwin fileutils understands them), so leave them,
15728 # especially as we might pass files found there to a mingw objdump,
15729 # which wouldn't understand a cygwinified path. Ahh.
15730 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15732 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15736 # pw32 DLLs use 'pw' prefix rather than 'lib'
15737 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15743 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15746 dynamic_linker='Win32 ld.exe'
15747 # FIXME: first we should search . and the directory the executable is in
15751 darwin* | rhapsody*)
15752 dynamic_linker="$host_os dyld"
15753 version_type=darwin
15756 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15757 soname_spec='${libname}${release}${major}$shared_ext'
15758 shlibpath_overrides_runpath=yes
15759 shlibpath_var=DYLD_LIBRARY_PATH
15760 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15762 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15770 soname_spec='${libname}${release}${shared_ext}$major'
15771 shlibpath_var=LD_LIBRARY_PATH
15778 freebsd* | dragonfly*)
15779 # DragonFly does not have aout. When/if they implement a new
15780 # versioning mechanism, adjust this.
15781 if test -x /usr/bin/objformat; then
15782 objformat=`/usr/bin/objformat`
15785 freebsd[123]*) objformat=aout ;;
15786 *) objformat=elf ;;
15789 version_type=freebsd-$objformat
15790 case $version_type in
15792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15797 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15801 shlibpath_var=LD_LIBRARY_PATH
15804 shlibpath_overrides_runpath=yes
15806 freebsd3.[01]* | freebsdelf3.[01]*)
15807 shlibpath_overrides_runpath=yes
15808 hardcode_into_libs=yes
15810 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15811 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15812 shlibpath_overrides_runpath=no
15813 hardcode_into_libs=yes
15815 *) # from 4.6 on, and DragonFly
15816 shlibpath_overrides_runpath=yes
15817 hardcode_into_libs=yes
15826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15827 soname_spec='${libname}${release}${shared_ext}$major'
15828 shlibpath_var=LD_LIBRARY_PATH
15829 hardcode_into_libs=yes
15832 hpux9* | hpux10* | hpux11*)
15833 # Give a soname corresponding to the major version so that dld.sl refuses to
15834 # link against other versions.
15841 hardcode_into_libs=yes
15842 dynamic_linker="$host_os dld.so"
15843 shlibpath_var=LD_LIBRARY_PATH
15844 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15846 soname_spec='${libname}${release}${shared_ext}$major'
15847 if test "X$HPUX_IA64_MODE" = X32; then
15848 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15850 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15852 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15856 hardcode_into_libs=yes
15857 dynamic_linker="$host_os dld.sl"
15858 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15859 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15861 soname_spec='${libname}${release}${shared_ext}$major'
15862 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15863 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15867 dynamic_linker="$host_os dld.sl"
15868 shlibpath_var=SHLIB_PATH
15869 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15871 soname_spec='${libname}${release}${shared_ext}$major'
15874 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15875 postinstall_cmds='chmod 555 $lib'
15882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15883 soname_spec='${libname}${release}${shared_ext}$major'
15884 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15885 shlibpath_var=LD_LIBRARY_PATH
15886 shlibpath_overrides_runpath=no
15887 hardcode_into_libs=yes
15890 irix5* | irix6* | nonstopux*)
15892 nonstopux*) version_type=nonstopux ;;
15894 if test "$lt_cv_prog_gnu_ld" = yes; then
15902 soname_spec='${libname}${release}${shared_ext}$major'
15903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15905 irix5* | nonstopux*)
15906 libsuff= shlibsuff=
15909 case $LD in # libtool.m4 will add one of these switches to LD
15910 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15911 libsuff= shlibsuff= libmagic=32-bit;;
15912 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15913 libsuff=32 shlibsuff=N32 libmagic=N32;;
15914 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15915 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15916 *) libsuff= shlibsuff= libmagic=never-match;;
15920 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15921 shlibpath_overrides_runpath=no
15922 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15923 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15924 hardcode_into_libs=yes
15927 # No shared lib support for Linux oldld, aout, or coff.
15928 linux*oldld* | linux*aout* | linux*coff*)
15932 # This must be Linux ELF.
15933 linux* | k*bsd*-gnu)
15937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15938 soname_spec='${libname}${release}${shared_ext}$major'
15939 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15940 shlibpath_var=LD_LIBRARY_PATH
15941 shlibpath_overrides_runpath=no
15942 # This implies no fast_install, which is unacceptable.
15943 # Some rework will be needed to allow for fast_install
15944 # before this can be enabled.
15945 hardcode_into_libs=yes
15947 # Append ld.so.conf contents to the search path
15948 if test -f /etc/ld.so.conf; then
15949 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' ' '`
15950 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15953 # We used to test for /lib/ld.so.1 and disable shared libraries on
15954 # powerpc, because MkLinux only supported shared libraries with the
15955 # GNU dynamic linker. Since this was broken with cross compilers,
15956 # most powerpc-linux boxes support dynamic linking these days and
15957 # people can always --disable-shared, the test was removed, and we
15958 # assume the GNU/Linux dynamic linker is in use.
15959 dynamic_linker='GNU/Linux ld.so'
15966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15967 soname_spec='${libname}${release}${shared_ext}$major'
15968 shlibpath_var=LD_LIBRARY_PATH
15969 shlibpath_overrides_runpath=no
15970 hardcode_into_libs=yes
15971 dynamic_linker='NetBSD ld.elf_so'
15978 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15980 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15981 dynamic_linker='NetBSD (a.out) ld.so'
15983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15984 soname_spec='${libname}${release}${shared_ext}$major'
15985 dynamic_linker='NetBSD ld.elf_so'
15987 shlibpath_var=LD_LIBRARY_PATH
15988 shlibpath_overrides_runpath=yes
15989 hardcode_into_libs=yes
15994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15995 shlibpath_var=LD_LIBRARY_PATH
15996 shlibpath_overrides_runpath=yes
16003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16004 soname_spec='${libname}${release}${shared_ext}$major'
16005 shlibpath_var=LD_LIBRARY_PATH
16006 shlibpath_overrides_runpath=yes
16011 sys_lib_dlsearch_path_spec="/usr/lib"
16013 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16015 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16016 *) need_version=no ;;
16018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16019 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16020 shlibpath_var=LD_LIBRARY_PATH
16021 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16023 openbsd2.[89] | openbsd2.[89].*)
16024 shlibpath_overrides_runpath=no
16027 shlibpath_overrides_runpath=yes
16031 shlibpath_overrides_runpath=yes
16036 libname_spec='$name'
16039 library_names_spec='$libname${shared_ext} $libname.a'
16040 dynamic_linker='OS/2 ld.exe'
16041 shlibpath_var=LIBPATH
16044 osf3* | osf4* | osf5*)
16048 soname_spec='${libname}${release}${shared_ext}$major'
16049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16050 shlibpath_var=LD_LIBRARY_PATH
16051 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16052 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16064 soname_spec='${libname}${release}${shared_ext}$major'
16065 shlibpath_var=LD_LIBRARY_PATH
16066 shlibpath_overrides_runpath=yes
16067 hardcode_into_libs=yes
16068 # ldd complains unless libraries are executable
16069 postinstall_cmds='chmod +x $lib'
16074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16075 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16076 shlibpath_var=LD_LIBRARY_PATH
16077 shlibpath_overrides_runpath=yes
16078 if test "$with_gnu_ld" = yes; then
16086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16087 soname_spec='${libname}${release}${shared_ext}$major'
16088 shlibpath_var=LD_LIBRARY_PATH
16089 case $host_vendor in
16091 shlibpath_overrides_runpath=no
16093 export_dynamic_flag_spec='${wl}-Blargedynsym'
16094 runpath_var=LD_RUN_PATH
16102 shlibpath_overrides_runpath=no
16103 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16109 if test -d /usr/nec ;then
16111 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16112 soname_spec='$libname${shared_ext}.$major'
16113 shlibpath_var=LD_LIBRARY_PATH
16117 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16118 version_type=freebsd-elf
16121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16122 soname_spec='${libname}${release}${shared_ext}$major'
16123 shlibpath_var=LD_LIBRARY_PATH
16124 hardcode_into_libs=yes
16125 if test "$with_gnu_ld" = yes; then
16126 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16127 shlibpath_overrides_runpath=no
16129 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16130 shlibpath_overrides_runpath=yes
16133 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16137 sys_lib_dlsearch_path_spec='/usr/lib'
16142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16143 soname_spec='${libname}${release}${shared_ext}$major'
16144 shlibpath_var=LD_LIBRARY_PATH
16151 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16152 echo "${ECHO_T}$dynamic_linker" >&6; }
16153 test "$dynamic_linker" = no && can_build_shared=no
16155 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16156 echo $ECHO_N "(cached) $ECHO_C" >&6
16158 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16161 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16162 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16163 echo $ECHO_N "(cached) $ECHO_C" >&6
16165 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16168 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16170 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16171 if test "$GCC" = yes; then
16172 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16175 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16176 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16177 hardcode_action_F77=
16178 if test -n "$hardcode_libdir_flag_spec_F77" || \
16179 test -n "$runpath_var_F77" || \
16180 test "X$hardcode_automatic_F77" = "Xyes" ; then
16182 # We can hardcode non-existant directories.
16183 if test "$hardcode_direct_F77" != no &&
16184 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16185 # have to relink, otherwise we might link with an installed library
16186 # when we should be linking with a yet-to-be-installed one
16187 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16188 test "$hardcode_minus_L_F77" != no; then
16189 # Linking always hardcodes the temporary library directory.
16190 hardcode_action_F77=relink
16192 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16193 hardcode_action_F77=immediate
16196 # We cannot hardcode anything, or else we can only hardcode existing
16198 hardcode_action_F77=unsupported
16200 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16201 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16203 if test "$hardcode_action_F77" = relink; then
16204 # Fast installation is not supported
16205 enable_fast_install=no
16206 elif test "$shlibpath_overrides_runpath" = yes ||
16207 test "$enable_shared" = no; then
16208 # Fast installation is not necessary
16209 enable_fast_install=needless
16213 # The else clause should only fire when bootstrapping the
16214 # libtool distribution, otherwise you forgot to ship ltmain.sh
16215 # with your package, and you will get complaints that there are
16216 # no rules to generate ltmain.sh.
16217 if test -f "$ltmain"; then
16218 # See if we are running on zsh, and set the options which allow our commands through
16219 # without removal of \ escapes.
16220 if test -n "${ZSH_VERSION+set}" ; then
16221 setopt NO_GLOB_SUBST
16223 # Now quote all the things that may contain metacharacters while being
16224 # careful not to overquote the AC_SUBSTed values. We take copies of the
16225 # variables and quote the copies for generation of the libtool script.
16226 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16228 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16229 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16230 deplibs_check_method reload_flag reload_cmds need_locks \
16231 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16232 lt_cv_sys_global_symbol_to_c_name_address \
16233 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16234 old_postinstall_cmds old_postuninstall_cmds \
16238 lt_prog_compiler_wl_F77 \
16239 lt_prog_compiler_pic_F77 \
16240 lt_prog_compiler_static_F77 \
16241 lt_prog_compiler_no_builtin_flag_F77 \
16242 export_dynamic_flag_spec_F77 \
16243 thread_safe_flag_spec_F77 \
16244 whole_archive_flag_spec_F77 \
16245 enable_shared_with_static_runtimes_F77 \
16246 old_archive_cmds_F77 \
16247 old_archive_from_new_cmds_F77 \
16248 predep_objects_F77 \
16249 postdep_objects_F77 \
16252 compiler_lib_search_path_F77 \
16253 compiler_lib_search_dirs_F77 \
16255 archive_expsym_cmds_F77 \
16256 postinstall_cmds_F77 \
16257 postuninstall_cmds_F77 \
16258 old_archive_from_expsyms_cmds_F77 \
16259 allow_undefined_flag_F77 \
16260 no_undefined_flag_F77 \
16261 export_symbols_cmds_F77 \
16262 hardcode_libdir_flag_spec_F77 \
16263 hardcode_libdir_flag_spec_ld_F77 \
16264 hardcode_libdir_separator_F77 \
16265 hardcode_automatic_F77 \
16267 module_expsym_cmds_F77 \
16268 lt_cv_prog_compiler_c_o_F77 \
16269 fix_srcfile_path_F77 \
16270 exclude_expsyms_F77 \
16271 include_expsyms_F77; do
16274 old_archive_cmds_F77 | \
16275 old_archive_from_new_cmds_F77 | \
16276 archive_cmds_F77 | \
16277 archive_expsym_cmds_F77 | \
16278 module_cmds_F77 | \
16279 module_expsym_cmds_F77 | \
16280 old_archive_from_expsyms_cmds_F77 | \
16281 export_symbols_cmds_F77 | \
16282 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16283 postinstall_cmds | postuninstall_cmds | \
16284 old_postinstall_cmds | old_postuninstall_cmds | \
16285 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16286 # Double-quote double-evaled strings.
16287 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16290 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16296 *'\$0 --fallback-echo"')
16297 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16303 cat <<__EOF__ >> "$cfgfile"
16304 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16306 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16308 # Shell to use when invoking shell scripts.
16311 # Whether or not to build shared libraries.
16312 build_libtool_libs=$enable_shared
16314 # Whether or not to build static libraries.
16315 build_old_libs=$enable_static
16317 # Whether or not to add -lc for building shared libraries.
16318 build_libtool_need_lc=$archive_cmds_need_lc_F77
16320 # Whether or not to disallow shared libs when runtime libs are static
16321 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16323 # Whether or not to optimize for fast installation.
16324 fast_install=$enable_fast_install
16327 host_alias=$host_alias
16331 # The build system.
16332 build_alias=$build_alias
16336 # An echo program that does not interpret backslashes.
16341 AR_FLAGS=$lt_AR_FLAGS
16346 # LTCC compiler flags.
16347 LTCFLAGS=$lt_LTCFLAGS
16349 # A language-specific compiler.
16350 CC=$lt_compiler_F77
16352 # Is the compiler the GNU C compiler?
16358 # The linker used to build libraries.
16361 # Whether we need hard or soft links.
16364 # A BSD-compatible nm program.
16367 # A symbol stripping program
16370 # Used to examine libraries when file_magic_cmd begins "file"
16371 MAGIC_CMD=$MAGIC_CMD
16373 # Used on cygwin: DLL creation program.
16376 # Used on cygwin: object dumper.
16379 # Used on cygwin: assembler.
16382 # The name of the directory that contains temporary libtool files.
16385 # How to create reloadable object files.
16386 reload_flag=$lt_reload_flag
16387 reload_cmds=$lt_reload_cmds
16389 # How to pass a linker flag through the compiler.
16390 wl=$lt_lt_prog_compiler_wl_F77
16392 # Object file suffix (normally "o").
16393 objext="$ac_objext"
16395 # Old archive suffix (normally "a").
16398 # Shared library suffix (normally ".so").
16399 shrext_cmds='$shrext_cmds'
16401 # Executable file suffix (normally "").
16404 # Additional compiler flags for building library objects.
16405 pic_flag=$lt_lt_prog_compiler_pic_F77
16408 # What is the maximum length of a command?
16409 max_cmd_len=$lt_cv_sys_max_cmd_len
16411 # Does compiler simultaneously support -c and -o options?
16412 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16414 # Must we lock files when doing compilation?
16415 need_locks=$lt_need_locks
16417 # Do we need the lib prefix for modules?
16418 need_lib_prefix=$need_lib_prefix
16420 # Do we need a version for libraries?
16421 need_version=$need_version
16423 # Whether dlopen is supported.
16424 dlopen_support=$enable_dlopen
16426 # Whether dlopen of programs is supported.
16427 dlopen_self=$enable_dlopen_self
16429 # Whether dlopen of statically linked programs is supported.
16430 dlopen_self_static=$enable_dlopen_self_static
16432 # Compiler flag to prevent dynamic linking.
16433 link_static_flag=$lt_lt_prog_compiler_static_F77
16435 # Compiler flag to turn off builtin functions.
16436 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16438 # Compiler flag to allow reflexive dlopens.
16439 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16441 # Compiler flag to generate shared objects directly from archives.
16442 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16444 # Compiler flag to generate thread-safe objects.
16445 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16447 # Library versioning type.
16448 version_type=$version_type
16450 # Format of library name prefix.
16451 libname_spec=$lt_libname_spec
16453 # List of archive names. First name is the real one, the rest are links.
16454 # The last name is the one that the linker finds with -lNAME.
16455 library_names_spec=$lt_library_names_spec
16457 # The coded name of the library, if different from the real name.
16458 soname_spec=$lt_soname_spec
16460 # Commands used to build and install an old-style archive.
16462 old_archive_cmds=$lt_old_archive_cmds_F77
16463 old_postinstall_cmds=$lt_old_postinstall_cmds
16464 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16466 # Create an old-style archive from a shared archive.
16467 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16469 # Create a temporary old-style archive to link instead of a shared archive.
16470 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16472 # Commands used to build and install a shared archive.
16473 archive_cmds=$lt_archive_cmds_F77
16474 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16475 postinstall_cmds=$lt_postinstall_cmds
16476 postuninstall_cmds=$lt_postuninstall_cmds
16478 # Commands used to build a loadable module (assumed same as above if empty)
16479 module_cmds=$lt_module_cmds_F77
16480 module_expsym_cmds=$lt_module_expsym_cmds_F77
16482 # Commands to strip libraries.
16483 old_striplib=$lt_old_striplib
16484 striplib=$lt_striplib
16486 # Dependencies to place before the objects being linked to create a
16488 predep_objects=$lt_predep_objects_F77
16490 # Dependencies to place after the objects being linked to create a
16492 postdep_objects=$lt_postdep_objects_F77
16494 # Dependencies to place before the objects being linked to create a
16496 predeps=$lt_predeps_F77
16498 # Dependencies to place after the objects being linked to create a
16500 postdeps=$lt_postdeps_F77
16502 # The directories searched by this compiler when creating a shared
16504 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16506 # The library search path used internally by the compiler when linking
16507 # a shared library.
16508 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16510 # Method to check whether dependent libraries are shared objects.
16511 deplibs_check_method=$lt_deplibs_check_method
16513 # Command to use when deplibs_check_method == file_magic.
16514 file_magic_cmd=$lt_file_magic_cmd
16516 # Flag that allows shared libraries with undefined symbols to be built.
16517 allow_undefined_flag=$lt_allow_undefined_flag_F77
16519 # Flag that forces no undefined symbols.
16520 no_undefined_flag=$lt_no_undefined_flag_F77
16522 # Commands used to finish a libtool library installation in a directory.
16523 finish_cmds=$lt_finish_cmds
16525 # Same as above, but a single script fragment to be evaled but not shown.
16526 finish_eval=$lt_finish_eval
16528 # Take the output of nm and produce a listing of raw symbols and C names.
16529 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16531 # Transform the output of nm in a proper C declaration
16532 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16534 # Transform the output of nm in a C name address pair
16535 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16537 # This is the shared library runtime path variable.
16538 runpath_var=$runpath_var
16540 # This is the shared library path variable.
16541 shlibpath_var=$shlibpath_var
16543 # Is shlibpath searched before the hard-coded library search path?
16544 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16546 # How to hardcode a shared library path into an executable.
16547 hardcode_action=$hardcode_action_F77
16549 # Whether we should hardcode library paths into libraries.
16550 hardcode_into_libs=$hardcode_into_libs
16552 # Flag to hardcode \$libdir into a binary during linking.
16553 # This must work even if \$libdir does not exist.
16554 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16556 # If ld is used when linking, flag to hardcode \$libdir into
16557 # a binary during linking. This must work even if \$libdir does
16559 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16561 # Whether we need a single -rpath flag with a separated argument.
16562 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16564 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16565 # resulting binary.
16566 hardcode_direct=$hardcode_direct_F77
16568 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16569 # resulting binary.
16570 hardcode_minus_L=$hardcode_minus_L_F77
16572 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16573 # the resulting binary.
16574 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16576 # Set to yes if building a shared library automatically hardcodes DIR into the library
16577 # and all subsequent libraries and executables linked against it.
16578 hardcode_automatic=$hardcode_automatic_F77
16580 # Variables whose values should be saved in libtool wrapper scripts and
16581 # restored at relink time.
16582 variables_saved_for_relink="$variables_saved_for_relink"
16584 # Whether libtool must link a program against all its dependency libraries.
16585 link_all_deplibs=$link_all_deplibs_F77
16587 # Compile-time system search path for libraries
16588 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16590 # Run-time system search path for libraries
16591 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16593 # Fix the shell variable \$srcfile for the compiler.
16594 fix_srcfile_path=$lt_fix_srcfile_path
16596 # Set to yes if exported symbols are required.
16597 always_export_symbols=$always_export_symbols_F77
16599 # The commands to list exported symbols.
16600 export_symbols_cmds=$lt_export_symbols_cmds_F77
16602 # The commands to extract the exported symbol list from a shared archive.
16603 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16605 # Symbols that should not be listed in the preloaded symbols.
16606 exclude_expsyms=$lt_exclude_expsyms_F77
16608 # Symbols that must always be exported.
16609 include_expsyms=$lt_include_expsyms_F77
16611 # ### END LIBTOOL TAG CONFIG: $tagname
16617 # If there is no Makefile yet, we rely on a make rule to execute
16618 # `config.status --recheck' to rerun these tests and create the
16619 # libtool script then.
16620 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16621 if test -f "$ltmain_in"; then
16622 test -f Makefile && make "$ltmain"
16628 ac_cpp='$CPP $CPPFLAGS'
16629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16641 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16644 # Source file extension for Java test sources.
16647 # Object file extension for compiled Java test sources.
16651 # Code to be used in simple compile tests
16652 lt_simple_compile_test_code="class foo {}"
16654 # Code to be used in simple link tests
16655 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16657 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16659 # If no C compiler was specified, use CC.
16662 # If no C compiler flags were specified, use CFLAGS.
16663 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16665 # Allow CC to be a program name with arguments.
16669 # save warnings/boilerplate of simple test code
16670 ac_outfile=conftest.$ac_objext
16671 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16672 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16673 _lt_compiler_boilerplate=`cat conftest.err`
16676 ac_outfile=conftest.$ac_objext
16677 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16678 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16679 _lt_linker_boilerplate=`cat conftest.err`
16683 # Allow CC to be a program name with arguments.
16688 for cc_temp in $compiler""; do
16690 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16691 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16696 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16699 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16700 archive_cmds_need_lc_GCJ=no
16702 old_archive_cmds_GCJ=$old_archive_cmds
16705 lt_prog_compiler_no_builtin_flag_GCJ=
16707 if test "$GCC" = yes; then
16708 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16711 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16712 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16713 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16714 echo $ECHO_N "(cached) $ECHO_C" >&6
16716 lt_cv_prog_compiler_rtti_exceptions=no
16717 ac_outfile=conftest.$ac_objext
16718 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16719 lt_compiler_flag="-fno-rtti -fno-exceptions"
16720 # Insert the option either (1) after the last *FLAGS variable, or
16721 # (2) before a word containing "conftest.", or (3) at the end.
16722 # Note that $ac_compile itself does not contain backslashes and begins
16723 # with a dollar sign (not a hyphen), so the echo should work correctly.
16724 # The option is referenced via a variable to avoid confusing sed.
16725 lt_compile=`echo "$ac_compile" | $SED \
16726 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16727 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16728 -e 's:$: $lt_compiler_flag:'`
16729 (eval echo "\"\$as_me:16729: $lt_compile\"" >&5)
16730 (eval "$lt_compile" 2>conftest.err)
16732 cat conftest.err >&5
16733 echo "$as_me:16733: \$? = $ac_status" >&5
16734 if (exit $ac_status) && test -s "$ac_outfile"; then
16735 # The compiler can only warn and ignore the option if not recognized
16736 # So say no if there are warnings other than the usual output.
16737 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16738 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16739 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16740 lt_cv_prog_compiler_rtti_exceptions=yes
16746 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16747 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16749 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16750 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16757 lt_prog_compiler_wl_GCJ=
16758 lt_prog_compiler_pic_GCJ=
16759 lt_prog_compiler_static_GCJ=
16761 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16762 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16764 if test "$GCC" = yes; then
16765 lt_prog_compiler_wl_GCJ='-Wl,'
16766 lt_prog_compiler_static_GCJ='-static'
16770 # All AIX code is PIC.
16771 if test "$host_cpu" = ia64; then
16772 # AIX 5 now supports IA64 processor
16773 lt_prog_compiler_static_GCJ='-Bstatic'
16778 # FIXME: we need at least 68020 code to build shared libraries, but
16779 # adding the `-m68020' flag to GCC prevents building anything better,
16781 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16784 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16785 # PIC is the default for these OSes.
16788 mingw* | cygwin* | pw32* | os2*)
16789 # This hack is so that the source file can tell whether it is being
16790 # built for inclusion in a dll (and should export symbols for example).
16791 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16792 # (--disable-auto-import) libraries
16796 darwin* | rhapsody*)
16797 # PIC is the default on this platform
16798 # Common symbols not allowed in MH_DYLIB files
16799 lt_prog_compiler_pic_GCJ='-fno-common'
16803 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16804 # Instead, we relocate shared libraries at runtime.
16808 # Just because we use GCC doesn't mean we suddenly get shared libraries
16809 # on systems that don't support them.
16810 lt_prog_compiler_can_build_shared_GCJ=no
16815 if test -d /usr/nec; then
16816 lt_prog_compiler_pic_GCJ=-Kconform_pic
16821 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16822 # not for PA HP-UX.
16828 lt_prog_compiler_pic_GCJ='-fPIC'
16834 lt_prog_compiler_pic_GCJ='-fPIC'
16838 # PORTME Check for flag to pass linker flags through the system compiler.
16841 lt_prog_compiler_wl_GCJ='-Wl,'
16842 if test "$host_cpu" = ia64; then
16843 # AIX 5 now supports IA64 processor
16844 lt_prog_compiler_static_GCJ='-Bstatic'
16846 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16850 # PIC is the default on this platform
16851 # Common symbols not allowed in MH_DYLIB files
16852 case $cc_basename in
16854 lt_prog_compiler_pic_GCJ='-qnocommon'
16855 lt_prog_compiler_wl_GCJ='-Wl,'
16860 mingw* | cygwin* | pw32* | os2*)
16861 # This hack is so that the source file can tell whether it is being
16862 # built for inclusion in a dll (and should export symbols for example).
16866 hpux9* | hpux10* | hpux11*)
16867 lt_prog_compiler_wl_GCJ='-Wl,'
16868 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16869 # not for PA HP-UX.
16875 lt_prog_compiler_pic_GCJ='+Z'
16878 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16879 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16882 irix5* | irix6* | nonstopux*)
16883 lt_prog_compiler_wl_GCJ='-Wl,'
16884 # PIC (with -KPIC) is the default.
16885 lt_prog_compiler_static_GCJ='-non_shared'
16889 lt_prog_compiler_pic_GCJ='-KPIC'
16890 lt_prog_compiler_static_GCJ='-Bstatic'
16893 linux* | k*bsd*-gnu)
16894 case $cc_basename in
16896 lt_prog_compiler_wl_GCJ='-Wl,'
16897 lt_prog_compiler_pic_GCJ='-KPIC'
16898 lt_prog_compiler_static_GCJ='-static'
16900 pgcc* | pgf77* | pgf90* | pgf95*)
16901 # Portland Group compilers (*not* the Pentium gcc compiler,
16902 # which looks to be a dead project)
16903 lt_prog_compiler_wl_GCJ='-Wl,'
16904 lt_prog_compiler_pic_GCJ='-fpic'
16905 lt_prog_compiler_static_GCJ='-Bstatic'
16908 lt_prog_compiler_wl_GCJ='-Wl,'
16909 # All Alpha code is PIC.
16910 lt_prog_compiler_static_GCJ='-non_shared'
16913 case `$CC -V 2>&1 | sed 5q` in
16916 lt_prog_compiler_pic_GCJ='-KPIC'
16917 lt_prog_compiler_static_GCJ='-Bstatic'
16918 lt_prog_compiler_wl_GCJ='-Wl,'
16921 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16922 lt_prog_compiler_pic_GCJ='-KPIC'
16923 lt_prog_compiler_static_GCJ='-Bstatic'
16924 lt_prog_compiler_wl_GCJ=''
16931 osf3* | osf4* | osf5*)
16932 lt_prog_compiler_wl_GCJ='-Wl,'
16933 # All OSF/1 code is PIC.
16934 lt_prog_compiler_static_GCJ='-non_shared'
16938 lt_prog_compiler_static_GCJ='-non_shared'
16942 lt_prog_compiler_pic_GCJ='-KPIC'
16943 lt_prog_compiler_static_GCJ='-Bstatic'
16944 case $cc_basename in
16945 f77* | f90* | f95*)
16946 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16948 lt_prog_compiler_wl_GCJ='-Wl,';;
16953 lt_prog_compiler_wl_GCJ='-Qoption ld '
16954 lt_prog_compiler_pic_GCJ='-PIC'
16955 lt_prog_compiler_static_GCJ='-Bstatic'
16958 sysv4 | sysv4.2uw2* | sysv4.3*)
16959 lt_prog_compiler_wl_GCJ='-Wl,'
16960 lt_prog_compiler_pic_GCJ='-KPIC'
16961 lt_prog_compiler_static_GCJ='-Bstatic'
16965 if test -d /usr/nec ;then
16966 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16967 lt_prog_compiler_static_GCJ='-Bstatic'
16971 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16972 lt_prog_compiler_wl_GCJ='-Wl,'
16973 lt_prog_compiler_pic_GCJ='-KPIC'
16974 lt_prog_compiler_static_GCJ='-Bstatic'
16978 lt_prog_compiler_wl_GCJ='-Wl,'
16979 lt_prog_compiler_can_build_shared_GCJ=no
16983 lt_prog_compiler_pic_GCJ='-pic'
16984 lt_prog_compiler_static_GCJ='-Bstatic'
16988 lt_prog_compiler_can_build_shared_GCJ=no
16993 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16994 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16997 # Check to make sure the PIC flag actually works.
16999 if test -n "$lt_prog_compiler_pic_GCJ"; then
17001 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17002 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17003 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17004 echo $ECHO_N "(cached) $ECHO_C" >&6
17006 lt_cv_prog_compiler_pic_works_GCJ=no
17007 ac_outfile=conftest.$ac_objext
17008 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17009 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17010 # Insert the option either (1) after the last *FLAGS variable, or
17011 # (2) before a word containing "conftest.", or (3) at the end.
17012 # Note that $ac_compile itself does not contain backslashes and begins
17013 # with a dollar sign (not a hyphen), so the echo should work correctly.
17014 # The option is referenced via a variable to avoid confusing sed.
17015 lt_compile=`echo "$ac_compile" | $SED \
17016 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17017 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17018 -e 's:$: $lt_compiler_flag:'`
17019 (eval echo "\"\$as_me:17019: $lt_compile\"" >&5)
17020 (eval "$lt_compile" 2>conftest.err)
17022 cat conftest.err >&5
17023 echo "$as_me:17023: \$? = $ac_status" >&5
17024 if (exit $ac_status) && test -s "$ac_outfile"; then
17025 # The compiler can only warn and ignore the option if not recognized
17026 # So say no if there are warnings other than the usual output.
17027 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17028 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17029 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17030 lt_cv_prog_compiler_pic_works_GCJ=yes
17036 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17037 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17039 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17040 case $lt_prog_compiler_pic_GCJ in
17042 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17045 lt_prog_compiler_pic_GCJ=
17046 lt_prog_compiler_can_build_shared_GCJ=no
17051 # For platforms which do not support PIC, -DPIC is meaningless:
17053 lt_prog_compiler_pic_GCJ=
17056 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17061 # Check to make sure the static flag actually works.
17063 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17064 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17065 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17066 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17067 echo $ECHO_N "(cached) $ECHO_C" >&6
17069 lt_cv_prog_compiler_static_works_GCJ=no
17070 save_LDFLAGS="$LDFLAGS"
17071 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17072 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17073 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17074 # The linker can only warn and ignore the option if not recognized
17075 # So say no if there are warnings
17076 if test -s conftest.err; then
17077 # Append any errors to the config.log.
17078 cat conftest.err 1>&5
17079 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17080 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17081 if diff conftest.exp conftest.er2 >/dev/null; then
17082 lt_cv_prog_compiler_static_works_GCJ=yes
17085 lt_cv_prog_compiler_static_works_GCJ=yes
17089 LDFLAGS="$save_LDFLAGS"
17092 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17093 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17095 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17098 lt_prog_compiler_static_GCJ=
17102 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17103 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17104 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17105 echo $ECHO_N "(cached) $ECHO_C" >&6
17107 lt_cv_prog_compiler_c_o_GCJ=no
17108 $rm -r conftest 2>/dev/null
17112 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17114 lt_compiler_flag="-o out/conftest2.$ac_objext"
17115 # Insert the option either (1) after the last *FLAGS variable, or
17116 # (2) before a word containing "conftest.", or (3) at the end.
17117 # Note that $ac_compile itself does not contain backslashes and begins
17118 # with a dollar sign (not a hyphen), so the echo should work correctly.
17119 lt_compile=`echo "$ac_compile" | $SED \
17120 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17121 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17122 -e 's:$: $lt_compiler_flag:'`
17123 (eval echo "\"\$as_me:17123: $lt_compile\"" >&5)
17124 (eval "$lt_compile" 2>out/conftest.err)
17126 cat out/conftest.err >&5
17127 echo "$as_me:17127: \$? = $ac_status" >&5
17128 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17130 # The compiler can only warn and ignore the option if not recognized
17131 # So say no if there are warnings
17132 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17133 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17134 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17135 lt_cv_prog_compiler_c_o_GCJ=yes
17140 # SGI C++ compiler will create directory out/ii_files/ for
17141 # template instantiation
17142 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17143 $rm out/* && rmdir out
17149 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17150 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17153 hard_links="nottested"
17154 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17155 # do not overwrite the value of need_locks provided by the user
17156 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17157 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17160 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17162 ln conftest.a conftest.b 2>&5 || hard_links=no
17163 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17164 { echo "$as_me:$LINENO: result: $hard_links" >&5
17165 echo "${ECHO_T}$hard_links" >&6; }
17166 if test "$hard_links" = no; then
17167 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17168 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17175 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17176 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17179 allow_undefined_flag_GCJ=
17180 enable_shared_with_static_runtimes_GCJ=no
17182 archive_expsym_cmds_GCJ=
17183 old_archive_From_new_cmds_GCJ=
17184 old_archive_from_expsyms_cmds_GCJ=
17185 export_dynamic_flag_spec_GCJ=
17186 whole_archive_flag_spec_GCJ=
17187 thread_safe_flag_spec_GCJ=
17188 hardcode_libdir_flag_spec_GCJ=
17189 hardcode_libdir_flag_spec_ld_GCJ=
17190 hardcode_libdir_separator_GCJ=
17191 hardcode_direct_GCJ=no
17192 hardcode_minus_L_GCJ=no
17193 hardcode_shlibpath_var_GCJ=unsupported
17194 link_all_deplibs_GCJ=unknown
17195 hardcode_automatic_GCJ=no
17197 module_expsym_cmds_GCJ=
17198 always_export_symbols_GCJ=no
17199 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17200 # include_expsyms should be a list of space-separated symbols to be *always*
17201 # included in the symbol list
17202 include_expsyms_GCJ=
17203 # exclude_expsyms can be an extended regexp of symbols to exclude
17204 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17205 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17206 # as well as any symbol that contains `d'.
17207 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17208 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17209 # platforms (ab)use it in PIC code, but their linkers get confused if
17210 # the symbol is explicitly referenced. Since portable code cannot
17211 # rely on this symbol name, it's probably fine to never include it in
17212 # preloaded symbol tables.
17213 # Exclude shared library initialization/finalization symbols.
17214 extract_expsyms_cmds=
17215 # Just being paranoid about ensuring that cc_basename is set.
17216 for cc_temp in $compiler""; do
17218 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17219 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17224 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17227 cygwin* | mingw* | pw32*)
17228 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17229 # When not using gcc, we currently assume that we are using
17230 # Microsoft Visual C++.
17231 if test "$GCC" != yes; then
17236 # we just hope/assume this is gcc and not c89 (= MSVC++)
17245 if test "$with_gnu_ld" = yes; then
17246 # If archive_cmds runs LD, not CC, wlarc should be empty
17249 # Set some defaults for GNU ld with shared library support. These
17250 # are reset later if shared libraries are not supported. Putting them
17251 # here allows them to be overridden if necessary.
17252 runpath_var=LD_RUN_PATH
17253 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17254 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17255 # ancient GNU ld didn't support --whole-archive et. al.
17256 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17257 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17259 whole_archive_flag_spec_GCJ=
17261 supports_anon_versioning=no
17262 case `$LD -v 2>/dev/null` in
17263 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17264 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17265 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17266 *\ 2.11.*) ;; # other 2.11 versions
17267 *) supports_anon_versioning=yes ;;
17270 # See if GNU ld supports shared libraries.
17273 # On AIX/PPC, the GNU linker is very broken
17274 if test "$host_cpu" != ia64; then
17278 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17279 *** to be unable to reliably create shared libraries on AIX.
17280 *** Therefore, libtool is disabling shared libraries support. If you
17281 *** really care for shared libraries, you may want to modify your PATH
17282 *** so that a non-GNU linker is found, and then restart.
17289 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)'
17290 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17291 hardcode_minus_L_GCJ=yes
17293 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17294 # that the semantics of dynamic libraries on AmigaOS, at least up
17295 # to version 4, is to share data among multiple programs linked
17296 # with the same dynamic library. Since this doesn't match the
17297 # behavior of shared libraries on other platforms, we can't use
17303 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17304 allow_undefined_flag_GCJ=unsupported
17305 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17306 # support --undefined. This deserves some investigation. FIXME
17307 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17313 cygwin* | mingw* | pw32*)
17314 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17315 # as there is no search path for DLLs.
17316 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17317 allow_undefined_flag_GCJ=unsupported
17318 always_export_symbols_GCJ=no
17319 enable_shared_with_static_runtimes_GCJ=yes
17320 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17322 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17323 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17324 # If the export-symbols file already is a .def file (1st line
17325 # is EXPORTS), use it as is; otherwise, prepend...
17326 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17327 cp $export_symbols $output_objdir/$soname.def;
17329 echo EXPORTS > $output_objdir/$soname.def;
17330 cat $export_symbols >> $output_objdir/$soname.def;
17332 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17339 hardcode_direct_GCJ=no
17340 hardcode_shlibpath_var_GCJ=no
17341 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17342 export_dynamic_flag_spec_GCJ='${wl}-E'
17343 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17344 # Instead, shared libraries are loaded at an image base (0x10000000 by
17345 # default) and relocated if they conflict, which is a slow very memory
17346 # consuming and fragmenting process. To avoid this, we pick a random,
17347 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17348 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17349 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'
17350 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'
17353 gnu* | linux* | k*bsd*-gnu)
17354 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17356 case $cc_basename,$host_cpu in
17357 pgcc*) # Portland Group C compiler
17358 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'
17359 tmp_addflag=' $pic_flag'
17361 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17362 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'
17363 tmp_addflag=' $pic_flag -Mnomain' ;;
17364 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17365 tmp_addflag=' -i_dynamic' ;;
17366 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17367 tmp_addflag=' -i_dynamic -nofor_main' ;;
17368 ifc* | ifort*) # Intel Fortran compiler
17369 tmp_addflag=' -nofor_main' ;;
17371 case `$CC -V 2>&1 | sed 5q` in
17372 *Sun\ C*) # Sun C 5.9
17373 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'
17374 tmp_sharedflag='-G' ;;
17375 *Sun\ F*) # Sun Fortran 8.3
17376 tmp_sharedflag='-G' ;;
17378 tmp_sharedflag='-shared' ;;
17380 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17382 if test $supports_anon_versioning = yes; then
17383 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17384 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17385 $echo "local: *; };" >> $output_objdir/$libname.ver~
17386 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17388 link_all_deplibs_GCJ=no
17394 netbsd* | netbsdelf*-gnu)
17395 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17396 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17399 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17400 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17405 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17409 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17410 *** create shared libraries on Solaris systems. Therefore, libtool
17411 *** is disabling shared libraries support. We urge you to upgrade GNU
17412 *** binutils to release 2.9.1 or newer. Another option is to modify
17413 *** your PATH or compiler configuration so that the native linker is
17414 *** used, and then restart.
17417 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17418 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17419 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17425 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17426 case `$LD -v 2>&1` in
17427 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17431 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17432 *** reliably create shared libraries on SCO systems. Therefore, libtool
17433 *** is disabling shared libraries support. We urge you to upgrade GNU
17434 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17435 *** your PATH or compiler configuration so that the native linker is
17436 *** used, and then restart.
17441 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17442 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17443 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17444 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17453 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17455 hardcode_direct_GCJ=yes
17456 hardcode_shlibpath_var_GCJ=no
17460 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17461 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17462 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17469 if test "$ld_shlibs_GCJ" = no; then
17471 hardcode_libdir_flag_spec_GCJ=
17472 export_dynamic_flag_spec_GCJ=
17473 whole_archive_flag_spec_GCJ=
17476 # PORTME fill in a description of your system's linker (not GNU ld)
17479 allow_undefined_flag_GCJ=unsupported
17480 always_export_symbols_GCJ=yes
17481 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'
17482 # Note: this linker hardcodes the directories in LIBPATH if there
17483 # are no directories specified by -L.
17484 hardcode_minus_L_GCJ=yes
17485 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17486 # Neither direct hardcoding nor static linking is supported with a
17488 hardcode_direct_GCJ=unsupported
17493 if test "$host_cpu" = ia64; then
17494 # On IA64, the linker does run time linking by default, so we don't
17495 # have to do anything special.
17496 aix_use_runtimelinking=no
17497 exp_sym_flag='-Bexport'
17500 # If we're using GNU nm, then we don't want the "-C" option.
17501 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17502 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17503 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'
17505 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'
17507 aix_use_runtimelinking=no
17509 # Test if we are trying to use run time linking or normal
17510 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17511 # need to do runtime linking.
17512 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17513 for ld_flag in $LDFLAGS; do
17514 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17515 aix_use_runtimelinking=yes
17522 exp_sym_flag='-bexport'
17523 no_entry_flag='-bnoentry'
17526 # When large executables or shared objects are built, AIX ld can
17527 # have problems creating the table of contents. If linking a library
17528 # or program results in "error TOC overflow" add -mminimal-toc to
17529 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17530 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17532 archive_cmds_GCJ=''
17533 hardcode_direct_GCJ=yes
17534 hardcode_libdir_separator_GCJ=':'
17535 link_all_deplibs_GCJ=yes
17537 if test "$GCC" = yes; then
17538 case $host_os in aix4.[012]|aix4.[012].*)
17539 # We only want to do this on AIX 4.2 and lower, the check
17540 # below for broken collect2 doesn't work under 4.3+
17541 collect2name=`${CC} -print-prog-name=collect2`
17542 if test -f "$collect2name" && \
17543 strings "$collect2name" | grep resolve_lib_name >/dev/null
17545 # We have reworked collect2
17548 # We have old collect2
17549 hardcode_direct_GCJ=unsupported
17550 # It fails to find uninstalled libraries when the uninstalled
17551 # path is not listed in the libpath. Setting hardcode_minus_L
17552 # to unsupported forces relinking
17553 hardcode_minus_L_GCJ=yes
17554 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17555 hardcode_libdir_separator_GCJ=
17559 shared_flag='-shared'
17560 if test "$aix_use_runtimelinking" = yes; then
17561 shared_flag="$shared_flag "'${wl}-G'
17565 if test "$host_cpu" = ia64; then
17566 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17567 # chokes on -Wl,-G. The following line is correct:
17570 if test "$aix_use_runtimelinking" = yes; then
17571 shared_flag='${wl}-G'
17573 shared_flag='${wl}-bM:SRE'
17578 # It seems that -bexpall does not export symbols beginning with
17579 # underscore (_), so it is better to generate a list of symbols to export.
17580 always_export_symbols_GCJ=yes
17581 if test "$aix_use_runtimelinking" = yes; then
17582 # Warning - without using the other runtime loading flags (-brtl),
17583 # -berok will link without error, but may produce a broken library.
17584 allow_undefined_flag_GCJ='-berok'
17585 # Determine the default libpath from the value encoded in an empty executable.
17586 cat >conftest.$ac_ext <<_ACEOF
17589 cat confdefs.h >>conftest.$ac_ext
17590 cat >>conftest.$ac_ext <<_ACEOF
17591 /* end confdefs.h. */
17601 rm -f conftest.$ac_objext conftest$ac_exeext
17602 if { (ac_try="$ac_link"
17603 case "(($ac_try" in
17604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17605 *) ac_try_echo=$ac_try;;
17607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17608 (eval "$ac_link") 2>conftest.er1
17610 grep -v '^ *+' conftest.er1 >conftest.err
17612 cat conftest.err >&5
17613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17614 (exit $ac_status); } && {
17615 test -z "$ac_c_werror_flag" ||
17616 test ! -s conftest.err
17617 } && test -s conftest$ac_exeext &&
17618 $as_test_x conftest$ac_exeext; then
17620 lt_aix_libpath_sed='
17621 /Import File Strings/,/^$/ {
17627 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17628 # Check for a 64-bit object if we didn't find anything.
17629 if test -z "$aix_libpath"; then
17630 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17633 echo "$as_me: failed program was:" >&5
17634 sed 's/^/| /' conftest.$ac_ext >&5
17639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17640 conftest$ac_exeext conftest.$ac_ext
17641 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17643 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17644 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"
17646 if test "$host_cpu" = ia64; then
17647 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17648 allow_undefined_flag_GCJ="-z nodefs"
17649 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"
17651 # Determine the default libpath from the value encoded in an empty executable.
17652 cat >conftest.$ac_ext <<_ACEOF
17655 cat confdefs.h >>conftest.$ac_ext
17656 cat >>conftest.$ac_ext <<_ACEOF
17657 /* end confdefs.h. */
17667 rm -f conftest.$ac_objext conftest$ac_exeext
17668 if { (ac_try="$ac_link"
17669 case "(($ac_try" in
17670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17671 *) ac_try_echo=$ac_try;;
17673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17674 (eval "$ac_link") 2>conftest.er1
17676 grep -v '^ *+' conftest.er1 >conftest.err
17678 cat conftest.err >&5
17679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17680 (exit $ac_status); } && {
17681 test -z "$ac_c_werror_flag" ||
17682 test ! -s conftest.err
17683 } && test -s conftest$ac_exeext &&
17684 $as_test_x conftest$ac_exeext; then
17686 lt_aix_libpath_sed='
17687 /Import File Strings/,/^$/ {
17693 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17694 # Check for a 64-bit object if we didn't find anything.
17695 if test -z "$aix_libpath"; then
17696 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17699 echo "$as_me: failed program was:" >&5
17700 sed 's/^/| /' conftest.$ac_ext >&5
17705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17706 conftest$ac_exeext conftest.$ac_ext
17707 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17709 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17710 # Warning - without using the other run time loading flags,
17711 # -berok will link without error, but may produce a broken library.
17712 no_undefined_flag_GCJ=' ${wl}-bernotok'
17713 allow_undefined_flag_GCJ=' ${wl}-berok'
17714 # Exported symbols can be pulled into shared objects from archives
17715 whole_archive_flag_spec_GCJ='$convenience'
17716 archive_cmds_need_lc_GCJ=yes
17717 # This is similar to how AIX traditionally builds its shared libraries.
17718 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'
17724 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)'
17725 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17726 hardcode_minus_L_GCJ=yes
17727 # see comment about different semantics on the GNU ld section
17732 export_dynamic_flag_spec_GCJ=-rdynamic
17735 cygwin* | mingw* | pw32*)
17736 # When not using gcc, we currently assume that we are using
17737 # Microsoft Visual C++.
17738 # hardcode_libdir_flag_spec is actually meaningless, as there is
17739 # no search path for DLLs.
17740 hardcode_libdir_flag_spec_GCJ=' '
17741 allow_undefined_flag_GCJ=unsupported
17742 # Tell ltmain to make .lib files, not .a files.
17744 # Tell ltmain to make .dll files, not .so files.
17746 # FIXME: Setting linknames here is a bad hack.
17747 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17748 # The linker will automatically build a .lib file if we build a DLL.
17749 old_archive_From_new_cmds_GCJ='true'
17750 # FIXME: Should let the user specify the lib program.
17751 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17752 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17753 enable_shared_with_static_runtimes_GCJ=yes
17756 darwin* | rhapsody*)
17758 rhapsody* | darwin1.[012])
17759 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17762 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17763 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17765 case ${MACOSX_DEPLOYMENT_TARGET} in
17767 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17770 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17776 archive_cmds_need_lc_GCJ=no
17777 hardcode_direct_GCJ=no
17778 hardcode_automatic_GCJ=yes
17779 hardcode_shlibpath_var_GCJ=unsupported
17780 whole_archive_flag_spec_GCJ=''
17781 link_all_deplibs_GCJ=yes
17782 if test "$GCC" = yes ; then
17783 output_verbose_link_cmd='echo'
17784 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}"
17785 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17786 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}"
17787 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}"
17789 case $cc_basename in
17791 output_verbose_link_cmd='echo'
17792 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17793 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17794 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17795 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}'
17796 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}'
17806 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17807 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17808 hardcode_shlibpath_var_GCJ=no
17815 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17816 # support. Future versions do this automatically, but an explicit c++rt0.o
17817 # does not break anything, and helps significantly (at the cost of a little
17820 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17821 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17822 hardcode_direct_GCJ=yes
17823 hardcode_shlibpath_var_GCJ=no
17826 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17828 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17829 hardcode_direct_GCJ=yes
17830 hardcode_minus_L_GCJ=yes
17831 hardcode_shlibpath_var_GCJ=no
17834 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17835 freebsd* | dragonfly*)
17836 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17837 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17838 hardcode_direct_GCJ=yes
17839 hardcode_shlibpath_var_GCJ=no
17843 if test "$GCC" = yes; then
17844 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'
17846 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'
17848 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17849 hardcode_libdir_separator_GCJ=:
17850 hardcode_direct_GCJ=yes
17852 # hardcode_minus_L: Not really in the search PATH,
17853 # but as the default location of the library.
17854 hardcode_minus_L_GCJ=yes
17855 export_dynamic_flag_spec_GCJ='${wl}-E'
17859 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17860 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17862 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17864 if test "$with_gnu_ld" = no; then
17865 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17866 hardcode_libdir_separator_GCJ=:
17868 hardcode_direct_GCJ=yes
17869 export_dynamic_flag_spec_GCJ='${wl}-E'
17871 # hardcode_minus_L: Not really in the search PATH,
17872 # but as the default location of the library.
17873 hardcode_minus_L_GCJ=yes
17878 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17881 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17884 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17887 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17893 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17896 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17899 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17903 if test "$with_gnu_ld" = no; then
17904 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17905 hardcode_libdir_separator_GCJ=:
17909 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17910 hardcode_direct_GCJ=no
17911 hardcode_shlibpath_var_GCJ=no
17914 hardcode_direct_GCJ=yes
17915 export_dynamic_flag_spec_GCJ='${wl}-E'
17917 # hardcode_minus_L: Not really in the search PATH,
17918 # but as the default location of the library.
17919 hardcode_minus_L_GCJ=yes
17925 irix5* | irix6* | nonstopux*)
17926 if test "$GCC" = yes; then
17927 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'
17929 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'
17930 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17932 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17933 hardcode_libdir_separator_GCJ=:
17934 link_all_deplibs_GCJ=yes
17937 netbsd* | netbsdelf*-gnu)
17938 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17939 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17941 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17943 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17944 hardcode_direct_GCJ=yes
17945 hardcode_shlibpath_var_GCJ=no
17949 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17950 hardcode_direct_GCJ=yes
17951 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17952 hardcode_libdir_separator_GCJ=:
17953 hardcode_shlibpath_var_GCJ=no
17957 if test -f /usr/libexec/ld.so; then
17958 hardcode_direct_GCJ=yes
17959 hardcode_shlibpath_var_GCJ=no
17960 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17961 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17962 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17963 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17964 export_dynamic_flag_spec_GCJ='${wl}-E'
17967 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17968 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17969 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17972 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17973 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17983 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17984 hardcode_minus_L_GCJ=yes
17985 allow_undefined_flag_GCJ=unsupported
17986 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'
17987 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17991 if test "$GCC" = yes; then
17992 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17993 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'
17995 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17996 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'
17998 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17999 hardcode_libdir_separator_GCJ=:
18002 osf4* | osf5*) # as osf3* with the addition of -msym flag
18003 if test "$GCC" = yes; then
18004 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18005 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'
18006 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18008 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18009 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'
18010 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~
18011 $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'
18013 # Both c and cxx compiler support -rpath directly
18014 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18016 hardcode_libdir_separator_GCJ=:
18020 no_undefined_flag_GCJ=' -z text'
18021 if test "$GCC" = yes; then
18023 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18024 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18025 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18028 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18029 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18030 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18032 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18033 hardcode_shlibpath_var_GCJ=no
18035 solaris2.[0-5] | solaris2.[0-5].*) ;;
18037 # The compiler driver will combine and reorder linker options,
18038 # but understands `-z linker_flag'. GCC discards it without `$wl',
18039 # but is careful enough not to reorder.
18040 # Supported since Solaris 2.6 (maybe 2.5.1?)
18041 if test "$GCC" = yes; then
18042 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18044 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18048 link_all_deplibs_GCJ=yes
18052 if test "x$host_vendor" = xsequent; then
18053 # Use $CC to link under sequent, because it throws in some extra .o
18054 # files that make .init and .fini sections work.
18055 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18057 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18059 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18060 hardcode_direct_GCJ=yes
18061 hardcode_minus_L_GCJ=yes
18062 hardcode_shlibpath_var_GCJ=no
18066 case $host_vendor in
18068 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18069 hardcode_direct_GCJ=yes # is this really true???
18072 ## LD is ld it makes a PLAMLIB
18073 ## CC just makes a GrossModule.
18074 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18075 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18076 hardcode_direct_GCJ=no
18079 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18080 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18083 runpath_var='LD_RUN_PATH'
18084 hardcode_shlibpath_var_GCJ=no
18088 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18089 hardcode_shlibpath_var_GCJ=no
18090 export_dynamic_flag_spec_GCJ='-Bexport'
18094 if test -d /usr/nec; then
18095 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18096 hardcode_shlibpath_var_GCJ=no
18097 runpath_var=LD_RUN_PATH
18098 hardcode_runpath_var=yes
18103 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18104 no_undefined_flag_GCJ='${wl}-z,text'
18105 archive_cmds_need_lc_GCJ=no
18106 hardcode_shlibpath_var_GCJ=no
18107 runpath_var='LD_RUN_PATH'
18109 if test "$GCC" = yes; then
18110 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18111 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18113 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18114 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18118 sysv5* | sco3.2v5* | sco5v6*)
18119 # Note: We can NOT use -z defs as we might desire, because we do not
18120 # link with -lc, and that would cause any symbols used from libc to
18121 # always be unresolved, which means just about no library would
18122 # ever link correctly. If we're not using GNU ld we use -z text
18123 # though, which does catch some bad symbols but isn't as heavy-handed
18125 no_undefined_flag_GCJ='${wl}-z,text'
18126 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18127 archive_cmds_need_lc_GCJ=no
18128 hardcode_shlibpath_var_GCJ=no
18129 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18130 hardcode_libdir_separator_GCJ=':'
18131 link_all_deplibs_GCJ=yes
18132 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18133 runpath_var='LD_RUN_PATH'
18135 if test "$GCC" = yes; then
18136 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18137 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18139 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18140 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18145 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18146 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18147 hardcode_shlibpath_var_GCJ=no
18156 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18157 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18158 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18161 # Do we need to explicitly link libc?
18163 case "x$archive_cmds_need_lc_GCJ" in
18165 # Assume -lc should be added
18166 archive_cmds_need_lc_GCJ=yes
18168 if test "$enable_shared" = yes && test "$GCC" = yes; then
18169 case $archive_cmds_GCJ in
18171 # FIXME: we may have to deal with multi-command sequences.
18174 # Test whether the compiler implicitly links with -lc since on some
18175 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18176 # to ld, don't add -lc before -lgcc.
18177 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18178 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18180 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18183 (eval $ac_compile) 2>&5
18185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18186 (exit $ac_status); } 2>conftest.err; then
18189 libobjs=conftest.$ac_objext
18191 wl=$lt_prog_compiler_wl_GCJ
18192 pic_flag=$lt_prog_compiler_pic_GCJ
18198 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18199 allow_undefined_flag_GCJ=
18200 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18201 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18204 (exit $ac_status); }
18206 archive_cmds_need_lc_GCJ=no
18208 archive_cmds_need_lc_GCJ=yes
18210 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18212 cat conftest.err 1>&5
18215 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18216 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18223 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18224 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18225 library_names_spec=
18226 libname_spec='lib$name'
18230 postuninstall_cmds=
18234 shlibpath_overrides_runpath=unknown
18236 dynamic_linker="$host_os ld.so"
18237 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18239 need_lib_prefix=unknown
18240 hardcode_into_libs=no
18242 # when you set need_version to no, make sure it does not cause -set_version
18243 # flags to be left without arguments
18244 need_version=unknown
18249 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18250 shlibpath_var=LIBPATH
18252 # AIX 3 has no versioning support, so we append a major version to the name.
18253 soname_spec='${libname}${release}${shared_ext}$major'
18260 hardcode_into_libs=yes
18261 if test "$host_cpu" = ia64; then
18262 # AIX 5 supports IA64
18263 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18264 shlibpath_var=LD_LIBRARY_PATH
18266 # With GCC up to 2.95.x, collect2 would create an import file
18267 # for dependence libraries. The import file would start with
18268 # the line `#! .'. This would cause the generated library to
18269 # depend on `.', always an invalid library. This was fixed in
18270 # development snapshots of GCC prior to 3.0.
18272 aix4 | aix4.[01] | aix4.[01].*)
18273 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18275 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18278 can_build_shared=no
18282 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18283 # soname into executable. Probably we can add versioning support to
18284 # collect2, so additional links can be useful in future.
18285 if test "$aix_use_runtimelinking" = yes; then
18286 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18287 # instead of lib<name>.a to let people know that these are not
18288 # typical AIX shared libraries.
18289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18291 # We preserve .a as extension for shared libraries through AIX4.2
18292 # and later when we are not doing run time linking.
18293 library_names_spec='${libname}${release}.a $libname.a'
18294 soname_spec='${libname}${release}${shared_ext}$major'
18296 shlibpath_var=LIBPATH
18301 library_names_spec='$libname.ixlibrary $libname.a'
18302 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18303 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'
18307 library_names_spec='${libname}${shared_ext}'
18308 dynamic_linker="$host_os ld.so"
18309 shlibpath_var=LIBRARY_PATH
18315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18316 soname_spec='${libname}${release}${shared_ext}$major'
18317 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18318 shlibpath_var=LD_LIBRARY_PATH
18319 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18320 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18321 # the default ld.so.conf also contains /usr/contrib/lib and
18322 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18323 # libtool to hard-code these into programs
18326 cygwin* | mingw* | pw32*)
18327 version_type=windows
18332 case $GCC,$host_os in
18333 yes,cygwin* | yes,mingw* | yes,pw32*)
18334 library_names_spec='$libname.dll.a'
18335 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18336 postinstall_cmds='base_file=`basename \${file}`~
18337 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18338 dldir=$destdir/`dirname \$dlpath`~
18339 test -d \$dldir || mkdir -p \$dldir~
18340 $install_prog $dir/$dlname \$dldir/$dlname~
18341 chmod a+x \$dldir/$dlname'
18342 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18343 dlpath=$dir/\$dldll~
18345 shlibpath_overrides_runpath=yes
18349 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18350 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18351 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18354 # MinGW DLLs use traditional 'lib' prefix
18355 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18356 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18357 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18358 # It is most probably a Windows format PATH printed by
18359 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18360 # path with ; separators, and with drive letters. We can handle the
18361 # drive letters (cygwin fileutils understands them), so leave them,
18362 # especially as we might pass files found there to a mingw objdump,
18363 # which wouldn't understand a cygwinified path. Ahh.
18364 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18366 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18370 # pw32 DLLs use 'pw' prefix rather than 'lib'
18371 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18377 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18380 dynamic_linker='Win32 ld.exe'
18381 # FIXME: first we should search . and the directory the executable is in
18385 darwin* | rhapsody*)
18386 dynamic_linker="$host_os dyld"
18387 version_type=darwin
18390 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18391 soname_spec='${libname}${release}${major}$shared_ext'
18392 shlibpath_overrides_runpath=yes
18393 shlibpath_var=DYLD_LIBRARY_PATH
18394 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18396 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18404 soname_spec='${libname}${release}${shared_ext}$major'
18405 shlibpath_var=LD_LIBRARY_PATH
18412 freebsd* | dragonfly*)
18413 # DragonFly does not have aout. When/if they implement a new
18414 # versioning mechanism, adjust this.
18415 if test -x /usr/bin/objformat; then
18416 objformat=`/usr/bin/objformat`
18419 freebsd[123]*) objformat=aout ;;
18420 *) objformat=elf ;;
18423 version_type=freebsd-$objformat
18424 case $version_type in
18426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18431 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18435 shlibpath_var=LD_LIBRARY_PATH
18438 shlibpath_overrides_runpath=yes
18440 freebsd3.[01]* | freebsdelf3.[01]*)
18441 shlibpath_overrides_runpath=yes
18442 hardcode_into_libs=yes
18444 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18445 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18446 shlibpath_overrides_runpath=no
18447 hardcode_into_libs=yes
18449 *) # from 4.6 on, and DragonFly
18450 shlibpath_overrides_runpath=yes
18451 hardcode_into_libs=yes
18460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18461 soname_spec='${libname}${release}${shared_ext}$major'
18462 shlibpath_var=LD_LIBRARY_PATH
18463 hardcode_into_libs=yes
18466 hpux9* | hpux10* | hpux11*)
18467 # Give a soname corresponding to the major version so that dld.sl refuses to
18468 # link against other versions.
18475 hardcode_into_libs=yes
18476 dynamic_linker="$host_os dld.so"
18477 shlibpath_var=LD_LIBRARY_PATH
18478 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18480 soname_spec='${libname}${release}${shared_ext}$major'
18481 if test "X$HPUX_IA64_MODE" = X32; then
18482 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18484 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18486 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18490 hardcode_into_libs=yes
18491 dynamic_linker="$host_os dld.sl"
18492 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18493 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18495 soname_spec='${libname}${release}${shared_ext}$major'
18496 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18497 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18501 dynamic_linker="$host_os dld.sl"
18502 shlibpath_var=SHLIB_PATH
18503 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18505 soname_spec='${libname}${release}${shared_ext}$major'
18508 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18509 postinstall_cmds='chmod 555 $lib'
18516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18517 soname_spec='${libname}${release}${shared_ext}$major'
18518 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18519 shlibpath_var=LD_LIBRARY_PATH
18520 shlibpath_overrides_runpath=no
18521 hardcode_into_libs=yes
18524 irix5* | irix6* | nonstopux*)
18526 nonstopux*) version_type=nonstopux ;;
18528 if test "$lt_cv_prog_gnu_ld" = yes; then
18536 soname_spec='${libname}${release}${shared_ext}$major'
18537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18539 irix5* | nonstopux*)
18540 libsuff= shlibsuff=
18543 case $LD in # libtool.m4 will add one of these switches to LD
18544 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18545 libsuff= shlibsuff= libmagic=32-bit;;
18546 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18547 libsuff=32 shlibsuff=N32 libmagic=N32;;
18548 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18549 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18550 *) libsuff= shlibsuff= libmagic=never-match;;
18554 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18555 shlibpath_overrides_runpath=no
18556 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18557 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18558 hardcode_into_libs=yes
18561 # No shared lib support for Linux oldld, aout, or coff.
18562 linux*oldld* | linux*aout* | linux*coff*)
18566 # This must be Linux ELF.
18567 linux* | k*bsd*-gnu)
18571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18572 soname_spec='${libname}${release}${shared_ext}$major'
18573 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18574 shlibpath_var=LD_LIBRARY_PATH
18575 shlibpath_overrides_runpath=no
18576 # This implies no fast_install, which is unacceptable.
18577 # Some rework will be needed to allow for fast_install
18578 # before this can be enabled.
18579 hardcode_into_libs=yes
18581 # Append ld.so.conf contents to the search path
18582 if test -f /etc/ld.so.conf; then
18583 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' ' '`
18584 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18587 # We used to test for /lib/ld.so.1 and disable shared libraries on
18588 # powerpc, because MkLinux only supported shared libraries with the
18589 # GNU dynamic linker. Since this was broken with cross compilers,
18590 # most powerpc-linux boxes support dynamic linking these days and
18591 # people can always --disable-shared, the test was removed, and we
18592 # assume the GNU/Linux dynamic linker is in use.
18593 dynamic_linker='GNU/Linux ld.so'
18600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18601 soname_spec='${libname}${release}${shared_ext}$major'
18602 shlibpath_var=LD_LIBRARY_PATH
18603 shlibpath_overrides_runpath=no
18604 hardcode_into_libs=yes
18605 dynamic_linker='NetBSD ld.elf_so'
18612 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18614 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18615 dynamic_linker='NetBSD (a.out) ld.so'
18617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18618 soname_spec='${libname}${release}${shared_ext}$major'
18619 dynamic_linker='NetBSD ld.elf_so'
18621 shlibpath_var=LD_LIBRARY_PATH
18622 shlibpath_overrides_runpath=yes
18623 hardcode_into_libs=yes
18628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18629 shlibpath_var=LD_LIBRARY_PATH
18630 shlibpath_overrides_runpath=yes
18637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18638 soname_spec='${libname}${release}${shared_ext}$major'
18639 shlibpath_var=LD_LIBRARY_PATH
18640 shlibpath_overrides_runpath=yes
18645 sys_lib_dlsearch_path_spec="/usr/lib"
18647 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18649 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18650 *) need_version=no ;;
18652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18653 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18654 shlibpath_var=LD_LIBRARY_PATH
18655 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18657 openbsd2.[89] | openbsd2.[89].*)
18658 shlibpath_overrides_runpath=no
18661 shlibpath_overrides_runpath=yes
18665 shlibpath_overrides_runpath=yes
18670 libname_spec='$name'
18673 library_names_spec='$libname${shared_ext} $libname.a'
18674 dynamic_linker='OS/2 ld.exe'
18675 shlibpath_var=LIBPATH
18678 osf3* | osf4* | osf5*)
18682 soname_spec='${libname}${release}${shared_ext}$major'
18683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18684 shlibpath_var=LD_LIBRARY_PATH
18685 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18686 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18698 soname_spec='${libname}${release}${shared_ext}$major'
18699 shlibpath_var=LD_LIBRARY_PATH
18700 shlibpath_overrides_runpath=yes
18701 hardcode_into_libs=yes
18702 # ldd complains unless libraries are executable
18703 postinstall_cmds='chmod +x $lib'
18708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18709 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18710 shlibpath_var=LD_LIBRARY_PATH
18711 shlibpath_overrides_runpath=yes
18712 if test "$with_gnu_ld" = yes; then
18720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18721 soname_spec='${libname}${release}${shared_ext}$major'
18722 shlibpath_var=LD_LIBRARY_PATH
18723 case $host_vendor in
18725 shlibpath_overrides_runpath=no
18727 export_dynamic_flag_spec='${wl}-Blargedynsym'
18728 runpath_var=LD_RUN_PATH
18736 shlibpath_overrides_runpath=no
18737 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18743 if test -d /usr/nec ;then
18745 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18746 soname_spec='$libname${shared_ext}.$major'
18747 shlibpath_var=LD_LIBRARY_PATH
18751 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18752 version_type=freebsd-elf
18755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18756 soname_spec='${libname}${release}${shared_ext}$major'
18757 shlibpath_var=LD_LIBRARY_PATH
18758 hardcode_into_libs=yes
18759 if test "$with_gnu_ld" = yes; then
18760 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18761 shlibpath_overrides_runpath=no
18763 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18764 shlibpath_overrides_runpath=yes
18767 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18771 sys_lib_dlsearch_path_spec='/usr/lib'
18776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18777 soname_spec='${libname}${release}${shared_ext}$major'
18778 shlibpath_var=LD_LIBRARY_PATH
18785 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18786 echo "${ECHO_T}$dynamic_linker" >&6; }
18787 test "$dynamic_linker" = no && can_build_shared=no
18789 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18790 echo $ECHO_N "(cached) $ECHO_C" >&6
18792 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18795 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18796 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18797 echo $ECHO_N "(cached) $ECHO_C" >&6
18799 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18802 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18804 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18805 if test "$GCC" = yes; then
18806 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18809 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18810 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18811 hardcode_action_GCJ=
18812 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18813 test -n "$runpath_var_GCJ" || \
18814 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18816 # We can hardcode non-existant directories.
18817 if test "$hardcode_direct_GCJ" != no &&
18818 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18819 # have to relink, otherwise we might link with an installed library
18820 # when we should be linking with a yet-to-be-installed one
18821 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18822 test "$hardcode_minus_L_GCJ" != no; then
18823 # Linking always hardcodes the temporary library directory.
18824 hardcode_action_GCJ=relink
18826 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18827 hardcode_action_GCJ=immediate
18830 # We cannot hardcode anything, or else we can only hardcode existing
18832 hardcode_action_GCJ=unsupported
18834 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18835 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18837 if test "$hardcode_action_GCJ" = relink; then
18838 # Fast installation is not supported
18839 enable_fast_install=no
18840 elif test "$shlibpath_overrides_runpath" = yes ||
18841 test "$enable_shared" = no; then
18842 # Fast installation is not necessary
18843 enable_fast_install=needless
18847 # The else clause should only fire when bootstrapping the
18848 # libtool distribution, otherwise you forgot to ship ltmain.sh
18849 # with your package, and you will get complaints that there are
18850 # no rules to generate ltmain.sh.
18851 if test -f "$ltmain"; then
18852 # See if we are running on zsh, and set the options which allow our commands through
18853 # without removal of \ escapes.
18854 if test -n "${ZSH_VERSION+set}" ; then
18855 setopt NO_GLOB_SUBST
18857 # Now quote all the things that may contain metacharacters while being
18858 # careful not to overquote the AC_SUBSTed values. We take copies of the
18859 # variables and quote the copies for generation of the libtool script.
18860 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18862 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18863 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18864 deplibs_check_method reload_flag reload_cmds need_locks \
18865 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18866 lt_cv_sys_global_symbol_to_c_name_address \
18867 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18868 old_postinstall_cmds old_postuninstall_cmds \
18872 lt_prog_compiler_wl_GCJ \
18873 lt_prog_compiler_pic_GCJ \
18874 lt_prog_compiler_static_GCJ \
18875 lt_prog_compiler_no_builtin_flag_GCJ \
18876 export_dynamic_flag_spec_GCJ \
18877 thread_safe_flag_spec_GCJ \
18878 whole_archive_flag_spec_GCJ \
18879 enable_shared_with_static_runtimes_GCJ \
18880 old_archive_cmds_GCJ \
18881 old_archive_from_new_cmds_GCJ \
18882 predep_objects_GCJ \
18883 postdep_objects_GCJ \
18886 compiler_lib_search_path_GCJ \
18887 compiler_lib_search_dirs_GCJ \
18889 archive_expsym_cmds_GCJ \
18890 postinstall_cmds_GCJ \
18891 postuninstall_cmds_GCJ \
18892 old_archive_from_expsyms_cmds_GCJ \
18893 allow_undefined_flag_GCJ \
18894 no_undefined_flag_GCJ \
18895 export_symbols_cmds_GCJ \
18896 hardcode_libdir_flag_spec_GCJ \
18897 hardcode_libdir_flag_spec_ld_GCJ \
18898 hardcode_libdir_separator_GCJ \
18899 hardcode_automatic_GCJ \
18901 module_expsym_cmds_GCJ \
18902 lt_cv_prog_compiler_c_o_GCJ \
18903 fix_srcfile_path_GCJ \
18904 exclude_expsyms_GCJ \
18905 include_expsyms_GCJ; do
18908 old_archive_cmds_GCJ | \
18909 old_archive_from_new_cmds_GCJ | \
18910 archive_cmds_GCJ | \
18911 archive_expsym_cmds_GCJ | \
18912 module_cmds_GCJ | \
18913 module_expsym_cmds_GCJ | \
18914 old_archive_from_expsyms_cmds_GCJ | \
18915 export_symbols_cmds_GCJ | \
18916 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18917 postinstall_cmds | postuninstall_cmds | \
18918 old_postinstall_cmds | old_postuninstall_cmds | \
18919 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18920 # Double-quote double-evaled strings.
18921 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18924 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18930 *'\$0 --fallback-echo"')
18931 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18937 cat <<__EOF__ >> "$cfgfile"
18938 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18940 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18942 # Shell to use when invoking shell scripts.
18945 # Whether or not to build shared libraries.
18946 build_libtool_libs=$enable_shared
18948 # Whether or not to build static libraries.
18949 build_old_libs=$enable_static
18951 # Whether or not to add -lc for building shared libraries.
18952 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18954 # Whether or not to disallow shared libs when runtime libs are static
18955 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18957 # Whether or not to optimize for fast installation.
18958 fast_install=$enable_fast_install
18961 host_alias=$host_alias
18965 # The build system.
18966 build_alias=$build_alias
18970 # An echo program that does not interpret backslashes.
18975 AR_FLAGS=$lt_AR_FLAGS
18980 # LTCC compiler flags.
18981 LTCFLAGS=$lt_LTCFLAGS
18983 # A language-specific compiler.
18984 CC=$lt_compiler_GCJ
18986 # Is the compiler the GNU C compiler?
18992 # The linker used to build libraries.
18995 # Whether we need hard or soft links.
18998 # A BSD-compatible nm program.
19001 # A symbol stripping program
19004 # Used to examine libraries when file_magic_cmd begins "file"
19005 MAGIC_CMD=$MAGIC_CMD
19007 # Used on cygwin: DLL creation program.
19010 # Used on cygwin: object dumper.
19013 # Used on cygwin: assembler.
19016 # The name of the directory that contains temporary libtool files.
19019 # How to create reloadable object files.
19020 reload_flag=$lt_reload_flag
19021 reload_cmds=$lt_reload_cmds
19023 # How to pass a linker flag through the compiler.
19024 wl=$lt_lt_prog_compiler_wl_GCJ
19026 # Object file suffix (normally "o").
19027 objext="$ac_objext"
19029 # Old archive suffix (normally "a").
19032 # Shared library suffix (normally ".so").
19033 shrext_cmds='$shrext_cmds'
19035 # Executable file suffix (normally "").
19038 # Additional compiler flags for building library objects.
19039 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19042 # What is the maximum length of a command?
19043 max_cmd_len=$lt_cv_sys_max_cmd_len
19045 # Does compiler simultaneously support -c and -o options?
19046 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19048 # Must we lock files when doing compilation?
19049 need_locks=$lt_need_locks
19051 # Do we need the lib prefix for modules?
19052 need_lib_prefix=$need_lib_prefix
19054 # Do we need a version for libraries?
19055 need_version=$need_version
19057 # Whether dlopen is supported.
19058 dlopen_support=$enable_dlopen
19060 # Whether dlopen of programs is supported.
19061 dlopen_self=$enable_dlopen_self
19063 # Whether dlopen of statically linked programs is supported.
19064 dlopen_self_static=$enable_dlopen_self_static
19066 # Compiler flag to prevent dynamic linking.
19067 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19069 # Compiler flag to turn off builtin functions.
19070 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19072 # Compiler flag to allow reflexive dlopens.
19073 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19075 # Compiler flag to generate shared objects directly from archives.
19076 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19078 # Compiler flag to generate thread-safe objects.
19079 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19081 # Library versioning type.
19082 version_type=$version_type
19084 # Format of library name prefix.
19085 libname_spec=$lt_libname_spec
19087 # List of archive names. First name is the real one, the rest are links.
19088 # The last name is the one that the linker finds with -lNAME.
19089 library_names_spec=$lt_library_names_spec
19091 # The coded name of the library, if different from the real name.
19092 soname_spec=$lt_soname_spec
19094 # Commands used to build and install an old-style archive.
19096 old_archive_cmds=$lt_old_archive_cmds_GCJ
19097 old_postinstall_cmds=$lt_old_postinstall_cmds
19098 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19100 # Create an old-style archive from a shared archive.
19101 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19103 # Create a temporary old-style archive to link instead of a shared archive.
19104 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19106 # Commands used to build and install a shared archive.
19107 archive_cmds=$lt_archive_cmds_GCJ
19108 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19109 postinstall_cmds=$lt_postinstall_cmds
19110 postuninstall_cmds=$lt_postuninstall_cmds
19112 # Commands used to build a loadable module (assumed same as above if empty)
19113 module_cmds=$lt_module_cmds_GCJ
19114 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19116 # Commands to strip libraries.
19117 old_striplib=$lt_old_striplib
19118 striplib=$lt_striplib
19120 # Dependencies to place before the objects being linked to create a
19122 predep_objects=$lt_predep_objects_GCJ
19124 # Dependencies to place after the objects being linked to create a
19126 postdep_objects=$lt_postdep_objects_GCJ
19128 # Dependencies to place before the objects being linked to create a
19130 predeps=$lt_predeps_GCJ
19132 # Dependencies to place after the objects being linked to create a
19134 postdeps=$lt_postdeps_GCJ
19136 # The directories searched by this compiler when creating a shared
19138 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19140 # The library search path used internally by the compiler when linking
19141 # a shared library.
19142 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19144 # Method to check whether dependent libraries are shared objects.
19145 deplibs_check_method=$lt_deplibs_check_method
19147 # Command to use when deplibs_check_method == file_magic.
19148 file_magic_cmd=$lt_file_magic_cmd
19150 # Flag that allows shared libraries with undefined symbols to be built.
19151 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19153 # Flag that forces no undefined symbols.
19154 no_undefined_flag=$lt_no_undefined_flag_GCJ
19156 # Commands used to finish a libtool library installation in a directory.
19157 finish_cmds=$lt_finish_cmds
19159 # Same as above, but a single script fragment to be evaled but not shown.
19160 finish_eval=$lt_finish_eval
19162 # Take the output of nm and produce a listing of raw symbols and C names.
19163 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19165 # Transform the output of nm in a proper C declaration
19166 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19168 # Transform the output of nm in a C name address pair
19169 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19171 # This is the shared library runtime path variable.
19172 runpath_var=$runpath_var
19174 # This is the shared library path variable.
19175 shlibpath_var=$shlibpath_var
19177 # Is shlibpath searched before the hard-coded library search path?
19178 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19180 # How to hardcode a shared library path into an executable.
19181 hardcode_action=$hardcode_action_GCJ
19183 # Whether we should hardcode library paths into libraries.
19184 hardcode_into_libs=$hardcode_into_libs
19186 # Flag to hardcode \$libdir into a binary during linking.
19187 # This must work even if \$libdir does not exist.
19188 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19190 # If ld is used when linking, flag to hardcode \$libdir into
19191 # a binary during linking. This must work even if \$libdir does
19193 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19195 # Whether we need a single -rpath flag with a separated argument.
19196 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19198 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19199 # resulting binary.
19200 hardcode_direct=$hardcode_direct_GCJ
19202 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19203 # resulting binary.
19204 hardcode_minus_L=$hardcode_minus_L_GCJ
19206 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19207 # the resulting binary.
19208 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19210 # Set to yes if building a shared library automatically hardcodes DIR into the library
19211 # and all subsequent libraries and executables linked against it.
19212 hardcode_automatic=$hardcode_automatic_GCJ
19214 # Variables whose values should be saved in libtool wrapper scripts and
19215 # restored at relink time.
19216 variables_saved_for_relink="$variables_saved_for_relink"
19218 # Whether libtool must link a program against all its dependency libraries.
19219 link_all_deplibs=$link_all_deplibs_GCJ
19221 # Compile-time system search path for libraries
19222 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19224 # Run-time system search path for libraries
19225 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19227 # Fix the shell variable \$srcfile for the compiler.
19228 fix_srcfile_path=$lt_fix_srcfile_path
19230 # Set to yes if exported symbols are required.
19231 always_export_symbols=$always_export_symbols_GCJ
19233 # The commands to list exported symbols.
19234 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19236 # The commands to extract the exported symbol list from a shared archive.
19237 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19239 # Symbols that should not be listed in the preloaded symbols.
19240 exclude_expsyms=$lt_exclude_expsyms_GCJ
19242 # Symbols that must always be exported.
19243 include_expsyms=$lt_include_expsyms_GCJ
19245 # ### END LIBTOOL TAG CONFIG: $tagname
19251 # If there is no Makefile yet, we rely on a make rule to execute
19252 # `config.status --recheck' to rerun these tests and create the
19253 # libtool script then.
19254 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19255 if test -f "$ltmain_in"; then
19256 test -f Makefile && make "$ltmain"
19262 ac_cpp='$CPP $CPPFLAGS'
19263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19277 # Source file extension for RC test sources.
19280 # Object file extension for compiled RC test sources.
19284 # Code to be used in simple compile tests
19285 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19287 # Code to be used in simple link tests
19288 lt_simple_link_test_code="$lt_simple_compile_test_code"
19290 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19292 # If no C compiler was specified, use CC.
19295 # If no C compiler flags were specified, use CFLAGS.
19296 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19298 # Allow CC to be a program name with arguments.
19302 # save warnings/boilerplate of simple test code
19303 ac_outfile=conftest.$ac_objext
19304 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19305 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19306 _lt_compiler_boilerplate=`cat conftest.err`
19309 ac_outfile=conftest.$ac_objext
19310 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19311 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19312 _lt_linker_boilerplate=`cat conftest.err`
19316 # Allow CC to be a program name with arguments.
19321 for cc_temp in $compiler""; do
19323 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19324 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19329 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19331 lt_cv_prog_compiler_c_o_RC=yes
19333 # The else clause should only fire when bootstrapping the
19334 # libtool distribution, otherwise you forgot to ship ltmain.sh
19335 # with your package, and you will get complaints that there are
19336 # no rules to generate ltmain.sh.
19337 if test -f "$ltmain"; then
19338 # See if we are running on zsh, and set the options which allow our commands through
19339 # without removal of \ escapes.
19340 if test -n "${ZSH_VERSION+set}" ; then
19341 setopt NO_GLOB_SUBST
19343 # Now quote all the things that may contain metacharacters while being
19344 # careful not to overquote the AC_SUBSTed values. We take copies of the
19345 # variables and quote the copies for generation of the libtool script.
19346 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19348 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19349 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19350 deplibs_check_method reload_flag reload_cmds need_locks \
19351 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19352 lt_cv_sys_global_symbol_to_c_name_address \
19353 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19354 old_postinstall_cmds old_postuninstall_cmds \
19358 lt_prog_compiler_wl_RC \
19359 lt_prog_compiler_pic_RC \
19360 lt_prog_compiler_static_RC \
19361 lt_prog_compiler_no_builtin_flag_RC \
19362 export_dynamic_flag_spec_RC \
19363 thread_safe_flag_spec_RC \
19364 whole_archive_flag_spec_RC \
19365 enable_shared_with_static_runtimes_RC \
19366 old_archive_cmds_RC \
19367 old_archive_from_new_cmds_RC \
19368 predep_objects_RC \
19369 postdep_objects_RC \
19372 compiler_lib_search_path_RC \
19373 compiler_lib_search_dirs_RC \
19375 archive_expsym_cmds_RC \
19376 postinstall_cmds_RC \
19377 postuninstall_cmds_RC \
19378 old_archive_from_expsyms_cmds_RC \
19379 allow_undefined_flag_RC \
19380 no_undefined_flag_RC \
19381 export_symbols_cmds_RC \
19382 hardcode_libdir_flag_spec_RC \
19383 hardcode_libdir_flag_spec_ld_RC \
19384 hardcode_libdir_separator_RC \
19385 hardcode_automatic_RC \
19387 module_expsym_cmds_RC \
19388 lt_cv_prog_compiler_c_o_RC \
19389 fix_srcfile_path_RC \
19390 exclude_expsyms_RC \
19391 include_expsyms_RC; do
19394 old_archive_cmds_RC | \
19395 old_archive_from_new_cmds_RC | \
19396 archive_cmds_RC | \
19397 archive_expsym_cmds_RC | \
19399 module_expsym_cmds_RC | \
19400 old_archive_from_expsyms_cmds_RC | \
19401 export_symbols_cmds_RC | \
19402 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19403 postinstall_cmds | postuninstall_cmds | \
19404 old_postinstall_cmds | old_postuninstall_cmds | \
19405 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19406 # Double-quote double-evaled strings.
19407 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19410 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19416 *'\$0 --fallback-echo"')
19417 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19423 cat <<__EOF__ >> "$cfgfile"
19424 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19426 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19428 # Shell to use when invoking shell scripts.
19431 # Whether or not to build shared libraries.
19432 build_libtool_libs=$enable_shared
19434 # Whether or not to build static libraries.
19435 build_old_libs=$enable_static
19437 # Whether or not to add -lc for building shared libraries.
19438 build_libtool_need_lc=$archive_cmds_need_lc_RC
19440 # Whether or not to disallow shared libs when runtime libs are static
19441 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19443 # Whether or not to optimize for fast installation.
19444 fast_install=$enable_fast_install
19447 host_alias=$host_alias
19451 # The build system.
19452 build_alias=$build_alias
19456 # An echo program that does not interpret backslashes.
19461 AR_FLAGS=$lt_AR_FLAGS
19466 # LTCC compiler flags.
19467 LTCFLAGS=$lt_LTCFLAGS
19469 # A language-specific compiler.
19472 # Is the compiler the GNU C compiler?
19478 # The linker used to build libraries.
19481 # Whether we need hard or soft links.
19484 # A BSD-compatible nm program.
19487 # A symbol stripping program
19490 # Used to examine libraries when file_magic_cmd begins "file"
19491 MAGIC_CMD=$MAGIC_CMD
19493 # Used on cygwin: DLL creation program.
19496 # Used on cygwin: object dumper.
19499 # Used on cygwin: assembler.
19502 # The name of the directory that contains temporary libtool files.
19505 # How to create reloadable object files.
19506 reload_flag=$lt_reload_flag
19507 reload_cmds=$lt_reload_cmds
19509 # How to pass a linker flag through the compiler.
19510 wl=$lt_lt_prog_compiler_wl_RC
19512 # Object file suffix (normally "o").
19513 objext="$ac_objext"
19515 # Old archive suffix (normally "a").
19518 # Shared library suffix (normally ".so").
19519 shrext_cmds='$shrext_cmds'
19521 # Executable file suffix (normally "").
19524 # Additional compiler flags for building library objects.
19525 pic_flag=$lt_lt_prog_compiler_pic_RC
19528 # What is the maximum length of a command?
19529 max_cmd_len=$lt_cv_sys_max_cmd_len
19531 # Does compiler simultaneously support -c and -o options?
19532 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19534 # Must we lock files when doing compilation?
19535 need_locks=$lt_need_locks
19537 # Do we need the lib prefix for modules?
19538 need_lib_prefix=$need_lib_prefix
19540 # Do we need a version for libraries?
19541 need_version=$need_version
19543 # Whether dlopen is supported.
19544 dlopen_support=$enable_dlopen
19546 # Whether dlopen of programs is supported.
19547 dlopen_self=$enable_dlopen_self
19549 # Whether dlopen of statically linked programs is supported.
19550 dlopen_self_static=$enable_dlopen_self_static
19552 # Compiler flag to prevent dynamic linking.
19553 link_static_flag=$lt_lt_prog_compiler_static_RC
19555 # Compiler flag to turn off builtin functions.
19556 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19558 # Compiler flag to allow reflexive dlopens.
19559 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19561 # Compiler flag to generate shared objects directly from archives.
19562 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19564 # Compiler flag to generate thread-safe objects.
19565 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19567 # Library versioning type.
19568 version_type=$version_type
19570 # Format of library name prefix.
19571 libname_spec=$lt_libname_spec
19573 # List of archive names. First name is the real one, the rest are links.
19574 # The last name is the one that the linker finds with -lNAME.
19575 library_names_spec=$lt_library_names_spec
19577 # The coded name of the library, if different from the real name.
19578 soname_spec=$lt_soname_spec
19580 # Commands used to build and install an old-style archive.
19582 old_archive_cmds=$lt_old_archive_cmds_RC
19583 old_postinstall_cmds=$lt_old_postinstall_cmds
19584 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19586 # Create an old-style archive from a shared archive.
19587 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19589 # Create a temporary old-style archive to link instead of a shared archive.
19590 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19592 # Commands used to build and install a shared archive.
19593 archive_cmds=$lt_archive_cmds_RC
19594 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19595 postinstall_cmds=$lt_postinstall_cmds
19596 postuninstall_cmds=$lt_postuninstall_cmds
19598 # Commands used to build a loadable module (assumed same as above if empty)
19599 module_cmds=$lt_module_cmds_RC
19600 module_expsym_cmds=$lt_module_expsym_cmds_RC
19602 # Commands to strip libraries.
19603 old_striplib=$lt_old_striplib
19604 striplib=$lt_striplib
19606 # Dependencies to place before the objects being linked to create a
19608 predep_objects=$lt_predep_objects_RC
19610 # Dependencies to place after the objects being linked to create a
19612 postdep_objects=$lt_postdep_objects_RC
19614 # Dependencies to place before the objects being linked to create a
19616 predeps=$lt_predeps_RC
19618 # Dependencies to place after the objects being linked to create a
19620 postdeps=$lt_postdeps_RC
19622 # The directories searched by this compiler when creating a shared
19624 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19626 # The library search path used internally by the compiler when linking
19627 # a shared library.
19628 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19630 # Method to check whether dependent libraries are shared objects.
19631 deplibs_check_method=$lt_deplibs_check_method
19633 # Command to use when deplibs_check_method == file_magic.
19634 file_magic_cmd=$lt_file_magic_cmd
19636 # Flag that allows shared libraries with undefined symbols to be built.
19637 allow_undefined_flag=$lt_allow_undefined_flag_RC
19639 # Flag that forces no undefined symbols.
19640 no_undefined_flag=$lt_no_undefined_flag_RC
19642 # Commands used to finish a libtool library installation in a directory.
19643 finish_cmds=$lt_finish_cmds
19645 # Same as above, but a single script fragment to be evaled but not shown.
19646 finish_eval=$lt_finish_eval
19648 # Take the output of nm and produce a listing of raw symbols and C names.
19649 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19651 # Transform the output of nm in a proper C declaration
19652 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19654 # Transform the output of nm in a C name address pair
19655 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19657 # This is the shared library runtime path variable.
19658 runpath_var=$runpath_var
19660 # This is the shared library path variable.
19661 shlibpath_var=$shlibpath_var
19663 # Is shlibpath searched before the hard-coded library search path?
19664 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19666 # How to hardcode a shared library path into an executable.
19667 hardcode_action=$hardcode_action_RC
19669 # Whether we should hardcode library paths into libraries.
19670 hardcode_into_libs=$hardcode_into_libs
19672 # Flag to hardcode \$libdir into a binary during linking.
19673 # This must work even if \$libdir does not exist.
19674 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19676 # If ld is used when linking, flag to hardcode \$libdir into
19677 # a binary during linking. This must work even if \$libdir does
19679 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19681 # Whether we need a single -rpath flag with a separated argument.
19682 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19684 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19685 # resulting binary.
19686 hardcode_direct=$hardcode_direct_RC
19688 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19689 # resulting binary.
19690 hardcode_minus_L=$hardcode_minus_L_RC
19692 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19693 # the resulting binary.
19694 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19696 # Set to yes if building a shared library automatically hardcodes DIR into the library
19697 # and all subsequent libraries and executables linked against it.
19698 hardcode_automatic=$hardcode_automatic_RC
19700 # Variables whose values should be saved in libtool wrapper scripts and
19701 # restored at relink time.
19702 variables_saved_for_relink="$variables_saved_for_relink"
19704 # Whether libtool must link a program against all its dependency libraries.
19705 link_all_deplibs=$link_all_deplibs_RC
19707 # Compile-time system search path for libraries
19708 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19710 # Run-time system search path for libraries
19711 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19713 # Fix the shell variable \$srcfile for the compiler.
19714 fix_srcfile_path=$lt_fix_srcfile_path
19716 # Set to yes if exported symbols are required.
19717 always_export_symbols=$always_export_symbols_RC
19719 # The commands to list exported symbols.
19720 export_symbols_cmds=$lt_export_symbols_cmds_RC
19722 # The commands to extract the exported symbol list from a shared archive.
19723 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19725 # Symbols that should not be listed in the preloaded symbols.
19726 exclude_expsyms=$lt_exclude_expsyms_RC
19728 # Symbols that must always be exported.
19729 include_expsyms=$lt_include_expsyms_RC
19731 # ### END LIBTOOL TAG CONFIG: $tagname
19737 # If there is no Makefile yet, we rely on a make rule to execute
19738 # `config.status --recheck' to rerun these tests and create the
19739 # libtool script then.
19740 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19741 if test -f "$ltmain_in"; then
19742 test -f Makefile && make "$ltmain"
19748 ac_cpp='$CPP $CPPFLAGS'
19749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19758 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19759 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19760 { (exit 1); exit 1; }; }
19764 # Append the new tag name to the list of available tags.
19765 if test -n "$tagname" ; then
19766 available_tags="$available_tags $tagname"
19772 # Now substitute the updated list of available tags.
19773 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19774 mv "${ofile}T" "$ofile"
19778 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19779 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19780 { (exit 1); exit 1; }; }
19786 # This can be used to rebuild libtool when needed
19787 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19789 # Always use our own libtool.
19790 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19792 # Prevent multiple expansion
19813 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
19814 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
19815 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
19816 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
19817 echo $ECHO_N "(cached) $ECHO_C" >&6
19819 cat >conftest.make <<\_ACEOF
19822 @echo '@@@%%%=$(MAKE)=@@@%%%'
19824 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19825 case `${MAKE-make} -f conftest.make 2>/dev/null` in
19826 *@@@%%%=?*=@@@%%%*)
19827 eval ac_cv_prog_make_${ac_make}_set=yes;;
19829 eval ac_cv_prog_make_${ac_make}_set=no;;
19831 rm -f conftest.make
19833 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
19834 { echo "$as_me:$LINENO: result: yes" >&5
19835 echo "${ECHO_T}yes" >&6; }
19838 { echo "$as_me:$LINENO: result: no" >&5
19839 echo "${ECHO_T}no" >&6; }
19840 SET_MAKE="MAKE=${MAKE-make}"
19843 if test "x$CC" != xcc; then
19844 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
19845 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
19847 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
19848 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
19850 set dummy $CC; ac_cc=`echo $2 |
19851 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
19852 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
19853 echo $ECHO_N "(cached) $ECHO_C" >&6
19855 cat >conftest.$ac_ext <<_ACEOF
19858 cat confdefs.h >>conftest.$ac_ext
19859 cat >>conftest.$ac_ext <<_ACEOF
19860 /* end confdefs.h. */
19870 # Make sure it works both with $CC and with simple cc.
19871 # We do the test twice because some compilers refuse to overwrite an
19872 # existing .o file with -o, though they will create one.
19873 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
19875 if { (case "(($ac_try" in
19876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19877 *) ac_try_echo=$ac_try;;
19879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19880 (eval "$ac_try") 2>&5
19882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883 (exit $ac_status); } &&
19884 test -f conftest2.$ac_objext && { (case "(($ac_try" in
19885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19886 *) ac_try_echo=$ac_try;;
19888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19889 (eval "$ac_try") 2>&5
19891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19892 (exit $ac_status); };
19894 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
19895 if test "x$CC" != xcc; then
19896 # Test first that cc exists at all.
19897 if { ac_try='cc -c conftest.$ac_ext >&5'
19898 { (case "(($ac_try" in
19899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19900 *) ac_try_echo=$ac_try;;
19902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19903 (eval "$ac_try") 2>&5
19905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19906 (exit $ac_status); }; }; then
19907 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
19909 if { (case "(($ac_try" in
19910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19911 *) ac_try_echo=$ac_try;;
19913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19914 (eval "$ac_try") 2>&5
19916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19917 (exit $ac_status); } &&
19918 test -f conftest2.$ac_objext && { (case "(($ac_try" in
19919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19920 *) ac_try_echo=$ac_try;;
19922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19923 (eval "$ac_try") 2>&5
19925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19926 (exit $ac_status); };
19931 # cc exists but doesn't like -o.
19932 eval ac_cv_prog_cc_${ac_cc}_c_o=no
19937 eval ac_cv_prog_cc_${ac_cc}_c_o=no
19939 rm -f core conftest*
19942 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
19943 { echo "$as_me:$LINENO: result: yes" >&5
19944 echo "${ECHO_T}yes" >&6; }
19946 { echo "$as_me:$LINENO: result: no" >&5
19947 echo "${ECHO_T}no" >&6; }
19949 cat >>confdefs.h <<\_ACEOF
19950 #define NO_MINUS_C_MINUS_O 1
19955 # FIXME: we rely on the cache variable name because
19956 # there is no other way.
19958 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
19959 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
19960 # Losing compiler, so override with the script.
19961 # FIXME: It is wrong to rewrite CC.
19962 # But if we don't then we get into trouble of one sort or another.
19963 # A longer-term fix would be to have automake use am__CC in this case,
19964 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
19965 CC="$am_aux_dir/compile $CC"
19973 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19974 if test -n "$ac_tool_prefix"; then
19975 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19976 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19977 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19979 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19980 echo $ECHO_N "(cached) $ECHO_C" >&6
19982 case $PKG_CONFIG in
19984 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19988 for as_dir in $PATH
19991 test -z "$as_dir" && as_dir=.
19992 for ac_exec_ext in '' $ac_executable_extensions; do
19993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19994 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20005 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20006 if test -n "$PKG_CONFIG"; then
20007 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20008 echo "${ECHO_T}$PKG_CONFIG" >&6; }
20010 { echo "$as_me:$LINENO: result: no" >&5
20011 echo "${ECHO_T}no" >&6; }
20016 if test -z "$ac_cv_path_PKG_CONFIG"; then
20017 ac_pt_PKG_CONFIG=$PKG_CONFIG
20018 # Extract the first word of "pkg-config", so it can be a program name with args.
20019 set dummy pkg-config; ac_word=$2
20020 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20022 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
20023 echo $ECHO_N "(cached) $ECHO_C" >&6
20025 case $ac_pt_PKG_CONFIG in
20027 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20031 for as_dir in $PATH
20034 test -z "$as_dir" && as_dir=.
20035 for ac_exec_ext in '' $ac_executable_extensions; do
20036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20037 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20048 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20049 if test -n "$ac_pt_PKG_CONFIG"; then
20050 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
20051 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
20053 { echo "$as_me:$LINENO: result: no" >&5
20054 echo "${ECHO_T}no" >&6; }
20057 if test "x$ac_pt_PKG_CONFIG" = x; then
20060 case $cross_compiling:$ac_tool_warned in
20062 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20063 whose name does not start with the host triplet. If you think this
20064 configuration is useful to you, please write to autoconf@gnu.org." >&5
20065 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20066 whose name does not start with the host triplet. If you think this
20067 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20068 ac_tool_warned=yes ;;
20070 PKG_CONFIG=$ac_pt_PKG_CONFIG
20073 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20077 if test -n "$PKG_CONFIG"; then
20078 _pkg_min_version=0.9.0
20079 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
20080 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
20081 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20082 { echo "$as_me:$LINENO: result: yes" >&5
20083 echo "${ECHO_T}yes" >&6; }
20085 { echo "$as_me:$LINENO: result: no" >&5
20086 echo "${ECHO_T}no" >&6; }
20093 { echo "$as_me:$LINENO: checking for FOOBAR" >&5
20094 echo $ECHO_N "checking for FOOBAR... $ECHO_C" >&6; }
20096 if test -n "$PKG_CONFIG"; then
20097 if test -n "$FOOBAR_CFLAGS"; then
20098 pkg_cv_FOOBAR_CFLAGS="$FOOBAR_CFLAGS"
20100 if test -n "$PKG_CONFIG" && \
20101 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"foobar\"") >&5
20102 ($PKG_CONFIG --exists --print-errors "foobar") 2>&5
20104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20105 (exit $ac_status); }; then
20106 pkg_cv_FOOBAR_CFLAGS=`$PKG_CONFIG --cflags "foobar" 2>/dev/null`
20114 if test -n "$PKG_CONFIG"; then
20115 if test -n "$FOOBAR_LIBS"; then
20116 pkg_cv_FOOBAR_LIBS="$FOOBAR_LIBS"
20118 if test -n "$PKG_CONFIG" && \
20119 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"foobar\"") >&5
20120 ($PKG_CONFIG --exists --print-errors "foobar") 2>&5
20122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20123 (exit $ac_status); }; then
20124 pkg_cv_FOOBAR_LIBS=`$PKG_CONFIG --libs "foobar" 2>/dev/null`
20135 if test $pkg_failed = yes; then
20137 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20138 _pkg_short_errors_supported=yes
20140 _pkg_short_errors_supported=no
20142 if test $_pkg_short_errors_supported = yes; then
20143 FOOBAR_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "foobar"`
20145 FOOBAR_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "foobar"`
20147 # Put the nasty error message in config.log where it belongs
20148 echo "$FOOBAR_PKG_ERRORS" >&5
20150 { echo "$as_me:$LINENO: result: no" >&5
20151 echo "${ECHO_T}no" >&6; }
20153 elif test $pkg_failed = untried; then
20156 FOOBAR_CFLAGS=$pkg_cv_FOOBAR_CFLAGS
20157 FOOBAR_LIBS=$pkg_cv_FOOBAR_LIBS
20158 { echo "$as_me:$LINENO: result: yes" >&5
20159 echo "${ECHO_T}yes" >&6; }
20163 # Check whether --enable-sqlite was given.
20164 if test "${enable_sqlite+set}" = set; then
20165 enableval=$enable_sqlite; enable_sqlite=$enableval
20167 enable_sqlite="yes"
20170 if test "$enable_sqlite" == "yes"; then
20173 { echo "$as_me:$LINENO: checking for SQLITE3" >&5
20174 echo $ECHO_N "checking for SQLITE3... $ECHO_C" >&6; }
20176 if test -n "$PKG_CONFIG"; then
20177 if test -n "$SQLITE3_CFLAGS"; then
20178 pkg_cv_SQLITE3_CFLAGS="$SQLITE3_CFLAGS"
20180 if test -n "$PKG_CONFIG" && \
20181 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sqlite3\"") >&5
20182 ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
20184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20185 (exit $ac_status); }; then
20186 pkg_cv_SQLITE3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null`
20194 if test -n "$PKG_CONFIG"; then
20195 if test -n "$SQLITE3_LIBS"; then
20196 pkg_cv_SQLITE3_LIBS="$SQLITE3_LIBS"
20198 if test -n "$PKG_CONFIG" && \
20199 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sqlite3\"") >&5
20200 ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
20202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20203 (exit $ac_status); }; then
20204 pkg_cv_SQLITE3_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null`
20215 if test $pkg_failed = yes; then
20217 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20218 _pkg_short_errors_supported=yes
20220 _pkg_short_errors_supported=no
20222 if test $_pkg_short_errors_supported = yes; then
20223 SQLITE3_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "sqlite3"`
20225 SQLITE3_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sqlite3"`
20227 # Put the nasty error message in config.log where it belongs
20228 echo "$SQLITE3_PKG_ERRORS" >&5
20230 { { echo "$as_me:$LINENO: error: Package requirements (sqlite3) were not met:
20232 $SQLITE3_PKG_ERRORS
20234 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20235 installed software in a non-standard prefix.
20237 Alternatively, you may set the environment variables SQLITE3_CFLAGS
20238 and SQLITE3_LIBS to avoid the need to call pkg-config.
20239 See the pkg-config man page for more details.
20241 echo "$as_me: error: Package requirements (sqlite3) were not met:
20243 $SQLITE3_PKG_ERRORS
20245 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20246 installed software in a non-standard prefix.
20248 Alternatively, you may set the environment variables SQLITE3_CFLAGS
20249 and SQLITE3_LIBS to avoid the need to call pkg-config.
20250 See the pkg-config man page for more details.
20252 { (exit 1); exit 1; }; }
20253 elif test $pkg_failed = untried; then
20254 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
20255 is in your PATH or set the PKG_CONFIG environment variable to the full
20256 path to pkg-config.
20258 Alternatively, you may set the environment variables SQLITE3_CFLAGS
20259 and SQLITE3_LIBS to avoid the need to call pkg-config.
20260 See the pkg-config man page for more details.
20262 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20263 See \`config.log' for more details." >&5
20264 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
20265 is in your PATH or set the PKG_CONFIG environment variable to the full
20266 path to pkg-config.
20268 Alternatively, you may set the environment variables SQLITE3_CFLAGS
20269 and SQLITE3_LIBS to avoid the need to call pkg-config.
20270 See the pkg-config man page for more details.
20272 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20273 See \`config.log' for more details." >&2;}
20274 { (exit 1); exit 1; }; }
20276 SQLITE3_CFLAGS=$pkg_cv_SQLITE3_CFLAGS
20277 SQLITE3_LIBS=$pkg_cv_SQLITE3_LIBS
20278 { echo "$as_me:$LINENO: result: yes" >&5
20279 echo "${ECHO_T}yes" >&6; }
20287 cat >>confdefs.h <<_ACEOF
20288 #define ONOFF_SQLITE_SUPPORT $HAVE_SQLITE
20292 # Check whether --enable-regex was given.
20293 if test "${enable_regex+set}" = set; then
20294 enableval=$enable_regex; enable_regex=$enableval
20299 if test "$enable_regex" == "yes"; then
20302 { echo "$as_me:$LINENO: checking for PCRE" >&5
20303 echo $ECHO_N "checking for PCRE... $ECHO_C" >&6; }
20305 if test -n "$PKG_CONFIG"; then
20306 if test -n "$PCRE_CFLAGS"; then
20307 pkg_cv_PCRE_CFLAGS="$PCRE_CFLAGS"
20309 if test -n "$PKG_CONFIG" && \
20310 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpcre\"") >&5
20311 ($PKG_CONFIG --exists --print-errors "libpcre") 2>&5
20313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20314 (exit $ac_status); }; then
20315 pkg_cv_PCRE_CFLAGS=`$PKG_CONFIG --cflags "libpcre" 2>/dev/null`
20323 if test -n "$PKG_CONFIG"; then
20324 if test -n "$PCRE_LIBS"; then
20325 pkg_cv_PCRE_LIBS="$PCRE_LIBS"
20327 if test -n "$PKG_CONFIG" && \
20328 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpcre\"") >&5
20329 ($PKG_CONFIG --exists --print-errors "libpcre") 2>&5
20331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20332 (exit $ac_status); }; then
20333 pkg_cv_PCRE_LIBS=`$PKG_CONFIG --libs "libpcre" 2>/dev/null`
20344 if test $pkg_failed = yes; then
20346 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20347 _pkg_short_errors_supported=yes
20349 _pkg_short_errors_supported=no
20351 if test $_pkg_short_errors_supported = yes; then
20352 PCRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpcre"`
20354 PCRE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpcre"`
20356 # Put the nasty error message in config.log where it belongs
20357 echo "$PCRE_PKG_ERRORS" >&5
20359 { echo "$as_me:$LINENO: result: no" >&5
20360 echo "${ECHO_T}no" >&6; }
20361 { { echo "$as_me:$LINENO: error: libpcre not found, required for --enable-regex" >&5
20362 echo "$as_me: error: libpcre not found, required for --enable-regex" >&2;}
20363 { (exit 1); exit 1; }; }
20364 elif test $pkg_failed = untried; then
20365 { { echo "$as_me:$LINENO: error: libpcre not found, required for --enable-regex" >&5
20366 echo "$as_me: error: libpcre not found, required for --enable-regex" >&2;}
20367 { (exit 1); exit 1; }; }
20369 PCRE_CFLAGS=$pkg_cv_PCRE_CFLAGS
20370 PCRE_LIBS=$pkg_cv_PCRE_LIBS
20371 { echo "$as_me:$LINENO: result: yes" >&5
20372 echo "${ECHO_T}yes" >&6; }
20380 cat >>confdefs.h <<_ACEOF
20381 #define ONOFF_REGEX_SUPPORT $HAVE_PCRE
20385 if test "${ac_cv_header_zlib_h+set}" = set; then
20386 { echo "$as_me:$LINENO: checking for zlib.h" >&5
20387 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
20388 if test "${ac_cv_header_zlib_h+set}" = set; then
20389 echo $ECHO_N "(cached) $ECHO_C" >&6
20391 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20392 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
20394 # Is the header compilable?
20395 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
20396 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
20397 cat >conftest.$ac_ext <<_ACEOF
20400 cat confdefs.h >>conftest.$ac_ext
20401 cat >>conftest.$ac_ext <<_ACEOF
20402 /* end confdefs.h. */
20403 $ac_includes_default
20406 rm -f conftest.$ac_objext
20407 if { (ac_try="$ac_compile"
20408 case "(($ac_try" in
20409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20410 *) ac_try_echo=$ac_try;;
20412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20413 (eval "$ac_compile") 2>conftest.er1
20415 grep -v '^ *+' conftest.er1 >conftest.err
20417 cat conftest.err >&5
20418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20419 (exit $ac_status); } && {
20420 test -z "$ac_c_werror_flag" ||
20421 test ! -s conftest.err
20422 } && test -s conftest.$ac_objext; then
20423 ac_header_compiler=yes
20425 echo "$as_me: failed program was:" >&5
20426 sed 's/^/| /' conftest.$ac_ext >&5
20428 ac_header_compiler=no
20431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20432 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20433 echo "${ECHO_T}$ac_header_compiler" >&6; }
20435 # Is the header present?
20436 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
20437 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
20438 cat >conftest.$ac_ext <<_ACEOF
20441 cat confdefs.h >>conftest.$ac_ext
20442 cat >>conftest.$ac_ext <<_ACEOF
20443 /* end confdefs.h. */
20446 if { (ac_try="$ac_cpp conftest.$ac_ext"
20447 case "(($ac_try" in
20448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20449 *) ac_try_echo=$ac_try;;
20451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20452 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20454 grep -v '^ *+' conftest.er1 >conftest.err
20456 cat conftest.err >&5
20457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458 (exit $ac_status); } >/dev/null && {
20459 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20460 test ! -s conftest.err
20462 ac_header_preproc=yes
20464 echo "$as_me: failed program was:" >&5
20465 sed 's/^/| /' conftest.$ac_ext >&5
20467 ac_header_preproc=no
20470 rm -f conftest.err conftest.$ac_ext
20471 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20472 echo "${ECHO_T}$ac_header_preproc" >&6; }
20474 # So? What about this header?
20475 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20477 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
20478 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20479 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
20480 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
20481 ac_header_preproc=yes
20484 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
20485 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
20486 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
20487 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
20488 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
20489 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
20490 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
20491 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
20492 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
20493 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
20494 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
20495 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
20499 { echo "$as_me:$LINENO: checking for zlib.h" >&5
20500 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
20501 if test "${ac_cv_header_zlib_h+set}" = set; then
20502 echo $ECHO_N "(cached) $ECHO_C" >&6
20504 ac_cv_header_zlib_h=$ac_header_preproc
20506 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20507 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
20510 if test $ac_cv_header_zlib_h = yes; then
20513 { { echo "$as_me:$LINENO: error: zlib.h not found." >&5
20514 echo "$as_me: error: zlib.h not found." >&2;}
20515 { (exit 1); exit 1; }; }
20519 if test "${ac_cv_header_xmltok_xmlparse_h+set}" = set; then
20520 { echo "$as_me:$LINENO: checking for xmltok/xmlparse.h" >&5
20521 echo $ECHO_N "checking for xmltok/xmlparse.h... $ECHO_C" >&6; }
20522 if test "${ac_cv_header_xmltok_xmlparse_h+set}" = set; then
20523 echo $ECHO_N "(cached) $ECHO_C" >&6
20525 { echo "$as_me:$LINENO: result: $ac_cv_header_xmltok_xmlparse_h" >&5
20526 echo "${ECHO_T}$ac_cv_header_xmltok_xmlparse_h" >&6; }
20528 # Is the header compilable?
20529 { echo "$as_me:$LINENO: checking xmltok/xmlparse.h usability" >&5
20530 echo $ECHO_N "checking xmltok/xmlparse.h usability... $ECHO_C" >&6; }
20531 cat >conftest.$ac_ext <<_ACEOF
20534 cat confdefs.h >>conftest.$ac_ext
20535 cat >>conftest.$ac_ext <<_ACEOF
20536 /* end confdefs.h. */
20537 $ac_includes_default
20538 #include <xmltok/xmlparse.h>
20540 rm -f conftest.$ac_objext
20541 if { (ac_try="$ac_compile"
20542 case "(($ac_try" in
20543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20544 *) ac_try_echo=$ac_try;;
20546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20547 (eval "$ac_compile") 2>conftest.er1
20549 grep -v '^ *+' conftest.er1 >conftest.err
20551 cat conftest.err >&5
20552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553 (exit $ac_status); } && {
20554 test -z "$ac_c_werror_flag" ||
20555 test ! -s conftest.err
20556 } && test -s conftest.$ac_objext; then
20557 ac_header_compiler=yes
20559 echo "$as_me: failed program was:" >&5
20560 sed 's/^/| /' conftest.$ac_ext >&5
20562 ac_header_compiler=no
20565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20566 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20567 echo "${ECHO_T}$ac_header_compiler" >&6; }
20569 # Is the header present?
20570 { echo "$as_me:$LINENO: checking xmltok/xmlparse.h presence" >&5
20571 echo $ECHO_N "checking xmltok/xmlparse.h presence... $ECHO_C" >&6; }
20572 cat >conftest.$ac_ext <<_ACEOF
20575 cat confdefs.h >>conftest.$ac_ext
20576 cat >>conftest.$ac_ext <<_ACEOF
20577 /* end confdefs.h. */
20578 #include <xmltok/xmlparse.h>
20580 if { (ac_try="$ac_cpp conftest.$ac_ext"
20581 case "(($ac_try" in
20582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20583 *) ac_try_echo=$ac_try;;
20585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20586 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20588 grep -v '^ *+' conftest.er1 >conftest.err
20590 cat conftest.err >&5
20591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20592 (exit $ac_status); } >/dev/null && {
20593 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20594 test ! -s conftest.err
20596 ac_header_preproc=yes
20598 echo "$as_me: failed program was:" >&5
20599 sed 's/^/| /' conftest.$ac_ext >&5
20601 ac_header_preproc=no
20604 rm -f conftest.err conftest.$ac_ext
20605 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20606 echo "${ECHO_T}$ac_header_preproc" >&6; }
20608 # So? What about this header?
20609 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20611 { echo "$as_me:$LINENO: WARNING: xmltok/xmlparse.h: accepted by the compiler, rejected by the preprocessor!" >&5
20612 echo "$as_me: WARNING: xmltok/xmlparse.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20613 { echo "$as_me:$LINENO: WARNING: xmltok/xmlparse.h: proceeding with the compiler's result" >&5
20614 echo "$as_me: WARNING: xmltok/xmlparse.h: proceeding with the compiler's result" >&2;}
20615 ac_header_preproc=yes
20618 { echo "$as_me:$LINENO: WARNING: xmltok/xmlparse.h: present but cannot be compiled" >&5
20619 echo "$as_me: WARNING: xmltok/xmlparse.h: present but cannot be compiled" >&2;}
20620 { echo "$as_me:$LINENO: WARNING: xmltok/xmlparse.h: check for missing prerequisite headers?" >&5
20621 echo "$as_me: WARNING: xmltok/xmlparse.h: check for missing prerequisite headers?" >&2;}
20622 { echo "$as_me:$LINENO: WARNING: xmltok/xmlparse.h: see the Autoconf documentation" >&5
20623 echo "$as_me: WARNING: xmltok/xmlparse.h: see the Autoconf documentation" >&2;}
20624 { echo "$as_me:$LINENO: WARNING: xmltok/xmlparse.h: section \"Present But Cannot Be Compiled\"" >&5
20625 echo "$as_me: WARNING: xmltok/xmlparse.h: section \"Present But Cannot Be Compiled\"" >&2;}
20626 { echo "$as_me:$LINENO: WARNING: xmltok/xmlparse.h: proceeding with the preprocessor's result" >&5
20627 echo "$as_me: WARNING: xmltok/xmlparse.h: proceeding with the preprocessor's result" >&2;}
20628 { echo "$as_me:$LINENO: WARNING: xmltok/xmlparse.h: in the future, the compiler will take precedence" >&5
20629 echo "$as_me: WARNING: xmltok/xmlparse.h: in the future, the compiler will take precedence" >&2;}
20633 { echo "$as_me:$LINENO: checking for xmltok/xmlparse.h" >&5
20634 echo $ECHO_N "checking for xmltok/xmlparse.h... $ECHO_C" >&6; }
20635 if test "${ac_cv_header_xmltok_xmlparse_h+set}" = set; then
20636 echo $ECHO_N "(cached) $ECHO_C" >&6
20638 ac_cv_header_xmltok_xmlparse_h=$ac_header_preproc
20640 { echo "$as_me:$LINENO: result: $ac_cv_header_xmltok_xmlparse_h" >&5
20641 echo "${ECHO_T}$ac_cv_header_xmltok_xmlparse_h" >&6; }
20644 if test $ac_cv_header_xmltok_xmlparse_h = yes; then
20645 have_system_xmltok="yes"
20649 if test "${ac_cv_header_expat_h+set}" = set; then
20650 { echo "$as_me:$LINENO: checking for expat.h" >&5
20651 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6; }
20652 if test "${ac_cv_header_expat_h+set}" = set; then
20653 echo $ECHO_N "(cached) $ECHO_C" >&6
20655 { echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
20656 echo "${ECHO_T}$ac_cv_header_expat_h" >&6; }
20658 # Is the header compilable?
20659 { echo "$as_me:$LINENO: checking expat.h usability" >&5
20660 echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6; }
20661 cat >conftest.$ac_ext <<_ACEOF
20664 cat confdefs.h >>conftest.$ac_ext
20665 cat >>conftest.$ac_ext <<_ACEOF
20666 /* end confdefs.h. */
20667 $ac_includes_default
20670 rm -f conftest.$ac_objext
20671 if { (ac_try="$ac_compile"
20672 case "(($ac_try" in
20673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20674 *) ac_try_echo=$ac_try;;
20676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20677 (eval "$ac_compile") 2>conftest.er1
20679 grep -v '^ *+' conftest.er1 >conftest.err
20681 cat conftest.err >&5
20682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20683 (exit $ac_status); } && {
20684 test -z "$ac_c_werror_flag" ||
20685 test ! -s conftest.err
20686 } && test -s conftest.$ac_objext; then
20687 ac_header_compiler=yes
20689 echo "$as_me: failed program was:" >&5
20690 sed 's/^/| /' conftest.$ac_ext >&5
20692 ac_header_compiler=no
20695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20696 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20697 echo "${ECHO_T}$ac_header_compiler" >&6; }
20699 # Is the header present?
20700 { echo "$as_me:$LINENO: checking expat.h presence" >&5
20701 echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6; }
20702 cat >conftest.$ac_ext <<_ACEOF
20705 cat confdefs.h >>conftest.$ac_ext
20706 cat >>conftest.$ac_ext <<_ACEOF
20707 /* end confdefs.h. */
20710 if { (ac_try="$ac_cpp conftest.$ac_ext"
20711 case "(($ac_try" in
20712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20713 *) ac_try_echo=$ac_try;;
20715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20716 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20718 grep -v '^ *+' conftest.er1 >conftest.err
20720 cat conftest.err >&5
20721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20722 (exit $ac_status); } >/dev/null && {
20723 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20724 test ! -s conftest.err
20726 ac_header_preproc=yes
20728 echo "$as_me: failed program was:" >&5
20729 sed 's/^/| /' conftest.$ac_ext >&5
20731 ac_header_preproc=no
20734 rm -f conftest.err conftest.$ac_ext
20735 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20736 echo "${ECHO_T}$ac_header_preproc" >&6; }
20738 # So? What about this header?
20739 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20741 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
20742 echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20743 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
20744 echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
20745 ac_header_preproc=yes
20748 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
20749 echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
20750 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
20751 echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
20752 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
20753 echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
20754 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
20755 echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
20756 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
20757 echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
20758 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
20759 echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
20763 { echo "$as_me:$LINENO: checking for expat.h" >&5
20764 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6; }
20765 if test "${ac_cv_header_expat_h+set}" = set; then
20766 echo $ECHO_N "(cached) $ECHO_C" >&6
20768 ac_cv_header_expat_h=$ac_header_preproc
20770 { echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
20771 echo "${ECHO_T}$ac_cv_header_expat_h" >&6; }
20774 if test $ac_cv_header_expat_h = yes; then
20775 have_system_expat="yes"
20780 # Check whether --enable-libical was given.
20781 if test "${enable_libical+set}" = set; then
20782 enableval=$enable_libical; enable_libical=$enableval
20784 enable_libical="yes"
20787 if test "$enable_libical" == "yes"; then
20790 { echo "$as_me:$LINENO: checking for LIBICAL" >&5
20791 echo $ECHO_N "checking for LIBICAL... $ECHO_C" >&6; }
20793 if test -n "$PKG_CONFIG"; then
20794 if test -n "$LIBICAL_CFLAGS"; then
20795 pkg_cv_LIBICAL_CFLAGS="$LIBICAL_CFLAGS"
20797 if test -n "$PKG_CONFIG" && \
20798 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libical\"") >&5
20799 ($PKG_CONFIG --exists --print-errors "libical") 2>&5
20801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20802 (exit $ac_status); }; then
20803 pkg_cv_LIBICAL_CFLAGS=`$PKG_CONFIG --cflags "libical" 2>/dev/null`
20811 if test -n "$PKG_CONFIG"; then
20812 if test -n "$LIBICAL_LIBS"; then
20813 pkg_cv_LIBICAL_LIBS="$LIBICAL_LIBS"
20815 if test -n "$PKG_CONFIG" && \
20816 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libical\"") >&5
20817 ($PKG_CONFIG --exists --print-errors "libical") 2>&5
20819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20820 (exit $ac_status); }; then
20821 pkg_cv_LIBICAL_LIBS=`$PKG_CONFIG --libs "libical" 2>/dev/null`
20832 if test $pkg_failed = yes; then
20834 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20835 _pkg_short_errors_supported=yes
20837 _pkg_short_errors_supported=no
20839 if test $_pkg_short_errors_supported = yes; then
20840 LIBICAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libical"`
20842 LIBICAL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libical"`
20844 # Put the nasty error message in config.log where it belongs
20845 echo "$LIBICAL_PKG_ERRORS" >&5
20847 { echo "$as_me:$LINENO: result: no" >&5
20848 echo "${ECHO_T}no" >&6; }
20851 { echo "$as_me:$LINENO: checking for LIBECAL" >&5
20852 echo $ECHO_N "checking for LIBECAL... $ECHO_C" >&6; }
20854 if test -n "$PKG_CONFIG"; then
20855 if test -n "$LIBECAL_CFLAGS"; then
20856 pkg_cv_LIBECAL_CFLAGS="$LIBECAL_CFLAGS"
20858 if test -n "$PKG_CONFIG" && \
20859 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libecal-1.2\"") >&5
20860 ($PKG_CONFIG --exists --print-errors "libecal-1.2") 2>&5
20862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20863 (exit $ac_status); }; then
20864 pkg_cv_LIBECAL_CFLAGS=`$PKG_CONFIG --cflags "libecal-1.2" 2>/dev/null`
20872 if test -n "$PKG_CONFIG"; then
20873 if test -n "$LIBECAL_LIBS"; then
20874 pkg_cv_LIBECAL_LIBS="$LIBECAL_LIBS"
20876 if test -n "$PKG_CONFIG" && \
20877 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libecal-1.2\"") >&5
20878 ($PKG_CONFIG --exists --print-errors "libecal-1.2") 2>&5
20880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881 (exit $ac_status); }; then
20882 pkg_cv_LIBECAL_LIBS=`$PKG_CONFIG --libs "libecal-1.2" 2>/dev/null`
20893 if test $pkg_failed = yes; then
20895 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20896 _pkg_short_errors_supported=yes
20898 _pkg_short_errors_supported=no
20900 if test $_pkg_short_errors_supported = yes; then
20901 LIBECAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libecal-1.2"`
20903 LIBECAL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libecal-1.2"`
20905 # Put the nasty error message in config.log where it belongs
20906 echo "$LIBECAL_PKG_ERRORS" >&5
20908 { echo "$as_me:$LINENO: result: no" >&5
20909 echo "${ECHO_T}no" >&6; }
20911 elif test $pkg_failed = untried; then
20914 LIBECAL_CFLAGS=$pkg_cv_LIBECAL_CFLAGS
20915 LIBECAL_LIBS=$pkg_cv_LIBECAL_LIBS
20916 { echo "$as_me:$LINENO: result: yes" >&5
20917 echo "${ECHO_T}yes" >&6; }
20919 cat >>confdefs.h <<\_ACEOF
20920 #define HAVE_LIBICAL 1
20924 cat >>confdefs.h <<\_ACEOF
20925 #define HAVE_LIBECAL 1
20929 elif test $pkg_failed = untried; then
20932 { echo "$as_me:$LINENO: checking for LIBECAL" >&5
20933 echo $ECHO_N "checking for LIBECAL... $ECHO_C" >&6; }
20935 if test -n "$PKG_CONFIG"; then
20936 if test -n "$LIBECAL_CFLAGS"; then
20937 pkg_cv_LIBECAL_CFLAGS="$LIBECAL_CFLAGS"
20939 if test -n "$PKG_CONFIG" && \
20940 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libecal-1.2\"") >&5
20941 ($PKG_CONFIG --exists --print-errors "libecal-1.2") 2>&5
20943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20944 (exit $ac_status); }; then
20945 pkg_cv_LIBECAL_CFLAGS=`$PKG_CONFIG --cflags "libecal-1.2" 2>/dev/null`
20953 if test -n "$PKG_CONFIG"; then
20954 if test -n "$LIBECAL_LIBS"; then
20955 pkg_cv_LIBECAL_LIBS="$LIBECAL_LIBS"
20957 if test -n "$PKG_CONFIG" && \
20958 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libecal-1.2\"") >&5
20959 ($PKG_CONFIG --exists --print-errors "libecal-1.2") 2>&5
20961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20962 (exit $ac_status); }; then
20963 pkg_cv_LIBECAL_LIBS=`$PKG_CONFIG --libs "libecal-1.2" 2>/dev/null`
20974 if test $pkg_failed = yes; then
20976 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20977 _pkg_short_errors_supported=yes
20979 _pkg_short_errors_supported=no
20981 if test $_pkg_short_errors_supported = yes; then
20982 LIBECAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libecal-1.2"`
20984 LIBECAL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libecal-1.2"`
20986 # Put the nasty error message in config.log where it belongs
20987 echo "$LIBECAL_PKG_ERRORS" >&5
20989 { echo "$as_me:$LINENO: result: no" >&5
20990 echo "${ECHO_T}no" >&6; }
20992 elif test $pkg_failed = untried; then
20995 LIBECAL_CFLAGS=$pkg_cv_LIBECAL_CFLAGS
20996 LIBECAL_LIBS=$pkg_cv_LIBECAL_LIBS
20997 { echo "$as_me:$LINENO: result: yes" >&5
20998 echo "${ECHO_T}yes" >&6; }
21000 cat >>confdefs.h <<\_ACEOF
21001 #define HAVE_LIBICAL 1
21005 cat >>confdefs.h <<\_ACEOF
21006 #define HAVE_LIBECAL 1
21011 LIBICAL_CFLAGS=$pkg_cv_LIBICAL_CFLAGS
21012 LIBICAL_LIBS=$pkg_cv_LIBICAL_LIBS
21013 { echo "$as_me:$LINENO: result: yes" >&5
21014 echo "${ECHO_T}yes" >&6; }
21016 cat >>confdefs.h <<\_ACEOF
21017 #define HAVE_LIBICAL 1
21023 # Check whether --enable-evolution-compatibility was given.
21024 if test "${enable_evolution_compatibility+set}" = set; then
21025 enableval=$enable_evolution_compatibility; enable_evolution_compatibility="$enableval"
21027 enable_evolution_compatibility="no"
21030 if test "$enable_evolution_compatibility" == "yes"; then
21032 cat >>confdefs.h <<\_ACEOF
21033 #define EVOLUTION_COMPATIBILITY 1
21041 # Check whether --with-xmltok was given.
21042 if test "${with_xmltok+set}" = set; then
21043 withval=$with_xmltok; if test "$withval" = "builtin"; then with_xmltok="builtin"
21044 elif test "$withval" = "system" || test "$withval" = "yes"; then with_xmltok="system"
21045 else with_xmltok="$withval"
21053 # Check whether --with-expat was given.
21054 if test "${with_expat+set}" = set; then
21055 withval=$with_expat; if test "$withval" = "system" || test "$withval" = "yes"; then with_expat="system"
21056 else with_expath="$withval"
21063 if test "$with_xmltok" = "no" && test "$with_expat" = "no"; then
21064 if test "$have_system_expat" = "yes"; then
21066 XMLPARSE_LIBS="-lexpat"
21067 elif test "$have_system_xmltok" = "yes"; then
21069 XMLPARSE_LIBS="-lxmlparse"
21071 with_xmltok="builtin"
21073 elif test "$with_expat" != "no"; then
21074 if test "$with_expat" = "system"; then
21075 if test "$have_system_expat" = "yes"; then XMLPARSE_LIBS="-lexpat"
21076 else { { echo "$as_me:$LINENO: error: expat.h not found." >&5
21077 echo "$as_me: error: expat.h not found." >&2;}
21078 { (exit 1); exit 1; }; }
21081 XMLPARSE_LIBS="-L$with_expat/lib -lexpat"
21082 XMLPARSE_CFLAGS="-I$with_expat/include"
21086 if test "$with_xmltok" = "system"; then
21087 if test "$have_system_xmltok" = "yes"; then XMLPARSE_LIBS="-lxmlparse"
21088 else { { echo "$as_me:$LINENO: error: xmltok/xmplarse.h not found." >&5
21089 echo "$as_me: error: xmltok/xmplarse.h not found." >&2;}
21090 { (exit 1); exit 1; }; }
21092 elif test "$with_xmltok" != "builtin"; then
21093 XMLPARSE_LIBS="-L$with_xmltok/lib -lxmlparse"
21094 XMLPARSE_CFLAGS="-I$with_xmltok/include"
21098 if test "$with_expat" = "yes"; then
21100 cat >>confdefs.h <<\_ACEOF
21101 #define HAVE_EXPAT 1
21104 elif test "$with_xmltok" != "builtin"; then
21106 cat >>confdefs.h <<\_ACEOF
21107 #define HAVE_SYS_XMLTOK 1
21112 cat >>confdefs.h <<\_ACEOF
21113 #define HAVE_BUILTIN_XMLTOK 1
21120 if test "$with_xmltok" = "builtin"; then
21121 COND_XMLPARSE_TRUE=
21122 COND_XMLPARSE_FALSE='#'
21124 COND_XMLPARSE_TRUE='#'
21125 COND_XMLPARSE_FALSE=
21129 if test "${ac_cv_header_stdint_h+set}" = set; then
21130 { echo "$as_me:$LINENO: checking for stdint.h" >&5
21131 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
21132 if test "${ac_cv_header_stdint_h+set}" = set; then
21133 echo $ECHO_N "(cached) $ECHO_C" >&6
21135 { echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
21136 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; }
21138 # Is the header compilable?
21139 { echo "$as_me:$LINENO: checking stdint.h usability" >&5
21140 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6; }
21141 cat >conftest.$ac_ext <<_ACEOF
21144 cat confdefs.h >>conftest.$ac_ext
21145 cat >>conftest.$ac_ext <<_ACEOF
21146 /* end confdefs.h. */
21147 $ac_includes_default
21148 #include <stdint.h>
21150 rm -f conftest.$ac_objext
21151 if { (ac_try="$ac_compile"
21152 case "(($ac_try" in
21153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21154 *) ac_try_echo=$ac_try;;
21156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21157 (eval "$ac_compile") 2>conftest.er1
21159 grep -v '^ *+' conftest.er1 >conftest.err
21161 cat conftest.err >&5
21162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21163 (exit $ac_status); } && {
21164 test -z "$ac_c_werror_flag" ||
21165 test ! -s conftest.err
21166 } && test -s conftest.$ac_objext; then
21167 ac_header_compiler=yes
21169 echo "$as_me: failed program was:" >&5
21170 sed 's/^/| /' conftest.$ac_ext >&5
21172 ac_header_compiler=no
21175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21176 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21177 echo "${ECHO_T}$ac_header_compiler" >&6; }
21179 # Is the header present?
21180 { echo "$as_me:$LINENO: checking stdint.h presence" >&5
21181 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6; }
21182 cat >conftest.$ac_ext <<_ACEOF
21185 cat confdefs.h >>conftest.$ac_ext
21186 cat >>conftest.$ac_ext <<_ACEOF
21187 /* end confdefs.h. */
21188 #include <stdint.h>
21190 if { (ac_try="$ac_cpp conftest.$ac_ext"
21191 case "(($ac_try" in
21192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21193 *) ac_try_echo=$ac_try;;
21195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21196 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21198 grep -v '^ *+' conftest.er1 >conftest.err
21200 cat conftest.err >&5
21201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21202 (exit $ac_status); } >/dev/null && {
21203 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21204 test ! -s conftest.err
21206 ac_header_preproc=yes
21208 echo "$as_me: failed program was:" >&5
21209 sed 's/^/| /' conftest.$ac_ext >&5
21211 ac_header_preproc=no
21214 rm -f conftest.err conftest.$ac_ext
21215 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21216 echo "${ECHO_T}$ac_header_preproc" >&6; }
21218 # So? What about this header?
21219 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21221 { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
21222 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21223 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
21224 echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
21225 ac_header_preproc=yes
21228 { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
21229 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
21230 { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
21231 echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
21232 { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
21233 echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
21234 { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5
21235 echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;}
21236 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
21237 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
21238 { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
21239 echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
21243 { echo "$as_me:$LINENO: checking for stdint.h" >&5
21244 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
21245 if test "${ac_cv_header_stdint_h+set}" = set; then
21246 echo $ECHO_N "(cached) $ECHO_C" >&6
21248 ac_cv_header_stdint_h=$ac_header_preproc
21250 { echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
21251 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; }
21257 # the autotools SDK always assumes that it is linked against the engine
21259 cat >>confdefs.h <<\_ACEOF
21260 #define UIAPI_LINKED 1
21264 cat >>confdefs.h <<\_ACEOF
21265 #define DBAPI_LINKED 1
21269 cat >>confdefs.h <<\_ACEOF
21270 #define DBAPI_SRV_LINKED 1
21274 # determines which object files are needed in the SDK:
21275 # if linking statically, some object files are shared with
21277 if test "$enable_shared" = "no"; then
21279 COND_STATIC_FALSE='#'
21281 COND_STATIC_TRUE='#'
21286 # Disable unconditionally at the moment. Would add dependency of SDK
21287 # on SyncML Toolkit.
21289 cat >>confdefs.h <<\_ACEOF
21290 #define WITHOUT_SAN_1_1 1
21294 ac_config_files="$ac_config_files Makefile src/Makefile synthesis.pc synthesis-sdk.pc"
21296 cat >confcache <<\_ACEOF
21297 # This file is a shell script that caches the results of configure
21298 # tests run on this system so they can be shared between configure
21299 # scripts and configure runs, see configure's option --config-cache.
21300 # It is not useful on other systems. If it contains results you don't
21301 # want to keep, you may remove or edit it.
21303 # config.status only pays attention to the cache file if you give it
21304 # the --recheck option to rerun configure.
21306 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21307 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21308 # following values.
21312 # The following way of writing the cache mishandles newlines in values,
21313 # but we know of no workaround that is simple, portable, and efficient.
21314 # So, we kill variables containing newlines.
21315 # Ultrix sh set writes to stderr and can't be redirected directly,
21316 # and sets the high bit in the cache file unless we assign to the vars.
21318 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21319 eval ac_val=\$$ac_var
21323 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21324 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21327 _ | IFS | as_nl) ;; #(
21328 *) $as_unset $ac_var ;;
21334 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21335 *${as_nl}ac_space=\ *)
21336 # `set' does not quote correctly, so add quotes (double-quote
21337 # substitution turns \\\\ into \\, and sed turns \\ into \).
21340 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21343 # `set' quotes correctly as required by POSIX, so do not add quotes.
21344 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21353 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21355 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21357 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21358 if test -w "$cache_file"; then
21359 test "x$cache_file" != "x/dev/null" &&
21360 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21361 echo "$as_me: updating cache $cache_file" >&6;}
21362 cat confcache >$cache_file
21364 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21365 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21370 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21371 # Let make expand exec_prefix.
21372 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21374 DEFS=-DHAVE_CONFIG_H
21378 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21379 # 1. Remove the extension, and $U if already installed.
21380 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21381 ac_i=`echo "$ac_i" | sed "$ac_script"`
21382 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21383 # will be set to the directory where LIBOBJS objects are built.
21384 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21385 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21387 LIBOBJS=$ac_libobjs
21389 LTLIBOBJS=$ac_ltlibobjs
21392 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21393 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21394 Usually this means the macro was only invoked conditionally." >&5
21395 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21396 Usually this means the macro was only invoked conditionally." >&2;}
21397 { (exit 1); exit 1; }; }
21399 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21400 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21401 Usually this means the macro was only invoked conditionally." >&5
21402 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21403 Usually this means the macro was only invoked conditionally." >&2;}
21404 { (exit 1); exit 1; }; }
21406 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21407 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21408 Usually this means the macro was only invoked conditionally." >&5
21409 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21410 Usually this means the macro was only invoked conditionally." >&2;}
21411 { (exit 1); exit 1; }; }
21413 if test -z "${COND_XMLPARSE_TRUE}" && test -z "${COND_XMLPARSE_FALSE}"; then
21414 { { echo "$as_me:$LINENO: error: conditional \"COND_XMLPARSE\" was never defined.
21415 Usually this means the macro was only invoked conditionally." >&5
21416 echo "$as_me: error: conditional \"COND_XMLPARSE\" was never defined.
21417 Usually this means the macro was only invoked conditionally." >&2;}
21418 { (exit 1); exit 1; }; }
21420 if test -z "${COND_STATIC_TRUE}" && test -z "${COND_STATIC_FALSE}"; then
21421 { { echo "$as_me:$LINENO: error: conditional \"COND_STATIC\" was never defined.
21422 Usually this means the macro was only invoked conditionally." >&5
21423 echo "$as_me: error: conditional \"COND_STATIC\" was never defined.
21424 Usually this means the macro was only invoked conditionally." >&2;}
21425 { (exit 1); exit 1; }; }
21428 : ${CONFIG_STATUS=./config.status}
21429 ac_clean_files_save=$ac_clean_files
21430 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21431 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21432 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21433 cat >$CONFIG_STATUS <<_ACEOF
21435 # Generated by $as_me.
21436 # Run this file to recreate the current configuration.
21437 # Compiler output produced by configure, useful for debugging
21438 # configure, is in config.log if it exists.
21441 ac_cs_recheck=false
21443 SHELL=\${CONFIG_SHELL-$SHELL}
21446 cat >>$CONFIG_STATUS <<\_ACEOF
21447 ## --------------------- ##
21448 ## M4sh Initialization. ##
21449 ## --------------------- ##
21451 # Be more Bourne compatible
21452 DUALCASE=1; export DUALCASE # for MKS sh
21453 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21456 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21457 # is contrary to our usage. Disable this feature.
21458 alias -g '${1+"$@"}'='"$@"'
21459 setopt NO_GLOB_SUBST
21461 case `(set -o) 2>/dev/null` in
21462 *posix*) set -o posix ;;
21471 # Avoid depending upon Character Ranges.
21472 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21473 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21474 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21475 as_cr_digits='0123456789'
21476 as_cr_alnum=$as_cr_Letters$as_cr_digits
21478 # The user is always right.
21479 if test "${PATH_SEPARATOR+set}" != set; then
21480 echo "#! /bin/sh" >conf$$.sh
21481 echo "exit 0" >>conf$$.sh
21483 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21491 # Support unset when possible.
21492 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21500 # We need space, tab and new line, in precisely that order. Quoting is
21501 # there to prevent editors from complaining about space-tab.
21502 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21503 # splitting by setting IFS to empty value.)
21508 # Find who we are. Look in the path if we contain no directory separator.
21510 *[\\/]* ) as_myself=$0 ;;
21511 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21512 for as_dir in $PATH
21515 test -z "$as_dir" && as_dir=.
21516 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21522 # We did not find ourselves, most probably we were run as `sh COMMAND'
21523 # in which case we are not to be found in the path.
21524 if test "x$as_myself" = x; then
21527 if test ! -f "$as_myself"; then
21528 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21529 { (exit 1); exit 1; }
21532 # Work around bugs in pre-3.0 UWIN ksh.
21533 for as_var in ENV MAIL MAILPATH
21534 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21542 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21543 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21544 LC_TELEPHONE LC_TIME
21546 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21547 eval $as_var=C; export $as_var
21549 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21553 # Required to use basename.
21554 if expr a : '\(a\)' >/dev/null 2>&1 &&
21555 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21561 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21562 as_basename=basename
21568 # Name of the executable.
21569 as_me=`$as_basename -- "$0" ||
21570 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21571 X"$0" : 'X\(//\)$' \| \
21572 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21574 sed '/^.*\/\([^/][^/]*\)\/*$/{
21593 as_lineno_1=$LINENO
21594 as_lineno_2=$LINENO
21595 test "x$as_lineno_1" != "x$as_lineno_2" &&
21596 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21598 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21599 # uniformly replaced by the line number. The first 'sed' inserts a
21600 # line-number line after each line using $LINENO; the second 'sed'
21601 # does the real work. The second script uses 'N' to pair each
21602 # line-number line with the line containing $LINENO, and appends
21603 # trailing '-' during substitution so that $LINENO is not a special
21604 # case at line end.
21605 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21606 # scripts with optimization help from Paolo Bonzini. Blame Lee
21607 # E. McMahon (1931-1989) for sed's syntax. :-)
21619 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21622 ' >$as_me.lineno &&
21623 chmod +x "$as_me.lineno" ||
21624 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21625 { (exit 1); exit 1; }; }
21627 # Don't try to exec as it changes $[0], causing all sort of problems
21628 # (the dirname of $[0] is not the place where we might find the
21629 # original and so on. Autoconf is especially sensitive to this).
21630 . "./$as_me.lineno"
21631 # Exit status is that of the last command.
21636 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21642 ECHO_C= ECHO_N= ECHO_T=
21643 case `echo -n x` in
21645 case `echo 'x\c'` in
21646 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21653 if expr a : '\(a\)' >/dev/null 2>&1 &&
21654 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21660 rm -f conf$$ conf$$.exe conf$$.file
21661 if test -d conf$$.dir; then
21662 rm -f conf$$.dir/conf$$.file
21668 if ln -s conf$$.file conf$$ 2>/dev/null; then
21670 # ... but there are two gotchas:
21671 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21672 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21673 # In both cases, we have to default to `cp -p'.
21674 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21676 elif ln conf$$.file conf$$ 2>/dev/null; then
21681 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21682 rmdir conf$$.dir 2>/dev/null
21684 if mkdir -p . 2>/dev/null; then
21687 test -d ./-p && rmdir ./-p
21691 if test -x / >/dev/null 2>&1; then
21692 as_test_x='test -x'
21694 if ls -dL / >/dev/null 2>&1; then
21701 if test -d "$1"; then
21707 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21708 ???[sx]*):;;*)false;;esac;fi
21712 as_executable_p=$as_test_x
21714 # Sed expression to map a string onto a valid CPP name.
21715 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21717 # Sed expression to map a string onto a valid variable name.
21718 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21723 # Save the log message, to keep $[0] and so on meaningful, and to
21724 # report actual input values of CONFIG_FILES etc. instead of their
21725 # values after options handling.
21727 This file was extended by $as_me, which was
21728 generated by GNU Autoconf 2.61. Invocation command line was
21730 CONFIG_FILES = $CONFIG_FILES
21731 CONFIG_HEADERS = $CONFIG_HEADERS
21732 CONFIG_LINKS = $CONFIG_LINKS
21733 CONFIG_COMMANDS = $CONFIG_COMMANDS
21736 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21741 cat >>$CONFIG_STATUS <<_ACEOF
21742 # Files that config.status was made for.
21743 config_files="$ac_config_files"
21744 config_headers="$ac_config_headers"
21745 config_commands="$ac_config_commands"
21749 cat >>$CONFIG_STATUS <<\_ACEOF
21751 \`$as_me' instantiates files from templates according to the
21752 current configuration.
21754 Usage: $0 [OPTIONS] [FILE]...
21756 -h, --help print this help, then exit
21757 -V, --version print version number and configuration settings, then exit
21758 -q, --quiet do not print progress messages
21759 -d, --debug don't remove temporary files
21760 --recheck update $as_me by reconfiguring in the same conditions
21761 --file=FILE[:TEMPLATE]
21762 instantiate the configuration file FILE
21763 --header=FILE[:TEMPLATE]
21764 instantiate the configuration header FILE
21766 Configuration files:
21769 Configuration headers:
21772 Configuration commands:
21775 Report bugs to <bug-autoconf@gnu.org>."
21778 cat >>$CONFIG_STATUS <<_ACEOF
21781 configured by $0, generated by GNU Autoconf 2.61,
21782 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21784 Copyright (C) 2006 Free Software Foundation, Inc.
21785 This config.status script is free software; the Free Software Foundation
21786 gives unlimited permission to copy, distribute and modify it."
21794 cat >>$CONFIG_STATUS <<\_ACEOF
21795 # If no file are specified by the user, then we need to provide default
21796 # value. By we need to know if files were specified by the user.
21802 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21803 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21814 # Handling of the options.
21815 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21817 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21818 echo "$ac_cs_version"; exit ;;
21819 --debug | --debu | --deb | --de | --d | -d )
21821 --file | --fil | --fi | --f )
21823 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21824 ac_need_defaults=false;;
21825 --header | --heade | --head | --hea )
21827 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21828 ac_need_defaults=false;;
21830 # Conflict between --help and --header
21831 { echo "$as_me: error: ambiguous option: $1
21832 Try \`$0 --help' for more information." >&2
21833 { (exit 1); exit 1; }; };;
21834 --help | --hel | -h )
21835 echo "$ac_cs_usage"; exit ;;
21836 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21837 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21840 # This is an error.
21841 -*) { echo "$as_me: error: unrecognized option: $1
21842 Try \`$0 --help' for more information." >&2
21843 { (exit 1); exit 1; }; } ;;
21845 *) ac_config_targets="$ac_config_targets $1"
21846 ac_need_defaults=false ;;
21852 ac_configure_extra_args=
21854 if $ac_cs_silent; then
21856 ac_configure_extra_args="$ac_configure_extra_args --silent"
21860 cat >>$CONFIG_STATUS <<_ACEOF
21861 if \$ac_cs_recheck; then
21862 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21863 CONFIG_SHELL=$SHELL
21864 export CONFIG_SHELL
21865 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21869 cat >>$CONFIG_STATUS <<\_ACEOF
21873 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21874 ## Running $as_me. ##
21880 cat >>$CONFIG_STATUS <<_ACEOF
21884 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21888 cat >>$CONFIG_STATUS <<\_ACEOF
21890 # Handling of arguments.
21891 for ac_config_target in $ac_config_targets
21893 case $ac_config_target in
21894 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21895 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21896 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21897 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21898 "synthesis.pc") CONFIG_FILES="$CONFIG_FILES synthesis.pc" ;;
21899 "synthesis-sdk.pc") CONFIG_FILES="$CONFIG_FILES synthesis-sdk.pc" ;;
21901 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21902 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21903 { (exit 1); exit 1; }; };;
21908 # If the user did not use the arguments to specify the items to instantiate,
21909 # then the envvar interface is used. Set only those that are not.
21910 # We use the long form for the default assignment because of an extremely
21911 # bizarre bug on SunOS 4.1.3.
21912 if $ac_need_defaults; then
21913 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21914 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21915 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21918 # Have a temporary directory for convenience. Make it in the build tree
21919 # simply because there is no reason against having it here, and in addition,
21920 # creating and moving files from /tmp can sometimes cause problems.
21921 # Hook for its removal unless debugging.
21922 # Note that there is a small window in which the directory will not be cleaned:
21923 # after its creation but before its name has been assigned to `$tmp'.
21927 trap 'exit_status=$?
21928 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21930 trap '{ (exit 1); exit 1; }' 1 2 13 15
21932 # Create a (secure) tmp directory for tmp files.
21935 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21936 test -n "$tmp" && test -d "$tmp"
21939 tmp=./conf$$-$RANDOM
21940 (umask 077 && mkdir "$tmp")
21943 echo "$me: cannot create a temporary directory in ." >&2
21944 { (exit 1); exit 1; }
21948 # Set up the sed scripts for CONFIG_FILES section.
21951 # No need to generate the scripts if there are no CONFIG_FILES.
21952 # This happens for instance when ./config.status config.h
21953 if test -n "$CONFIG_FILES"; then
21960 for ac_last_try in false false false false false :; do
21961 cat >conf$$subs.sed <<_ACEOF
21962 SHELL!$SHELL$ac_delim
21963 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21964 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21965 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21966 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21967 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21968 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21969 exec_prefix!$exec_prefix$ac_delim
21970 prefix!$prefix$ac_delim
21971 program_transform_name!$program_transform_name$ac_delim
21972 bindir!$bindir$ac_delim
21973 sbindir!$sbindir$ac_delim
21974 libexecdir!$libexecdir$ac_delim
21975 datarootdir!$datarootdir$ac_delim
21976 datadir!$datadir$ac_delim
21977 sysconfdir!$sysconfdir$ac_delim
21978 sharedstatedir!$sharedstatedir$ac_delim
21979 localstatedir!$localstatedir$ac_delim
21980 includedir!$includedir$ac_delim
21981 oldincludedir!$oldincludedir$ac_delim
21982 docdir!$docdir$ac_delim
21983 infodir!$infodir$ac_delim
21984 htmldir!$htmldir$ac_delim
21985 dvidir!$dvidir$ac_delim
21986 pdfdir!$pdfdir$ac_delim
21987 psdir!$psdir$ac_delim
21988 libdir!$libdir$ac_delim
21989 localedir!$localedir$ac_delim
21990 mandir!$mandir$ac_delim
21991 DEFS!$DEFS$ac_delim
21992 ECHO_C!$ECHO_C$ac_delim
21993 ECHO_N!$ECHO_N$ac_delim
21994 ECHO_T!$ECHO_T$ac_delim
21995 LIBS!$LIBS$ac_delim
21996 build_alias!$build_alias$ac_delim
21997 host_alias!$host_alias$ac_delim
21998 target_alias!$target_alias$ac_delim
21999 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22000 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22001 INSTALL_DATA!$INSTALL_DATA$ac_delim
22002 am__isrc!$am__isrc$ac_delim
22003 CYGPATH_W!$CYGPATH_W$ac_delim
22004 PACKAGE!$PACKAGE$ac_delim
22005 VERSION!$VERSION$ac_delim
22006 ACLOCAL!$ACLOCAL$ac_delim
22007 AUTOCONF!$AUTOCONF$ac_delim
22008 AUTOMAKE!$AUTOMAKE$ac_delim
22009 AUTOHEADER!$AUTOHEADER$ac_delim
22010 MAKEINFO!$MAKEINFO$ac_delim
22011 install_sh!$install_sh$ac_delim
22012 STRIP!$STRIP$ac_delim
22013 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
22014 mkdir_p!$mkdir_p$ac_delim
22016 SET_MAKE!$SET_MAKE$ac_delim
22017 am__leading_dot!$am__leading_dot$ac_delim
22018 AMTAR!$AMTAR$ac_delim
22019 am__tar!$am__tar$ac_delim
22020 am__untar!$am__untar$ac_delim
22022 CXXFLAGS!$CXXFLAGS$ac_delim
22023 LDFLAGS!$LDFLAGS$ac_delim
22024 CPPFLAGS!$CPPFLAGS$ac_delim
22025 ac_ct_CXX!$ac_ct_CXX$ac_delim
22026 EXEEXT!$EXEEXT$ac_delim
22027 OBJEXT!$OBJEXT$ac_delim
22028 DEPDIR!$DEPDIR$ac_delim
22029 am__include!$am__include$ac_delim
22030 am__quote!$am__quote$ac_delim
22031 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
22032 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
22033 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
22034 CXXDEPMODE!$CXXDEPMODE$ac_delim
22035 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
22036 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
22037 build!$build$ac_delim
22038 build_cpu!$build_cpu$ac_delim
22039 build_vendor!$build_vendor$ac_delim
22040 build_os!$build_os$ac_delim
22041 host!$host$ac_delim
22042 host_cpu!$host_cpu$ac_delim
22043 host_vendor!$host_vendor$ac_delim
22044 host_os!$host_os$ac_delim
22046 CFLAGS!$CFLAGS$ac_delim
22047 ac_ct_CC!$ac_ct_CC$ac_delim
22048 CCDEPMODE!$CCDEPMODE$ac_delim
22049 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
22050 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
22052 GREP!$GREP$ac_delim
22053 EGREP!$EGREP$ac_delim
22054 LN_S!$LN_S$ac_delim
22055 ECHO!$ECHO$ac_delim
22057 RANLIB!$RANLIB$ac_delim
22058 DSYMUTIL!$DSYMUTIL$ac_delim
22061 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22063 elif $ac_last_try; then
22064 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22065 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22066 { (exit 1); exit 1; }; }
22068 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22072 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22073 if test -n "$ac_eof"; then
22074 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22075 ac_eof=`expr $ac_eof + 1`
22078 cat >>$CONFIG_STATUS <<_ACEOF
22079 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22080 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22083 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22084 s/^/s,@/; s/!/@,|#_!!_#|/
22087 s/'"$ac_delim"'$/,g/; t
22089 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22090 ' >>$CONFIG_STATUS <conf$$subs.sed
22091 rm -f conf$$subs.sed
22092 cat >>$CONFIG_STATUS <<_ACEOF
22098 for ac_last_try in false false false false false :; do
22099 cat >conf$$subs.sed <<_ACEOF
22100 NMEDIT!$NMEDIT$ac_delim
22102 CXXCPP!$CXXCPP$ac_delim
22104 FFLAGS!$FFLAGS$ac_delim
22105 ac_ct_F77!$ac_ct_F77$ac_delim
22106 LIBTOOL!$LIBTOOL$ac_delim
22107 PKG_CONFIG!$PKG_CONFIG$ac_delim
22108 FOOBAR_CFLAGS!$FOOBAR_CFLAGS$ac_delim
22109 FOOBAR_LIBS!$FOOBAR_LIBS$ac_delim
22110 SQLITE3_CFLAGS!$SQLITE3_CFLAGS$ac_delim
22111 SQLITE3_LIBS!$SQLITE3_LIBS$ac_delim
22112 PCRE_CFLAGS!$PCRE_CFLAGS$ac_delim
22113 PCRE_LIBS!$PCRE_LIBS$ac_delim
22114 LIBICAL_CFLAGS!$LIBICAL_CFLAGS$ac_delim
22115 LIBICAL_LIBS!$LIBICAL_LIBS$ac_delim
22116 LIBECAL_CFLAGS!$LIBECAL_CFLAGS$ac_delim
22117 LIBECAL_LIBS!$LIBECAL_LIBS$ac_delim
22118 XMLPARSE_LIBS!$XMLPARSE_LIBS$ac_delim
22119 XMLPARSE_CFLAGS!$XMLPARSE_CFLAGS$ac_delim
22120 COND_XMLPARSE_TRUE!$COND_XMLPARSE_TRUE$ac_delim
22121 COND_XMLPARSE_FALSE!$COND_XMLPARSE_FALSE$ac_delim
22122 COND_STATIC_TRUE!$COND_STATIC_TRUE$ac_delim
22123 COND_STATIC_FALSE!$COND_STATIC_FALSE$ac_delim
22124 LIBOBJS!$LIBOBJS$ac_delim
22125 LTLIBOBJS!$LTLIBOBJS$ac_delim
22128 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 26; then
22130 elif $ac_last_try; then
22131 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22132 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22133 { (exit 1); exit 1; }; }
22135 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22139 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22140 if test -n "$ac_eof"; then
22141 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22142 ac_eof=`expr $ac_eof + 1`
22145 cat >>$CONFIG_STATUS <<_ACEOF
22146 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22147 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22150 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22151 s/^/s,@/; s/!/@,|#_!!_#|/
22154 s/'"$ac_delim"'$/,g/; t
22156 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22157 ' >>$CONFIG_STATUS <conf$$subs.sed
22158 rm -f conf$$subs.sed
22159 cat >>$CONFIG_STATUS <<_ACEOF
22166 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22167 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22168 # trailing colons and then remove the whole line if VPATH becomes empty
22169 # (actually we leave an empty line to preserve line numbers).
22170 if test "x$srcdir" = x.; then
22171 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22172 s/:*\$(srcdir):*/:/
22173 s/:*\${srcdir}:*/:/
22175 s/^\([^=]*=[ ]*\):*/\1/
22181 cat >>$CONFIG_STATUS <<\_ACEOF
22182 fi # test -n "$CONFIG_FILES"
22185 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22188 :[FHLC]) ac_mode=$ac_tag; continue;;
22190 case $ac_mode$ac_tag in
22192 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22193 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22194 { (exit 1); exit 1; }; };;
22195 :[FH]-) ac_tag=-:-;;
22196 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22213 -) ac_f="$tmp/stdin";;
22214 *) # Look for the file first in the build tree, then in the source tree
22215 # (if the path is not absolute). The absolute path cannot be DOS-style,
22216 # because $ac_f cannot contain `:'.
22220 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22222 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22223 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22224 { (exit 1); exit 1; }; };;
22226 ac_file_inputs="$ac_file_inputs $ac_f"
22229 # Let's still pretend it is `configure' which instantiates (i.e., don't
22230 # use $as_me), people would be surprised to read:
22231 # /* config.h. Generated by config.status. */
22232 configure_input="Generated from "`IFS=:
22233 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22234 if test x"$ac_file" != x-; then
22235 configure_input="$ac_file. $configure_input"
22236 { echo "$as_me:$LINENO: creating $ac_file" >&5
22237 echo "$as_me: creating $ac_file" >&6;}
22241 *:-:* | *:-) cat >"$tmp/stdin";;
22246 ac_dir=`$as_dirname -- "$ac_file" ||
22247 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22248 X"$ac_file" : 'X\(//\)[^/]' \| \
22249 X"$ac_file" : 'X\(//\)$' \| \
22250 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22252 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22256 /^X\(\/\/\)[^/].*/{
22271 -*) as_dir=./$as_dir;;
22273 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22277 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22278 *) as_qdir=$as_dir;;
22280 as_dirs="'$as_qdir' $as_dirs"
22281 as_dir=`$as_dirname -- "$as_dir" ||
22282 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22283 X"$as_dir" : 'X\(//\)[^/]' \| \
22284 X"$as_dir" : 'X\(//\)$' \| \
22285 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22291 /^X\(\/\/\)[^/].*/{
22304 test -d "$as_dir" && break
22306 test -z "$as_dirs" || eval "mkdir $as_dirs"
22307 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22308 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22309 { (exit 1); exit 1; }; }; }
22313 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22315 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22316 # A ".." for each directory in $ac_dir_suffix.
22317 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22318 case $ac_top_builddir_sub in
22319 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22320 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22323 ac_abs_top_builddir=$ac_pwd
22324 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22325 # for backward compatibility:
22326 ac_top_builddir=$ac_top_build_prefix
22329 .) # We are building in place.
22331 ac_top_srcdir=$ac_top_builddir_sub
22332 ac_abs_top_srcdir=$ac_pwd ;;
22333 [\\/]* | ?:[\\/]* ) # Absolute name.
22334 ac_srcdir=$srcdir$ac_dir_suffix;
22335 ac_top_srcdir=$srcdir
22336 ac_abs_top_srcdir=$srcdir ;;
22337 *) # Relative name.
22338 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22339 ac_top_srcdir=$ac_top_build_prefix$srcdir
22340 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22342 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22352 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22353 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22355 ac_MKDIR_P=$MKDIR_P
22357 [\\/$]* | ?:[\\/]* ) ;;
22358 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22362 cat >>$CONFIG_STATUS <<\_ACEOF
22363 # If the template does not know about datarootdir, expand it.
22364 # FIXME: This hack should be removed a few years after 2.60.
22365 ac_datarootdir_hack=; ac_datarootdir_seen=
22367 case `sed -n '/datarootdir/ {
22376 ' $ac_file_inputs` in
22377 *datarootdir*) ac_datarootdir_seen=yes;;
22378 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22379 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22380 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22382 cat >>$CONFIG_STATUS <<_ACEOF
22383 ac_datarootdir_hack='
22384 s&@datadir@&$datadir&g
22385 s&@docdir@&$docdir&g
22386 s&@infodir@&$infodir&g
22387 s&@localedir@&$localedir&g
22388 s&@mandir@&$mandir&g
22389 s&\\\${datarootdir}&$datarootdir&g' ;;
22393 # Neutralize VPATH when `$srcdir' = `.'.
22394 # Shell code in configure.ac might set extrasub.
22395 # FIXME: do we really want to maintain this feature?
22396 cat >>$CONFIG_STATUS <<_ACEOF
22400 cat >>$CONFIG_STATUS <<\_ACEOF
22402 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22403 s&@configure_input@&$configure_input&;t t
22404 s&@top_builddir@&$ac_top_builddir_sub&;t t
22405 s&@srcdir@&$ac_srcdir&;t t
22406 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22407 s&@top_srcdir@&$ac_top_srcdir&;t t
22408 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22409 s&@builddir@&$ac_builddir&;t t
22410 s&@abs_builddir@&$ac_abs_builddir&;t t
22411 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22412 s&@INSTALL@&$ac_INSTALL&;t t
22413 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22414 $ac_datarootdir_hack
22415 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22417 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22418 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22419 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22420 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22421 which seems to be undefined. Please make sure it is defined." >&5
22422 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22423 which seems to be undefined. Please make sure it is defined." >&2;}
22427 -) cat "$tmp/out"; rm -f "$tmp/out";;
22428 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22437 # Transform confdefs.h into a sed script `conftest.defines', that
22438 # substitutes the proper values into config.h.in to produce config.h.
22439 rm -f conftest.defines conftest.tail
22440 # First, append a space to every undef/define line, to ease matching.
22441 echo 's/$/ /' >conftest.defines
22442 # Then, protect against being on the right side of a sed subst, or in
22443 # an unquoted here document, in config.status. If some macros were
22444 # called several times there might be several #defines for the same
22445 # symbol, which is useless. But do not sort them, since the last
22446 # AC_DEFINE must be honored.
22447 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22448 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22449 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22450 # PARAMS is the parameter list in the macro definition--in most cases, it's
22451 # just an empty string.
22452 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22453 ac_dB='\\)[ (].*,\\1define\\2'
22461 s/^[ ]*#[ ]*define[ ][ ]*//
22466 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22467 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22468 ' >>conftest.defines
22470 # Remove the space that was appended to ease matching.
22471 # Then replace #undef with comments. This is necessary, for
22472 # example, in the case of _POSIX_SOURCE, which is predefined and required
22473 # on some systems where configure will not decide to define it.
22474 # (The regexp can be short, since the line contains either #define or #undef.)
22476 s,^[ #]*u.*,/* & */,' >>conftest.defines
22478 # Break up conftest.defines:
22479 ac_max_sed_lines=50
22481 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22482 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22483 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22485 ac_in='$ac_file_inputs'
22486 ac_out='"$tmp/out1"'
22487 ac_nxt='"$tmp/out2"'
22491 # Write a here document:
22492 cat >>$CONFIG_STATUS <<_ACEOF
22493 # First, check the format of the line:
22494 cat >"\$tmp/defines.sed" <<\\CEOF
22495 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22496 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22500 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22502 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22503 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22504 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22505 grep . conftest.tail >/dev/null || break
22506 rm -f conftest.defines
22507 mv conftest.tail conftest.defines
22509 rm -f conftest.defines conftest.tail
22511 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22512 cat >>$CONFIG_STATUS <<\_ACEOF
22513 if test x"$ac_file" != x-; then
22514 echo "/* $configure_input */" >"$tmp/config.h"
22515 cat "$ac_result" >>"$tmp/config.h"
22516 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22517 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22518 echo "$as_me: $ac_file is unchanged" >&6;}
22521 mv "$tmp/config.h" $ac_file
22524 echo "/* $configure_input */"
22528 # Compute $ac_file's index in $config_headers.
22531 for _am_header in $config_headers :; do
22532 case $_am_header in
22533 $_am_arg | $_am_arg:* )
22536 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22539 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22540 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22541 X"$_am_arg" : 'X\(//\)[^/]' \| \
22542 X"$_am_arg" : 'X\(//\)$' \| \
22543 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22545 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22549 /^X\(\/\/\)[^/].*/{
22561 s/.*/./; q'`/stamp-h$_am_stamp_count
22564 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22565 echo "$as_me: executing $ac_file commands" >&6;}
22570 case $ac_file$ac_mode in
22571 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22572 # Strip MF so we end up with the name of the file.
22573 mf=`echo "$mf" | sed -e 's/:.*$//'`
22574 # Check whether this is an Automake generated Makefile or not.
22575 # We used to match only the files named `Makefile.in', but
22576 # some people rename them; so instead we look at the file content.
22577 # Grep'ing the first line is not enough: some people post-process
22578 # each Makefile.in and add a new line on top of each file to say so.
22579 # Grep'ing the whole file is not good either: AIX grep has a line
22580 # limit of 2048, but all sed's we know have understand at least 4000.
22581 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22582 dirpart=`$as_dirname -- "$mf" ||
22583 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22584 X"$mf" : 'X\(//\)[^/]' \| \
22585 X"$mf" : 'X\(//\)$' \| \
22586 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22588 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22592 /^X\(\/\/\)[^/].*/{
22608 # Extract the definition of DEPDIR, am__include, and am__quote
22609 # from the Makefile without running `make'.
22610 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22611 test -z "$DEPDIR" && continue
22612 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22613 test -z "am__include" && continue
22614 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22615 # When using ansi2knr, U may be empty or an underscore; expand it
22616 U=`sed -n 's/^U = //p' < "$mf"`
22617 # Find all dependency output files, they are included files with
22618 # $(DEPDIR) in their names. We invoke sed twice because it is the
22619 # simplest approach to changing $(DEPDIR) to its actual value in the
22621 for file in `sed -n "
22622 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22623 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22624 # Make sure the directory exists.
22625 test -f "$dirpart/$file" && continue
22626 fdir=`$as_dirname -- "$file" ||
22627 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22628 X"$file" : 'X\(//\)[^/]' \| \
22629 X"$file" : 'X\(//\)$' \| \
22630 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22632 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22636 /^X\(\/\/\)[^/].*/{
22649 { as_dir=$dirpart/$fdir
22651 -*) as_dir=./$as_dir;;
22653 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22657 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22658 *) as_qdir=$as_dir;;
22660 as_dirs="'$as_qdir' $as_dirs"
22661 as_dir=`$as_dirname -- "$as_dir" ||
22662 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22663 X"$as_dir" : 'X\(//\)[^/]' \| \
22664 X"$as_dir" : 'X\(//\)$' \| \
22665 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22667 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22671 /^X\(\/\/\)[^/].*/{
22684 test -d "$as_dir" && break
22686 test -z "$as_dirs" || eval "mkdir $as_dirs"
22687 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22688 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22689 { (exit 1); exit 1; }; }; }
22690 # echo "creating $dirpart/$file"
22691 echo '# dummy' > "$dirpart/$file"
22700 { (exit 0); exit 0; }
22702 chmod +x $CONFIG_STATUS
22703 ac_clean_files=$ac_clean_files_save
22706 # configure is writing to config.log, and then calls config.status.
22707 # config.status does its own redirection, appending to config.log.
22708 # Unfortunately, on DOS this fails, as config.log is still kept open
22709 # by configure, so config.status won't be able to write to it; its
22710 # output is simply discarded. So we exec the FD to /dev/null,
22711 # effectively closing config.log, so it can be properly (re)opened and
22712 # appended to by config.status. When coming back to configure, we
22713 # need to make the FD available again.
22714 if test "$no_create" != yes; then
22716 ac_config_status_args=
22717 test "$silent" = yes &&
22718 ac_config_status_args="$ac_config_status_args --quiet"
22720 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22722 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22723 # would make configure fail if this is the last instruction.
22724 $ac_cs_success || { (exit 1); exit 1; }