2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for Conky 1.8.5_pre2390.
5 # Report bugs to <brenden1@users.sourceforge.net>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
72 # Find who we are. Look in the path if we contain no directory separator.
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
163 if test $as_have_required = yes && (eval ":
173 as_func_ret_success () {
176 as_func_ret_failure () {
181 if as_func_success; then
185 echo as_func_success failed.
188 if as_func_failure; then
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 test -z "$as_dir" && as_dir=.
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
260 CONFIG_SHELL=$as_shell
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
288 as_func_ret_success () {
291 as_func_ret_failure () {
296 if as_func_success; then
300 echo as_func_success failed.
303 if as_func_failure; then
305 echo as_func_failure succeeded.
308 if as_func_ret_success; then
312 echo as_func_ret_success failed.
315 if as_func_ret_failure; then
317 echo as_func_ret_failure succeeded.
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
324 echo positional parameters were not saved.
327 test $exitcode = 0) || { (exit 1); exit 1; }
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
368 (eval "as_func_return () {
377 as_func_ret_success () {
380 as_func_ret_failure () {
385 if as_func_success; then
389 echo as_func_success failed.
392 if as_func_failure; then
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
413 echo positional parameters were not saved.
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
463 # Exit status is that of the last command.
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
474 ECHO_C= ECHO_N= ECHO_T=
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508 elif ln conf$$.file conf$$ 2>/dev/null; then
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
516 if mkdir -p . 2>/dev/null; then
519 test -d ./-p && rmdir ./-p
523 if test -x / >/dev/null 2>&1; then
526 if ls -dL / >/dev/null 2>&1; then
533 if test -d "$1"; then
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
544 as_executable_p=$as_test_x
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
560 # Remove one level of quotation (which was required for Make).
561 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
566 if test "X$1" = X--no-reexec; then
567 # Discard the --no-reexec flag, and continue.
569 elif test "X$1" = X--fallback-echo; then
570 # Avoid inline document here, it may be left over
572 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573 # Yippee, $echo works!
576 # Restart under the correct shell.
577 exec $SHELL "$0" --no-reexec ${1+"$@"}
580 if test "X$1" = X--fallback-echo; then
581 # used as fallback echo
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
593 if test -z "$ECHO"; then
594 if test "X${echo_test_string+set}" != Xset; then
595 # find a string as large as possible, as long as the shell can cope with it
596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599 echo_test_string=`eval $cmd` &&
600 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
607 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
612 # The Solaris, AIX, and Digital Unix default echo programs unquote
613 # backslashes. This makes it impossible to quote backslashes using
614 # echo "$something" | sed 's/\\/\\\\/g'
616 # So, first we look for a working echo in the user's PATH.
618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619 for dir in $PATH /usr/ucb; do
621 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624 test "X$echo_testing_string" = "X$echo_test_string"; then
631 if test "X$echo" = Xecho; then
632 # We didn't find a better echo, so look for alternatives.
633 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 # This shell has a builtin print -r that does the trick.
638 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639 test "X$CONFIG_SHELL" != X/bin/ksh; then
640 # If we have ksh, try running configure again with it.
641 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642 export ORIGINAL_CONFIG_SHELL
643 CONFIG_SHELL=/bin/ksh
645 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
649 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
654 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655 test "X$echo_testing_string" = 'X\t' &&
656 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
660 SHELL="$CONFIG_SHELL"
662 echo="$CONFIG_SHELL $0 --fallback-echo"
663 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664 test "X$echo_testing_string" = 'X\t' &&
665 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666 test "X$echo_testing_string" = "X$echo_test_string"; then
667 echo="$CONFIG_SHELL $0 --fallback-echo"
669 # maybe with a smaller string...
672 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
680 if test "$prev" != 'sed 50q "$0"'; then
681 echo_test_string=`eval $prev`
682 export echo_test_string
683 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
685 # Oops. We lost completely, so just stick with echo.
694 # Copy echo and quote the copy suitably for passing to libtool from
695 # the Makefile, instead of quoting the original, which is used later.
697 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
704 tagnames=${tagnames+${tagnames},}CXX
706 tagnames=${tagnames+${tagnames},}F77
708 exec 7<&0 </dev/null 6>&1
711 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712 # so uname gets run too.
713 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
718 ac_default_prefix=/usr/local
720 ac_config_libobj_dir=.
726 SHELL=${CONFIG_SHELL-/bin/sh}
728 # Identity of this package.
730 PACKAGE_TARNAME='conky'
731 PACKAGE_VERSION='1.8.5_pre2390'
732 PACKAGE_STRING='Conky 1.8.5_pre2390'
733 PACKAGE_BUGREPORT='brenden1@users.sourceforge.net'
735 # Factoring default headers for most tests.
736 ac_includes_default="\
738 #ifdef HAVE_SYS_TYPES_H
739 # include <sys/types.h>
741 #ifdef HAVE_SYS_STAT_H
742 # include <sys/stat.h>
748 # ifdef HAVE_STDLIB_H
753 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
758 #ifdef HAVE_STRINGS_H
759 # include <strings.h>
761 #ifdef HAVE_INTTYPES_H
762 # include <inttypes.h>
780 program_transform_name
822 INSTALL_STRIP_PROGRAM
882 BUILD_CONFIG_OUTPUT_TRUE
883 BUILD_CONFIG_OUTPUT_FALSE
887 BUILD_AUDACIOUS_FALSE
945 BUILD_LUA_CAIRO_FALSE
946 BUILD_LUA_IMLIB2_TRUE
947 BUILD_LUA_IMLIB2_FALSE
950 BUILD_PORT_MONITORS_TRUE
951 BUILD_PORT_MONITORS_FALSE
982 ac_precious_vars='build_alias
1031 # Initialize some variables set by options.
1033 ac_init_version=false
1034 # The variables have the same names as the options, with
1035 # dashes changed to underlines.
1036 cache_file=/dev/null
1043 program_transform_name=s,x,x,
1051 # Installation directory options.
1052 # These are left unexpanded so users can "make install exec_prefix=/foo"
1053 # and all the variables that are supposed to be based on exec_prefix
1054 # by default will actually change.
1055 # Use braces instead of parens because sh, perl, etc. also accept them.
1056 # (The list follows the same order as the GNU Coding Standards.)
1057 bindir='${exec_prefix}/bin'
1058 sbindir='${exec_prefix}/sbin'
1059 libexecdir='${exec_prefix}/libexec'
1060 datarootdir='${prefix}/share'
1061 datadir='${datarootdir}'
1062 sysconfdir='${prefix}/etc'
1063 sharedstatedir='${prefix}/com'
1064 localstatedir='${prefix}/var'
1065 includedir='${prefix}/include'
1066 oldincludedir='/usr/include'
1067 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1068 infodir='${datarootdir}/info'
1073 libdir='${exec_prefix}/lib'
1074 localedir='${datarootdir}/locale'
1075 mandir='${datarootdir}/man'
1081 # If the previous option needs an argument, assign it.
1082 if test -n "$ac_prev"; then
1083 eval $ac_prev=\$ac_option
1089 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1093 # Accept the important Cygnus configure options, so we can diagnose typos.
1095 case $ac_dashdash$ac_option in
1099 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1101 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1102 bindir=$ac_optarg ;;
1104 -build | --build | --buil | --bui | --bu)
1105 ac_prev=build_alias ;;
1106 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1107 build_alias=$ac_optarg ;;
1109 -cache-file | --cache-file | --cache-fil | --cache-fi \
1110 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1111 ac_prev=cache_file ;;
1112 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1113 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1114 cache_file=$ac_optarg ;;
1116 --config-cache | -C)
1117 cache_file=config.cache ;;
1119 -datadir | --datadir | --datadi | --datad)
1121 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1122 datadir=$ac_optarg ;;
1124 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1125 | --dataroo | --dataro | --datar)
1126 ac_prev=datarootdir ;;
1127 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1128 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1129 datarootdir=$ac_optarg ;;
1131 -disable-* | --disable-*)
1132 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1133 # Reject names that are not valid shell variable names.
1134 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1135 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1136 { (exit 1); exit 1; }; }
1137 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1138 eval enable_$ac_feature=no ;;
1140 -docdir | --docdir | --docdi | --doc | --do)
1142 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1143 docdir=$ac_optarg ;;
1145 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1147 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1148 dvidir=$ac_optarg ;;
1150 -enable-* | --enable-*)
1151 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1152 # Reject names that are not valid shell variable names.
1153 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1154 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1155 { (exit 1); exit 1; }; }
1156 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1157 eval enable_$ac_feature=\$ac_optarg ;;
1159 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1160 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1161 | --exec | --exe | --ex)
1162 ac_prev=exec_prefix ;;
1163 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1164 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1165 | --exec=* | --exe=* | --ex=*)
1166 exec_prefix=$ac_optarg ;;
1168 -gas | --gas | --ga | --g)
1169 # Obsolete; use --with-gas.
1172 -help | --help | --hel | --he | -h)
1173 ac_init_help=long ;;
1174 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1175 ac_init_help=recursive ;;
1176 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1177 ac_init_help=short ;;
1179 -host | --host | --hos | --ho)
1180 ac_prev=host_alias ;;
1181 -host=* | --host=* | --hos=* | --ho=*)
1182 host_alias=$ac_optarg ;;
1184 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1186 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1188 htmldir=$ac_optarg ;;
1190 -includedir | --includedir | --includedi | --included | --include \
1191 | --includ | --inclu | --incl | --inc)
1192 ac_prev=includedir ;;
1193 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1194 | --includ=* | --inclu=* | --incl=* | --inc=*)
1195 includedir=$ac_optarg ;;
1197 -infodir | --infodir | --infodi | --infod | --info | --inf)
1199 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1200 infodir=$ac_optarg ;;
1202 -libdir | --libdir | --libdi | --libd)
1204 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1205 libdir=$ac_optarg ;;
1207 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1208 | --libexe | --libex | --libe)
1209 ac_prev=libexecdir ;;
1210 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1211 | --libexe=* | --libex=* | --libe=*)
1212 libexecdir=$ac_optarg ;;
1214 -localedir | --localedir | --localedi | --localed | --locale)
1215 ac_prev=localedir ;;
1216 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1217 localedir=$ac_optarg ;;
1219 -localstatedir | --localstatedir | --localstatedi | --localstated \
1220 | --localstate | --localstat | --localsta | --localst | --locals)
1221 ac_prev=localstatedir ;;
1222 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1223 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1224 localstatedir=$ac_optarg ;;
1226 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1228 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1229 mandir=$ac_optarg ;;
1231 -nfp | --nfp | --nf)
1232 # Obsolete; use --without-fp.
1235 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1236 | --no-cr | --no-c | -n)
1239 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1240 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1243 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1244 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1245 | --oldin | --oldi | --old | --ol | --o)
1246 ac_prev=oldincludedir ;;
1247 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1248 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1249 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1250 oldincludedir=$ac_optarg ;;
1252 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1254 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1255 prefix=$ac_optarg ;;
1257 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1258 | --program-pre | --program-pr | --program-p)
1259 ac_prev=program_prefix ;;
1260 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1261 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1262 program_prefix=$ac_optarg ;;
1264 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1265 | --program-suf | --program-su | --program-s)
1266 ac_prev=program_suffix ;;
1267 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1268 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1269 program_suffix=$ac_optarg ;;
1271 -program-transform-name | --program-transform-name \
1272 | --program-transform-nam | --program-transform-na \
1273 | --program-transform-n | --program-transform- \
1274 | --program-transform | --program-transfor \
1275 | --program-transfo | --program-transf \
1276 | --program-trans | --program-tran \
1277 | --progr-tra | --program-tr | --program-t)
1278 ac_prev=program_transform_name ;;
1279 -program-transform-name=* | --program-transform-name=* \
1280 | --program-transform-nam=* | --program-transform-na=* \
1281 | --program-transform-n=* | --program-transform-=* \
1282 | --program-transform=* | --program-transfor=* \
1283 | --program-transfo=* | --program-transf=* \
1284 | --program-trans=* | --program-tran=* \
1285 | --progr-tra=* | --program-tr=* | --program-t=*)
1286 program_transform_name=$ac_optarg ;;
1288 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1290 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1291 pdfdir=$ac_optarg ;;
1293 -psdir | --psdir | --psdi | --psd | --ps)
1295 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1298 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1299 | -silent | --silent | --silen | --sile | --sil)
1302 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1304 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1306 sbindir=$ac_optarg ;;
1308 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1309 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1310 | --sharedst | --shareds | --shared | --share | --shar \
1312 ac_prev=sharedstatedir ;;
1313 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1314 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1315 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1317 sharedstatedir=$ac_optarg ;;
1319 -site | --site | --sit)
1321 -site=* | --site=* | --sit=*)
1324 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1326 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1327 srcdir=$ac_optarg ;;
1329 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1330 | --syscon | --sysco | --sysc | --sys | --sy)
1331 ac_prev=sysconfdir ;;
1332 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1333 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1334 sysconfdir=$ac_optarg ;;
1336 -target | --target | --targe | --targ | --tar | --ta | --t)
1337 ac_prev=target_alias ;;
1338 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1339 target_alias=$ac_optarg ;;
1341 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1344 -version | --version | --versio | --versi | --vers | -V)
1345 ac_init_version=: ;;
1348 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1349 # Reject names that are not valid shell variable names.
1350 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1351 { echo "$as_me: error: invalid package name: $ac_package" >&2
1352 { (exit 1); exit 1; }; }
1353 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1354 eval with_$ac_package=\$ac_optarg ;;
1356 -without-* | --without-*)
1357 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1358 # Reject names that are not valid shell variable names.
1359 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1360 { echo "$as_me: error: invalid package name: $ac_package" >&2
1361 { (exit 1); exit 1; }; }
1362 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1363 eval with_$ac_package=no ;;
1366 # Obsolete; use --with-x.
1369 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1370 | --x-incl | --x-inc | --x-in | --x-i)
1371 ac_prev=x_includes ;;
1372 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1373 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1374 x_includes=$ac_optarg ;;
1376 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1377 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1378 ac_prev=x_libraries ;;
1379 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1380 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1381 x_libraries=$ac_optarg ;;
1383 -*) { echo "$as_me: error: unrecognized option: $ac_option
1384 Try \`$0 --help' for more information." >&2
1385 { (exit 1); exit 1; }; }
1389 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1390 # Reject names that are not valid shell variable names.
1391 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1392 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1393 { (exit 1); exit 1; }; }
1394 eval $ac_envvar=\$ac_optarg
1395 export $ac_envvar ;;
1398 # FIXME: should be removed in autoconf 3.0.
1399 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1400 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1401 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1402 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1408 if test -n "$ac_prev"; then
1409 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1410 { echo "$as_me: error: missing argument to $ac_option" >&2
1411 { (exit 1); exit 1; }; }
1414 # Be sure to have absolute directory names.
1415 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1416 datadir sysconfdir sharedstatedir localstatedir includedir \
1417 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1418 libdir localedir mandir
1420 eval ac_val=\$$ac_var
1422 [\\/$]* | ?:[\\/]* ) continue;;
1423 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1425 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1426 { (exit 1); exit 1; }; }
1429 # There might be people who depend on the old broken behavior: `$host'
1430 # used to hold the argument of --host etc.
1431 # FIXME: To remove some day.
1434 target=$target_alias
1436 # FIXME: To remove some day.
1437 if test "x$host_alias" != x; then
1438 if test "x$build_alias" = x; then
1439 cross_compiling=maybe
1440 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1441 If a cross compiler is detected then cross compile mode will be used." >&2
1442 elif test "x$build_alias" != "x$host_alias"; then
1448 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1450 test "$silent" = yes && exec 6>/dev/null
1453 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1454 ac_ls_di=`ls -di .` &&
1455 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1456 { echo "$as_me: error: Working directory cannot be determined" >&2
1457 { (exit 1); exit 1; }; }
1458 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1459 { echo "$as_me: error: pwd does not report name of working directory" >&2
1460 { (exit 1); exit 1; }; }
1463 # Find the source files, if location was not specified.
1464 if test -z "$srcdir"; then
1465 ac_srcdir_defaulted=yes
1466 # Try the directory containing this script, then the parent directory.
1467 ac_confdir=`$as_dirname -- "$0" ||
1468 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1469 X"$0" : 'X\(//\)[^/]' \| \
1470 X"$0" : 'X\(//\)$' \| \
1471 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1473 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1491 if test ! -r "$srcdir/$ac_unique_file"; then
1495 ac_srcdir_defaulted=no
1497 if test ! -r "$srcdir/$ac_unique_file"; then
1498 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1499 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1500 { (exit 1); exit 1; }; }
1502 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1504 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1505 { (exit 1); exit 1; }; }
1507 # When building in place, set srcdir=.
1508 if test "$ac_abs_confdir" = "$ac_pwd"; then
1511 # Remove unnecessary trailing slashes from srcdir.
1512 # Double slashes in file names in object file debugging info
1513 # mess up M-x gdb in Emacs.
1515 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1517 for ac_var in $ac_precious_vars; do
1518 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1519 eval ac_env_${ac_var}_value=\$${ac_var}
1520 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1521 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1525 # Report the --help message.
1527 if test "$ac_init_help" = "long"; then
1528 # Omit some internal or obsolete options to make the list less imposing.
1529 # This message is too long to be a string in the A/UX 3.1 sh.
1531 \`configure' configures Conky 1.8.5_pre2390 to adapt to many kinds of systems.
1533 Usage: $0 [OPTION]... [VAR=VALUE]...
1535 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1536 VAR=VALUE. See below for descriptions of some of the useful variables.
1538 Defaults for the options are specified in brackets.
1541 -h, --help display this help and exit
1542 --help=short display options specific to this package
1543 --help=recursive display the short help of all the included packages
1544 -V, --version display version information and exit
1545 -q, --quiet, --silent do not print \`checking...' messages
1546 --cache-file=FILE cache test results in FILE [disabled]
1547 -C, --config-cache alias for \`--cache-file=config.cache'
1548 -n, --no-create do not create output files
1549 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1551 Installation directories:
1552 --prefix=PREFIX install architecture-independent files in PREFIX
1553 [$ac_default_prefix]
1554 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1557 By default, \`make install' will install all the files in
1558 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1559 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1560 for instance \`--prefix=\$HOME'.
1562 For better control, use the options below.
1564 Fine tuning of the installation directories:
1565 --bindir=DIR user executables [EPREFIX/bin]
1566 --sbindir=DIR system admin executables [EPREFIX/sbin]
1567 --libexecdir=DIR program executables [EPREFIX/libexec]
1568 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1569 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1570 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1571 --libdir=DIR object code libraries [EPREFIX/lib]
1572 --includedir=DIR C header files [PREFIX/include]
1573 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1574 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1575 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1576 --infodir=DIR info documentation [DATAROOTDIR/info]
1577 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1578 --mandir=DIR man documentation [DATAROOTDIR/man]
1579 --docdir=DIR documentation root [DATAROOTDIR/doc/conky]
1580 --htmldir=DIR html documentation [DOCDIR]
1581 --dvidir=DIR dvi documentation [DOCDIR]
1582 --pdfdir=DIR pdf documentation [DOCDIR]
1583 --psdir=DIR ps documentation [DOCDIR]
1589 --program-prefix=PREFIX prepend PREFIX to installed program names
1590 --program-suffix=SUFFIX append SUFFIX to installed program names
1591 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1594 --x-includes=DIR X include files are in DIR
1595 --x-libraries=DIR X library files are in DIR
1598 --build=BUILD configure for building on BUILD [guessed]
1599 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1603 if test -n "$ac_init_help"; then
1604 case $ac_init_help in
1605 short | recursive ) echo "Configuration of Conky 1.8.5_pre2390:";;
1610 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1611 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1612 --disable-dependency-tracking speeds up one-time build
1613 --enable-dependency-tracking do not reject slow dependency extractors
1614 --enable-shared[=PKGS] build shared libraries [default=yes]
1615 --enable-static[=PKGS] build static libraries [default=yes]
1616 --enable-fast-install[=PKGS]
1617 optimize for fast installation [default=yes]
1618 --disable-libtool-lock avoid locking (might break parallel builds)
1619 --disable-config-output disable if you do not want conky to output a default
1620 config (with -C) [default=yes]
1621 --disable-own-window disable if you do not want support for creating own
1622 window [default=yes]
1623 --disable-ncurses disable if you do not want ncurses support in conky
1625 --enable-audacious=yes|no|legacy
1626 enable audacious player support [default=no]
1627 --enable-bmpx enable if you want BMPx support [default=no]
1628 --enable-ibm enable if you want support for IBM/Lenovo notebooks
1630 --disable-hddtemp disable if you do not want hddtemp support
1632 --disable-apcupsd disable if you do not want apcupsd support
1634 --enable-iostats enable if you want support for per-task I/O
1635 statistics [default=yes]
1636 --disable-math disable if you do not want math support
1638 --disable-mpd disable if you do not want MPD support [default=yes]
1639 --disable-moc disable if you do not want MOC support [default=yes]
1640 --enable-xmms2 enable if you want XMMS2 support [default=no]
1641 --enable-curl enable if you want curl support [default=no]
1642 --enable-eve Eve-Online skill monitor [default=no]
1643 --enable-rss enable if you want rss support [default=no]
1644 --enable-weather-metar enable if you want METAR weather support
1646 --enable-weather-xoap enable if you want XOAP weather support (also
1647 enables METAR) [default=no]
1648 --disable-x11 disable if you do not want X11 support [default=yes]
1649 --disable-argb disable if you do not want a argb visual
1651 --enable-imlib2 enable if you want Imlib2 support [default=no]
1652 --enable-lua-imlib2 enable if you want Lua Imlib2 bindings for Conky
1654 --enable-lua enable if you want Lua scripting support
1656 --enable-lua-cairo enable if you want Lua Cairo bindings for Conky
1658 --enable-wlan enable if you want wireless support [default=no]
1659 --disable-portmon disable if you do not want tcp (ip4) port monitoring
1661 --disable-rpath do not hardcode runtime library paths
1662 --disable-double-buffer disable for no Xdbe double-buffering support
1664 --disable-xdamage disable if you do not want Xdamage support
1666 --disable-xft disable if you do not want to use Xft [default=yes]
1667 --enable-nvidia enable if you want nvidia support [default=no]
1668 --disable-alsa disable if you do not want ALSA support
1670 --enable-debug compile with debug symbols [default=no]
1671 --enable-testing use strict compiler flags for testing [default=no]
1672 --enable-profiling specify compiler flags for use with gprof and gcov
1676 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1677 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1678 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1679 --with-pic try to use only PIC/non-PIC objects [default=use
1681 --with-tags[=TAGS] include additional configurations [automatic]
1682 --with-x use the X Window System
1683 --with-gnu-ld assume the C compiler uses GNU ld default=no
1684 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1685 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1687 Some influential environment variables:
1688 CC C compiler command
1689 CFLAGS C compiler flags
1690 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1691 nonstandard directory <lib dir>
1692 LIBS libraries to pass to the linker, e.g. -l<library>
1693 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1694 you have headers in a nonstandard directory <include dir>
1696 CXX C++ compiler command
1697 CXXFLAGS C++ compiler flags
1698 CXXCPP C++ preprocessor
1699 F77 Fortran 77 compiler command
1700 FFLAGS Fortran 77 compiler flags
1701 PKG_CONFIG path to pkg-config utility
1703 C compiler flags for Audacious, overriding pkg-config
1705 linker flags for Audacious, overriding pkg-config
1706 BMPx_CFLAGS C compiler flags for BMPx, overriding pkg-config
1707 BMPx_LIBS linker flags for BMPx, overriding pkg-config
1709 C compiler flags for XMMS2, overriding pkg-config
1710 XMMS2_LIBS linker flags for XMMS2, overriding pkg-config
1711 X11_CFLAGS C compiler flags for X11, overriding pkg-config
1712 X11_LIBS linker flags for X11, overriding pkg-config
1713 XMKMF Path to xmkmf, Makefile generator for X Window System
1715 C compiler flags for Imlib2, overriding pkg-config
1716 Imlib2_LIBS linker flags for Imlib2, overriding pkg-config
1717 LUA_CFLAGS C compiler flags for LUA, overriding pkg-config
1718 LUA_LIBS linker flags for LUA, overriding pkg-config
1720 C compiler flags for LUA51, overriding pkg-config
1721 LUA51_LIBS linker flags for LUA51, overriding pkg-config
1723 C compiler flags for cairo, overriding pkg-config
1724 cairo_LIBS linker flags for cairo, overriding pkg-config
1726 C compiler flags for cairo_xlib, overriding pkg-config
1728 linker flags for cairo_xlib, overriding pkg-config
1729 Xext_CFLAGS C compiler flags for Xext, overriding pkg-config
1730 Xext_LIBS linker flags for Xext, overriding pkg-config
1732 C compiler flags for XDamage, overriding pkg-config
1734 linker flags for XDamage, overriding pkg-config
1735 Xft_CFLAGS C compiler flags for Xft, overriding pkg-config
1736 Xft_LIBS linker flags for Xft, overriding pkg-config
1738 C compiler flags for GLib2, overriding pkg-config
1739 GLib2_LIBS linker flags for GLib2, overriding pkg-config
1741 C compiler flags for libcurl, overriding pkg-config
1743 linker flags for libcurl, overriding pkg-config
1745 C compiler flags for libxml2, overriding pkg-config
1747 linker flags for libxml2, overriding pkg-config
1749 Use these variables to override the choices made by `configure' or to help
1750 it to find libraries and programs with nonstandard names/locations.
1752 Report bugs to <brenden1@users.sourceforge.net>.
1757 if test "$ac_init_help" = "recursive"; then
1758 # If there are subdirs, report their specific --help.
1759 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1760 test -d "$ac_dir" || continue
1764 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1766 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1767 # A ".." for each directory in $ac_dir_suffix.
1768 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1769 case $ac_top_builddir_sub in
1770 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1771 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1774 ac_abs_top_builddir=$ac_pwd
1775 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1776 # for backward compatibility:
1777 ac_top_builddir=$ac_top_build_prefix
1780 .) # We are building in place.
1782 ac_top_srcdir=$ac_top_builddir_sub
1783 ac_abs_top_srcdir=$ac_pwd ;;
1784 [\\/]* | ?:[\\/]* ) # Absolute name.
1785 ac_srcdir=$srcdir$ac_dir_suffix;
1786 ac_top_srcdir=$srcdir
1787 ac_abs_top_srcdir=$srcdir ;;
1789 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1790 ac_top_srcdir=$ac_top_build_prefix$srcdir
1791 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1793 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1795 cd "$ac_dir" || { ac_status=$?; continue; }
1796 # Check for guested configure.
1797 if test -f "$ac_srcdir/configure.gnu"; then
1799 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1800 elif test -f "$ac_srcdir/configure"; then
1802 $SHELL "$ac_srcdir/configure" --help=recursive
1804 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1806 cd "$ac_pwd" || { ac_status=$?; break; }
1810 test -n "$ac_init_help" && exit $ac_status
1811 if $ac_init_version; then
1813 Conky configure 1.8.5_pre2390
1814 generated by GNU Autoconf 2.61
1816 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1817 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1818 This configure script is free software; the Free Software Foundation
1819 gives unlimited permission to copy, distribute and modify it.
1823 cat >config.log <<_ACEOF
1824 This file contains any messages produced by compilers while
1825 running configure, to aid debugging if configure makes a mistake.
1827 It was created by Conky $as_me 1.8.5_pre2390, which was
1828 generated by GNU Autoconf 2.61. Invocation command line was
1840 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1841 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1842 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1843 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1844 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1846 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1847 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1849 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1850 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1851 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1852 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1853 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1854 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1855 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1863 test -z "$as_dir" && as_dir=.
1864 echo "PATH: $as_dir"
1880 # Keep a trace of the command line.
1881 # Strip out --no-create and --no-recursion so they do not pile up.
1882 # Strip out --silent because we don't want to record it for future runs.
1883 # Also quote any args containing shell meta-characters.
1884 # Make two passes to allow for proper duplicate-argument suppression.
1888 ac_must_keep_next=false
1894 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1895 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1896 | -silent | --silent | --silen | --sile | --sil)
1899 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1902 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1904 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1905 if test $ac_must_keep_next = true; then
1906 ac_must_keep_next=false # Got value, back to normal.
1909 *=* | --config-cache | -C | -disable-* | --disable-* \
1910 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1911 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1912 | -with-* | --with-* | -without-* | --without-* | --x)
1913 case "$ac_configure_args0 " in
1914 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1917 -* ) ac_must_keep_next=true ;;
1920 ac_configure_args="$ac_configure_args '$ac_arg'"
1925 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1926 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1928 # When interrupted or exit'd, cleanup temporary files, and complete
1929 # config.log. We remove comments because anyway the quotes in there
1930 # would cause problems or look ugly.
1931 # WARNING: Use '\'' to represent an apostrophe within the trap.
1932 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1933 trap 'exit_status=$?
1934 # Save into config.log some information that might help in debugging.
1939 ## ---------------- ##
1940 ## Cache variables. ##
1941 ## ---------------- ##
1944 # The following way of writing the cache mishandles newlines in values,
1946 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1947 eval ac_val=\$$ac_var
1951 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1952 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1955 _ | IFS | as_nl) ;; #(
1956 *) $as_unset $ac_var ;;
1961 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1962 *${as_nl}ac_space=\ *)
1964 "s/'\''/'\''\\\\'\'''\''/g;
1965 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1968 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1976 ## ----------------- ##
1977 ## Output variables. ##
1978 ## ----------------- ##
1981 for ac_var in $ac_subst_vars
1983 eval ac_val=\$$ac_var
1985 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1987 echo "$ac_var='\''$ac_val'\''"
1991 if test -n "$ac_subst_files"; then
1993 ## ------------------- ##
1994 ## File substitutions. ##
1995 ## ------------------- ##
1998 for ac_var in $ac_subst_files
2000 eval ac_val=\$$ac_var
2002 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2004 echo "$ac_var='\''$ac_val'\''"
2009 if test -s confdefs.h; then
2019 test "$ac_signal" != 0 &&
2020 echo "$as_me: caught signal $ac_signal"
2021 echo "$as_me: exit $exit_status"
2023 rm -f core *.core core.conftest.* &&
2024 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2027 for ac_signal in 1 2 13 15; do
2028 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2032 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2033 rm -f -r conftest* confdefs.h
2035 # Predefined preprocessor variables.
2037 cat >>confdefs.h <<_ACEOF
2038 #define PACKAGE_NAME "$PACKAGE_NAME"
2042 cat >>confdefs.h <<_ACEOF
2043 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2047 cat >>confdefs.h <<_ACEOF
2048 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2052 cat >>confdefs.h <<_ACEOF
2053 #define PACKAGE_STRING "$PACKAGE_STRING"
2057 cat >>confdefs.h <<_ACEOF
2058 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2062 # Let the site file select an alternate cache file if it wants to.
2063 # Prefer explicitly selected file to automatically selected ones.
2064 if test -n "$CONFIG_SITE"; then
2065 set x "$CONFIG_SITE"
2066 elif test "x$prefix" != xNONE; then
2067 set x "$prefix/share/config.site" "$prefix/etc/config.site"
2069 set x "$ac_default_prefix/share/config.site" \
2070 "$ac_default_prefix/etc/config.site"
2075 if test -r "$ac_site_file"; then
2076 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2077 echo "$as_me: loading site script $ac_site_file" >&6;}
2078 sed 's/^/| /' "$ac_site_file" >&5
2083 if test -r "$cache_file"; then
2084 # Some versions of bash will fail to source /dev/null (special
2085 # files actually), so we avoid doing that.
2086 if test -f "$cache_file"; then
2087 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2088 echo "$as_me: loading cache $cache_file" >&6;}
2090 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2091 *) . "./$cache_file";;
2095 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2096 echo "$as_me: creating cache $cache_file" >&6;}
2100 # Check that the precious variables saved in the cache have kept the same
2102 ac_cache_corrupted=false
2103 for ac_var in $ac_precious_vars; do
2104 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2105 eval ac_new_set=\$ac_env_${ac_var}_set
2106 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2107 eval ac_new_val=\$ac_env_${ac_var}_value
2108 case $ac_old_set,$ac_new_set in
2110 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2111 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2112 ac_cache_corrupted=: ;;
2114 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2115 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2116 ac_cache_corrupted=: ;;
2119 if test "x$ac_old_val" != "x$ac_new_val"; then
2120 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2121 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2122 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2123 echo "$as_me: former value: $ac_old_val" >&2;}
2124 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2125 echo "$as_me: current value: $ac_new_val" >&2;}
2126 ac_cache_corrupted=:
2129 # Pass precious variables to config.status.
2130 if test "$ac_new_set" = set; then
2132 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2133 *) ac_arg=$ac_var=$ac_new_val ;;
2135 case " $ac_configure_args " in
2136 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2137 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2141 if $ac_cache_corrupted; then
2142 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2143 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2144 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2145 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2146 { (exit 1); exit 1; }; }
2174 ac_cpp='$CPP $CPPFLAGS'
2175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2181 am__api_version="1.8"
2183 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2184 if test -f "$ac_dir/install-sh"; then
2186 ac_install_sh="$ac_aux_dir/install-sh -c"
2188 elif test -f "$ac_dir/install.sh"; then
2190 ac_install_sh="$ac_aux_dir/install.sh -c"
2192 elif test -f "$ac_dir/shtool"; then
2194 ac_install_sh="$ac_aux_dir/shtool install -c"
2198 if test -z "$ac_aux_dir"; then
2199 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2200 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2201 { (exit 1); exit 1; }; }
2204 # These three variables are undocumented and unsupported,
2205 # and are intended to be withdrawn in a future Autoconf release.
2206 # They can cause serious problems if a builder's source tree is in a directory
2207 # whose full name contains unusual characters.
2208 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2209 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2210 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2213 # Find a good install program. We prefer a C program (faster),
2214 # so one script is as good as another. But avoid the broken or
2215 # incompatible versions:
2216 # SysV /etc/install, /usr/sbin/install
2217 # SunOS /usr/etc/install
2218 # IRIX /sbin/install
2220 # AmigaOS /C/install, which installs bootblocks on floppy discs
2221 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2222 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2223 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2224 # OS/2's system install, which has a completely different semantic
2225 # ./install, which can be erroneously created by make from ./install.sh.
2226 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2227 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2228 if test -z "$INSTALL"; then
2229 if test "${ac_cv_path_install+set}" = set; then
2230 echo $ECHO_N "(cached) $ECHO_C" >&6
2232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2236 test -z "$as_dir" && as_dir=.
2237 # Account for people who put trailing slashes in PATH elements.
2239 ./ | .// | /cC/* | \
2240 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2241 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2244 # OSF1 and SCO ODT 3.0 have their own names for install.
2245 # Don't use installbsd from OSF since it installs stuff as root
2247 for ac_prog in ginstall scoinst install; do
2248 for ac_exec_ext in '' $ac_executable_extensions; do
2249 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2250 if test $ac_prog = install &&
2251 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2252 # AIX install. It has an incompatible calling convention.
2254 elif test $ac_prog = install &&
2255 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2256 # program-specific install script used by HP pwplus--don't use.
2259 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2272 if test "${ac_cv_path_install+set}" = set; then
2273 INSTALL=$ac_cv_path_install
2275 # As a last resort, use the slow shell script. Don't cache a
2276 # value for INSTALL within a source directory, because that will
2277 # break other packages using the cache if that directory is
2278 # removed, or if the value is a relative name.
2279 INSTALL=$ac_install_sh
2282 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2283 echo "${ECHO_T}$INSTALL" >&6; }
2285 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2286 # It thinks the first close brace ends the variable substitution.
2287 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2289 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2291 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2293 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2294 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2297 echo timestamp > conftest.file
2298 # Do `set' in a subshell so we don't clobber the current shell's
2299 # arguments. Must try -L first in case configure is actually a
2300 # symlink; some systems play weird games with the mod time of symlinks
2301 # (eg FreeBSD returns the mod time of the symlink's containing
2304 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2305 if test "$*" = "X"; then
2307 set X `ls -t $srcdir/configure conftest.file`
2310 if test "$*" != "X $srcdir/configure conftest.file" \
2311 && test "$*" != "X conftest.file $srcdir/configure"; then
2313 # If neither matched, then we have a broken ls. This can happen
2314 # if, for instance, CONFIG_SHELL is bash and it inherits a
2315 # broken ls alias from the environment. This has actually
2316 # happened. Such a system could not be considered "sane".
2317 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2318 alias in your environment" >&5
2319 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2320 alias in your environment" >&2;}
2321 { (exit 1); exit 1; }; }
2324 test "$2" = conftest.file
2330 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2331 Check your system clock" >&5
2332 echo "$as_me: error: newly created file is older than distributed files!
2333 Check your system clock" >&2;}
2334 { (exit 1); exit 1; }; }
2336 { echo "$as_me:$LINENO: result: yes" >&5
2337 echo "${ECHO_T}yes" >&6; }
2338 test "$program_prefix" != NONE &&
2339 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2340 # Use a double $ so make ignores it.
2341 test "$program_suffix" != NONE &&
2342 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2343 # Double any \ or $. echo might interpret backslashes.
2344 # By default was `s,x,x', remove it if useless.
2345 cat <<\_ACEOF >conftest.sed
2346 s/[\\$]/&&/g;s/;s,x,x,$//
2348 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2351 # expand $ac_aux_dir to an absolute path
2352 am_aux_dir=`cd $ac_aux_dir && pwd`
2354 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2355 # Use eval to expand $SHELL
2356 if eval "$MISSING --run true"; then
2357 am_missing_run="$MISSING --run "
2360 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2361 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2364 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2365 # Keeping the `.' argument allows $(mkdir_p) to be used without
2366 # argument. Indeed, we sometimes output rules like
2367 # $(mkdir_p) $(somedir)
2368 # where $(somedir) is conditionally defined.
2369 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
2370 # expensive solution, as it forces Make to start a sub-shell.)
2371 mkdir_p='mkdir -p -- .'
2373 # On NextStep and OpenStep, the `mkdir' command does not
2374 # recognize any option. It will interpret all options as
2375 # directories to create, and then abort because `.' already
2377 for d in ./-p ./--version;
2379 test -d $d && rmdir $d
2381 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2382 if test -f "$ac_aux_dir/mkinstalldirs"; then
2383 mkdir_p='$(mkinstalldirs)'
2385 mkdir_p='$(install_sh) -d'
2389 for ac_prog in gawk mawk nawk awk
2391 # Extract the first word of "$ac_prog", so it can be a program name with args.
2392 set dummy $ac_prog; ac_word=$2
2393 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2395 if test "${ac_cv_prog_AWK+set}" = set; then
2396 echo $ECHO_N "(cached) $ECHO_C" >&6
2398 if test -n "$AWK"; then
2399 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2405 test -z "$as_dir" && as_dir=.
2406 for ac_exec_ext in '' $ac_executable_extensions; do
2407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2408 ac_cv_prog_AWK="$ac_prog"
2409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2419 if test -n "$AWK"; then
2420 { echo "$as_me:$LINENO: result: $AWK" >&5
2421 echo "${ECHO_T}$AWK" >&6; }
2423 { echo "$as_me:$LINENO: result: no" >&5
2424 echo "${ECHO_T}no" >&6; }
2428 test -n "$AWK" && break
2431 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2432 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2433 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2434 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2435 echo $ECHO_N "(cached) $ECHO_C" >&6
2437 cat >conftest.make <<\_ACEOF
2440 @echo '@@@%%%=$(MAKE)=@@@%%%'
2442 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2443 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2445 eval ac_cv_prog_make_${ac_make}_set=yes;;
2447 eval ac_cv_prog_make_${ac_make}_set=no;;
2451 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2452 { echo "$as_me:$LINENO: result: yes" >&5
2453 echo "${ECHO_T}yes" >&6; }
2456 { echo "$as_me:$LINENO: result: no" >&5
2457 echo "${ECHO_T}no" >&6; }
2458 SET_MAKE="MAKE=${MAKE-make}"
2461 rm -rf .tst 2>/dev/null
2462 mkdir .tst 2>/dev/null
2463 if test -d .tst; then
2468 rmdir .tst 2>/dev/null
2470 # test to see if srcdir already configured
2471 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2472 test -f $srcdir/config.status; then
2473 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2474 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2475 { (exit 1); exit 1; }; }
2478 # test whether we have cygpath
2479 if test -z "$CYGPATH_W"; then
2480 if (cygpath --version) >/dev/null 2>/dev/null; then
2481 CYGPATH_W='cygpath -w'
2488 # Define the identity of the package.
2490 VERSION=1.8.5_pre2390
2493 cat >>confdefs.h <<_ACEOF
2494 #define PACKAGE "$PACKAGE"
2498 cat >>confdefs.h <<_ACEOF
2499 #define VERSION "$VERSION"
2502 # Some tools Automake needs.
2504 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2507 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2510 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2513 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2516 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2519 AMTAR=${AMTAR-"${am_missing_run}tar"}
2521 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2523 # Installed binaries are usually stripped using `strip' when the user
2524 # run `make install-strip'. However `strip' might not be the right
2525 # tool to use in cross-compilation environments, therefore Automake
2526 # will honor the `STRIP' environment variable to overrule this program.
2527 if test "$cross_compiling" != no; then
2528 if test -n "$ac_tool_prefix"; then
2529 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2530 set dummy ${ac_tool_prefix}strip; ac_word=$2
2531 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2533 if test "${ac_cv_prog_STRIP+set}" = set; then
2534 echo $ECHO_N "(cached) $ECHO_C" >&6
2536 if test -n "$STRIP"; then
2537 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2543 test -z "$as_dir" && as_dir=.
2544 for ac_exec_ext in '' $ac_executable_extensions; do
2545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2546 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2556 STRIP=$ac_cv_prog_STRIP
2557 if test -n "$STRIP"; then
2558 { echo "$as_me:$LINENO: result: $STRIP" >&5
2559 echo "${ECHO_T}$STRIP" >&6; }
2561 { echo "$as_me:$LINENO: result: no" >&5
2562 echo "${ECHO_T}no" >&6; }
2567 if test -z "$ac_cv_prog_STRIP"; then
2569 # Extract the first word of "strip", so it can be a program name with args.
2570 set dummy strip; ac_word=$2
2571 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2573 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2574 echo $ECHO_N "(cached) $ECHO_C" >&6
2576 if test -n "$ac_ct_STRIP"; then
2577 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2583 test -z "$as_dir" && as_dir=.
2584 for ac_exec_ext in '' $ac_executable_extensions; do
2585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2586 ac_cv_prog_ac_ct_STRIP="strip"
2587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2596 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2597 if test -n "$ac_ct_STRIP"; then
2598 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2599 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2601 { echo "$as_me:$LINENO: result: no" >&5
2602 echo "${ECHO_T}no" >&6; }
2605 if test "x$ac_ct_STRIP" = x; then
2608 case $cross_compiling:$ac_tool_warned in
2610 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2611 whose name does not start with the host triplet. If you think this
2612 configuration is useful to you, please write to autoconf@gnu.org." >&5
2613 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2614 whose name does not start with the host triplet. If you think this
2615 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2616 ac_tool_warned=yes ;;
2621 STRIP="$ac_cv_prog_STRIP"
2625 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2627 # We need awk for the "check" target. The system "awk" is bad on
2632 ac_config_headers="$ac_config_headers src/config.h"
2636 if test x"$CFLAGS" = x""; then
2642 cat >>confdefs.h <<\_ACEOF
2648 ac_cpp='$CPP $CPPFLAGS'
2649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2652 if test -n "$ac_tool_prefix"; then
2653 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2654 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2655 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2657 if test "${ac_cv_prog_CC+set}" = set; then
2658 echo $ECHO_N "(cached) $ECHO_C" >&6
2660 if test -n "$CC"; then
2661 ac_cv_prog_CC="$CC" # Let the user override the test.
2663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2667 test -z "$as_dir" && as_dir=.
2668 for ac_exec_ext in '' $ac_executable_extensions; do
2669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2670 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2681 if test -n "$CC"; then
2682 { echo "$as_me:$LINENO: result: $CC" >&5
2683 echo "${ECHO_T}$CC" >&6; }
2685 { echo "$as_me:$LINENO: result: no" >&5
2686 echo "${ECHO_T}no" >&6; }
2691 if test -z "$ac_cv_prog_CC"; then
2693 # Extract the first word of "gcc", so it can be a program name with args.
2694 set dummy gcc; ac_word=$2
2695 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2697 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2698 echo $ECHO_N "(cached) $ECHO_C" >&6
2700 if test -n "$ac_ct_CC"; then
2701 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2707 test -z "$as_dir" && as_dir=.
2708 for ac_exec_ext in '' $ac_executable_extensions; do
2709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2710 ac_cv_prog_ac_ct_CC="gcc"
2711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2720 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2721 if test -n "$ac_ct_CC"; then
2722 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2723 echo "${ECHO_T}$ac_ct_CC" >&6; }
2725 { echo "$as_me:$LINENO: result: no" >&5
2726 echo "${ECHO_T}no" >&6; }
2729 if test "x$ac_ct_CC" = x; then
2732 case $cross_compiling:$ac_tool_warned in
2734 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2735 whose name does not start with the host triplet. If you think this
2736 configuration is useful to you, please write to autoconf@gnu.org." >&5
2737 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2738 whose name does not start with the host triplet. If you think this
2739 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2740 ac_tool_warned=yes ;;
2748 if test -z "$CC"; then
2749 if test -n "$ac_tool_prefix"; then
2750 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2751 set dummy ${ac_tool_prefix}cc; ac_word=$2
2752 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2754 if test "${ac_cv_prog_CC+set}" = set; then
2755 echo $ECHO_N "(cached) $ECHO_C" >&6
2757 if test -n "$CC"; then
2758 ac_cv_prog_CC="$CC" # Let the user override the test.
2760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2764 test -z "$as_dir" && as_dir=.
2765 for ac_exec_ext in '' $ac_executable_extensions; do
2766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2767 ac_cv_prog_CC="${ac_tool_prefix}cc"
2768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2778 if test -n "$CC"; then
2779 { echo "$as_me:$LINENO: result: $CC" >&5
2780 echo "${ECHO_T}$CC" >&6; }
2782 { echo "$as_me:$LINENO: result: no" >&5
2783 echo "${ECHO_T}no" >&6; }
2789 if test -z "$CC"; then
2790 # Extract the first word of "cc", so it can be a program name with args.
2791 set dummy cc; ac_word=$2
2792 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2794 if test "${ac_cv_prog_CC+set}" = set; then
2795 echo $ECHO_N "(cached) $ECHO_C" >&6
2797 if test -n "$CC"; then
2798 ac_cv_prog_CC="$CC" # Let the user override the test.
2801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2805 test -z "$as_dir" && as_dir=.
2806 for ac_exec_ext in '' $ac_executable_extensions; do
2807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2808 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2809 ac_prog_rejected=yes
2813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2820 if test $ac_prog_rejected = yes; then
2821 # We found a bogon in the path, so make sure we never use it.
2822 set dummy $ac_cv_prog_CC
2824 if test $# != 0; then
2825 # We chose a different compiler from the bogus one.
2826 # However, it has the same basename, so the bogon will be chosen
2827 # first if we set CC to just the basename; use the full file name.
2829 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2835 if test -n "$CC"; then
2836 { echo "$as_me:$LINENO: result: $CC" >&5
2837 echo "${ECHO_T}$CC" >&6; }
2839 { echo "$as_me:$LINENO: result: no" >&5
2840 echo "${ECHO_T}no" >&6; }
2845 if test -z "$CC"; then
2846 if test -n "$ac_tool_prefix"; then
2847 for ac_prog in cl.exe
2849 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2850 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2851 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2853 if test "${ac_cv_prog_CC+set}" = set; then
2854 echo $ECHO_N "(cached) $ECHO_C" >&6
2856 if test -n "$CC"; then
2857 ac_cv_prog_CC="$CC" # Let the user override the test.
2859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2863 test -z "$as_dir" && as_dir=.
2864 for ac_exec_ext in '' $ac_executable_extensions; do
2865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2866 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2877 if test -n "$CC"; then
2878 { echo "$as_me:$LINENO: result: $CC" >&5
2879 echo "${ECHO_T}$CC" >&6; }
2881 { echo "$as_me:$LINENO: result: no" >&5
2882 echo "${ECHO_T}no" >&6; }
2886 test -n "$CC" && break
2889 if test -z "$CC"; then
2891 for ac_prog in cl.exe
2893 # Extract the first word of "$ac_prog", so it can be a program name with args.
2894 set dummy $ac_prog; ac_word=$2
2895 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2897 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2898 echo $ECHO_N "(cached) $ECHO_C" >&6
2900 if test -n "$ac_ct_CC"; then
2901 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2907 test -z "$as_dir" && as_dir=.
2908 for ac_exec_ext in '' $ac_executable_extensions; do
2909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2910 ac_cv_prog_ac_ct_CC="$ac_prog"
2911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2920 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2921 if test -n "$ac_ct_CC"; then
2922 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2923 echo "${ECHO_T}$ac_ct_CC" >&6; }
2925 { echo "$as_me:$LINENO: result: no" >&5
2926 echo "${ECHO_T}no" >&6; }
2930 test -n "$ac_ct_CC" && break
2933 if test "x$ac_ct_CC" = x; then
2936 case $cross_compiling:$ac_tool_warned in
2938 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2939 whose name does not start with the host triplet. If you think this
2940 configuration is useful to you, please write to autoconf@gnu.org." >&5
2941 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2942 whose name does not start with the host triplet. If you think this
2943 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2944 ac_tool_warned=yes ;;
2953 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2954 See \`config.log' for more details." >&5
2955 echo "$as_me: error: no acceptable C compiler found in \$PATH
2956 See \`config.log' for more details." >&2;}
2957 { (exit 1); exit 1; }; }
2959 # Provide some information about the compiler.
2960 echo "$as_me:$LINENO: checking for C compiler version" >&5
2961 ac_compiler=`set X $ac_compile; echo $2`
2962 { (ac_try="$ac_compiler --version >&5"
2964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2965 *) ac_try_echo=$ac_try;;
2967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2968 (eval "$ac_compiler --version >&5") 2>&5
2970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971 (exit $ac_status); }
2972 { (ac_try="$ac_compiler -v >&5"
2974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2975 *) ac_try_echo=$ac_try;;
2977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2978 (eval "$ac_compiler -v >&5") 2>&5
2980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981 (exit $ac_status); }
2982 { (ac_try="$ac_compiler -V >&5"
2984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2985 *) ac_try_echo=$ac_try;;
2987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2988 (eval "$ac_compiler -V >&5") 2>&5
2990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991 (exit $ac_status); }
2993 cat >conftest.$ac_ext <<_ACEOF
2996 cat confdefs.h >>conftest.$ac_ext
2997 cat >>conftest.$ac_ext <<_ACEOF
2998 /* end confdefs.h. */
3008 ac_clean_files_save=$ac_clean_files
3009 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3010 # Try to create an executable without -o first, disregard a.out.
3011 # It will help us diagnose broken compilers, and finding out an intuition
3013 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3014 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3015 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3017 # List of possible output files, starting from the most likely.
3018 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3019 # only as a last resort. b.out is created by i960 compilers.
3020 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3022 # The IRIX 6 linker writes into existing files which may not be
3023 # executable, retaining their permissions. Remove them first so a
3024 # subsequent execution test works.
3026 for ac_file in $ac_files
3029 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3030 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3035 if { (ac_try="$ac_link_default"
3037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038 *) ac_try_echo=$ac_try;;
3040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3041 (eval "$ac_link_default") 2>&5
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); }; then
3045 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3046 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3047 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3048 # so that the user can short-circuit this test for compilers unknown to
3050 for ac_file in $ac_files ''
3052 test -f "$ac_file" || continue
3054 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3057 # We found the default executable, but exeext='' is most
3061 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3063 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3065 # We set ac_cv_exeext here because the later test for it is not
3066 # safe: cross compilers may not add the suffix if given an `-o'
3067 # argument, so we may need to know it at that point already.
3068 # Even if this section looks crufty: it has the advantage of
3075 test "$ac_cv_exeext" = no && ac_cv_exeext=
3081 { echo "$as_me:$LINENO: result: $ac_file" >&5
3082 echo "${ECHO_T}$ac_file" >&6; }
3083 if test -z "$ac_file"; then
3084 echo "$as_me: failed program was:" >&5
3085 sed 's/^/| /' conftest.$ac_ext >&5
3087 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3088 See \`config.log' for more details." >&5
3089 echo "$as_me: error: C compiler cannot create executables
3090 See \`config.log' for more details." >&2;}
3091 { (exit 77); exit 77; }; }
3094 ac_exeext=$ac_cv_exeext
3096 # Check that the compiler produces executables we can run. If not, either
3097 # the compiler is broken, or we cross compile.
3098 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3099 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3100 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3101 # If not cross compiling, check that we can run a simple program.
3102 if test "$cross_compiling" != yes; then
3103 if { ac_try='./$ac_file'
3104 { (case "(($ac_try" in
3105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3106 *) ac_try_echo=$ac_try;;
3108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3109 (eval "$ac_try") 2>&5
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); }; }; then
3115 if test "$cross_compiling" = maybe; then
3118 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3119 If you meant to cross compile, use \`--host'.
3120 See \`config.log' for more details." >&5
3121 echo "$as_me: error: cannot run C compiled programs.
3122 If you meant to cross compile, use \`--host'.
3123 See \`config.log' for more details." >&2;}
3124 { (exit 1); exit 1; }; }
3128 { echo "$as_me:$LINENO: result: yes" >&5
3129 echo "${ECHO_T}yes" >&6; }
3131 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3132 ac_clean_files=$ac_clean_files_save
3133 # Check that the compiler produces executables we can run. If not, either
3134 # the compiler is broken, or we cross compile.
3135 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3136 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3137 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3138 echo "${ECHO_T}$cross_compiling" >&6; }
3140 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3141 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3142 if { (ac_try="$ac_link"
3144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145 *) ac_try_echo=$ac_try;;
3147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3148 (eval "$ac_link") 2>&5
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); }; then
3152 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3153 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3154 # work properly (i.e., refer to `conftest.exe'), while it won't with
3156 for ac_file in conftest.exe conftest conftest.*; do
3157 test -f "$ac_file" || continue
3159 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3160 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3166 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3167 See \`config.log' for more details." >&5
3168 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3169 See \`config.log' for more details." >&2;}
3170 { (exit 1); exit 1; }; }
3173 rm -f conftest$ac_cv_exeext
3174 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3175 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3177 rm -f conftest.$ac_ext
3178 EXEEXT=$ac_cv_exeext
3180 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3181 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3182 if test "${ac_cv_objext+set}" = set; then
3183 echo $ECHO_N "(cached) $ECHO_C" >&6
3185 cat >conftest.$ac_ext <<_ACEOF
3188 cat confdefs.h >>conftest.$ac_ext
3189 cat >>conftest.$ac_ext <<_ACEOF
3190 /* end confdefs.h. */
3200 rm -f conftest.o conftest.obj
3201 if { (ac_try="$ac_compile"
3203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3204 *) ac_try_echo=$ac_try;;
3206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3207 (eval "$ac_compile") 2>&5
3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210 (exit $ac_status); }; then
3211 for ac_file in conftest.o conftest.obj conftest.*; do
3212 test -f "$ac_file" || continue;
3214 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3215 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3220 echo "$as_me: failed program was:" >&5
3221 sed 's/^/| /' conftest.$ac_ext >&5
3223 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3224 See \`config.log' for more details." >&5
3225 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3226 See \`config.log' for more details." >&2;}
3227 { (exit 1); exit 1; }; }
3230 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3232 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3233 echo "${ECHO_T}$ac_cv_objext" >&6; }
3234 OBJEXT=$ac_cv_objext
3236 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3237 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3238 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3239 echo $ECHO_N "(cached) $ECHO_C" >&6
3241 cat >conftest.$ac_ext <<_ACEOF
3244 cat confdefs.h >>conftest.$ac_ext
3245 cat >>conftest.$ac_ext <<_ACEOF
3246 /* end confdefs.h. */
3259 rm -f conftest.$ac_objext
3260 if { (ac_try="$ac_compile"
3262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3263 *) ac_try_echo=$ac_try;;
3265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3266 (eval "$ac_compile") 2>conftest.er1
3268 grep -v '^ *+' conftest.er1 >conftest.err
3270 cat conftest.err >&5
3271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); } && {
3273 test -z "$ac_c_werror_flag" ||
3274 test ! -s conftest.err
3275 } && test -s conftest.$ac_objext; then
3278 echo "$as_me: failed program was:" >&5
3279 sed 's/^/| /' conftest.$ac_ext >&5
3284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3285 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3288 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3289 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3290 GCC=`test $ac_compiler_gnu = yes && echo yes`
3291 ac_test_CFLAGS=${CFLAGS+set}
3292 ac_save_CFLAGS=$CFLAGS
3293 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3294 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3295 if test "${ac_cv_prog_cc_g+set}" = set; then
3296 echo $ECHO_N "(cached) $ECHO_C" >&6
3298 ac_save_c_werror_flag=$ac_c_werror_flag
3299 ac_c_werror_flag=yes
3302 cat >conftest.$ac_ext <<_ACEOF
3305 cat confdefs.h >>conftest.$ac_ext
3306 cat >>conftest.$ac_ext <<_ACEOF
3307 /* end confdefs.h. */
3317 rm -f conftest.$ac_objext
3318 if { (ac_try="$ac_compile"
3320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321 *) ac_try_echo=$ac_try;;
3323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3324 (eval "$ac_compile") 2>conftest.er1
3326 grep -v '^ *+' conftest.er1 >conftest.err
3328 cat conftest.err >&5
3329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330 (exit $ac_status); } && {
3331 test -z "$ac_c_werror_flag" ||
3332 test ! -s conftest.err
3333 } && test -s conftest.$ac_objext; then
3336 echo "$as_me: failed program was:" >&5
3337 sed 's/^/| /' conftest.$ac_ext >&5
3340 cat >conftest.$ac_ext <<_ACEOF
3343 cat confdefs.h >>conftest.$ac_ext
3344 cat >>conftest.$ac_ext <<_ACEOF
3345 /* end confdefs.h. */
3355 rm -f conftest.$ac_objext
3356 if { (ac_try="$ac_compile"
3358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3359 *) ac_try_echo=$ac_try;;
3361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3362 (eval "$ac_compile") 2>conftest.er1
3364 grep -v '^ *+' conftest.er1 >conftest.err
3366 cat conftest.err >&5
3367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368 (exit $ac_status); } && {
3369 test -z "$ac_c_werror_flag" ||
3370 test ! -s conftest.err
3371 } && test -s conftest.$ac_objext; then
3374 echo "$as_me: failed program was:" >&5
3375 sed 's/^/| /' conftest.$ac_ext >&5
3377 ac_c_werror_flag=$ac_save_c_werror_flag
3379 cat >conftest.$ac_ext <<_ACEOF
3382 cat confdefs.h >>conftest.$ac_ext
3383 cat >>conftest.$ac_ext <<_ACEOF
3384 /* end confdefs.h. */
3394 rm -f conftest.$ac_objext
3395 if { (ac_try="$ac_compile"
3397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3398 *) ac_try_echo=$ac_try;;
3400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3401 (eval "$ac_compile") 2>conftest.er1
3403 grep -v '^ *+' conftest.er1 >conftest.err
3405 cat conftest.err >&5
3406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407 (exit $ac_status); } && {
3408 test -z "$ac_c_werror_flag" ||
3409 test ! -s conftest.err
3410 } && test -s conftest.$ac_objext; then
3413 echo "$as_me: failed program was:" >&5
3414 sed 's/^/| /' conftest.$ac_ext >&5
3419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3426 ac_c_werror_flag=$ac_save_c_werror_flag
3428 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3429 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3430 if test "$ac_test_CFLAGS" = set; then
3431 CFLAGS=$ac_save_CFLAGS
3432 elif test $ac_cv_prog_cc_g = yes; then
3433 if test "$GCC" = yes; then
3439 if test "$GCC" = yes; then
3445 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3446 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3447 if test "${ac_cv_prog_cc_c89+set}" = set; then
3448 echo $ECHO_N "(cached) $ECHO_C" >&6
3450 ac_cv_prog_cc_c89=no
3452 cat >conftest.$ac_ext <<_ACEOF
3455 cat confdefs.h >>conftest.$ac_ext
3456 cat >>conftest.$ac_ext <<_ACEOF
3457 /* end confdefs.h. */
3460 #include <sys/types.h>
3461 #include <sys/stat.h>
3462 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3463 struct buf { int x; };
3464 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3465 static char *e (p, i)
3471 static char *f (char * (*g) (char **, int), char **p, ...)
3476 s = g (p, va_arg (v,int));
3481 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3482 function prototypes and stuff, but not '\xHH' hex character constants.
3483 These don't provoke an error unfortunately, instead are silently treated
3484 as 'x'. The following induces an error, until -std is added to get
3485 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3486 array size at least. It's necessary to write '\x00'==0 to get something
3487 that's true only with -std. */
3488 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3490 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3491 inside strings and character constants. */
3493 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3495 int test (int i, double x);
3496 struct s1 {int (*f) (int a);};
3497 struct s2 {int (*f) (double a);};
3498 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3504 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3509 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3510 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3512 CC="$ac_save_CC $ac_arg"
3513 rm -f conftest.$ac_objext
3514 if { (ac_try="$ac_compile"
3516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3517 *) ac_try_echo=$ac_try;;
3519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3520 (eval "$ac_compile") 2>conftest.er1
3522 grep -v '^ *+' conftest.er1 >conftest.err
3524 cat conftest.err >&5
3525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); } && {
3527 test -z "$ac_c_werror_flag" ||
3528 test ! -s conftest.err
3529 } && test -s conftest.$ac_objext; then
3530 ac_cv_prog_cc_c89=$ac_arg
3532 echo "$as_me: failed program was:" >&5
3533 sed 's/^/| /' conftest.$ac_ext >&5
3538 rm -f core conftest.err conftest.$ac_objext
3539 test "x$ac_cv_prog_cc_c89" != "xno" && break
3541 rm -f conftest.$ac_ext
3546 case "x$ac_cv_prog_cc_c89" in
3548 { echo "$as_me:$LINENO: result: none needed" >&5
3549 echo "${ECHO_T}none needed" >&6; } ;;
3551 { echo "$as_me:$LINENO: result: unsupported" >&5
3552 echo "${ECHO_T}unsupported" >&6; } ;;
3554 CC="$CC $ac_cv_prog_cc_c89"
3555 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3556 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3561 ac_cpp='$CPP $CPPFLAGS'
3562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3565 DEPDIR="${am__leading_dot}deps"
3567 ac_config_commands="$ac_config_commands depfiles"
3570 am_make=${MAKE-make}
3571 cat > confinc << 'END'
3576 # If we don't find an include directive, just comment out the code.
3577 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3578 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3582 # First try GNU make style include.
3583 echo "include confinc" > confmf
3584 # We grep out `Entering directory' and `Leaving directory'
3585 # messages which can occur if `w' ends up in MAKEFLAGS.
3586 # In particular we don't look at `^make:' because GNU make might
3587 # be invoked under some other name (usually "gmake"), in which
3588 # case it prints its new name instead of `make'.
3589 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3594 # Now try BSD make style include.
3595 if test "$am__include" = "#"; then
3596 echo '.include "confinc"' > confmf
3597 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3598 am__include=.include
3605 { echo "$as_me:$LINENO: result: $_am_result" >&5
3606 echo "${ECHO_T}$_am_result" >&6; }
3607 rm -f confinc confmf
3609 # Check whether --enable-dependency-tracking was given.
3610 if test "${enable_dependency_tracking+set}" = set; then
3611 enableval=$enable_dependency_tracking;
3614 if test "x$enable_dependency_tracking" != xno; then
3615 am_depcomp="$ac_aux_dir/depcomp"
3620 if test "x$enable_dependency_tracking" != xno; then
3631 depcc="$CC" am_compiler_list=
3633 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3634 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3635 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3636 echo $ECHO_N "(cached) $ECHO_C" >&6
3638 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3639 # We make a subdir and do the tests there. Otherwise we can end up
3640 # making bogus files that we don't know about and never remove. For
3641 # instance it was reported that on HP-UX the gcc test will end up
3642 # making a dummy file named `D' -- because `-MD' means `put the output
3645 # Copy depcomp to subdir because otherwise we won't find it if we're
3646 # using a relative directory.
3647 cp "$am_depcomp" conftest.dir
3649 # We will build objects and dependencies in a subdirectory because
3650 # it helps to detect inapplicable dependency modes. For instance
3651 # both Tru64's cc and ICC support -MD to output dependencies as a
3652 # side effect of compilation, but ICC will put the dependencies in
3653 # the current directory while Tru64 will put them in the object
3657 am_cv_CC_dependencies_compiler_type=none
3658 if test "$am_compiler_list" = ""; then
3659 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3661 for depmode in $am_compiler_list; do
3662 # Setup a source with many dependencies, because some compilers
3663 # like to wrap large dependency lists on column 80 (with \), and
3664 # we should not choose a depcomp mode which is confused by this.
3666 # We need to recreate these files for each test, as the compiler may
3667 # overwrite some of them when testing with obscure command lines.
3668 # This happens at least with the AIX C compiler.
3670 for i in 1 2 3 4 5 6; do
3671 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3672 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3673 # Solaris 8's {/usr,}/bin/sh.
3674 touch sub/conftst$i.h
3676 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3680 # after this tag, mechanisms are not by side-effect, so they'll
3681 # only be used when explicitly requested
3682 if test "x$enable_dependency_tracking" = xyes; then
3690 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3691 # mode. It turns out that the SunPro C++ compiler does not properly
3692 # handle `-M -o', and we need to detect this.
3693 if depmode=$depmode \
3694 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3695 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3696 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3697 >/dev/null 2>conftest.err &&
3698 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3699 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3700 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3701 # icc doesn't choke on unknown options, it will just issue warnings
3702 # or remarks (even with -Werror). So we grep stderr for any message
3703 # that says an option was ignored or not supported.
3704 # When given -MP, icc 7.0 and 7.1 complain thusly:
3705 # icc: Command line warning: ignoring option '-M'; no argument required
3706 # The diagnosis changed in icc 8.0:
3707 # icc: Command line remark: option '-MP' not supported
3708 if (grep 'ignoring option' conftest.err ||
3709 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3710 am_cv_CC_dependencies_compiler_type=$depmode
3719 am_cv_CC_dependencies_compiler_type=none
3723 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3724 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3725 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3730 test "x$enable_dependency_tracking" != xno \
3731 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3733 am__fastdepCC_FALSE='#'
3735 am__fastdepCC_TRUE='#'
3736 am__fastdepCC_FALSE=
3740 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3741 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3742 if test "${lt_cv_path_SED+set}" = set; then
3743 echo $ECHO_N "(cached) $ECHO_C" >&6
3745 # Loop through the user's path and test for sed and gsed.
3746 # Then use that list of sed's as ones to test for truncation.
3747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3751 test -z "$as_dir" && as_dir=.
3752 for lt_ac_prog in sed gsed; do
3753 for ac_exec_ext in '' $ac_executable_extensions; do
3754 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3755 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3763 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3764 # along with /bin/sed that truncates output.
3765 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3766 test ! -f $lt_ac_sed && continue
3767 cat /dev/null > conftest.in
3769 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3770 # Check for GNU sed and select it if it is found.
3771 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3772 lt_cv_path_SED=$lt_ac_sed
3776 cat conftest.in conftest.in >conftest.tmp
3777 mv conftest.tmp conftest.in
3778 cp conftest.in conftest.nl
3780 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3781 cmp -s conftest.out conftest.nl || break
3782 # 10000 chars as input seems more than enough
3783 test $lt_ac_count -gt 10 && break
3784 lt_ac_count=`expr $lt_ac_count + 1`
3785 if test $lt_ac_count -gt $lt_ac_max; then
3786 lt_ac_max=$lt_ac_count
3787 lt_cv_path_SED=$lt_ac_sed
3796 { echo "$as_me:$LINENO: result: $SED" >&5
3797 echo "${ECHO_T}$SED" >&6; }
3799 # Make sure we can run config.sub.
3800 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3801 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3802 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3803 { (exit 1); exit 1; }; }
3805 { echo "$as_me:$LINENO: checking build system type" >&5
3806 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3807 if test "${ac_cv_build+set}" = set; then
3808 echo $ECHO_N "(cached) $ECHO_C" >&6
3810 ac_build_alias=$build_alias
3811 test "x$ac_build_alias" = x &&
3812 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3813 test "x$ac_build_alias" = x &&
3814 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3815 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3816 { (exit 1); exit 1; }; }
3817 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3818 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3819 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3820 { (exit 1); exit 1; }; }
3823 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3824 echo "${ECHO_T}$ac_cv_build" >&6; }
3825 case $ac_cv_build in
3827 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3828 echo "$as_me: error: invalid value of canonical build" >&2;}
3829 { (exit 1); exit 1; }; };;
3832 ac_save_IFS=$IFS; IFS='-'
3838 # Remember, the first character of IFS is used to create $*,
3839 # except with old shells:
3842 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3845 { echo "$as_me:$LINENO: checking host system type" >&5
3846 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3847 if test "${ac_cv_host+set}" = set; then
3848 echo $ECHO_N "(cached) $ECHO_C" >&6
3850 if test "x$host_alias" = x; then
3851 ac_cv_host=$ac_cv_build
3853 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3854 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3855 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3856 { (exit 1); exit 1; }; }
3860 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3861 echo "${ECHO_T}$ac_cv_host" >&6; }
3864 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3865 echo "$as_me: error: invalid value of canonical host" >&2;}
3866 { (exit 1); exit 1; }; };;
3869 ac_save_IFS=$IFS; IFS='-'
3875 # Remember, the first character of IFS is used to create $*,
3876 # except with old shells:
3879 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3882 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3883 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3884 if test "${ac_cv_path_GREP+set}" = set; then
3885 echo $ECHO_N "(cached) $ECHO_C" >&6
3887 # Extract the first word of "grep ggrep" to use in msg output
3888 if test -z "$GREP"; then
3889 set dummy grep ggrep; ac_prog_name=$2
3890 if test "${ac_cv_path_GREP+set}" = set; then
3891 echo $ECHO_N "(cached) $ECHO_C" >&6
3893 ac_path_GREP_found=false
3894 # Loop through the user's path and test for each of PROGNAME-LIST
3895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3896 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3899 test -z "$as_dir" && as_dir=.
3900 for ac_prog in grep ggrep; do
3901 for ac_exec_ext in '' $ac_executable_extensions; do
3902 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3903 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3904 # Check for GNU ac_path_GREP and select it if it is found.
3905 # Check for GNU $ac_path_GREP
3906 case `"$ac_path_GREP" --version 2>&1` in
3908 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3911 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3914 cat "conftest.in" "conftest.in" >"conftest.tmp"
3915 mv "conftest.tmp" "conftest.in"
3916 cp "conftest.in" "conftest.nl"
3917 echo 'GREP' >> "conftest.nl"
3918 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3919 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3920 ac_count=`expr $ac_count + 1`
3921 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3922 # Best one so far, save it but keep looking for a better one
3923 ac_cv_path_GREP="$ac_path_GREP"
3924 ac_path_GREP_max=$ac_count
3926 # 10*(2^10) chars as input seems more than enough
3927 test $ac_count -gt 10 && break
3929 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3933 $ac_path_GREP_found && break 3
3943 GREP="$ac_cv_path_GREP"
3944 if test -z "$GREP"; then
3945 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3946 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3947 { (exit 1); exit 1; }; }
3951 ac_cv_path_GREP=$GREP
3956 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3957 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3958 GREP="$ac_cv_path_GREP"
3961 { echo "$as_me:$LINENO: checking for egrep" >&5
3962 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3963 if test "${ac_cv_path_EGREP+set}" = set; then
3964 echo $ECHO_N "(cached) $ECHO_C" >&6
3966 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3967 then ac_cv_path_EGREP="$GREP -E"
3969 # Extract the first word of "egrep" to use in msg output
3970 if test -z "$EGREP"; then
3971 set dummy egrep; ac_prog_name=$2
3972 if test "${ac_cv_path_EGREP+set}" = set; then
3973 echo $ECHO_N "(cached) $ECHO_C" >&6
3975 ac_path_EGREP_found=false
3976 # Loop through the user's path and test for each of PROGNAME-LIST
3977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3978 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3981 test -z "$as_dir" && as_dir=.
3982 for ac_prog in egrep; do
3983 for ac_exec_ext in '' $ac_executable_extensions; do
3984 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3985 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3986 # Check for GNU ac_path_EGREP and select it if it is found.
3987 # Check for GNU $ac_path_EGREP
3988 case `"$ac_path_EGREP" --version 2>&1` in
3990 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3993 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3996 cat "conftest.in" "conftest.in" >"conftest.tmp"
3997 mv "conftest.tmp" "conftest.in"
3998 cp "conftest.in" "conftest.nl"
3999 echo 'EGREP' >> "conftest.nl"
4000 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4001 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4002 ac_count=`expr $ac_count + 1`
4003 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4004 # Best one so far, save it but keep looking for a better one
4005 ac_cv_path_EGREP="$ac_path_EGREP"
4006 ac_path_EGREP_max=$ac_count
4008 # 10*(2^10) chars as input seems more than enough
4009 test $ac_count -gt 10 && break
4011 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4015 $ac_path_EGREP_found && break 3
4025 EGREP="$ac_cv_path_EGREP"
4026 if test -z "$EGREP"; then
4027 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4028 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4029 { (exit 1); exit 1; }; }
4033 ac_cv_path_EGREP=$EGREP
4039 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4040 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4041 EGREP="$ac_cv_path_EGREP"
4045 # Check whether --with-gnu-ld was given.
4046 if test "${with_gnu_ld+set}" = set; then
4047 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4053 if test "$GCC" = yes; then
4054 # Check if gcc -print-prog-name=ld gives a path.
4055 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4056 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4059 # gcc leaves a trailing carriage return which upsets mingw
4060 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4062 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4065 # Accept absolute paths.
4067 re_direlt='/[^/][^/]*/\.\./'
4068 # Canonicalize the pathname of ld
4069 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4070 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4071 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4073 test -z "$LD" && LD="$ac_prog"
4076 # If it fails, then pretend we aren't using GCC.
4080 # If it is relative, then search for the first ld in PATH.
4084 elif test "$with_gnu_ld" = yes; then
4085 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4086 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4088 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4089 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4091 if test "${lt_cv_path_LD+set}" = set; then
4092 echo $ECHO_N "(cached) $ECHO_C" >&6
4094 if test -z "$LD"; then
4095 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4096 for ac_dir in $PATH; do
4098 test -z "$ac_dir" && ac_dir=.
4099 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4100 lt_cv_path_LD="$ac_dir/$ac_prog"
4101 # Check to see if the program is GNU ld. I'd rather use --version,
4102 # but apparently some variants of GNU ld only accept -v.
4103 # Break only if it was the GNU/non-GNU ld that we prefer.
4104 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4105 *GNU* | *'with BFD'*)
4106 test "$with_gnu_ld" != no && break
4109 test "$with_gnu_ld" != yes && break
4116 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4121 if test -n "$LD"; then
4122 { echo "$as_me:$LINENO: result: $LD" >&5
4123 echo "${ECHO_T}$LD" >&6; }
4125 { echo "$as_me:$LINENO: result: no" >&5
4126 echo "${ECHO_T}no" >&6; }
4128 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4129 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4130 { (exit 1); exit 1; }; }
4131 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4132 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4133 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4134 echo $ECHO_N "(cached) $ECHO_C" >&6
4136 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4137 case `$LD -v 2>&1 </dev/null` in
4138 *GNU* | *'with BFD'*)
4139 lt_cv_prog_gnu_ld=yes
4142 lt_cv_prog_gnu_ld=no
4146 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4147 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4148 with_gnu_ld=$lt_cv_prog_gnu_ld
4151 # Find a good install program. We prefer a C program (faster),
4152 # so one script is as good as another. But avoid the broken or
4153 # incompatible versions:
4154 # SysV /etc/install, /usr/sbin/install
4155 # SunOS /usr/etc/install
4156 # IRIX /sbin/install
4158 # AmigaOS /C/install, which installs bootblocks on floppy discs
4159 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4160 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4161 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4162 # OS/2's system install, which has a completely different semantic
4163 # ./install, which can be erroneously created by make from ./install.sh.
4164 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4165 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4166 if test -z "$INSTALL"; then
4167 if test "${ac_cv_path_install+set}" = set; then
4168 echo $ECHO_N "(cached) $ECHO_C" >&6
4170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4174 test -z "$as_dir" && as_dir=.
4175 # Account for people who put trailing slashes in PATH elements.
4177 ./ | .// | /cC/* | \
4178 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4179 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4182 # OSF1 and SCO ODT 3.0 have their own names for install.
4183 # Don't use installbsd from OSF since it installs stuff as root
4185 for ac_prog in ginstall scoinst install; do
4186 for ac_exec_ext in '' $ac_executable_extensions; do
4187 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4188 if test $ac_prog = install &&
4189 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4190 # AIX install. It has an incompatible calling convention.
4192 elif test $ac_prog = install &&
4193 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4194 # program-specific install script used by HP pwplus--don't use.
4197 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4210 if test "${ac_cv_path_install+set}" = set; then
4211 INSTALL=$ac_cv_path_install
4213 # As a last resort, use the slow shell script. Don't cache a
4214 # value for INSTALL within a source directory, because that will
4215 # break other packages using the cache if that directory is
4216 # removed, or if the value is a relative name.
4217 INSTALL=$ac_install_sh
4220 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4221 echo "${ECHO_T}$INSTALL" >&6; }
4223 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4224 # It thinks the first close brace ends the variable substitution.
4225 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4227 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4229 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4231 # Check whether --enable-shared was given.
4232 if test "${enable_shared+set}" = set; then
4233 enableval=$enable_shared; p=${PACKAGE-default}
4235 yes) enable_shared=yes ;;
4236 no) enable_shared=no ;;
4239 # Look at the argument we got. We use all the common list separators.
4240 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4241 for pkg in $enableval; do
4243 if test "X$pkg" = "X$p"; then
4255 # Check whether --enable-static was given.
4256 if test "${enable_static+set}" = set; then
4257 enableval=$enable_static; p=${PACKAGE-default}
4259 yes) enable_static=yes ;;
4260 no) enable_static=no ;;
4263 # Look at the argument we got. We use all the common list separators.
4264 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4265 for pkg in $enableval; do
4267 if test "X$pkg" = "X$p"; then
4279 # Check whether --enable-fast-install was given.
4280 if test "${enable_fast_install+set}" = set; then
4281 enableval=$enable_fast_install; p=${PACKAGE-default}
4283 yes) enable_fast_install=yes ;;
4284 no) enable_fast_install=no ;;
4286 enable_fast_install=no
4287 # Look at the argument we got. We use all the common list separators.
4288 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4289 for pkg in $enableval; do
4291 if test "X$pkg" = "X$p"; then
4292 enable_fast_install=yes
4299 enable_fast_install=yes
4303 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4304 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4305 if test "${lt_cv_ld_reload_flag+set}" = set; then
4306 echo $ECHO_N "(cached) $ECHO_C" >&6
4308 lt_cv_ld_reload_flag='-r'
4310 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4311 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4312 reload_flag=$lt_cv_ld_reload_flag
4313 case $reload_flag in
4315 *) reload_flag=" $reload_flag" ;;
4317 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4320 if test "$GCC" = yes; then
4321 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4323 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4328 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4329 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4330 if test "${lt_cv_path_NM+set}" = set; then
4331 echo $ECHO_N "(cached) $ECHO_C" >&6
4333 if test -n "$NM"; then
4334 # Let the user override the test.
4337 lt_nm_to_check="${ac_tool_prefix}nm"
4338 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4339 lt_nm_to_check="$lt_nm_to_check nm"
4341 for lt_tmp_nm in $lt_nm_to_check; do
4342 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4343 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4345 test -z "$ac_dir" && ac_dir=.
4346 tmp_nm="$ac_dir/$lt_tmp_nm"
4347 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4348 # Check to see if the nm accepts a BSD-compat flag.
4349 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4350 # nm: unknown option "B" ignored
4351 # Tru64's nm complains that /dev/null is an invalid object file
4352 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4353 */dev/null* | *'Invalid file or object type'*)
4354 lt_cv_path_NM="$tmp_nm -B"
4358 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4360 lt_cv_path_NM="$tmp_nm -p"
4364 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4365 continue # so that we can try to find one that supports BSD flags
4374 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4377 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4378 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4381 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4382 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4384 if test "$LN_S" = "ln -s"; then
4385 { echo "$as_me:$LINENO: result: yes" >&5
4386 echo "${ECHO_T}yes" >&6; }
4388 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4389 echo "${ECHO_T}no, using $LN_S" >&6; }
4392 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4393 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4394 if test "${lt_cv_deplibs_check_method+set}" = set; then
4395 echo $ECHO_N "(cached) $ECHO_C" >&6
4397 lt_cv_file_magic_cmd='$MAGIC_CMD'
4398 lt_cv_file_magic_test_file=
4399 lt_cv_deplibs_check_method='unknown'
4400 # Need to set the preceding variable on all platforms that support
4401 # interlibrary dependencies.
4402 # 'none' -- dependencies not supported.
4403 # `unknown' -- same as none, but documents that we really don't know.
4404 # 'pass_all' -- all dependencies passed with no checks.
4405 # 'test_compile' -- check by making test program.
4406 # 'file_magic [[regex]]' -- check by looking for files in library path
4407 # which responds to the $file_magic_cmd with a given extended regex.
4408 # If you have `file' or equivalent on your system and you're not sure
4409 # whether `pass_all' will *always* work, you probably want this one.
4413 lt_cv_deplibs_check_method=pass_all
4417 lt_cv_deplibs_check_method=pass_all
4421 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4422 lt_cv_file_magic_cmd='/usr/bin/file -L'
4423 lt_cv_file_magic_test_file=/shlib/libc.so
4427 # func_win32_libid is a shell function defined in ltmain.sh
4428 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4429 lt_cv_file_magic_cmd='func_win32_libid'
4433 # Base MSYS/MinGW do not provide the 'file' command needed by
4434 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4435 # unless we find 'file', for example because we are cross-compiling.
4436 if ( file / ) >/dev/null 2>&1; then
4437 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4438 lt_cv_file_magic_cmd='func_win32_libid'
4440 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4441 lt_cv_file_magic_cmd='$OBJDUMP -f'
4445 darwin* | rhapsody*)
4446 lt_cv_deplibs_check_method=pass_all
4449 freebsd* | dragonfly*)
4450 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4453 # Not sure whether the presence of OpenBSD here was a mistake.
4454 # Let's accept both of them until this is cleared up.
4455 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4456 lt_cv_file_magic_cmd=/usr/bin/file
4457 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4461 lt_cv_deplibs_check_method=pass_all
4466 lt_cv_deplibs_check_method=pass_all
4469 hpux10.20* | hpux11*)
4470 lt_cv_file_magic_cmd=/usr/bin/file
4473 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4474 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4477 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]'
4478 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4481 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4482 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4488 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4489 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4492 irix5* | irix6* | nonstopux*)
4494 *-32|*"-32 ") libmagic=32-bit;;
4495 *-n32|*"-n32 ") libmagic=N32;;
4496 *-64|*"-64 ") libmagic=64-bit;;
4497 *) libmagic=never-match;;
4499 lt_cv_deplibs_check_method=pass_all
4502 # This must be Linux ELF.
4503 linux* | k*bsd*-gnu)
4504 lt_cv_deplibs_check_method=pass_all
4508 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4509 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4511 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4516 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4517 lt_cv_file_magic_cmd=/usr/bin/file
4518 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4522 lt_cv_deplibs_check_method=unknown
4526 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4527 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4529 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4533 osf3* | osf4* | osf5*)
4534 lt_cv_deplibs_check_method=pass_all
4538 lt_cv_deplibs_check_method=pass_all
4542 lt_cv_deplibs_check_method=pass_all
4546 case $host_vendor in
4548 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]'
4549 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4552 lt_cv_deplibs_check_method=pass_all
4555 lt_cv_file_magic_cmd='/bin/file'
4556 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4559 lt_cv_file_magic_cmd='/bin/file'
4560 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4561 lt_cv_file_magic_test_file=/lib/libc.so
4564 lt_cv_deplibs_check_method=pass_all
4567 lt_cv_deplibs_check_method=pass_all
4572 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4573 lt_cv_deplibs_check_method=pass_all
4578 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4579 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4580 file_magic_cmd=$lt_cv_file_magic_cmd
4581 deplibs_check_method=$lt_cv_deplibs_check_method
4582 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4587 # If no C compiler was specified, use CC.
4590 # If no C compiler flags were specified, use CFLAGS.
4591 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4593 # Allow CC to be a program name with arguments.
4597 # Check whether --enable-libtool-lock was given.
4598 if test "${enable_libtool_lock+set}" = set; then
4599 enableval=$enable_libtool_lock;
4602 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4604 # Some flags need to be propagated to the compiler or linker for good
4608 # Find out which ABI we are using.
4609 echo 'int i;' > conftest.$ac_ext
4610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4611 (eval $ac_compile) 2>&5
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); }; then
4615 case `/usr/bin/file conftest.$ac_objext` in
4627 # Find out which ABI we are using.
4628 echo '#line 4628 "configure"' > conftest.$ac_ext
4629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4630 (eval $ac_compile) 2>&5
4632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633 (exit $ac_status); }; then
4634 if test "$lt_cv_prog_gnu_ld" = yes; then
4635 case `/usr/bin/file conftest.$ac_objext` in
4637 LD="${LD-ld} -melf32bsmip"
4640 LD="${LD-ld} -melf32bmipn32"
4643 LD="${LD-ld} -melf64bmip"
4647 case `/usr/bin/file conftest.$ac_objext` in
4663 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4664 s390*-*linux*|sparc*-*linux*)
4665 # Find out which ABI we are using.
4666 echo 'int i;' > conftest.$ac_ext
4667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4668 (eval $ac_compile) 2>&5
4670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671 (exit $ac_status); }; then
4672 case `/usr/bin/file conftest.o` in
4675 x86_64-*kfreebsd*-gnu)
4676 LD="${LD-ld} -m elf_i386_fbsd"
4679 LD="${LD-ld} -m elf_i386"
4681 ppc64-*linux*|powerpc64-*linux*)
4682 LD="${LD-ld} -m elf32ppclinux"
4685 LD="${LD-ld} -m elf_s390"
4688 LD="${LD-ld} -m elf32_sparc"
4694 x86_64-*kfreebsd*-gnu)
4695 LD="${LD-ld} -m elf_x86_64_fbsd"
4698 LD="${LD-ld} -m elf_x86_64"
4700 ppc*-*linux*|powerpc*-*linux*)
4701 LD="${LD-ld} -m elf64ppc"
4704 LD="${LD-ld} -m elf64_s390"
4707 LD="${LD-ld} -m elf64_sparc"
4717 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4718 SAVE_CFLAGS="$CFLAGS"
4719 CFLAGS="$CFLAGS -belf"
4720 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4721 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4722 if test "${lt_cv_cc_needs_belf+set}" = set; then
4723 echo $ECHO_N "(cached) $ECHO_C" >&6
4726 ac_cpp='$CPP $CPPFLAGS'
4727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4731 cat >conftest.$ac_ext <<_ACEOF
4734 cat confdefs.h >>conftest.$ac_ext
4735 cat >>conftest.$ac_ext <<_ACEOF
4736 /* end confdefs.h. */
4746 rm -f conftest.$ac_objext conftest$ac_exeext
4747 if { (ac_try="$ac_link"
4749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4750 *) ac_try_echo=$ac_try;;
4752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4753 (eval "$ac_link") 2>conftest.er1
4755 grep -v '^ *+' conftest.er1 >conftest.err
4757 cat conftest.err >&5
4758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759 (exit $ac_status); } && {
4760 test -z "$ac_c_werror_flag" ||
4761 test ! -s conftest.err
4762 } && test -s conftest$ac_exeext &&
4763 $as_test_x conftest$ac_exeext; then
4764 lt_cv_cc_needs_belf=yes
4766 echo "$as_me: failed program was:" >&5
4767 sed 's/^/| /' conftest.$ac_ext >&5
4769 lt_cv_cc_needs_belf=no
4772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4773 conftest$ac_exeext conftest.$ac_ext
4775 ac_cpp='$CPP $CPPFLAGS'
4776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4781 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4782 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4783 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4784 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4785 CFLAGS="$SAVE_CFLAGS"
4789 # Find out which ABI we are using.
4790 echo 'int i;' > conftest.$ac_ext
4791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4792 (eval $ac_compile) 2>&5
4794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795 (exit $ac_status); }; then
4796 case `/usr/bin/file conftest.o` in
4798 case $lt_cv_prog_gnu_ld in
4799 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4801 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4815 need_locks="$enable_libtool_lock"
4819 ac_cpp='$CPP $CPPFLAGS'
4820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4823 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4824 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4825 # On Suns, sometimes $CPP names a directory.
4826 if test -n "$CPP" && test -d "$CPP"; then
4829 if test -z "$CPP"; then
4830 if test "${ac_cv_prog_CPP+set}" = set; then
4831 echo $ECHO_N "(cached) $ECHO_C" >&6
4833 # Double quotes because CPP needs to be expanded
4834 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4837 for ac_c_preproc_warn_flag in '' yes
4839 # Use a header file that comes with gcc, so configuring glibc
4840 # with a fresh cross-compiler works.
4841 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4842 # <limits.h> exists even on freestanding compilers.
4843 # On the NeXT, cc -E runs the code through the compiler's parser,
4844 # not just through cpp. "Syntax error" is here to catch this case.
4845 cat >conftest.$ac_ext <<_ACEOF
4848 cat confdefs.h >>conftest.$ac_ext
4849 cat >>conftest.$ac_ext <<_ACEOF
4850 /* end confdefs.h. */
4852 # include <limits.h>
4854 # include <assert.h>
4858 if { (ac_try="$ac_cpp conftest.$ac_ext"
4860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4861 *) ac_try_echo=$ac_try;;
4863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4864 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4866 grep -v '^ *+' conftest.er1 >conftest.err
4868 cat conftest.err >&5
4869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870 (exit $ac_status); } >/dev/null && {
4871 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4872 test ! -s conftest.err
4876 echo "$as_me: failed program was:" >&5
4877 sed 's/^/| /' conftest.$ac_ext >&5
4879 # Broken: fails on valid input.
4883 rm -f conftest.err conftest.$ac_ext
4885 # OK, works on sane cases. Now check whether nonexistent headers
4886 # can be detected and how.
4887 cat >conftest.$ac_ext <<_ACEOF
4890 cat confdefs.h >>conftest.$ac_ext
4891 cat >>conftest.$ac_ext <<_ACEOF
4892 /* end confdefs.h. */
4893 #include <ac_nonexistent.h>
4895 if { (ac_try="$ac_cpp conftest.$ac_ext"
4897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4898 *) ac_try_echo=$ac_try;;
4900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4901 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4903 grep -v '^ *+' conftest.er1 >conftest.err
4905 cat conftest.err >&5
4906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907 (exit $ac_status); } >/dev/null && {
4908 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4909 test ! -s conftest.err
4911 # Broken: success on invalid input.
4914 echo "$as_me: failed program was:" >&5
4915 sed 's/^/| /' conftest.$ac_ext >&5
4917 # Passes both tests.
4922 rm -f conftest.err conftest.$ac_ext
4925 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4926 rm -f conftest.err conftest.$ac_ext
4927 if $ac_preproc_ok; then
4939 { echo "$as_me:$LINENO: result: $CPP" >&5
4940 echo "${ECHO_T}$CPP" >&6; }
4942 for ac_c_preproc_warn_flag in '' yes
4944 # Use a header file that comes with gcc, so configuring glibc
4945 # with a fresh cross-compiler works.
4946 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4947 # <limits.h> exists even on freestanding compilers.
4948 # On the NeXT, cc -E runs the code through the compiler's parser,
4949 # not just through cpp. "Syntax error" is here to catch this case.
4950 cat >conftest.$ac_ext <<_ACEOF
4953 cat confdefs.h >>conftest.$ac_ext
4954 cat >>conftest.$ac_ext <<_ACEOF
4955 /* end confdefs.h. */
4957 # include <limits.h>
4959 # include <assert.h>
4963 if { (ac_try="$ac_cpp conftest.$ac_ext"
4965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4966 *) ac_try_echo=$ac_try;;
4968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4969 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4971 grep -v '^ *+' conftest.er1 >conftest.err
4973 cat conftest.err >&5
4974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); } >/dev/null && {
4976 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4977 test ! -s conftest.err
4981 echo "$as_me: failed program was:" >&5
4982 sed 's/^/| /' conftest.$ac_ext >&5
4984 # Broken: fails on valid input.
4988 rm -f conftest.err conftest.$ac_ext
4990 # OK, works on sane cases. Now check whether nonexistent headers
4991 # can be detected and how.
4992 cat >conftest.$ac_ext <<_ACEOF
4995 cat confdefs.h >>conftest.$ac_ext
4996 cat >>conftest.$ac_ext <<_ACEOF
4997 /* end confdefs.h. */
4998 #include <ac_nonexistent.h>
5000 if { (ac_try="$ac_cpp conftest.$ac_ext"
5002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5003 *) ac_try_echo=$ac_try;;
5005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5006 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5008 grep -v '^ *+' conftest.er1 >conftest.err
5010 cat conftest.err >&5
5011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012 (exit $ac_status); } >/dev/null && {
5013 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5014 test ! -s conftest.err
5016 # Broken: success on invalid input.
5019 echo "$as_me: failed program was:" >&5
5020 sed 's/^/| /' conftest.$ac_ext >&5
5022 # Passes both tests.
5027 rm -f conftest.err conftest.$ac_ext
5030 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5031 rm -f conftest.err conftest.$ac_ext
5032 if $ac_preproc_ok; then
5035 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5036 See \`config.log' for more details." >&5
5037 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5038 See \`config.log' for more details." >&2;}
5039 { (exit 1); exit 1; }; }
5043 ac_cpp='$CPP $CPPFLAGS'
5044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5049 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5050 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5051 if test "${ac_cv_header_stdc+set}" = set; then
5052 echo $ECHO_N "(cached) $ECHO_C" >&6
5054 cat >conftest.$ac_ext <<_ACEOF
5057 cat confdefs.h >>conftest.$ac_ext
5058 cat >>conftest.$ac_ext <<_ACEOF
5059 /* end confdefs.h. */
5073 rm -f conftest.$ac_objext
5074 if { (ac_try="$ac_compile"
5076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5077 *) ac_try_echo=$ac_try;;
5079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5080 (eval "$ac_compile") 2>conftest.er1
5082 grep -v '^ *+' conftest.er1 >conftest.err
5084 cat conftest.err >&5
5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086 (exit $ac_status); } && {
5087 test -z "$ac_c_werror_flag" ||
5088 test ! -s conftest.err
5089 } && test -s conftest.$ac_objext; then
5090 ac_cv_header_stdc=yes
5092 echo "$as_me: failed program was:" >&5
5093 sed 's/^/| /' conftest.$ac_ext >&5
5095 ac_cv_header_stdc=no
5098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5100 if test $ac_cv_header_stdc = yes; then
5101 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5102 cat >conftest.$ac_ext <<_ACEOF
5105 cat confdefs.h >>conftest.$ac_ext
5106 cat >>conftest.$ac_ext <<_ACEOF
5107 /* end confdefs.h. */
5111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5112 $EGREP "memchr" >/dev/null 2>&1; then
5115 ac_cv_header_stdc=no
5121 if test $ac_cv_header_stdc = yes; then
5122 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5123 cat >conftest.$ac_ext <<_ACEOF
5126 cat confdefs.h >>conftest.$ac_ext
5127 cat >>conftest.$ac_ext <<_ACEOF
5128 /* end confdefs.h. */
5132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5133 $EGREP "free" >/dev/null 2>&1; then
5136 ac_cv_header_stdc=no
5142 if test $ac_cv_header_stdc = yes; then
5143 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5144 if test "$cross_compiling" = yes; then
5147 cat >conftest.$ac_ext <<_ACEOF
5150 cat confdefs.h >>conftest.$ac_ext
5151 cat >>conftest.$ac_ext <<_ACEOF
5152 /* end confdefs.h. */
5155 #if ((' ' & 0x0FF) == 0x020)
5156 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5157 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5159 # define ISLOWER(c) \
5160 (('a' <= (c) && (c) <= 'i') \
5161 || ('j' <= (c) && (c) <= 'r') \
5162 || ('s' <= (c) && (c) <= 'z'))
5163 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5166 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5171 for (i = 0; i < 256; i++)
5172 if (XOR (islower (i), ISLOWER (i))
5173 || toupper (i) != TOUPPER (i))
5178 rm -f conftest$ac_exeext
5179 if { (ac_try="$ac_link"
5181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5182 *) ac_try_echo=$ac_try;;
5184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5185 (eval "$ac_link") 2>&5
5187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5189 { (case "(($ac_try" in
5190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5191 *) ac_try_echo=$ac_try;;
5193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5194 (eval "$ac_try") 2>&5
5196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197 (exit $ac_status); }; }; then
5200 echo "$as_me: program exited with status $ac_status" >&5
5201 echo "$as_me: failed program was:" >&5
5202 sed 's/^/| /' conftest.$ac_ext >&5
5205 ac_cv_header_stdc=no
5207 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5213 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5214 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5215 if test $ac_cv_header_stdc = yes; then
5217 cat >>confdefs.h <<\_ACEOF
5218 #define STDC_HEADERS 1
5223 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5233 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5234 inttypes.h stdint.h unistd.h
5236 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5237 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5240 echo $ECHO_N "(cached) $ECHO_C" >&6
5242 cat >conftest.$ac_ext <<_ACEOF
5245 cat confdefs.h >>conftest.$ac_ext
5246 cat >>conftest.$ac_ext <<_ACEOF
5247 /* end confdefs.h. */
5248 $ac_includes_default
5250 #include <$ac_header>
5252 rm -f conftest.$ac_objext
5253 if { (ac_try="$ac_compile"
5255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5256 *) ac_try_echo=$ac_try;;
5258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5259 (eval "$ac_compile") 2>conftest.er1
5261 grep -v '^ *+' conftest.er1 >conftest.err
5263 cat conftest.err >&5
5264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265 (exit $ac_status); } && {
5266 test -z "$ac_c_werror_flag" ||
5267 test ! -s conftest.err
5268 } && test -s conftest.$ac_objext; then
5269 eval "$as_ac_Header=yes"
5271 echo "$as_me: failed program was:" >&5
5272 sed 's/^/| /' conftest.$ac_ext >&5
5274 eval "$as_ac_Header=no"
5277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5279 ac_res=`eval echo '${'$as_ac_Header'}'`
5280 { echo "$as_me:$LINENO: result: $ac_res" >&5
5281 echo "${ECHO_T}$ac_res" >&6; }
5282 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5283 cat >>confdefs.h <<_ACEOF
5284 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5293 for ac_header in dlfcn.h
5295 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5296 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5297 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5298 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5299 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5300 echo $ECHO_N "(cached) $ECHO_C" >&6
5302 ac_res=`eval echo '${'$as_ac_Header'}'`
5303 { echo "$as_me:$LINENO: result: $ac_res" >&5
5304 echo "${ECHO_T}$ac_res" >&6; }
5306 # Is the header compilable?
5307 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5308 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5309 cat >conftest.$ac_ext <<_ACEOF
5312 cat confdefs.h >>conftest.$ac_ext
5313 cat >>conftest.$ac_ext <<_ACEOF
5314 /* end confdefs.h. */
5315 $ac_includes_default
5316 #include <$ac_header>
5318 rm -f conftest.$ac_objext
5319 if { (ac_try="$ac_compile"
5321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5322 *) ac_try_echo=$ac_try;;
5324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5325 (eval "$ac_compile") 2>conftest.er1
5327 grep -v '^ *+' conftest.er1 >conftest.err
5329 cat conftest.err >&5
5330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331 (exit $ac_status); } && {
5332 test -z "$ac_c_werror_flag" ||
5333 test ! -s conftest.err
5334 } && test -s conftest.$ac_objext; then
5335 ac_header_compiler=yes
5337 echo "$as_me: failed program was:" >&5
5338 sed 's/^/| /' conftest.$ac_ext >&5
5340 ac_header_compiler=no
5343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5344 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5345 echo "${ECHO_T}$ac_header_compiler" >&6; }
5347 # Is the header present?
5348 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5349 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5350 cat >conftest.$ac_ext <<_ACEOF
5353 cat confdefs.h >>conftest.$ac_ext
5354 cat >>conftest.$ac_ext <<_ACEOF
5355 /* end confdefs.h. */
5356 #include <$ac_header>
5358 if { (ac_try="$ac_cpp conftest.$ac_ext"
5360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5361 *) ac_try_echo=$ac_try;;
5363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5364 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5366 grep -v '^ *+' conftest.er1 >conftest.err
5368 cat conftest.err >&5
5369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370 (exit $ac_status); } >/dev/null && {
5371 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5372 test ! -s conftest.err
5374 ac_header_preproc=yes
5376 echo "$as_me: failed program was:" >&5
5377 sed 's/^/| /' conftest.$ac_ext >&5
5379 ac_header_preproc=no
5382 rm -f conftest.err conftest.$ac_ext
5383 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5384 echo "${ECHO_T}$ac_header_preproc" >&6; }
5386 # So? What about this header?
5387 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5389 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5390 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5391 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5392 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5393 ac_header_preproc=yes
5396 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5397 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5398 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5399 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5400 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5401 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5402 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5403 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5404 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5405 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5406 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5407 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5409 ## --------------------------------------------- ##
5410 ## Report this to brenden1@users.sourceforge.net ##
5411 ## --------------------------------------------- ##
5413 ) | sed "s/^/$as_me: WARNING: /" >&2
5416 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5418 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5419 echo $ECHO_N "(cached) $ECHO_C" >&6
5421 eval "$as_ac_Header=\$ac_header_preproc"
5423 ac_res=`eval echo '${'$as_ac_Header'}'`
5424 { echo "$as_me:$LINENO: result: $ac_res" >&5
5425 echo "${ECHO_T}$ac_res" >&6; }
5428 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5429 cat >>confdefs.h <<_ACEOF
5430 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5438 ac_cpp='$CXXCPP $CPPFLAGS'
5439 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5440 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5441 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5442 if test -z "$CXX"; then
5443 if test -n "$CCC"; then
5446 if test -n "$ac_tool_prefix"; then
5447 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5449 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5450 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5451 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5453 if test "${ac_cv_prog_CXX+set}" = set; then
5454 echo $ECHO_N "(cached) $ECHO_C" >&6
5456 if test -n "$CXX"; then
5457 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5463 test -z "$as_dir" && as_dir=.
5464 for ac_exec_ext in '' $ac_executable_extensions; do
5465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5466 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5477 if test -n "$CXX"; then
5478 { echo "$as_me:$LINENO: result: $CXX" >&5
5479 echo "${ECHO_T}$CXX" >&6; }
5481 { echo "$as_me:$LINENO: result: no" >&5
5482 echo "${ECHO_T}no" >&6; }
5486 test -n "$CXX" && break
5489 if test -z "$CXX"; then
5491 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5493 # Extract the first word of "$ac_prog", so it can be a program name with args.
5494 set dummy $ac_prog; ac_word=$2
5495 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5497 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5498 echo $ECHO_N "(cached) $ECHO_C" >&6
5500 if test -n "$ac_ct_CXX"; then
5501 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5507 test -z "$as_dir" && as_dir=.
5508 for ac_exec_ext in '' $ac_executable_extensions; do
5509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5510 ac_cv_prog_ac_ct_CXX="$ac_prog"
5511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5520 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5521 if test -n "$ac_ct_CXX"; then
5522 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5523 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5525 { echo "$as_me:$LINENO: result: no" >&5
5526 echo "${ECHO_T}no" >&6; }
5530 test -n "$ac_ct_CXX" && break
5533 if test "x$ac_ct_CXX" = x; then
5536 case $cross_compiling:$ac_tool_warned in
5538 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5539 whose name does not start with the host triplet. If you think this
5540 configuration is useful to you, please write to autoconf@gnu.org." >&5
5541 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5542 whose name does not start with the host triplet. If you think this
5543 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5544 ac_tool_warned=yes ;;
5552 # Provide some information about the compiler.
5553 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5554 ac_compiler=`set X $ac_compile; echo $2`
5555 { (ac_try="$ac_compiler --version >&5"
5557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5558 *) ac_try_echo=$ac_try;;
5560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5561 (eval "$ac_compiler --version >&5") 2>&5
5563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564 (exit $ac_status); }
5565 { (ac_try="$ac_compiler -v >&5"
5567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5568 *) ac_try_echo=$ac_try;;
5570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5571 (eval "$ac_compiler -v >&5") 2>&5
5573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574 (exit $ac_status); }
5575 { (ac_try="$ac_compiler -V >&5"
5577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5578 *) ac_try_echo=$ac_try;;
5580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5581 (eval "$ac_compiler -V >&5") 2>&5
5583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584 (exit $ac_status); }
5586 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5587 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5588 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5589 echo $ECHO_N "(cached) $ECHO_C" >&6
5591 cat >conftest.$ac_ext <<_ACEOF
5594 cat confdefs.h >>conftest.$ac_ext
5595 cat >>conftest.$ac_ext <<_ACEOF
5596 /* end confdefs.h. */
5609 rm -f conftest.$ac_objext
5610 if { (ac_try="$ac_compile"
5612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5613 *) ac_try_echo=$ac_try;;
5615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5616 (eval "$ac_compile") 2>conftest.er1
5618 grep -v '^ *+' conftest.er1 >conftest.err
5620 cat conftest.err >&5
5621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622 (exit $ac_status); } && {
5623 test -z "$ac_cxx_werror_flag" ||
5624 test ! -s conftest.err
5625 } && test -s conftest.$ac_objext; then
5628 echo "$as_me: failed program was:" >&5
5629 sed 's/^/| /' conftest.$ac_ext >&5
5634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5635 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5638 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5639 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5640 GXX=`test $ac_compiler_gnu = yes && echo yes`
5641 ac_test_CXXFLAGS=${CXXFLAGS+set}
5642 ac_save_CXXFLAGS=$CXXFLAGS
5643 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5644 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5645 if test "${ac_cv_prog_cxx_g+set}" = set; then
5646 echo $ECHO_N "(cached) $ECHO_C" >&6
5648 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5649 ac_cxx_werror_flag=yes
5652 cat >conftest.$ac_ext <<_ACEOF
5655 cat confdefs.h >>conftest.$ac_ext
5656 cat >>conftest.$ac_ext <<_ACEOF
5657 /* end confdefs.h. */
5667 rm -f conftest.$ac_objext
5668 if { (ac_try="$ac_compile"
5670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5671 *) ac_try_echo=$ac_try;;
5673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5674 (eval "$ac_compile") 2>conftest.er1
5676 grep -v '^ *+' conftest.er1 >conftest.err
5678 cat conftest.err >&5
5679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680 (exit $ac_status); } && {
5681 test -z "$ac_cxx_werror_flag" ||
5682 test ! -s conftest.err
5683 } && test -s conftest.$ac_objext; then
5684 ac_cv_prog_cxx_g=yes
5686 echo "$as_me: failed program was:" >&5
5687 sed 's/^/| /' conftest.$ac_ext >&5
5690 cat >conftest.$ac_ext <<_ACEOF
5693 cat confdefs.h >>conftest.$ac_ext
5694 cat >>conftest.$ac_ext <<_ACEOF
5695 /* end confdefs.h. */
5705 rm -f conftest.$ac_objext
5706 if { (ac_try="$ac_compile"
5708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5709 *) ac_try_echo=$ac_try;;
5711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5712 (eval "$ac_compile") 2>conftest.er1
5714 grep -v '^ *+' conftest.er1 >conftest.err
5716 cat conftest.err >&5
5717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718 (exit $ac_status); } && {
5719 test -z "$ac_cxx_werror_flag" ||
5720 test ! -s conftest.err
5721 } && test -s conftest.$ac_objext; then
5724 echo "$as_me: failed program was:" >&5
5725 sed 's/^/| /' conftest.$ac_ext >&5
5727 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5729 cat >conftest.$ac_ext <<_ACEOF
5732 cat confdefs.h >>conftest.$ac_ext
5733 cat >>conftest.$ac_ext <<_ACEOF
5734 /* end confdefs.h. */
5744 rm -f conftest.$ac_objext
5745 if { (ac_try="$ac_compile"
5747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5748 *) ac_try_echo=$ac_try;;
5750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5751 (eval "$ac_compile") 2>conftest.er1
5753 grep -v '^ *+' conftest.er1 >conftest.err
5755 cat conftest.err >&5
5756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757 (exit $ac_status); } && {
5758 test -z "$ac_cxx_werror_flag" ||
5759 test ! -s conftest.err
5760 } && test -s conftest.$ac_objext; then
5761 ac_cv_prog_cxx_g=yes
5763 echo "$as_me: failed program was:" >&5
5764 sed 's/^/| /' conftest.$ac_ext >&5
5769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5776 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5778 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5779 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5780 if test "$ac_test_CXXFLAGS" = set; then
5781 CXXFLAGS=$ac_save_CXXFLAGS
5782 elif test $ac_cv_prog_cxx_g = yes; then
5783 if test "$GXX" = yes; then
5789 if test "$GXX" = yes; then
5796 ac_cpp='$CXXCPP $CPPFLAGS'
5797 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5798 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5799 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5801 depcc="$CXX" am_compiler_list=
5803 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5804 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5805 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5806 echo $ECHO_N "(cached) $ECHO_C" >&6
5808 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5809 # We make a subdir and do the tests there. Otherwise we can end up
5810 # making bogus files that we don't know about and never remove. For
5811 # instance it was reported that on HP-UX the gcc test will end up
5812 # making a dummy file named `D' -- because `-MD' means `put the output
5815 # Copy depcomp to subdir because otherwise we won't find it if we're
5816 # using a relative directory.
5817 cp "$am_depcomp" conftest.dir
5819 # We will build objects and dependencies in a subdirectory because
5820 # it helps to detect inapplicable dependency modes. For instance
5821 # both Tru64's cc and ICC support -MD to output dependencies as a
5822 # side effect of compilation, but ICC will put the dependencies in
5823 # the current directory while Tru64 will put them in the object
5827 am_cv_CXX_dependencies_compiler_type=none
5828 if test "$am_compiler_list" = ""; then
5829 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5831 for depmode in $am_compiler_list; do
5832 # Setup a source with many dependencies, because some compilers
5833 # like to wrap large dependency lists on column 80 (with \), and
5834 # we should not choose a depcomp mode which is confused by this.
5836 # We need to recreate these files for each test, as the compiler may
5837 # overwrite some of them when testing with obscure command lines.
5838 # This happens at least with the AIX C compiler.
5840 for i in 1 2 3 4 5 6; do
5841 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5842 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5843 # Solaris 8's {/usr,}/bin/sh.
5844 touch sub/conftst$i.h
5846 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5850 # after this tag, mechanisms are not by side-effect, so they'll
5851 # only be used when explicitly requested
5852 if test "x$enable_dependency_tracking" = xyes; then
5860 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5861 # mode. It turns out that the SunPro C++ compiler does not properly
5862 # handle `-M -o', and we need to detect this.
5863 if depmode=$depmode \
5864 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5865 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5866 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5867 >/dev/null 2>conftest.err &&
5868 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5869 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5870 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5871 # icc doesn't choke on unknown options, it will just issue warnings
5872 # or remarks (even with -Werror). So we grep stderr for any message
5873 # that says an option was ignored or not supported.
5874 # When given -MP, icc 7.0 and 7.1 complain thusly:
5875 # icc: Command line warning: ignoring option '-M'; no argument required
5876 # The diagnosis changed in icc 8.0:
5877 # icc: Command line remark: option '-MP' not supported
5878 if (grep 'ignoring option' conftest.err ||
5879 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5880 am_cv_CXX_dependencies_compiler_type=$depmode
5889 am_cv_CXX_dependencies_compiler_type=none
5893 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5894 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5895 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5900 test "x$enable_dependency_tracking" != xno \
5901 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5902 am__fastdepCXX_TRUE=
5903 am__fastdepCXX_FALSE='#'
5905 am__fastdepCXX_TRUE='#'
5906 am__fastdepCXX_FALSE=
5912 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5913 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5914 (test "X$CXX" != "Xg++"))) ; then
5916 ac_cpp='$CXXCPP $CPPFLAGS'
5917 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5918 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5919 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5920 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5921 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5922 if test -z "$CXXCPP"; then
5923 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5924 echo $ECHO_N "(cached) $ECHO_C" >&6
5926 # Double quotes because CXXCPP needs to be expanded
5927 for CXXCPP in "$CXX -E" "/lib/cpp"
5930 for ac_cxx_preproc_warn_flag in '' yes
5932 # Use a header file that comes with gcc, so configuring glibc
5933 # with a fresh cross-compiler works.
5934 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5935 # <limits.h> exists even on freestanding compilers.
5936 # On the NeXT, cc -E runs the code through the compiler's parser,
5937 # not just through cpp. "Syntax error" is here to catch this case.
5938 cat >conftest.$ac_ext <<_ACEOF
5941 cat confdefs.h >>conftest.$ac_ext
5942 cat >>conftest.$ac_ext <<_ACEOF
5943 /* end confdefs.h. */
5945 # include <limits.h>
5947 # include <assert.h>
5951 if { (ac_try="$ac_cpp conftest.$ac_ext"
5953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5954 *) ac_try_echo=$ac_try;;
5956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5957 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5959 grep -v '^ *+' conftest.er1 >conftest.err
5961 cat conftest.err >&5
5962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963 (exit $ac_status); } >/dev/null && {
5964 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5965 test ! -s conftest.err
5969 echo "$as_me: failed program was:" >&5
5970 sed 's/^/| /' conftest.$ac_ext >&5
5972 # Broken: fails on valid input.
5976 rm -f conftest.err conftest.$ac_ext
5978 # OK, works on sane cases. Now check whether nonexistent headers
5979 # can be detected and how.
5980 cat >conftest.$ac_ext <<_ACEOF
5983 cat confdefs.h >>conftest.$ac_ext
5984 cat >>conftest.$ac_ext <<_ACEOF
5985 /* end confdefs.h. */
5986 #include <ac_nonexistent.h>
5988 if { (ac_try="$ac_cpp conftest.$ac_ext"
5990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5991 *) ac_try_echo=$ac_try;;
5993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5994 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5996 grep -v '^ *+' conftest.er1 >conftest.err
5998 cat conftest.err >&5
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); } >/dev/null && {
6001 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6002 test ! -s conftest.err
6004 # Broken: success on invalid input.
6007 echo "$as_me: failed program was:" >&5
6008 sed 's/^/| /' conftest.$ac_ext >&5
6010 # Passes both tests.
6015 rm -f conftest.err conftest.$ac_ext
6018 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6019 rm -f conftest.err conftest.$ac_ext
6020 if $ac_preproc_ok; then
6025 ac_cv_prog_CXXCPP=$CXXCPP
6028 CXXCPP=$ac_cv_prog_CXXCPP
6030 ac_cv_prog_CXXCPP=$CXXCPP
6032 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6033 echo "${ECHO_T}$CXXCPP" >&6; }
6035 for ac_cxx_preproc_warn_flag in '' yes
6037 # Use a header file that comes with gcc, so configuring glibc
6038 # with a fresh cross-compiler works.
6039 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6040 # <limits.h> exists even on freestanding compilers.
6041 # On the NeXT, cc -E runs the code through the compiler's parser,
6042 # not just through cpp. "Syntax error" is here to catch this case.
6043 cat >conftest.$ac_ext <<_ACEOF
6046 cat confdefs.h >>conftest.$ac_ext
6047 cat >>conftest.$ac_ext <<_ACEOF
6048 /* end confdefs.h. */
6050 # include <limits.h>
6052 # include <assert.h>
6056 if { (ac_try="$ac_cpp conftest.$ac_ext"
6058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6059 *) ac_try_echo=$ac_try;;
6061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6062 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6064 grep -v '^ *+' conftest.er1 >conftest.err
6066 cat conftest.err >&5
6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068 (exit $ac_status); } >/dev/null && {
6069 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6070 test ! -s conftest.err
6074 echo "$as_me: failed program was:" >&5
6075 sed 's/^/| /' conftest.$ac_ext >&5
6077 # Broken: fails on valid input.
6081 rm -f conftest.err conftest.$ac_ext
6083 # OK, works on sane cases. Now check whether nonexistent headers
6084 # can be detected and how.
6085 cat >conftest.$ac_ext <<_ACEOF
6088 cat confdefs.h >>conftest.$ac_ext
6089 cat >>conftest.$ac_ext <<_ACEOF
6090 /* end confdefs.h. */
6091 #include <ac_nonexistent.h>
6093 if { (ac_try="$ac_cpp conftest.$ac_ext"
6095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6096 *) ac_try_echo=$ac_try;;
6098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6099 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6101 grep -v '^ *+' conftest.er1 >conftest.err
6103 cat conftest.err >&5
6104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105 (exit $ac_status); } >/dev/null && {
6106 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6107 test ! -s conftest.err
6109 # Broken: success on invalid input.
6112 echo "$as_me: failed program was:" >&5
6113 sed 's/^/| /' conftest.$ac_ext >&5
6115 # Passes both tests.
6120 rm -f conftest.err conftest.$ac_ext
6123 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6124 rm -f conftest.err conftest.$ac_ext
6125 if $ac_preproc_ok; then
6128 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6129 See \`config.log' for more details." >&5
6130 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6131 See \`config.log' for more details." >&2;}
6132 { (exit 1); exit 1; }; }
6136 ac_cpp='$CXXCPP $CPPFLAGS'
6137 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6138 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6139 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6145 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6146 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6147 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6148 if test -n "$ac_tool_prefix"; then
6149 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
6151 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6152 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6153 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6155 if test "${ac_cv_prog_F77+set}" = set; then
6156 echo $ECHO_N "(cached) $ECHO_C" >&6
6158 if test -n "$F77"; then
6159 ac_cv_prog_F77="$F77" # Let the user override the test.
6161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6165 test -z "$as_dir" && as_dir=.
6166 for ac_exec_ext in '' $ac_executable_extensions; do
6167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6168 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6179 if test -n "$F77"; then
6180 { echo "$as_me:$LINENO: result: $F77" >&5
6181 echo "${ECHO_T}$F77" >&6; }
6183 { echo "$as_me:$LINENO: result: no" >&5
6184 echo "${ECHO_T}no" >&6; }
6188 test -n "$F77" && break
6191 if test -z "$F77"; then
6193 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
6195 # Extract the first word of "$ac_prog", so it can be a program name with args.
6196 set dummy $ac_prog; ac_word=$2
6197 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6199 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6200 echo $ECHO_N "(cached) $ECHO_C" >&6
6202 if test -n "$ac_ct_F77"; then
6203 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6209 test -z "$as_dir" && as_dir=.
6210 for ac_exec_ext in '' $ac_executable_extensions; do
6211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6212 ac_cv_prog_ac_ct_F77="$ac_prog"
6213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6222 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6223 if test -n "$ac_ct_F77"; then
6224 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6225 echo "${ECHO_T}$ac_ct_F77" >&6; }
6227 { echo "$as_me:$LINENO: result: no" >&5
6228 echo "${ECHO_T}no" >&6; }
6232 test -n "$ac_ct_F77" && break
6235 if test "x$ac_ct_F77" = x; then
6238 case $cross_compiling:$ac_tool_warned in
6240 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6241 whose name does not start with the host triplet. If you think this
6242 configuration is useful to you, please write to autoconf@gnu.org." >&5
6243 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6244 whose name does not start with the host triplet. If you think this
6245 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6246 ac_tool_warned=yes ;;
6253 # Provide some information about the compiler.
6254 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6255 ac_compiler=`set X $ac_compile; echo $2`
6256 { (ac_try="$ac_compiler --version >&5"
6258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6259 *) ac_try_echo=$ac_try;;
6261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6262 (eval "$ac_compiler --version >&5") 2>&5
6264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265 (exit $ac_status); }
6266 { (ac_try="$ac_compiler -v >&5"
6268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6269 *) ac_try_echo=$ac_try;;
6271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6272 (eval "$ac_compiler -v >&5") 2>&5
6274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275 (exit $ac_status); }
6276 { (ac_try="$ac_compiler -V >&5"
6278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6279 *) ac_try_echo=$ac_try;;
6281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6282 (eval "$ac_compiler -V >&5") 2>&5
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); }
6288 # If we don't use `.F' as extension, the preprocessor is not run on the
6289 # input file. (Note that this only needs to work for GNU compilers.)
6292 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6293 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6294 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6295 echo $ECHO_N "(cached) $ECHO_C" >&6
6297 cat >conftest.$ac_ext <<_ACEOF
6305 rm -f conftest.$ac_objext
6306 if { (ac_try="$ac_compile"
6308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6309 *) ac_try_echo=$ac_try;;
6311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6312 (eval "$ac_compile") 2>conftest.er1
6314 grep -v '^ *+' conftest.er1 >conftest.err
6316 cat conftest.err >&5
6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318 (exit $ac_status); } && {
6319 test -z "$ac_f77_werror_flag" ||
6320 test ! -s conftest.err
6321 } && test -s conftest.$ac_objext; then
6324 echo "$as_me: failed program was:" >&5
6325 sed 's/^/| /' conftest.$ac_ext >&5
6330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6331 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6334 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6335 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6337 ac_test_FFLAGS=${FFLAGS+set}
6338 ac_save_FFLAGS=$FFLAGS
6340 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6341 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6342 if test "${ac_cv_prog_f77_g+set}" = set; then
6343 echo $ECHO_N "(cached) $ECHO_C" >&6
6346 cat >conftest.$ac_ext <<_ACEOF
6351 rm -f conftest.$ac_objext
6352 if { (ac_try="$ac_compile"
6354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6355 *) ac_try_echo=$ac_try;;
6357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6358 (eval "$ac_compile") 2>conftest.er1
6360 grep -v '^ *+' conftest.er1 >conftest.err
6362 cat conftest.err >&5
6363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); } && {
6365 test -z "$ac_f77_werror_flag" ||
6366 test ! -s conftest.err
6367 } && test -s conftest.$ac_objext; then
6368 ac_cv_prog_f77_g=yes
6370 echo "$as_me: failed program was:" >&5
6371 sed 's/^/| /' conftest.$ac_ext >&5
6376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6379 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6380 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6381 if test "$ac_test_FFLAGS" = set; then
6382 FFLAGS=$ac_save_FFLAGS
6383 elif test $ac_cv_prog_f77_g = yes; then
6384 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6390 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6397 G77=`test $ac_compiler_gnu = yes && echo yes`
6399 ac_cpp='$CPP $CPPFLAGS'
6400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6406 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6407 # find the maximum length of command line arguments
6408 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6409 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6410 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6411 echo $ECHO_N "(cached) $ECHO_C" >&6
6418 # On DJGPP, this test can blow up pretty badly due to problems in libc
6419 # (any single argument exceeding 2000 bytes causes a buffer overrun
6420 # during glob expansion). Even if it were fixed, the result of this
6421 # check would be larger than it should be.
6422 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6426 # Under GNU Hurd, this test is not required because there is
6427 # no limit to the length of command line arguments.
6428 # Libtool will interpret -1 as no limit whatsoever
6429 lt_cv_sys_max_cmd_len=-1;
6433 # On Win9x/ME, this test blows up -- it succeeds, but takes
6434 # about 5 minutes as the teststring grows exponentially.
6435 # Worse, since 9x/ME are not pre-emptively multitasking,
6436 # you end up with a "frozen" computer, even though with patience
6437 # the test eventually succeeds (with a max line length of 256k).
6438 # Instead, let's just punt: use the minimum linelength reported by
6439 # all of the supported platforms: 8192 (on NT/2K/XP).
6440 lt_cv_sys_max_cmd_len=8192;
6444 # On AmigaOS with pdksh, this test takes hours, literally.
6445 # So we just punt and use a minimum line length of 8192.
6446 lt_cv_sys_max_cmd_len=8192;
6449 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6450 # This has been around since 386BSD, at least. Likely further.
6451 if test -x /sbin/sysctl; then
6452 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6453 elif test -x /usr/sbin/sysctl; then
6454 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6456 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6458 # And add a safety zone
6459 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6460 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6464 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6465 lt_cv_sys_max_cmd_len=196608
6469 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6470 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6471 # nice to cause kernel panics so lets avoid the loop below.
6472 # First set a reasonable default.
6473 lt_cv_sys_max_cmd_len=16384
6475 if test -x /sbin/sysconfig; then
6476 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6477 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6482 lt_cv_sys_max_cmd_len=102400
6484 sysv5* | sco5v6* | sysv4.2uw2*)
6485 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6486 if test -n "$kargmax"; then
6487 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6489 lt_cv_sys_max_cmd_len=32768
6493 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6494 if test -n "$lt_cv_sys_max_cmd_len"; then
6495 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6496 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6498 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6499 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6500 = "XX$teststring") >/dev/null 2>&1 &&
6501 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6502 lt_cv_sys_max_cmd_len=$new_result &&
6503 test $i != 17 # 1/2 MB should be enough
6506 teststring=$teststring$teststring
6509 # Add a significant safety factor because C++ compilers can tack on massive
6510 # amounts of additional arguments before passing them to the linker.
6511 # It appears as though 1/2 is a usable value.
6512 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6519 if test -n $lt_cv_sys_max_cmd_len ; then
6520 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6521 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6523 { echo "$as_me:$LINENO: result: none" >&5
6524 echo "${ECHO_T}none" >&6; }
6531 # Check for command to grab the raw symbol name followed by C symbol from nm.
6532 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6533 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6534 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6535 echo $ECHO_N "(cached) $ECHO_C" >&6
6538 # These are sane defaults that work on at least a few old systems.
6539 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6541 # Character class describing NM global symbol codes.
6542 symcode='[BCDEGRST]'
6544 # Regexp to match symbols that can be accessed directly from C.
6545 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6547 # Transform an extracted symbol line into a proper C declaration
6548 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6550 # Transform an extracted symbol line into symbol name and symbol address
6551 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'"
6553 # Define system-specific variables.
6558 cygwin* | mingw* | pw32*)
6559 symcode='[ABCDGISTW]'
6561 hpux*) # Its linker distinguishes data from code symbols
6562 if test "$host_cpu" = ia64; then
6563 symcode='[ABCDEGRST]'
6565 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6566 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'"
6568 linux* | k*bsd*-gnu)
6569 if test "$host_cpu" = ia64; then
6570 symcode='[ABCDGIRSTW]'
6571 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6572 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'"
6576 symcode='[BCDEGRST]'
6579 symcode='[BCDEGQRST]'
6590 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6598 # Handle CRLF in mingw tool chain
6602 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6606 # If we're using GNU nm, then use its standard symbol codes.
6607 case `$NM -V 2>&1` in
6608 *GNU* | *'with BFD'*)
6609 symcode='[ABCDGIRSTW]' ;;
6612 # Try without a prefix undercore, then with it.
6613 for ac_symprfx in "" "_"; do
6615 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6616 symxfrm="\\1 $ac_symprfx\\2 \\2"
6618 # Write the raw and C identifiers.
6619 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6621 # Check to see that the pipe works correctly.
6625 cat > conftest.$ac_ext <<EOF
6630 void nm_test_func(){}
6634 int main(){nm_test_var='a';nm_test_func();return(0);}
6637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6638 (eval $ac_compile) 2>&5
6640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641 (exit $ac_status); }; then
6642 # Now try to grab the symbols.
6644 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6645 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648 (exit $ac_status); } && test -s "$nlist"; then
6649 # Try sorting and uniquifying the output.
6650 if sort "$nlist" | uniq > "$nlist"T; then
6651 mv -f "$nlist"T "$nlist"
6656 # Make sure that we snagged all the symbols we need.
6657 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6658 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6659 cat <<EOF > conftest.$ac_ext
6665 # Now generate the symbol file.
6666 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6668 cat <<EOF >> conftest.$ac_ext
6669 #if defined (__STDC__) && __STDC__
6670 # define lt_ptr_t void *
6672 # define lt_ptr_t char *
6676 /* The mapping between symbol names and symbols. */
6681 lt_preloaded_symbols[] =
6684 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6685 cat <<\EOF >> conftest.$ac_ext
6693 # Now try linking the two files.
6694 mv conftest.$ac_objext conftstm.$ac_objext
6695 lt_save_LIBS="$LIBS"
6696 lt_save_CFLAGS="$CFLAGS"
6697 LIBS="conftstm.$ac_objext"
6698 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6700 (eval $ac_link) 2>&5
6702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6706 LIBS="$lt_save_LIBS"
6707 CFLAGS="$lt_save_CFLAGS"
6709 echo "cannot find nm_test_func in $nlist" >&5
6712 echo "cannot find nm_test_var in $nlist" >&5
6715 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6718 echo "$progname: failed program was:" >&5
6719 cat conftest.$ac_ext >&5
6721 rm -rf conftest* conftst*
6723 # Do not use the global_symbol_pipe unless it works.
6724 if test "$pipe_works" = yes; then
6727 lt_cv_sys_global_symbol_pipe=
6733 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6734 lt_cv_sys_global_symbol_to_cdecl=
6736 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6737 { echo "$as_me:$LINENO: result: failed" >&5
6738 echo "${ECHO_T}failed" >&6; }
6740 { echo "$as_me:$LINENO: result: ok" >&5
6741 echo "${ECHO_T}ok" >&6; }
6744 { echo "$as_me:$LINENO: checking for objdir" >&5
6745 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6746 if test "${lt_cv_objdir+set}" = set; then
6747 echo $ECHO_N "(cached) $ECHO_C" >&6
6749 rm -f .libs 2>/dev/null
6750 mkdir .libs 2>/dev/null
6751 if test -d .libs; then
6754 # MS-DOS does not allow filenames that begin with a dot.
6757 rmdir .libs 2>/dev/null
6759 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6760 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6761 objdir=$lt_cv_objdir
6769 # AIX sometimes has problems with the GCC collect2 program. For some
6770 # reason, if we set the COLLECT_NAMES environment variable, the problems
6771 # vanish in a puff of smoke.
6772 if test "X${COLLECT_NAMES+set}" != Xset; then
6774 export COLLECT_NAMES
6779 # Sed substitution that helps us do robust quoting. It backslashifies
6780 # metacharacters that are still active within double-quoted strings.
6781 Xsed='sed -e 1s/^X//'
6782 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6784 # Same as above, but do not quote variable references.
6785 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6787 # Sed substitution to delay expansion of an escaped shell variable in a
6788 # double_quote_subst'ed string.
6789 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6791 # Sed substitution to avoid accidental globbing in evaled expressions
6792 no_glob_subst='s/\*/\\\*/g'
6798 default_ofile=libtool
6799 can_build_shared=yes
6801 # All known linkers require a `.a' archive for static linking (except MSVC,
6802 # which needs '.lib').
6804 ltmain="$ac_aux_dir/ltmain.sh"
6805 ofile="$default_ofile"
6806 with_gnu_ld="$lt_cv_prog_gnu_ld"
6808 if test -n "$ac_tool_prefix"; then
6809 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6810 set dummy ${ac_tool_prefix}ar; ac_word=$2
6811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6813 if test "${ac_cv_prog_AR+set}" = set; then
6814 echo $ECHO_N "(cached) $ECHO_C" >&6
6816 if test -n "$AR"; then
6817 ac_cv_prog_AR="$AR" # Let the user override the test.
6819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6823 test -z "$as_dir" && as_dir=.
6824 for ac_exec_ext in '' $ac_executable_extensions; do
6825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6826 ac_cv_prog_AR="${ac_tool_prefix}ar"
6827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6837 if test -n "$AR"; then
6838 { echo "$as_me:$LINENO: result: $AR" >&5
6839 echo "${ECHO_T}$AR" >&6; }
6841 { echo "$as_me:$LINENO: result: no" >&5
6842 echo "${ECHO_T}no" >&6; }
6847 if test -z "$ac_cv_prog_AR"; then
6849 # Extract the first word of "ar", so it can be a program name with args.
6850 set dummy ar; ac_word=$2
6851 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6853 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6854 echo $ECHO_N "(cached) $ECHO_C" >&6
6856 if test -n "$ac_ct_AR"; then
6857 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6863 test -z "$as_dir" && as_dir=.
6864 for ac_exec_ext in '' $ac_executable_extensions; do
6865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6866 ac_cv_prog_ac_ct_AR="ar"
6867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6876 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6877 if test -n "$ac_ct_AR"; then
6878 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6879 echo "${ECHO_T}$ac_ct_AR" >&6; }
6881 { echo "$as_me:$LINENO: result: no" >&5
6882 echo "${ECHO_T}no" >&6; }
6885 if test "x$ac_ct_AR" = x; then
6888 case $cross_compiling:$ac_tool_warned in
6890 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6891 whose name does not start with the host triplet. If you think this
6892 configuration is useful to you, please write to autoconf@gnu.org." >&5
6893 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6894 whose name does not start with the host triplet. If you think this
6895 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6896 ac_tool_warned=yes ;;
6904 if test -n "$ac_tool_prefix"; then
6905 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6906 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6907 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6909 if test "${ac_cv_prog_RANLIB+set}" = set; then
6910 echo $ECHO_N "(cached) $ECHO_C" >&6
6912 if test -n "$RANLIB"; then
6913 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6919 test -z "$as_dir" && as_dir=.
6920 for ac_exec_ext in '' $ac_executable_extensions; do
6921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6922 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6932 RANLIB=$ac_cv_prog_RANLIB
6933 if test -n "$RANLIB"; then
6934 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6935 echo "${ECHO_T}$RANLIB" >&6; }
6937 { echo "$as_me:$LINENO: result: no" >&5
6938 echo "${ECHO_T}no" >&6; }
6943 if test -z "$ac_cv_prog_RANLIB"; then
6944 ac_ct_RANLIB=$RANLIB
6945 # Extract the first word of "ranlib", so it can be a program name with args.
6946 set dummy ranlib; ac_word=$2
6947 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6949 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6950 echo $ECHO_N "(cached) $ECHO_C" >&6
6952 if test -n "$ac_ct_RANLIB"; then
6953 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6959 test -z "$as_dir" && as_dir=.
6960 for ac_exec_ext in '' $ac_executable_extensions; do
6961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6962 ac_cv_prog_ac_ct_RANLIB="ranlib"
6963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6972 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6973 if test -n "$ac_ct_RANLIB"; then
6974 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6975 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6977 { echo "$as_me:$LINENO: result: no" >&5
6978 echo "${ECHO_T}no" >&6; }
6981 if test "x$ac_ct_RANLIB" = x; then
6984 case $cross_compiling:$ac_tool_warned in
6986 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6987 whose name does not start with the host triplet. If you think this
6988 configuration is useful to you, please write to autoconf@gnu.org." >&5
6989 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6990 whose name does not start with the host triplet. If you think this
6991 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6992 ac_tool_warned=yes ;;
6994 RANLIB=$ac_ct_RANLIB
6997 RANLIB="$ac_cv_prog_RANLIB"
7000 if test -n "$ac_tool_prefix"; then
7001 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7002 set dummy ${ac_tool_prefix}strip; ac_word=$2
7003 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7005 if test "${ac_cv_prog_STRIP+set}" = set; then
7006 echo $ECHO_N "(cached) $ECHO_C" >&6
7008 if test -n "$STRIP"; then
7009 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7015 test -z "$as_dir" && as_dir=.
7016 for ac_exec_ext in '' $ac_executable_extensions; do
7017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7018 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7028 STRIP=$ac_cv_prog_STRIP
7029 if test -n "$STRIP"; then
7030 { echo "$as_me:$LINENO: result: $STRIP" >&5
7031 echo "${ECHO_T}$STRIP" >&6; }
7033 { echo "$as_me:$LINENO: result: no" >&5
7034 echo "${ECHO_T}no" >&6; }
7039 if test -z "$ac_cv_prog_STRIP"; then
7041 # Extract the first word of "strip", so it can be a program name with args.
7042 set dummy strip; ac_word=$2
7043 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7045 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7046 echo $ECHO_N "(cached) $ECHO_C" >&6
7048 if test -n "$ac_ct_STRIP"; then
7049 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7055 test -z "$as_dir" && as_dir=.
7056 for ac_exec_ext in '' $ac_executable_extensions; do
7057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7058 ac_cv_prog_ac_ct_STRIP="strip"
7059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7068 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7069 if test -n "$ac_ct_STRIP"; then
7070 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7071 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7073 { echo "$as_me:$LINENO: result: no" >&5
7074 echo "${ECHO_T}no" >&6; }
7077 if test "x$ac_ct_STRIP" = x; then
7080 case $cross_compiling:$ac_tool_warned in
7082 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7083 whose name does not start with the host triplet. If you think this
7084 configuration is useful to you, please write to autoconf@gnu.org." >&5
7085 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7086 whose name does not start with the host triplet. If you think this
7087 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7088 ac_tool_warned=yes ;;
7093 STRIP="$ac_cv_prog_STRIP"
7098 old_CFLAGS="$CFLAGS"
7100 # Set sane defaults for various variables
7101 test -z "$AR" && AR=ar
7102 test -z "$AR_FLAGS" && AR_FLAGS=cru
7103 test -z "$AS" && AS=as
7104 test -z "$CC" && CC=cc
7105 test -z "$LTCC" && LTCC=$CC
7106 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7107 test -z "$DLLTOOL" && DLLTOOL=dlltool
7108 test -z "$LD" && LD=ld
7109 test -z "$LN_S" && LN_S="ln -s"
7110 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7111 test -z "$NM" && NM=nm
7112 test -z "$SED" && SED=sed
7113 test -z "$OBJDUMP" && OBJDUMP=objdump
7114 test -z "$RANLIB" && RANLIB=:
7115 test -z "$STRIP" && STRIP=:
7116 test -z "$ac_objext" && ac_objext=o
7118 # Determine commands to create old-style static archives.
7119 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7120 old_postinstall_cmds='chmod 644 $oldlib'
7121 old_postuninstall_cmds=
7123 if test -n "$RANLIB"; then
7126 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7129 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7132 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7135 for cc_temp in $compiler""; do
7137 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7138 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7143 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7146 # Only perform the check for file, if the check method requires it
7147 case $deplibs_check_method in
7149 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7150 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7151 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7152 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7153 echo $ECHO_N "(cached) $ECHO_C" >&6
7157 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7160 lt_save_MAGIC_CMD="$MAGIC_CMD"
7161 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7162 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7163 for ac_dir in $ac_dummy; do
7165 test -z "$ac_dir" && ac_dir=.
7166 if test -f $ac_dir/${ac_tool_prefix}file; then
7167 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7168 if test -n "$file_magic_test_file"; then
7169 case $deplibs_check_method in
7171 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7172 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7173 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7174 $EGREP "$file_magic_regex" > /dev/null; then
7179 *** Warning: the command libtool uses to detect shared libraries,
7180 *** $file_magic_cmd, produces output that libtool cannot recognize.
7181 *** The result is that libtool may fail to recognize shared libraries
7182 *** as such. This will affect the creation of libtool libraries that
7183 *** depend on shared libraries, but programs linked with such libtool
7184 *** libraries will work regardless of this problem. Nevertheless, you
7185 *** may want to report the problem to your system manager and/or to
7186 *** bug-libtool@gnu.org
7196 MAGIC_CMD="$lt_save_MAGIC_CMD"
7201 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7202 if test -n "$MAGIC_CMD"; then
7203 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7204 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7206 { echo "$as_me:$LINENO: result: no" >&5
7207 echo "${ECHO_T}no" >&6; }
7210 if test -z "$lt_cv_path_MAGIC_CMD"; then
7211 if test -n "$ac_tool_prefix"; then
7212 { echo "$as_me:$LINENO: checking for file" >&5
7213 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7214 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7215 echo $ECHO_N "(cached) $ECHO_C" >&6
7219 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7222 lt_save_MAGIC_CMD="$MAGIC_CMD"
7223 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7224 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7225 for ac_dir in $ac_dummy; do
7227 test -z "$ac_dir" && ac_dir=.
7228 if test -f $ac_dir/file; then
7229 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7230 if test -n "$file_magic_test_file"; then
7231 case $deplibs_check_method in
7233 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7234 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7235 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7236 $EGREP "$file_magic_regex" > /dev/null; then
7241 *** Warning: the command libtool uses to detect shared libraries,
7242 *** $file_magic_cmd, produces output that libtool cannot recognize.
7243 *** The result is that libtool may fail to recognize shared libraries
7244 *** as such. This will affect the creation of libtool libraries that
7245 *** depend on shared libraries, but programs linked with such libtool
7246 *** libraries will work regardless of this problem. Nevertheless, you
7247 *** may want to report the problem to your system manager and/or to
7248 *** bug-libtool@gnu.org
7258 MAGIC_CMD="$lt_save_MAGIC_CMD"
7263 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7264 if test -n "$MAGIC_CMD"; then
7265 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7266 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7268 { echo "$as_me:$LINENO: result: no" >&5
7269 echo "${ECHO_T}no" >&6; }
7283 rhapsody* | darwin*)
7284 if test -n "$ac_tool_prefix"; then
7285 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7286 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7287 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7289 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7290 echo $ECHO_N "(cached) $ECHO_C" >&6
7292 if test -n "$DSYMUTIL"; then
7293 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7299 test -z "$as_dir" && as_dir=.
7300 for ac_exec_ext in '' $ac_executable_extensions; do
7301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7302 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7312 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7313 if test -n "$DSYMUTIL"; then
7314 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7315 echo "${ECHO_T}$DSYMUTIL" >&6; }
7317 { echo "$as_me:$LINENO: result: no" >&5
7318 echo "${ECHO_T}no" >&6; }
7323 if test -z "$ac_cv_prog_DSYMUTIL"; then
7324 ac_ct_DSYMUTIL=$DSYMUTIL
7325 # Extract the first word of "dsymutil", so it can be a program name with args.
7326 set dummy dsymutil; ac_word=$2
7327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7329 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7330 echo $ECHO_N "(cached) $ECHO_C" >&6
7332 if test -n "$ac_ct_DSYMUTIL"; then
7333 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7339 test -z "$as_dir" && as_dir=.
7340 for ac_exec_ext in '' $ac_executable_extensions; do
7341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7342 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7352 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7353 if test -n "$ac_ct_DSYMUTIL"; then
7354 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7355 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7357 { echo "$as_me:$LINENO: result: no" >&5
7358 echo "${ECHO_T}no" >&6; }
7361 if test "x$ac_ct_DSYMUTIL" = x; then
7364 case $cross_compiling:$ac_tool_warned in
7366 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7367 whose name does not start with the host triplet. If you think this
7368 configuration is useful to you, please write to autoconf@gnu.org." >&5
7369 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7370 whose name does not start with the host triplet. If you think this
7371 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7372 ac_tool_warned=yes ;;
7374 DSYMUTIL=$ac_ct_DSYMUTIL
7377 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7380 if test -n "$ac_tool_prefix"; then
7381 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7382 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7383 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7385 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7386 echo $ECHO_N "(cached) $ECHO_C" >&6
7388 if test -n "$NMEDIT"; then
7389 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7395 test -z "$as_dir" && as_dir=.
7396 for ac_exec_ext in '' $ac_executable_extensions; do
7397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7398 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7408 NMEDIT=$ac_cv_prog_NMEDIT
7409 if test -n "$NMEDIT"; then
7410 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7411 echo "${ECHO_T}$NMEDIT" >&6; }
7413 { echo "$as_me:$LINENO: result: no" >&5
7414 echo "${ECHO_T}no" >&6; }
7419 if test -z "$ac_cv_prog_NMEDIT"; then
7420 ac_ct_NMEDIT=$NMEDIT
7421 # Extract the first word of "nmedit", so it can be a program name with args.
7422 set dummy nmedit; ac_word=$2
7423 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7425 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7426 echo $ECHO_N "(cached) $ECHO_C" >&6
7428 if test -n "$ac_ct_NMEDIT"; then
7429 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7435 test -z "$as_dir" && as_dir=.
7436 for ac_exec_ext in '' $ac_executable_extensions; do
7437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7438 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7448 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7449 if test -n "$ac_ct_NMEDIT"; then
7450 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7451 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7453 { echo "$as_me:$LINENO: result: no" >&5
7454 echo "${ECHO_T}no" >&6; }
7457 if test "x$ac_ct_NMEDIT" = x; then
7460 case $cross_compiling:$ac_tool_warned in
7462 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7463 whose name does not start with the host triplet. If you think this
7464 configuration is useful to you, please write to autoconf@gnu.org." >&5
7465 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7466 whose name does not start with the host triplet. If you think this
7467 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7468 ac_tool_warned=yes ;;
7470 NMEDIT=$ac_ct_NMEDIT
7473 NMEDIT="$ac_cv_prog_NMEDIT"
7477 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7478 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7479 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7480 echo $ECHO_N "(cached) $ECHO_C" >&6
7482 lt_cv_apple_cc_single_mod=no
7483 if test -z "${LT_MULTI_MODULE}"; then
7484 # By default we will add the -single_module flag. You can override
7485 # by either setting the environment variable LT_MULTI_MODULE
7486 # non-empty at configure time, or by adding -multi_module to the
7488 echo "int foo(void){return 1;}" > conftest.c
7489 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7490 -dynamiclib ${wl}-single_module conftest.c
7491 if test -f libconftest.dylib; then
7492 lt_cv_apple_cc_single_mod=yes
7493 rm -rf libconftest.dylib*
7498 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7499 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7500 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7501 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7502 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7503 echo $ECHO_N "(cached) $ECHO_C" >&6
7505 lt_cv_ld_exported_symbols_list=no
7506 save_LDFLAGS=$LDFLAGS
7507 echo "_main" > conftest.sym
7508 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7509 cat >conftest.$ac_ext <<_ACEOF
7512 cat confdefs.h >>conftest.$ac_ext
7513 cat >>conftest.$ac_ext <<_ACEOF
7514 /* end confdefs.h. */
7524 rm -f conftest.$ac_objext conftest$ac_exeext
7525 if { (ac_try="$ac_link"
7527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7528 *) ac_try_echo=$ac_try;;
7530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7531 (eval "$ac_link") 2>conftest.er1
7533 grep -v '^ *+' conftest.er1 >conftest.err
7535 cat conftest.err >&5
7536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7537 (exit $ac_status); } && {
7538 test -z "$ac_c_werror_flag" ||
7539 test ! -s conftest.err
7540 } && test -s conftest$ac_exeext &&
7541 $as_test_x conftest$ac_exeext; then
7542 lt_cv_ld_exported_symbols_list=yes
7544 echo "$as_me: failed program was:" >&5
7545 sed 's/^/| /' conftest.$ac_ext >&5
7547 lt_cv_ld_exported_symbols_list=no
7550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7551 conftest$ac_exeext conftest.$ac_ext
7552 LDFLAGS="$save_LDFLAGS"
7555 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7556 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7558 rhapsody* | darwin1.[0123])
7559 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7561 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7563 # if running on 10.5 or later, the deployment target defaults
7564 # to the OS version, if on x86, and 10.4, the deployment
7565 # target defaults to 10.4. Don't you love it?
7566 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7567 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7568 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7570 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7572 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7576 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7577 _lt_dar_single_mod='$single_module'
7579 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7580 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7582 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7584 if test "$DSYMUTIL" != ":"; then
7585 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7596 # Check whether --enable-libtool-lock was given.
7597 if test "${enable_libtool_lock+set}" = set; then
7598 enableval=$enable_libtool_lock;
7601 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7604 # Check whether --with-pic was given.
7605 if test "${with_pic+set}" = set; then
7606 withval=$with_pic; pic_mode="$withval"
7611 test -z "$pic_mode" && pic_mode=default
7613 # Use C for the default configuration in the libtool script
7617 ac_cpp='$CPP $CPPFLAGS'
7618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7623 # Source file extension for C test sources.
7626 # Object file extension for compiled C test sources.
7630 # Code to be used in simple compile tests
7631 lt_simple_compile_test_code="int some_variable = 0;"
7633 # Code to be used in simple link tests
7634 lt_simple_link_test_code='int main(){return(0);}'
7637 # If no C compiler was specified, use CC.
7640 # If no C compiler flags were specified, use CFLAGS.
7641 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7643 # Allow CC to be a program name with arguments.
7647 # save warnings/boilerplate of simple test code
7648 ac_outfile=conftest.$ac_objext
7649 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7650 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7651 _lt_compiler_boilerplate=`cat conftest.err`
7654 ac_outfile=conftest.$ac_objext
7655 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7656 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7657 _lt_linker_boilerplate=`cat conftest.err`
7662 lt_prog_compiler_no_builtin_flag=
7664 if test "$GCC" = yes; then
7665 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7668 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7669 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7670 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7671 echo $ECHO_N "(cached) $ECHO_C" >&6
7673 lt_cv_prog_compiler_rtti_exceptions=no
7674 ac_outfile=conftest.$ac_objext
7675 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7676 lt_compiler_flag="-fno-rtti -fno-exceptions"
7677 # Insert the option either (1) after the last *FLAGS variable, or
7678 # (2) before a word containing "conftest.", or (3) at the end.
7679 # Note that $ac_compile itself does not contain backslashes and begins
7680 # with a dollar sign (not a hyphen), so the echo should work correctly.
7681 # The option is referenced via a variable to avoid confusing sed.
7682 lt_compile=`echo "$ac_compile" | $SED \
7683 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7684 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7685 -e 's:$: $lt_compiler_flag:'`
7686 (eval echo "\"\$as_me:7686: $lt_compile\"" >&5)
7687 (eval "$lt_compile" 2>conftest.err)
7689 cat conftest.err >&5
7690 echo "$as_me:7690: \$? = $ac_status" >&5
7691 if (exit $ac_status) && test -s "$ac_outfile"; then
7692 # The compiler can only warn and ignore the option if not recognized
7693 # So say no if there are warnings other than the usual output.
7694 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7695 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7696 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7697 lt_cv_prog_compiler_rtti_exceptions=yes
7703 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7704 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7706 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7707 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7714 lt_prog_compiler_wl=
7715 lt_prog_compiler_pic=
7716 lt_prog_compiler_static=
7718 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7719 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7721 if test "$GCC" = yes; then
7722 lt_prog_compiler_wl='-Wl,'
7723 lt_prog_compiler_static='-static'
7727 # All AIX code is PIC.
7728 if test "$host_cpu" = ia64; then
7729 # AIX 5 now supports IA64 processor
7730 lt_prog_compiler_static='-Bstatic'
7735 # FIXME: we need at least 68020 code to build shared libraries, but
7736 # adding the `-m68020' flag to GCC prevents building anything better,
7738 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7741 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7742 # PIC is the default for these OSes.
7745 mingw* | cygwin* | pw32* | os2*)
7746 # This hack is so that the source file can tell whether it is being
7747 # built for inclusion in a dll (and should export symbols for example).
7748 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7749 # (--disable-auto-import) libraries
7750 lt_prog_compiler_pic='-DDLL_EXPORT'
7753 darwin* | rhapsody*)
7754 # PIC is the default on this platform
7755 # Common symbols not allowed in MH_DYLIB files
7756 lt_prog_compiler_pic='-fno-common'
7760 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7761 # Instead, we relocate shared libraries at runtime.
7765 # Just because we use GCC doesn't mean we suddenly get shared libraries
7766 # on systems that don't support them.
7767 lt_prog_compiler_can_build_shared=no
7772 if test -d /usr/nec; then
7773 lt_prog_compiler_pic=-Kconform_pic
7778 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7785 lt_prog_compiler_pic='-fPIC'
7791 lt_prog_compiler_pic='-fPIC'
7795 # PORTME Check for flag to pass linker flags through the system compiler.
7798 lt_prog_compiler_wl='-Wl,'
7799 if test "$host_cpu" = ia64; then
7800 # AIX 5 now supports IA64 processor
7801 lt_prog_compiler_static='-Bstatic'
7803 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7807 # PIC is the default on this platform
7808 # Common symbols not allowed in MH_DYLIB files
7809 case $cc_basename in
7811 lt_prog_compiler_pic='-qnocommon'
7812 lt_prog_compiler_wl='-Wl,'
7817 mingw* | cygwin* | pw32* | os2*)
7818 # This hack is so that the source file can tell whether it is being
7819 # built for inclusion in a dll (and should export symbols for example).
7820 lt_prog_compiler_pic='-DDLL_EXPORT'
7823 hpux9* | hpux10* | hpux11*)
7824 lt_prog_compiler_wl='-Wl,'
7825 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7832 lt_prog_compiler_pic='+Z'
7835 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7836 lt_prog_compiler_static='${wl}-a ${wl}archive'
7839 irix5* | irix6* | nonstopux*)
7840 lt_prog_compiler_wl='-Wl,'
7841 # PIC (with -KPIC) is the default.
7842 lt_prog_compiler_static='-non_shared'
7846 lt_prog_compiler_pic='-KPIC'
7847 lt_prog_compiler_static='-Bstatic'
7850 linux* | k*bsd*-gnu)
7851 case $cc_basename in
7853 lt_prog_compiler_wl='-Wl,'
7854 lt_prog_compiler_pic='-KPIC'
7855 lt_prog_compiler_static='-static'
7857 pgcc* | pgf77* | pgf90* | pgf95*)
7858 # Portland Group compilers (*not* the Pentium gcc compiler,
7859 # which looks to be a dead project)
7860 lt_prog_compiler_wl='-Wl,'
7861 lt_prog_compiler_pic='-fpic'
7862 lt_prog_compiler_static='-Bstatic'
7865 lt_prog_compiler_wl='-Wl,'
7866 # All Alpha code is PIC.
7867 lt_prog_compiler_static='-non_shared'
7870 case `$CC -V 2>&1 | sed 5q` in
7873 lt_prog_compiler_pic='-KPIC'
7874 lt_prog_compiler_static='-Bstatic'
7875 lt_prog_compiler_wl='-Wl,'
7878 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7879 lt_prog_compiler_pic='-KPIC'
7880 lt_prog_compiler_static='-Bstatic'
7881 lt_prog_compiler_wl=''
7888 osf3* | osf4* | osf5*)
7889 lt_prog_compiler_wl='-Wl,'
7890 # All OSF/1 code is PIC.
7891 lt_prog_compiler_static='-non_shared'
7895 lt_prog_compiler_static='-non_shared'
7899 lt_prog_compiler_pic='-KPIC'
7900 lt_prog_compiler_static='-Bstatic'
7901 case $cc_basename in
7903 lt_prog_compiler_wl='-Qoption ld ';;
7905 lt_prog_compiler_wl='-Wl,';;
7910 lt_prog_compiler_wl='-Qoption ld '
7911 lt_prog_compiler_pic='-PIC'
7912 lt_prog_compiler_static='-Bstatic'
7915 sysv4 | sysv4.2uw2* | sysv4.3*)
7916 lt_prog_compiler_wl='-Wl,'
7917 lt_prog_compiler_pic='-KPIC'
7918 lt_prog_compiler_static='-Bstatic'
7922 if test -d /usr/nec ;then
7923 lt_prog_compiler_pic='-Kconform_pic'
7924 lt_prog_compiler_static='-Bstatic'
7928 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7929 lt_prog_compiler_wl='-Wl,'
7930 lt_prog_compiler_pic='-KPIC'
7931 lt_prog_compiler_static='-Bstatic'
7935 lt_prog_compiler_wl='-Wl,'
7936 lt_prog_compiler_can_build_shared=no
7940 lt_prog_compiler_pic='-pic'
7941 lt_prog_compiler_static='-Bstatic'
7945 lt_prog_compiler_can_build_shared=no
7950 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7951 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7954 # Check to make sure the PIC flag actually works.
7956 if test -n "$lt_prog_compiler_pic"; then
7958 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7959 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7960 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7961 echo $ECHO_N "(cached) $ECHO_C" >&6
7963 lt_cv_prog_compiler_pic_works=no
7964 ac_outfile=conftest.$ac_objext
7965 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7966 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7967 # Insert the option either (1) after the last *FLAGS variable, or
7968 # (2) before a word containing "conftest.", or (3) at the end.
7969 # Note that $ac_compile itself does not contain backslashes and begins
7970 # with a dollar sign (not a hyphen), so the echo should work correctly.
7971 # The option is referenced via a variable to avoid confusing sed.
7972 lt_compile=`echo "$ac_compile" | $SED \
7973 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7974 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7975 -e 's:$: $lt_compiler_flag:'`
7976 (eval echo "\"\$as_me:7976: $lt_compile\"" >&5)
7977 (eval "$lt_compile" 2>conftest.err)
7979 cat conftest.err >&5
7980 echo "$as_me:7980: \$? = $ac_status" >&5
7981 if (exit $ac_status) && test -s "$ac_outfile"; then
7982 # The compiler can only warn and ignore the option if not recognized
7983 # So say no if there are warnings other than the usual output.
7984 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7985 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7986 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7987 lt_cv_prog_compiler_pic_works=yes
7993 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7994 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7996 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7997 case $lt_prog_compiler_pic in
7999 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8002 lt_prog_compiler_pic=
8003 lt_prog_compiler_can_build_shared=no
8008 # For platforms which do not support PIC, -DPIC is meaningless:
8010 lt_prog_compiler_pic=
8013 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8018 # Check to make sure the static flag actually works.
8020 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8021 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8022 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8023 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8024 echo $ECHO_N "(cached) $ECHO_C" >&6
8026 lt_cv_prog_compiler_static_works=no
8027 save_LDFLAGS="$LDFLAGS"
8028 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8029 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8030 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8031 # The linker can only warn and ignore the option if not recognized
8032 # So say no if there are warnings
8033 if test -s conftest.err; then
8034 # Append any errors to the config.log.
8035 cat conftest.err 1>&5
8036 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8037 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8038 if diff conftest.exp conftest.er2 >/dev/null; then
8039 lt_cv_prog_compiler_static_works=yes
8042 lt_cv_prog_compiler_static_works=yes
8046 LDFLAGS="$save_LDFLAGS"
8049 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8050 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
8052 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8055 lt_prog_compiler_static=
8059 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8060 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8061 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8062 echo $ECHO_N "(cached) $ECHO_C" >&6
8064 lt_cv_prog_compiler_c_o=no
8065 $rm -r conftest 2>/dev/null
8069 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8071 lt_compiler_flag="-o out/conftest2.$ac_objext"
8072 # Insert the option either (1) after the last *FLAGS variable, or
8073 # (2) before a word containing "conftest.", or (3) at the end.
8074 # Note that $ac_compile itself does not contain backslashes and begins
8075 # with a dollar sign (not a hyphen), so the echo should work correctly.
8076 lt_compile=`echo "$ac_compile" | $SED \
8077 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8078 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8079 -e 's:$: $lt_compiler_flag:'`
8080 (eval echo "\"\$as_me:8080: $lt_compile\"" >&5)
8081 (eval "$lt_compile" 2>out/conftest.err)
8083 cat out/conftest.err >&5
8084 echo "$as_me:8084: \$? = $ac_status" >&5
8085 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8087 # The compiler can only warn and ignore the option if not recognized
8088 # So say no if there are warnings
8089 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8090 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8091 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8092 lt_cv_prog_compiler_c_o=yes
8097 # SGI C++ compiler will create directory out/ii_files/ for
8098 # template instantiation
8099 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8100 $rm out/* && rmdir out
8106 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8107 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8110 hard_links="nottested"
8111 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8112 # do not overwrite the value of need_locks provided by the user
8113 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8114 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8117 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8119 ln conftest.a conftest.b 2>&5 || hard_links=no
8120 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8121 { echo "$as_me:$LINENO: result: $hard_links" >&5
8122 echo "${ECHO_T}$hard_links" >&6; }
8123 if test "$hard_links" = no; then
8124 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8125 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8132 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8133 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8136 allow_undefined_flag=
8137 enable_shared_with_static_runtimes=no
8139 archive_expsym_cmds=
8140 old_archive_From_new_cmds=
8141 old_archive_from_expsyms_cmds=
8142 export_dynamic_flag_spec=
8143 whole_archive_flag_spec=
8144 thread_safe_flag_spec=
8145 hardcode_libdir_flag_spec=
8146 hardcode_libdir_flag_spec_ld=
8147 hardcode_libdir_separator=
8150 hardcode_shlibpath_var=unsupported
8151 link_all_deplibs=unknown
8152 hardcode_automatic=no
8155 always_export_symbols=no
8156 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8157 # include_expsyms should be a list of space-separated symbols to be *always*
8158 # included in the symbol list
8160 # exclude_expsyms can be an extended regexp of symbols to exclude
8161 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8162 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8163 # as well as any symbol that contains `d'.
8164 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8165 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8166 # platforms (ab)use it in PIC code, but their linkers get confused if
8167 # the symbol is explicitly referenced. Since portable code cannot
8168 # rely on this symbol name, it's probably fine to never include it in
8169 # preloaded symbol tables.
8170 # Exclude shared library initialization/finalization symbols.
8171 extract_expsyms_cmds=
8172 # Just being paranoid about ensuring that cc_basename is set.
8173 for cc_temp in $compiler""; do
8175 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8176 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8181 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8184 cygwin* | mingw* | pw32*)
8185 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8186 # When not using gcc, we currently assume that we are using
8187 # Microsoft Visual C++.
8188 if test "$GCC" != yes; then
8193 # we just hope/assume this is gcc and not c89 (= MSVC++)
8202 if test "$with_gnu_ld" = yes; then
8203 # If archive_cmds runs LD, not CC, wlarc should be empty
8206 # Set some defaults for GNU ld with shared library support. These
8207 # are reset later if shared libraries are not supported. Putting them
8208 # here allows them to be overridden if necessary.
8209 runpath_var=LD_RUN_PATH
8210 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8211 export_dynamic_flag_spec='${wl}--export-dynamic'
8212 # ancient GNU ld didn't support --whole-archive et. al.
8213 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8214 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8216 whole_archive_flag_spec=
8218 supports_anon_versioning=no
8219 case `$LD -v 2>/dev/null` in
8220 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8221 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8222 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8223 *\ 2.11.*) ;; # other 2.11 versions
8224 *) supports_anon_versioning=yes ;;
8227 # See if GNU ld supports shared libraries.
8230 # On AIX/PPC, the GNU linker is very broken
8231 if test "$host_cpu" != ia64; then
8235 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8236 *** to be unable to reliably create shared libraries on AIX.
8237 *** Therefore, libtool is disabling shared libraries support. If you
8238 *** really care for shared libraries, you may want to modify your PATH
8239 *** so that a non-GNU linker is found, and then restart.
8246 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)'
8247 hardcode_libdir_flag_spec='-L$libdir'
8248 hardcode_minus_L=yes
8250 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8251 # that the semantics of dynamic libraries on AmigaOS, at least up
8252 # to version 4, is to share data among multiple programs linked
8253 # with the same dynamic library. Since this doesn't match the
8254 # behavior of shared libraries on other platforms, we can't use
8260 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8261 allow_undefined_flag=unsupported
8262 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8263 # support --undefined. This deserves some investigation. FIXME
8264 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8270 cygwin* | mingw* | pw32*)
8271 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8272 # as there is no search path for DLLs.
8273 hardcode_libdir_flag_spec='-L$libdir'
8274 allow_undefined_flag=unsupported
8275 always_export_symbols=no
8276 enable_shared_with_static_runtimes=yes
8277 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8279 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8280 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8281 # If the export-symbols file already is a .def file (1st line
8282 # is EXPORTS), use it as is; otherwise, prepend...
8283 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8284 cp $export_symbols $output_objdir/$soname.def;
8286 echo EXPORTS > $output_objdir/$soname.def;
8287 cat $export_symbols >> $output_objdir/$soname.def;
8289 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8297 hardcode_shlibpath_var=no
8298 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8299 export_dynamic_flag_spec='${wl}-E'
8300 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8301 # Instead, shared libraries are loaded at an image base (0x10000000 by
8302 # default) and relocated if they conflict, which is a slow very memory
8303 # consuming and fragmenting process. To avoid this, we pick a random,
8304 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8305 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8306 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8307 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'
8310 gnu* | linux* | k*bsd*-gnu)
8311 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8313 case $cc_basename,$host_cpu in
8314 pgcc*) # Portland Group C compiler
8315 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'
8316 tmp_addflag=' $pic_flag'
8318 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8319 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'
8320 tmp_addflag=' $pic_flag -Mnomain' ;;
8321 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8322 tmp_addflag=' -i_dynamic' ;;
8323 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8324 tmp_addflag=' -i_dynamic -nofor_main' ;;
8325 ifc* | ifort*) # Intel Fortran compiler
8326 tmp_addflag=' -nofor_main' ;;
8328 case `$CC -V 2>&1 | sed 5q` in
8329 *Sun\ C*) # Sun C 5.9
8330 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'
8331 tmp_sharedflag='-G' ;;
8332 *Sun\ F*) # Sun Fortran 8.3
8333 tmp_sharedflag='-G' ;;
8335 tmp_sharedflag='-shared' ;;
8337 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8339 if test $supports_anon_versioning = yes; then
8340 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8341 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8342 $echo "local: *; };" >> $output_objdir/$libname.ver~
8343 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8351 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8352 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8355 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8356 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8361 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8365 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8366 *** create shared libraries on Solaris systems. Therefore, libtool
8367 *** is disabling shared libraries support. We urge you to upgrade GNU
8368 *** binutils to release 2.9.1 or newer. Another option is to modify
8369 *** your PATH or compiler configuration so that the native linker is
8370 *** used, and then restart.
8373 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8374 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8375 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8381 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8382 case `$LD -v 2>&1` in
8383 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8387 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8388 *** reliably create shared libraries on SCO systems. Therefore, libtool
8389 *** is disabling shared libraries support. We urge you to upgrade GNU
8390 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8391 *** your PATH or compiler configuration so that the native linker is
8392 *** used, and then restart.
8397 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8398 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8399 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8400 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8409 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8412 hardcode_shlibpath_var=no
8416 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8417 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8418 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8425 if test "$ld_shlibs" = no; then
8427 hardcode_libdir_flag_spec=
8428 export_dynamic_flag_spec=
8429 whole_archive_flag_spec=
8432 # PORTME fill in a description of your system's linker (not GNU ld)
8435 allow_undefined_flag=unsupported
8436 always_export_symbols=yes
8437 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'
8438 # Note: this linker hardcodes the directories in LIBPATH if there
8439 # are no directories specified by -L.
8440 hardcode_minus_L=yes
8441 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8442 # Neither direct hardcoding nor static linking is supported with a
8444 hardcode_direct=unsupported
8449 if test "$host_cpu" = ia64; then
8450 # On IA64, the linker does run time linking by default, so we don't
8451 # have to do anything special.
8452 aix_use_runtimelinking=no
8453 exp_sym_flag='-Bexport'
8456 # If we're using GNU nm, then we don't want the "-C" option.
8457 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8458 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8459 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'
8461 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'
8463 aix_use_runtimelinking=no
8465 # Test if we are trying to use run time linking or normal
8466 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8467 # need to do runtime linking.
8468 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8469 for ld_flag in $LDFLAGS; do
8470 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8471 aix_use_runtimelinking=yes
8478 exp_sym_flag='-bexport'
8479 no_entry_flag='-bnoentry'
8482 # When large executables or shared objects are built, AIX ld can
8483 # have problems creating the table of contents. If linking a library
8484 # or program results in "error TOC overflow" add -mminimal-toc to
8485 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8486 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8490 hardcode_libdir_separator=':'
8491 link_all_deplibs=yes
8493 if test "$GCC" = yes; then
8494 case $host_os in aix4.[012]|aix4.[012].*)
8495 # We only want to do this on AIX 4.2 and lower, the check
8496 # below for broken collect2 doesn't work under 4.3+
8497 collect2name=`${CC} -print-prog-name=collect2`
8498 if test -f "$collect2name" && \
8499 strings "$collect2name" | grep resolve_lib_name >/dev/null
8501 # We have reworked collect2
8504 # We have old collect2
8505 hardcode_direct=unsupported
8506 # It fails to find uninstalled libraries when the uninstalled
8507 # path is not listed in the libpath. Setting hardcode_minus_L
8508 # to unsupported forces relinking
8509 hardcode_minus_L=yes
8510 hardcode_libdir_flag_spec='-L$libdir'
8511 hardcode_libdir_separator=
8515 shared_flag='-shared'
8516 if test "$aix_use_runtimelinking" = yes; then
8517 shared_flag="$shared_flag "'${wl}-G'
8521 if test "$host_cpu" = ia64; then
8522 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8523 # chokes on -Wl,-G. The following line is correct:
8526 if test "$aix_use_runtimelinking" = yes; then
8527 shared_flag='${wl}-G'
8529 shared_flag='${wl}-bM:SRE'
8534 # It seems that -bexpall does not export symbols beginning with
8535 # underscore (_), so it is better to generate a list of symbols to export.
8536 always_export_symbols=yes
8537 if test "$aix_use_runtimelinking" = yes; then
8538 # Warning - without using the other runtime loading flags (-brtl),
8539 # -berok will link without error, but may produce a broken library.
8540 allow_undefined_flag='-berok'
8541 # Determine the default libpath from the value encoded in an empty executable.
8542 cat >conftest.$ac_ext <<_ACEOF
8545 cat confdefs.h >>conftest.$ac_ext
8546 cat >>conftest.$ac_ext <<_ACEOF
8547 /* end confdefs.h. */
8557 rm -f conftest.$ac_objext conftest$ac_exeext
8558 if { (ac_try="$ac_link"
8560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8561 *) ac_try_echo=$ac_try;;
8563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8564 (eval "$ac_link") 2>conftest.er1
8566 grep -v '^ *+' conftest.er1 >conftest.err
8568 cat conftest.err >&5
8569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8570 (exit $ac_status); } && {
8571 test -z "$ac_c_werror_flag" ||
8572 test ! -s conftest.err
8573 } && test -s conftest$ac_exeext &&
8574 $as_test_x conftest$ac_exeext; then
8576 lt_aix_libpath_sed='
8577 /Import File Strings/,/^$/ {
8583 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8584 # Check for a 64-bit object if we didn't find anything.
8585 if test -z "$aix_libpath"; then
8586 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8589 echo "$as_me: failed program was:" >&5
8590 sed 's/^/| /' conftest.$ac_ext >&5
8595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8596 conftest$ac_exeext conftest.$ac_ext
8597 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8599 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8600 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"
8602 if test "$host_cpu" = ia64; then
8603 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8604 allow_undefined_flag="-z nodefs"
8605 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"
8607 # Determine the default libpath from the value encoded in an empty executable.
8608 cat >conftest.$ac_ext <<_ACEOF
8611 cat confdefs.h >>conftest.$ac_ext
8612 cat >>conftest.$ac_ext <<_ACEOF
8613 /* end confdefs.h. */
8623 rm -f conftest.$ac_objext conftest$ac_exeext
8624 if { (ac_try="$ac_link"
8626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8627 *) ac_try_echo=$ac_try;;
8629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8630 (eval "$ac_link") 2>conftest.er1
8632 grep -v '^ *+' conftest.er1 >conftest.err
8634 cat conftest.err >&5
8635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636 (exit $ac_status); } && {
8637 test -z "$ac_c_werror_flag" ||
8638 test ! -s conftest.err
8639 } && test -s conftest$ac_exeext &&
8640 $as_test_x conftest$ac_exeext; then
8642 lt_aix_libpath_sed='
8643 /Import File Strings/,/^$/ {
8649 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8650 # Check for a 64-bit object if we didn't find anything.
8651 if test -z "$aix_libpath"; then
8652 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8655 echo "$as_me: failed program was:" >&5
8656 sed 's/^/| /' conftest.$ac_ext >&5
8661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8662 conftest$ac_exeext conftest.$ac_ext
8663 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8665 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8666 # Warning - without using the other run time loading flags,
8667 # -berok will link without error, but may produce a broken library.
8668 no_undefined_flag=' ${wl}-bernotok'
8669 allow_undefined_flag=' ${wl}-berok'
8670 # Exported symbols can be pulled into shared objects from archives
8671 whole_archive_flag_spec='$convenience'
8672 archive_cmds_need_lc=yes
8673 # This is similar to how AIX traditionally builds its shared libraries.
8674 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'
8680 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)'
8681 hardcode_libdir_flag_spec='-L$libdir'
8682 hardcode_minus_L=yes
8683 # see comment about different semantics on the GNU ld section
8688 export_dynamic_flag_spec=-rdynamic
8691 cygwin* | mingw* | pw32*)
8692 # When not using gcc, we currently assume that we are using
8693 # Microsoft Visual C++.
8694 # hardcode_libdir_flag_spec is actually meaningless, as there is
8695 # no search path for DLLs.
8696 hardcode_libdir_flag_spec=' '
8697 allow_undefined_flag=unsupported
8698 # Tell ltmain to make .lib files, not .a files.
8700 # Tell ltmain to make .dll files, not .so files.
8702 # FIXME: Setting linknames here is a bad hack.
8703 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8704 # The linker will automatically build a .lib file if we build a DLL.
8705 old_archive_From_new_cmds='true'
8706 # FIXME: Should let the user specify the lib program.
8707 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8708 fix_srcfile_path='`cygpath -w "$srcfile"`'
8709 enable_shared_with_static_runtimes=yes
8712 darwin* | rhapsody*)
8714 rhapsody* | darwin1.[012])
8715 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8718 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8719 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8721 case ${MACOSX_DEPLOYMENT_TARGET} in
8723 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8726 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8732 archive_cmds_need_lc=no
8734 hardcode_automatic=yes
8735 hardcode_shlibpath_var=unsupported
8736 whole_archive_flag_spec=''
8737 link_all_deplibs=yes
8738 if test "$GCC" = yes ; then
8739 output_verbose_link_cmd='echo'
8740 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8741 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8742 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}"
8743 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}"
8745 case $cc_basename in
8747 output_verbose_link_cmd='echo'
8748 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8749 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8750 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8751 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}'
8752 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}'
8762 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8763 hardcode_libdir_flag_spec='-L$libdir'
8764 hardcode_shlibpath_var=no
8771 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8772 # support. Future versions do this automatically, but an explicit c++rt0.o
8773 # does not break anything, and helps significantly (at the cost of a little
8776 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8777 hardcode_libdir_flag_spec='-R$libdir'
8779 hardcode_shlibpath_var=no
8782 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8784 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8786 hardcode_minus_L=yes
8787 hardcode_shlibpath_var=no
8790 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8791 freebsd* | dragonfly*)
8792 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8793 hardcode_libdir_flag_spec='-R$libdir'
8795 hardcode_shlibpath_var=no
8799 if test "$GCC" = yes; then
8800 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'
8802 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'
8804 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8805 hardcode_libdir_separator=:
8808 # hardcode_minus_L: Not really in the search PATH,
8809 # but as the default location of the library.
8810 hardcode_minus_L=yes
8811 export_dynamic_flag_spec='${wl}-E'
8815 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8816 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8818 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8820 if test "$with_gnu_ld" = no; then
8821 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8822 hardcode_libdir_separator=:
8825 export_dynamic_flag_spec='${wl}-E'
8827 # hardcode_minus_L: Not really in the search PATH,
8828 # but as the default location of the library.
8829 hardcode_minus_L=yes
8834 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8837 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8840 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8843 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8849 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8852 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8855 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8859 if test "$with_gnu_ld" = no; then
8860 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8861 hardcode_libdir_separator=:
8865 hardcode_libdir_flag_spec_ld='+b $libdir'
8867 hardcode_shlibpath_var=no
8871 export_dynamic_flag_spec='${wl}-E'
8873 # hardcode_minus_L: Not really in the search PATH,
8874 # but as the default location of the library.
8875 hardcode_minus_L=yes
8881 irix5* | irix6* | nonstopux*)
8882 if test "$GCC" = yes; then
8883 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'
8885 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'
8886 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8888 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8889 hardcode_libdir_separator=:
8890 link_all_deplibs=yes
8894 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8895 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8897 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8899 hardcode_libdir_flag_spec='-R$libdir'
8901 hardcode_shlibpath_var=no
8905 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8907 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8908 hardcode_libdir_separator=:
8909 hardcode_shlibpath_var=no
8913 if test -f /usr/libexec/ld.so; then
8915 hardcode_shlibpath_var=no
8916 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8917 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8918 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8919 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8920 export_dynamic_flag_spec='${wl}-E'
8923 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8924 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8925 hardcode_libdir_flag_spec='-R$libdir'
8928 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8929 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8939 hardcode_libdir_flag_spec='-L$libdir'
8940 hardcode_minus_L=yes
8941 allow_undefined_flag=unsupported
8942 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'
8943 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8947 if test "$GCC" = yes; then
8948 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8949 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'
8951 allow_undefined_flag=' -expect_unresolved \*'
8952 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'
8954 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8955 hardcode_libdir_separator=:
8958 osf4* | osf5*) # as osf3* with the addition of -msym flag
8959 if test "$GCC" = yes; then
8960 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8961 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'
8962 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8964 allow_undefined_flag=' -expect_unresolved \*'
8965 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'
8966 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8967 $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'
8969 # Both c and cxx compiler support -rpath directly
8970 hardcode_libdir_flag_spec='-rpath $libdir'
8972 hardcode_libdir_separator=:
8976 no_undefined_flag=' -z text'
8977 if test "$GCC" = yes; then
8979 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8980 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8981 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8984 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8985 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8986 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8988 hardcode_libdir_flag_spec='-R$libdir'
8989 hardcode_shlibpath_var=no
8991 solaris2.[0-5] | solaris2.[0-5].*) ;;
8993 # The compiler driver will combine and reorder linker options,
8994 # but understands `-z linker_flag'. GCC discards it without `$wl',
8995 # but is careful enough not to reorder.
8996 # Supported since Solaris 2.6 (maybe 2.5.1?)
8997 if test "$GCC" = yes; then
8998 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9000 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9004 link_all_deplibs=yes
9008 if test "x$host_vendor" = xsequent; then
9009 # Use $CC to link under sequent, because it throws in some extra .o
9010 # files that make .init and .fini sections work.
9011 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9013 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9015 hardcode_libdir_flag_spec='-L$libdir'
9017 hardcode_minus_L=yes
9018 hardcode_shlibpath_var=no
9022 case $host_vendor in
9024 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9025 hardcode_direct=yes # is this really true???
9028 ## LD is ld it makes a PLAMLIB
9029 ## CC just makes a GrossModule.
9030 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9031 reload_cmds='$CC -r -o $output$reload_objs'
9035 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9036 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9039 runpath_var='LD_RUN_PATH'
9040 hardcode_shlibpath_var=no
9044 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9045 hardcode_shlibpath_var=no
9046 export_dynamic_flag_spec='-Bexport'
9050 if test -d /usr/nec; then
9051 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9052 hardcode_shlibpath_var=no
9053 runpath_var=LD_RUN_PATH
9054 hardcode_runpath_var=yes
9059 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9060 no_undefined_flag='${wl}-z,text'
9061 archive_cmds_need_lc=no
9062 hardcode_shlibpath_var=no
9063 runpath_var='LD_RUN_PATH'
9065 if test "$GCC" = yes; then
9066 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9067 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9069 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9070 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9074 sysv5* | sco3.2v5* | sco5v6*)
9075 # Note: We can NOT use -z defs as we might desire, because we do not
9076 # link with -lc, and that would cause any symbols used from libc to
9077 # always be unresolved, which means just about no library would
9078 # ever link correctly. If we're not using GNU ld we use -z text
9079 # though, which does catch some bad symbols but isn't as heavy-handed
9081 no_undefined_flag='${wl}-z,text'
9082 allow_undefined_flag='${wl}-z,nodefs'
9083 archive_cmds_need_lc=no
9084 hardcode_shlibpath_var=no
9085 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9086 hardcode_libdir_separator=':'
9087 link_all_deplibs=yes
9088 export_dynamic_flag_spec='${wl}-Bexport'
9089 runpath_var='LD_RUN_PATH'
9091 if test "$GCC" = yes; then
9092 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9093 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9095 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9096 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9101 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9102 hardcode_libdir_flag_spec='-L$libdir'
9103 hardcode_shlibpath_var=no
9112 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9113 echo "${ECHO_T}$ld_shlibs" >&6; }
9114 test "$ld_shlibs" = no && can_build_shared=no
9117 # Do we need to explicitly link libc?
9119 case "x$archive_cmds_need_lc" in
9121 # Assume -lc should be added
9122 archive_cmds_need_lc=yes
9124 if test "$enable_shared" = yes && test "$GCC" = yes; then
9125 case $archive_cmds in
9127 # FIXME: we may have to deal with multi-command sequences.
9130 # Test whether the compiler implicitly links with -lc since on some
9131 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9132 # to ld, don't add -lc before -lgcc.
9133 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9134 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9136 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9139 (eval $ac_compile) 2>&5
9141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142 (exit $ac_status); } 2>conftest.err; then
9145 libobjs=conftest.$ac_objext
9147 wl=$lt_prog_compiler_wl
9148 pic_flag=$lt_prog_compiler_pic
9154 lt_save_allow_undefined_flag=$allow_undefined_flag
9155 allow_undefined_flag=
9156 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9157 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160 (exit $ac_status); }
9162 archive_cmds_need_lc=no
9164 archive_cmds_need_lc=yes
9166 allow_undefined_flag=$lt_save_allow_undefined_flag
9168 cat conftest.err 1>&5
9171 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9172 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9179 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9180 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9182 libname_spec='lib$name'
9190 shlibpath_overrides_runpath=unknown
9192 dynamic_linker="$host_os ld.so"
9193 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9195 if test "$GCC" = yes; then
9197 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9198 *) lt_awk_arg="/^libraries:/" ;;
9200 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9201 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9202 # if the path contains ";" then we assume it to be the separator
9203 # otherwise default to the standard path separator (i.e. ":") - it is
9204 # assumed that no part of a normal pathname contains ";" but that should
9205 # okay in the real world where ";" in dirpaths is itself problematic.
9206 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9208 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9210 # Ok, now we have the path, separated by spaces, we can step through it
9211 # and add multilib dir if necessary.
9212 lt_tmp_lt_search_path_spec=
9213 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9214 for lt_sys_path in $lt_search_path_spec; do
9215 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9216 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9218 test -d "$lt_sys_path" && \
9219 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9222 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9223 BEGIN {RS=" "; FS="/|\n";} {
9226 for (lt_i = NF; lt_i > 0; lt_i--) {
9227 if ($lt_i != "" && $lt_i != ".") {
9228 if ($lt_i == "..") {
9231 if (lt_count == 0) {
9232 lt_foo="/" $lt_i lt_foo;
9239 if (lt_foo != "") { lt_freq[lt_foo]++; }
9240 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9242 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9244 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9246 need_lib_prefix=unknown
9247 hardcode_into_libs=no
9249 # when you set need_version to no, make sure it does not cause -set_version
9250 # flags to be left without arguments
9251 need_version=unknown
9256 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9257 shlibpath_var=LIBPATH
9259 # AIX 3 has no versioning support, so we append a major version to the name.
9260 soname_spec='${libname}${release}${shared_ext}$major'
9267 hardcode_into_libs=yes
9268 if test "$host_cpu" = ia64; then
9269 # AIX 5 supports IA64
9270 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9271 shlibpath_var=LD_LIBRARY_PATH
9273 # With GCC up to 2.95.x, collect2 would create an import file
9274 # for dependence libraries. The import file would start with
9275 # the line `#! .'. This would cause the generated library to
9276 # depend on `.', always an invalid library. This was fixed in
9277 # development snapshots of GCC prior to 3.0.
9279 aix4 | aix4.[01] | aix4.[01].*)
9280 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9282 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9289 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9290 # soname into executable. Probably we can add versioning support to
9291 # collect2, so additional links can be useful in future.
9292 if test "$aix_use_runtimelinking" = yes; then
9293 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9294 # instead of lib<name>.a to let people know that these are not
9295 # typical AIX shared libraries.
9296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9298 # We preserve .a as extension for shared libraries through AIX4.2
9299 # and later when we are not doing run time linking.
9300 library_names_spec='${libname}${release}.a $libname.a'
9301 soname_spec='${libname}${release}${shared_ext}$major'
9303 shlibpath_var=LIBPATH
9308 library_names_spec='$libname.ixlibrary $libname.a'
9309 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9310 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'
9314 library_names_spec='${libname}${shared_ext}'
9315 dynamic_linker="$host_os ld.so"
9316 shlibpath_var=LIBRARY_PATH
9322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9323 soname_spec='${libname}${release}${shared_ext}$major'
9324 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9325 shlibpath_var=LD_LIBRARY_PATH
9326 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9327 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9328 # the default ld.so.conf also contains /usr/contrib/lib and
9329 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9330 # libtool to hard-code these into programs
9333 cygwin* | mingw* | pw32*)
9334 version_type=windows
9339 case $GCC,$host_os in
9340 yes,cygwin* | yes,mingw* | yes,pw32*)
9341 library_names_spec='$libname.dll.a'
9342 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9343 postinstall_cmds='base_file=`basename \${file}`~
9344 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9345 dldir=$destdir/`dirname \$dlpath`~
9346 test -d \$dldir || mkdir -p \$dldir~
9347 $install_prog $dir/$dlname \$dldir/$dlname~
9348 chmod a+x \$dldir/$dlname'
9349 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9350 dlpath=$dir/\$dldll~
9352 shlibpath_overrides_runpath=yes
9356 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9357 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9358 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9361 # MinGW DLLs use traditional 'lib' prefix
9362 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9363 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9364 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9365 # It is most probably a Windows format PATH printed by
9366 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9367 # path with ; separators, and with drive letters. We can handle the
9368 # drive letters (cygwin fileutils understands them), so leave them,
9369 # especially as we might pass files found there to a mingw objdump,
9370 # which wouldn't understand a cygwinified path. Ahh.
9371 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9373 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9377 # pw32 DLLs use 'pw' prefix rather than 'lib'
9378 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9384 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9387 dynamic_linker='Win32 ld.exe'
9388 # FIXME: first we should search . and the directory the executable is in
9392 darwin* | rhapsody*)
9393 dynamic_linker="$host_os dyld"
9397 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9398 soname_spec='${libname}${release}${major}$shared_ext'
9399 shlibpath_overrides_runpath=yes
9400 shlibpath_var=DYLD_LIBRARY_PATH
9401 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9403 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9404 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9412 soname_spec='${libname}${release}${shared_ext}$major'
9413 shlibpath_var=LD_LIBRARY_PATH
9420 freebsd* | dragonfly*)
9421 # DragonFly does not have aout. When/if they implement a new
9422 # versioning mechanism, adjust this.
9423 if test -x /usr/bin/objformat; then
9424 objformat=`/usr/bin/objformat`
9427 freebsd[123]*) objformat=aout ;;
9431 version_type=freebsd-$objformat
9432 case $version_type in
9434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9439 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9443 shlibpath_var=LD_LIBRARY_PATH
9446 shlibpath_overrides_runpath=yes
9448 freebsd3.[01]* | freebsdelf3.[01]*)
9449 shlibpath_overrides_runpath=yes
9450 hardcode_into_libs=yes
9452 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9453 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9454 shlibpath_overrides_runpath=no
9455 hardcode_into_libs=yes
9457 *) # from 4.6 on, and DragonFly
9458 shlibpath_overrides_runpath=yes
9459 hardcode_into_libs=yes
9468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9469 soname_spec='${libname}${release}${shared_ext}$major'
9470 shlibpath_var=LD_LIBRARY_PATH
9471 hardcode_into_libs=yes
9474 hpux9* | hpux10* | hpux11*)
9475 # Give a soname corresponding to the major version so that dld.sl refuses to
9476 # link against other versions.
9483 hardcode_into_libs=yes
9484 dynamic_linker="$host_os dld.so"
9485 shlibpath_var=LD_LIBRARY_PATH
9486 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9488 soname_spec='${libname}${release}${shared_ext}$major'
9489 if test "X$HPUX_IA64_MODE" = X32; then
9490 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9492 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9494 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9498 hardcode_into_libs=yes
9499 dynamic_linker="$host_os dld.sl"
9500 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9501 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9503 soname_spec='${libname}${release}${shared_ext}$major'
9504 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9505 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9509 dynamic_linker="$host_os dld.sl"
9510 shlibpath_var=SHLIB_PATH
9511 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9513 soname_spec='${libname}${release}${shared_ext}$major'
9516 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9517 postinstall_cmds='chmod 555 $lib'
9524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9525 soname_spec='${libname}${release}${shared_ext}$major'
9526 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9527 shlibpath_var=LD_LIBRARY_PATH
9528 shlibpath_overrides_runpath=no
9529 hardcode_into_libs=yes
9532 irix5* | irix6* | nonstopux*)
9534 nonstopux*) version_type=nonstopux ;;
9536 if test "$lt_cv_prog_gnu_ld" = yes; then
9544 soname_spec='${libname}${release}${shared_ext}$major'
9545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9547 irix5* | nonstopux*)
9551 case $LD in # libtool.m4 will add one of these switches to LD
9552 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9553 libsuff= shlibsuff= libmagic=32-bit;;
9554 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9555 libsuff=32 shlibsuff=N32 libmagic=N32;;
9556 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9557 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9558 *) libsuff= shlibsuff= libmagic=never-match;;
9562 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9563 shlibpath_overrides_runpath=no
9564 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9565 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9566 hardcode_into_libs=yes
9569 # No shared lib support for Linux oldld, aout, or coff.
9570 linux*oldld* | linux*aout* | linux*coff*)
9574 # This must be Linux ELF.
9575 linux* | k*bsd*-gnu)
9579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9580 soname_spec='${libname}${release}${shared_ext}$major'
9581 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9582 shlibpath_var=LD_LIBRARY_PATH
9583 shlibpath_overrides_runpath=no
9584 # This implies no fast_install, which is unacceptable.
9585 # Some rework will be needed to allow for fast_install
9586 # before this can be enabled.
9587 hardcode_into_libs=yes
9589 # Append ld.so.conf contents to the search path
9590 if test -f /etc/ld.so.conf; then
9591 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' ' '`
9592 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9595 # We used to test for /lib/ld.so.1 and disable shared libraries on
9596 # powerpc, because MkLinux only supported shared libraries with the
9597 # GNU dynamic linker. Since this was broken with cross compilers,
9598 # most powerpc-linux boxes support dynamic linking these days and
9599 # people can always --disable-shared, the test was removed, and we
9600 # assume the GNU/Linux dynamic linker is in use.
9601 dynamic_linker='GNU/Linux ld.so'
9608 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9610 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9611 dynamic_linker='NetBSD (a.out) ld.so'
9613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9614 soname_spec='${libname}${release}${shared_ext}$major'
9615 dynamic_linker='NetBSD ld.elf_so'
9617 shlibpath_var=LD_LIBRARY_PATH
9618 shlibpath_overrides_runpath=yes
9619 hardcode_into_libs=yes
9624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9625 shlibpath_var=LD_LIBRARY_PATH
9626 shlibpath_overrides_runpath=yes
9633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9634 soname_spec='${libname}${release}${shared_ext}$major'
9635 shlibpath_var=LD_LIBRARY_PATH
9636 shlibpath_overrides_runpath=yes
9641 sys_lib_dlsearch_path_spec="/usr/lib"
9643 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9645 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9646 *) need_version=no ;;
9648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9649 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9650 shlibpath_var=LD_LIBRARY_PATH
9651 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9653 openbsd2.[89] | openbsd2.[89].*)
9654 shlibpath_overrides_runpath=no
9657 shlibpath_overrides_runpath=yes
9661 shlibpath_overrides_runpath=yes
9666 libname_spec='$name'
9669 library_names_spec='$libname${shared_ext} $libname.a'
9670 dynamic_linker='OS/2 ld.exe'
9671 shlibpath_var=LIBPATH
9674 osf3* | osf4* | osf5*)
9678 soname_spec='${libname}${release}${shared_ext}$major'
9679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9680 shlibpath_var=LD_LIBRARY_PATH
9681 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9682 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9694 soname_spec='${libname}${release}${shared_ext}$major'
9695 shlibpath_var=LD_LIBRARY_PATH
9696 shlibpath_overrides_runpath=yes
9697 hardcode_into_libs=yes
9698 # ldd complains unless libraries are executable
9699 postinstall_cmds='chmod +x $lib'
9704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9705 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9706 shlibpath_var=LD_LIBRARY_PATH
9707 shlibpath_overrides_runpath=yes
9708 if test "$with_gnu_ld" = yes; then
9716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9717 soname_spec='${libname}${release}${shared_ext}$major'
9718 shlibpath_var=LD_LIBRARY_PATH
9719 case $host_vendor in
9721 shlibpath_overrides_runpath=no
9723 export_dynamic_flag_spec='${wl}-Blargedynsym'
9724 runpath_var=LD_RUN_PATH
9732 shlibpath_overrides_runpath=no
9733 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9739 if test -d /usr/nec ;then
9741 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9742 soname_spec='$libname${shared_ext}.$major'
9743 shlibpath_var=LD_LIBRARY_PATH
9747 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9748 version_type=freebsd-elf
9751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9752 soname_spec='${libname}${release}${shared_ext}$major'
9753 shlibpath_var=LD_LIBRARY_PATH
9754 hardcode_into_libs=yes
9755 if test "$with_gnu_ld" = yes; then
9756 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9757 shlibpath_overrides_runpath=no
9759 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9760 shlibpath_overrides_runpath=yes
9763 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9767 sys_lib_dlsearch_path_spec='/usr/lib'
9772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9773 soname_spec='${libname}${release}${shared_ext}$major'
9774 shlibpath_var=LD_LIBRARY_PATH
9781 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9782 echo "${ECHO_T}$dynamic_linker" >&6; }
9783 test "$dynamic_linker" = no && can_build_shared=no
9785 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9786 echo $ECHO_N "(cached) $ECHO_C" >&6
9788 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9791 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9792 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9793 echo $ECHO_N "(cached) $ECHO_C" >&6
9795 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9798 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9800 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9801 if test "$GCC" = yes; then
9802 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9805 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9806 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9808 if test -n "$hardcode_libdir_flag_spec" || \
9809 test -n "$runpath_var" || \
9810 test "X$hardcode_automatic" = "Xyes" ; then
9812 # We can hardcode non-existant directories.
9813 if test "$hardcode_direct" != no &&
9814 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9815 # have to relink, otherwise we might link with an installed library
9816 # when we should be linking with a yet-to-be-installed one
9817 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9818 test "$hardcode_minus_L" != no; then
9819 # Linking always hardcodes the temporary library directory.
9820 hardcode_action=relink
9822 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9823 hardcode_action=immediate
9826 # We cannot hardcode anything, or else we can only hardcode existing
9828 hardcode_action=unsupported
9830 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9831 echo "${ECHO_T}$hardcode_action" >&6; }
9833 if test "$hardcode_action" = relink; then
9834 # Fast installation is not supported
9835 enable_fast_install=no
9836 elif test "$shlibpath_overrides_runpath" = yes ||
9837 test "$enable_shared" = no; then
9838 # Fast installation is not necessary
9839 enable_fast_install=needless
9844 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9845 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9846 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9847 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9848 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9849 { echo "$as_me:$LINENO: result: yes" >&5
9850 echo "${ECHO_T}yes" >&6; }
9852 # FIXME - insert some real tests, host_os isn't really good enough
9855 if test -n "$STRIP" ; then
9856 striplib="$STRIP -x"
9857 old_striplib="$STRIP -S"
9858 { echo "$as_me:$LINENO: result: yes" >&5
9859 echo "${ECHO_T}yes" >&6; }
9861 { echo "$as_me:$LINENO: result: no" >&5
9862 echo "${ECHO_T}no" >&6; }
9866 { echo "$as_me:$LINENO: result: no" >&5
9867 echo "${ECHO_T}no" >&6; }
9872 if test "x$enable_dlopen" != xyes; then
9873 enable_dlopen=unknown
9874 enable_dlopen_self=unknown
9875 enable_dlopen_self_static=unknown
9882 lt_cv_dlopen="load_add_on"
9884 lt_cv_dlopen_self=yes
9888 lt_cv_dlopen="LoadLibrary"
9893 lt_cv_dlopen="dlopen"
9898 # if libdl is installed we need to link against it
9899 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9900 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9901 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9902 echo $ECHO_N "(cached) $ECHO_C" >&6
9904 ac_check_lib_save_LIBS=$LIBS
9906 cat >conftest.$ac_ext <<_ACEOF
9909 cat confdefs.h >>conftest.$ac_ext
9910 cat >>conftest.$ac_ext <<_ACEOF
9911 /* end confdefs.h. */
9913 /* Override any GCC internal prototype to avoid an error.
9914 Use char because int might match the return type of a GCC
9915 builtin and then its argument prototype would still apply. */
9928 rm -f conftest.$ac_objext conftest$ac_exeext
9929 if { (ac_try="$ac_link"
9931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9932 *) ac_try_echo=$ac_try;;
9934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9935 (eval "$ac_link") 2>conftest.er1
9937 grep -v '^ *+' conftest.er1 >conftest.err
9939 cat conftest.err >&5
9940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9941 (exit $ac_status); } && {
9942 test -z "$ac_c_werror_flag" ||
9943 test ! -s conftest.err
9944 } && test -s conftest$ac_exeext &&
9945 $as_test_x conftest$ac_exeext; then
9946 ac_cv_lib_dl_dlopen=yes
9948 echo "$as_me: failed program was:" >&5
9949 sed 's/^/| /' conftest.$ac_ext >&5
9951 ac_cv_lib_dl_dlopen=no
9954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9955 conftest$ac_exeext conftest.$ac_ext
9956 LIBS=$ac_check_lib_save_LIBS
9958 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9959 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9960 if test $ac_cv_lib_dl_dlopen = yes; then
9961 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9966 lt_cv_dlopen_self=yes
9973 { echo "$as_me:$LINENO: checking for shl_load" >&5
9974 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9975 if test "${ac_cv_func_shl_load+set}" = set; then
9976 echo $ECHO_N "(cached) $ECHO_C" >&6
9978 cat >conftest.$ac_ext <<_ACEOF
9981 cat confdefs.h >>conftest.$ac_ext
9982 cat >>conftest.$ac_ext <<_ACEOF
9983 /* end confdefs.h. */
9984 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9985 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9986 #define shl_load innocuous_shl_load
9988 /* System header to define __stub macros and hopefully few prototypes,
9989 which can conflict with char shl_load (); below.
9990 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9991 <limits.h> exists even on freestanding compilers. */
9994 # include <limits.h>
9996 # include <assert.h>
10001 /* Override any GCC internal prototype to avoid an error.
10002 Use char because int might match the return type of a GCC
10003 builtin and then its argument prototype would still apply. */
10008 /* The GNU C library defines this for functions which it implements
10009 to always fail with ENOSYS. Some functions are actually named
10010 something starting with __ and the normal name is an alias. */
10011 #if defined __stub_shl_load || defined __stub___shl_load
10018 return shl_load ();
10023 rm -f conftest.$ac_objext conftest$ac_exeext
10024 if { (ac_try="$ac_link"
10025 case "(($ac_try" in
10026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10027 *) ac_try_echo=$ac_try;;
10029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10030 (eval "$ac_link") 2>conftest.er1
10032 grep -v '^ *+' conftest.er1 >conftest.err
10034 cat conftest.err >&5
10035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036 (exit $ac_status); } && {
10037 test -z "$ac_c_werror_flag" ||
10038 test ! -s conftest.err
10039 } && test -s conftest$ac_exeext &&
10040 $as_test_x conftest$ac_exeext; then
10041 ac_cv_func_shl_load=yes
10043 echo "$as_me: failed program was:" >&5
10044 sed 's/^/| /' conftest.$ac_ext >&5
10046 ac_cv_func_shl_load=no
10049 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10050 conftest$ac_exeext conftest.$ac_ext
10052 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10053 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10054 if test $ac_cv_func_shl_load = yes; then
10055 lt_cv_dlopen="shl_load"
10057 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10058 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10059 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10060 echo $ECHO_N "(cached) $ECHO_C" >&6
10062 ac_check_lib_save_LIBS=$LIBS
10064 cat >conftest.$ac_ext <<_ACEOF
10067 cat confdefs.h >>conftest.$ac_ext
10068 cat >>conftest.$ac_ext <<_ACEOF
10069 /* end confdefs.h. */
10071 /* Override any GCC internal prototype to avoid an error.
10072 Use char because int might match the return type of a GCC
10073 builtin and then its argument prototype would still apply. */
10081 return shl_load ();
10086 rm -f conftest.$ac_objext conftest$ac_exeext
10087 if { (ac_try="$ac_link"
10088 case "(($ac_try" in
10089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10090 *) ac_try_echo=$ac_try;;
10092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10093 (eval "$ac_link") 2>conftest.er1
10095 grep -v '^ *+' conftest.er1 >conftest.err
10097 cat conftest.err >&5
10098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10099 (exit $ac_status); } && {
10100 test -z "$ac_c_werror_flag" ||
10101 test ! -s conftest.err
10102 } && test -s conftest$ac_exeext &&
10103 $as_test_x conftest$ac_exeext; then
10104 ac_cv_lib_dld_shl_load=yes
10106 echo "$as_me: failed program was:" >&5
10107 sed 's/^/| /' conftest.$ac_ext >&5
10109 ac_cv_lib_dld_shl_load=no
10112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10113 conftest$ac_exeext conftest.$ac_ext
10114 LIBS=$ac_check_lib_save_LIBS
10116 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10117 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10118 if test $ac_cv_lib_dld_shl_load = yes; then
10119 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10121 { echo "$as_me:$LINENO: checking for dlopen" >&5
10122 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10123 if test "${ac_cv_func_dlopen+set}" = set; then
10124 echo $ECHO_N "(cached) $ECHO_C" >&6
10126 cat >conftest.$ac_ext <<_ACEOF
10129 cat confdefs.h >>conftest.$ac_ext
10130 cat >>conftest.$ac_ext <<_ACEOF
10131 /* end confdefs.h. */
10132 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10133 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10134 #define dlopen innocuous_dlopen
10136 /* System header to define __stub macros and hopefully few prototypes,
10137 which can conflict with char dlopen (); below.
10138 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10139 <limits.h> exists even on freestanding compilers. */
10142 # include <limits.h>
10144 # include <assert.h>
10149 /* Override any GCC internal prototype to avoid an error.
10150 Use char because int might match the return type of a GCC
10151 builtin and then its argument prototype would still apply. */
10156 /* The GNU C library defines this for functions which it implements
10157 to always fail with ENOSYS. Some functions are actually named
10158 something starting with __ and the normal name is an alias. */
10159 #if defined __stub_dlopen || defined __stub___dlopen
10171 rm -f conftest.$ac_objext conftest$ac_exeext
10172 if { (ac_try="$ac_link"
10173 case "(($ac_try" in
10174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10175 *) ac_try_echo=$ac_try;;
10177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10178 (eval "$ac_link") 2>conftest.er1
10180 grep -v '^ *+' conftest.er1 >conftest.err
10182 cat conftest.err >&5
10183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184 (exit $ac_status); } && {
10185 test -z "$ac_c_werror_flag" ||
10186 test ! -s conftest.err
10187 } && test -s conftest$ac_exeext &&
10188 $as_test_x conftest$ac_exeext; then
10189 ac_cv_func_dlopen=yes
10191 echo "$as_me: failed program was:" >&5
10192 sed 's/^/| /' conftest.$ac_ext >&5
10194 ac_cv_func_dlopen=no
10197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10198 conftest$ac_exeext conftest.$ac_ext
10200 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10201 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10202 if test $ac_cv_func_dlopen = yes; then
10203 lt_cv_dlopen="dlopen"
10205 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10206 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10207 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10208 echo $ECHO_N "(cached) $ECHO_C" >&6
10210 ac_check_lib_save_LIBS=$LIBS
10212 cat >conftest.$ac_ext <<_ACEOF
10215 cat confdefs.h >>conftest.$ac_ext
10216 cat >>conftest.$ac_ext <<_ACEOF
10217 /* end confdefs.h. */
10219 /* Override any GCC internal prototype to avoid an error.
10220 Use char because int might match the return type of a GCC
10221 builtin and then its argument prototype would still apply. */
10234 rm -f conftest.$ac_objext conftest$ac_exeext
10235 if { (ac_try="$ac_link"
10236 case "(($ac_try" in
10237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10238 *) ac_try_echo=$ac_try;;
10240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10241 (eval "$ac_link") 2>conftest.er1
10243 grep -v '^ *+' conftest.er1 >conftest.err
10245 cat conftest.err >&5
10246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10247 (exit $ac_status); } && {
10248 test -z "$ac_c_werror_flag" ||
10249 test ! -s conftest.err
10250 } && test -s conftest$ac_exeext &&
10251 $as_test_x conftest$ac_exeext; then
10252 ac_cv_lib_dl_dlopen=yes
10254 echo "$as_me: failed program was:" >&5
10255 sed 's/^/| /' conftest.$ac_ext >&5
10257 ac_cv_lib_dl_dlopen=no
10260 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10261 conftest$ac_exeext conftest.$ac_ext
10262 LIBS=$ac_check_lib_save_LIBS
10264 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10265 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10266 if test $ac_cv_lib_dl_dlopen = yes; then
10267 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10269 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10270 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10271 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10272 echo $ECHO_N "(cached) $ECHO_C" >&6
10274 ac_check_lib_save_LIBS=$LIBS
10275 LIBS="-lsvld $LIBS"
10276 cat >conftest.$ac_ext <<_ACEOF
10279 cat confdefs.h >>conftest.$ac_ext
10280 cat >>conftest.$ac_ext <<_ACEOF
10281 /* end confdefs.h. */
10283 /* Override any GCC internal prototype to avoid an error.
10284 Use char because int might match the return type of a GCC
10285 builtin and then its argument prototype would still apply. */
10298 rm -f conftest.$ac_objext conftest$ac_exeext
10299 if { (ac_try="$ac_link"
10300 case "(($ac_try" in
10301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10302 *) ac_try_echo=$ac_try;;
10304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10305 (eval "$ac_link") 2>conftest.er1
10307 grep -v '^ *+' conftest.er1 >conftest.err
10309 cat conftest.err >&5
10310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10311 (exit $ac_status); } && {
10312 test -z "$ac_c_werror_flag" ||
10313 test ! -s conftest.err
10314 } && test -s conftest$ac_exeext &&
10315 $as_test_x conftest$ac_exeext; then
10316 ac_cv_lib_svld_dlopen=yes
10318 echo "$as_me: failed program was:" >&5
10319 sed 's/^/| /' conftest.$ac_ext >&5
10321 ac_cv_lib_svld_dlopen=no
10324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10325 conftest$ac_exeext conftest.$ac_ext
10326 LIBS=$ac_check_lib_save_LIBS
10328 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10329 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10330 if test $ac_cv_lib_svld_dlopen = yes; then
10331 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10333 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10334 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10335 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10336 echo $ECHO_N "(cached) $ECHO_C" >&6
10338 ac_check_lib_save_LIBS=$LIBS
10340 cat >conftest.$ac_ext <<_ACEOF
10343 cat confdefs.h >>conftest.$ac_ext
10344 cat >>conftest.$ac_ext <<_ACEOF
10345 /* end confdefs.h. */
10347 /* Override any GCC internal prototype to avoid an error.
10348 Use char because int might match the return type of a GCC
10349 builtin and then its argument prototype would still apply. */
10357 return dld_link ();
10362 rm -f conftest.$ac_objext conftest$ac_exeext
10363 if { (ac_try="$ac_link"
10364 case "(($ac_try" in
10365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10366 *) ac_try_echo=$ac_try;;
10368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10369 (eval "$ac_link") 2>conftest.er1
10371 grep -v '^ *+' conftest.er1 >conftest.err
10373 cat conftest.err >&5
10374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10375 (exit $ac_status); } && {
10376 test -z "$ac_c_werror_flag" ||
10377 test ! -s conftest.err
10378 } && test -s conftest$ac_exeext &&
10379 $as_test_x conftest$ac_exeext; then
10380 ac_cv_lib_dld_dld_link=yes
10382 echo "$as_me: failed program was:" >&5
10383 sed 's/^/| /' conftest.$ac_ext >&5
10385 ac_cv_lib_dld_dld_link=no
10388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10389 conftest$ac_exeext conftest.$ac_ext
10390 LIBS=$ac_check_lib_save_LIBS
10392 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10393 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10394 if test $ac_cv_lib_dld_dld_link = yes; then
10395 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10416 if test "x$lt_cv_dlopen" != xno; then
10422 case $lt_cv_dlopen in
10424 save_CPPFLAGS="$CPPFLAGS"
10425 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10427 save_LDFLAGS="$LDFLAGS"
10428 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10431 LIBS="$lt_cv_dlopen_libs $LIBS"
10433 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10434 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10435 if test "${lt_cv_dlopen_self+set}" = set; then
10436 echo $ECHO_N "(cached) $ECHO_C" >&6
10438 if test "$cross_compiling" = yes; then :
10439 lt_cv_dlopen_self=cross
10441 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10442 lt_status=$lt_dlunknown
10443 cat > conftest.$ac_ext <<EOF
10444 #line 10444 "configure"
10445 #include "confdefs.h"
10454 # define LT_DLGLOBAL RTLD_GLOBAL
10457 # define LT_DLGLOBAL DL_GLOBAL
10459 # define LT_DLGLOBAL 0
10463 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10464 find out it does not work in some platform. */
10465 #ifndef LT_DLLAZY_OR_NOW
10467 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10470 # define LT_DLLAZY_OR_NOW DL_LAZY
10473 # define LT_DLLAZY_OR_NOW RTLD_NOW
10476 # define LT_DLLAZY_OR_NOW DL_NOW
10478 # define LT_DLLAZY_OR_NOW 0
10486 extern "C" void exit (int);
10489 void fnord() { int i=42;}
10492 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10493 int status = $lt_dlunknown;
10497 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10498 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10499 /* dlclose (self); */
10507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10508 (eval $ac_link) 2>&5
10510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10512 (./conftest; exit; ) >&5 2>/dev/null
10514 case x$lt_status in
10515 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10516 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10517 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10520 # compilation failed
10521 lt_cv_dlopen_self=no
10528 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10529 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10531 if test "x$lt_cv_dlopen_self" = xyes; then
10532 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10533 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10534 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10535 if test "${lt_cv_dlopen_self_static+set}" = set; then
10536 echo $ECHO_N "(cached) $ECHO_C" >&6
10538 if test "$cross_compiling" = yes; then :
10539 lt_cv_dlopen_self_static=cross
10541 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10542 lt_status=$lt_dlunknown
10543 cat > conftest.$ac_ext <<EOF
10544 #line 10544 "configure"
10545 #include "confdefs.h"
10554 # define LT_DLGLOBAL RTLD_GLOBAL
10557 # define LT_DLGLOBAL DL_GLOBAL
10559 # define LT_DLGLOBAL 0
10563 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10564 find out it does not work in some platform. */
10565 #ifndef LT_DLLAZY_OR_NOW
10567 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10570 # define LT_DLLAZY_OR_NOW DL_LAZY
10573 # define LT_DLLAZY_OR_NOW RTLD_NOW
10576 # define LT_DLLAZY_OR_NOW DL_NOW
10578 # define LT_DLLAZY_OR_NOW 0
10586 extern "C" void exit (int);
10589 void fnord() { int i=42;}
10592 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10593 int status = $lt_dlunknown;
10597 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10598 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10599 /* dlclose (self); */
10607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10608 (eval $ac_link) 2>&5
10610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10612 (./conftest; exit; ) >&5 2>/dev/null
10614 case x$lt_status in
10615 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10616 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10617 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10620 # compilation failed
10621 lt_cv_dlopen_self_static=no
10628 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10629 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10632 CPPFLAGS="$save_CPPFLAGS"
10633 LDFLAGS="$save_LDFLAGS"
10638 case $lt_cv_dlopen_self in
10639 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10640 *) enable_dlopen_self=unknown ;;
10643 case $lt_cv_dlopen_self_static in
10644 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10645 *) enable_dlopen_self_static=unknown ;;
10650 # Report which library types will actually be built
10651 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10652 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10653 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10654 echo "${ECHO_T}$can_build_shared" >&6; }
10656 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10657 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10658 test "$can_build_shared" = "no" && enable_shared=no
10660 # On AIX, shared libraries and static libraries use the same namespace, and
10661 # are all built from PIC.
10664 test "$enable_shared" = yes && enable_static=no
10665 if test -n "$RANLIB"; then
10666 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10667 postinstall_cmds='$RANLIB $lib'
10672 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10673 test "$enable_shared" = yes && enable_static=no
10677 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10678 echo "${ECHO_T}$enable_shared" >&6; }
10680 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10681 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10682 # Make sure either enable_shared or enable_static is yes.
10683 test "$enable_shared" = yes || enable_static=yes
10684 { echo "$as_me:$LINENO: result: $enable_static" >&5
10685 echo "${ECHO_T}$enable_static" >&6; }
10687 # The else clause should only fire when bootstrapping the
10688 # libtool distribution, otherwise you forgot to ship ltmain.sh
10689 # with your package, and you will get complaints that there are
10690 # no rules to generate ltmain.sh.
10691 if test -f "$ltmain"; then
10692 # See if we are running on zsh, and set the options which allow our commands through
10693 # without removal of \ escapes.
10694 if test -n "${ZSH_VERSION+set}" ; then
10695 setopt NO_GLOB_SUBST
10697 # Now quote all the things that may contain metacharacters while being
10698 # careful not to overquote the AC_SUBSTed values. We take copies of the
10699 # variables and quote the copies for generation of the libtool script.
10700 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10702 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10703 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10704 deplibs_check_method reload_flag reload_cmds need_locks \
10705 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10706 lt_cv_sys_global_symbol_to_c_name_address \
10707 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10708 old_postinstall_cmds old_postuninstall_cmds \
10712 lt_prog_compiler_wl \
10713 lt_prog_compiler_pic \
10714 lt_prog_compiler_static \
10715 lt_prog_compiler_no_builtin_flag \
10716 export_dynamic_flag_spec \
10717 thread_safe_flag_spec \
10718 whole_archive_flag_spec \
10719 enable_shared_with_static_runtimes \
10721 old_archive_from_new_cmds \
10726 compiler_lib_search_path \
10727 compiler_lib_search_dirs \
10729 archive_expsym_cmds \
10731 postuninstall_cmds \
10732 old_archive_from_expsyms_cmds \
10733 allow_undefined_flag \
10734 no_undefined_flag \
10735 export_symbols_cmds \
10736 hardcode_libdir_flag_spec \
10737 hardcode_libdir_flag_spec_ld \
10738 hardcode_libdir_separator \
10739 hardcode_automatic \
10741 module_expsym_cmds \
10742 lt_cv_prog_compiler_c_o \
10745 include_expsyms; do
10748 old_archive_cmds | \
10749 old_archive_from_new_cmds | \
10751 archive_expsym_cmds | \
10753 module_expsym_cmds | \
10754 old_archive_from_expsyms_cmds | \
10755 export_symbols_cmds | \
10756 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10757 postinstall_cmds | postuninstall_cmds | \
10758 old_postinstall_cmds | old_postuninstall_cmds | \
10759 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10760 # Double-quote double-evaled strings.
10761 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10764 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10770 *'\$0 --fallback-echo"')
10771 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10775 cfgfile="${ofile}T"
10776 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10778 { echo "$as_me:$LINENO: creating $ofile" >&5
10779 echo "$as_me: creating $ofile" >&6;}
10781 cat <<__EOF__ >> "$cfgfile"
10784 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10785 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10786 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10788 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10789 # Free Software Foundation, Inc.
10791 # This file is part of GNU Libtool:
10792 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10794 # This program is free software; you can redistribute it and/or modify
10795 # it under the terms of the GNU General Public License as published by
10796 # the Free Software Foundation; either version 2 of the License, or
10797 # (at your option) any later version.
10799 # This program is distributed in the hope that it will be useful, but
10800 # WITHOUT ANY WARRANTY; without even the implied warranty of
10801 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10802 # General Public License for more details.
10804 # You should have received a copy of the GNU General Public License
10805 # along with this program; if not, write to the Free Software
10806 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10808 # As a special exception to the GNU General Public License, if you
10809 # distribute this file as part of a program that contains a
10810 # configuration script generated by Autoconf, you may include it under
10811 # the same distribution terms that you use for the rest of that program.
10813 # A sed program that does not truncate output.
10816 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10817 Xsed="$SED -e 1s/^X//"
10819 # The HP-UX ksh and POSIX shell print the target directory to stdout
10820 # if CDPATH is set.
10821 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10823 # The names of the tagged configurations supported by this script.
10826 # ### BEGIN LIBTOOL CONFIG
10828 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10830 # Shell to use when invoking shell scripts.
10833 # Whether or not to build shared libraries.
10834 build_libtool_libs=$enable_shared
10836 # Whether or not to build static libraries.
10837 build_old_libs=$enable_static
10839 # Whether or not to add -lc for building shared libraries.
10840 build_libtool_need_lc=$archive_cmds_need_lc
10842 # Whether or not to disallow shared libs when runtime libs are static
10843 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10845 # Whether or not to optimize for fast installation.
10846 fast_install=$enable_fast_install
10849 host_alias=$host_alias
10853 # The build system.
10854 build_alias=$build_alias
10858 # An echo program that does not interpret backslashes.
10863 AR_FLAGS=$lt_AR_FLAGS
10868 # LTCC compiler flags.
10869 LTCFLAGS=$lt_LTCFLAGS
10871 # A language-specific compiler.
10874 # Is the compiler the GNU C compiler?
10880 # The linker used to build libraries.
10883 # Whether we need hard or soft links.
10886 # A BSD-compatible nm program.
10889 # A symbol stripping program
10892 # Used to examine libraries when file_magic_cmd begins "file"
10893 MAGIC_CMD=$MAGIC_CMD
10895 # Used on cygwin: DLL creation program.
10898 # Used on cygwin: object dumper.
10901 # Used on cygwin: assembler.
10904 # The name of the directory that contains temporary libtool files.
10907 # How to create reloadable object files.
10908 reload_flag=$lt_reload_flag
10909 reload_cmds=$lt_reload_cmds
10911 # How to pass a linker flag through the compiler.
10912 wl=$lt_lt_prog_compiler_wl
10914 # Object file suffix (normally "o").
10915 objext="$ac_objext"
10917 # Old archive suffix (normally "a").
10920 # Shared library suffix (normally ".so").
10921 shrext_cmds='$shrext_cmds'
10923 # Executable file suffix (normally "").
10926 # Additional compiler flags for building library objects.
10927 pic_flag=$lt_lt_prog_compiler_pic
10930 # What is the maximum length of a command?
10931 max_cmd_len=$lt_cv_sys_max_cmd_len
10933 # Does compiler simultaneously support -c and -o options?
10934 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10936 # Must we lock files when doing compilation?
10937 need_locks=$lt_need_locks
10939 # Do we need the lib prefix for modules?
10940 need_lib_prefix=$need_lib_prefix
10942 # Do we need a version for libraries?
10943 need_version=$need_version
10945 # Whether dlopen is supported.
10946 dlopen_support=$enable_dlopen
10948 # Whether dlopen of programs is supported.
10949 dlopen_self=$enable_dlopen_self
10951 # Whether dlopen of statically linked programs is supported.
10952 dlopen_self_static=$enable_dlopen_self_static
10954 # Compiler flag to prevent dynamic linking.
10955 link_static_flag=$lt_lt_prog_compiler_static
10957 # Compiler flag to turn off builtin functions.
10958 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10960 # Compiler flag to allow reflexive dlopens.
10961 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10963 # Compiler flag to generate shared objects directly from archives.
10964 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10966 # Compiler flag to generate thread-safe objects.
10967 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10969 # Library versioning type.
10970 version_type=$version_type
10972 # Format of library name prefix.
10973 libname_spec=$lt_libname_spec
10975 # List of archive names. First name is the real one, the rest are links.
10976 # The last name is the one that the linker finds with -lNAME.
10977 library_names_spec=$lt_library_names_spec
10979 # The coded name of the library, if different from the real name.
10980 soname_spec=$lt_soname_spec
10982 # Commands used to build and install an old-style archive.
10984 old_archive_cmds=$lt_old_archive_cmds
10985 old_postinstall_cmds=$lt_old_postinstall_cmds
10986 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10988 # Create an old-style archive from a shared archive.
10989 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10991 # Create a temporary old-style archive to link instead of a shared archive.
10992 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10994 # Commands used to build and install a shared archive.
10995 archive_cmds=$lt_archive_cmds
10996 archive_expsym_cmds=$lt_archive_expsym_cmds
10997 postinstall_cmds=$lt_postinstall_cmds
10998 postuninstall_cmds=$lt_postuninstall_cmds
11000 # Commands used to build a loadable module (assumed same as above if empty)
11001 module_cmds=$lt_module_cmds
11002 module_expsym_cmds=$lt_module_expsym_cmds
11004 # Commands to strip libraries.
11005 old_striplib=$lt_old_striplib
11006 striplib=$lt_striplib
11008 # Dependencies to place before the objects being linked to create a
11010 predep_objects=$lt_predep_objects
11012 # Dependencies to place after the objects being linked to create a
11014 postdep_objects=$lt_postdep_objects
11016 # Dependencies to place before the objects being linked to create a
11018 predeps=$lt_predeps
11020 # Dependencies to place after the objects being linked to create a
11022 postdeps=$lt_postdeps
11024 # The directories searched by this compiler when creating a shared
11026 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11028 # The library search path used internally by the compiler when linking
11029 # a shared library.
11030 compiler_lib_search_path=$lt_compiler_lib_search_path
11032 # Method to check whether dependent libraries are shared objects.
11033 deplibs_check_method=$lt_deplibs_check_method
11035 # Command to use when deplibs_check_method == file_magic.
11036 file_magic_cmd=$lt_file_magic_cmd
11038 # Flag that allows shared libraries with undefined symbols to be built.
11039 allow_undefined_flag=$lt_allow_undefined_flag
11041 # Flag that forces no undefined symbols.
11042 no_undefined_flag=$lt_no_undefined_flag
11044 # Commands used to finish a libtool library installation in a directory.
11045 finish_cmds=$lt_finish_cmds
11047 # Same as above, but a single script fragment to be evaled but not shown.
11048 finish_eval=$lt_finish_eval
11050 # Take the output of nm and produce a listing of raw symbols and C names.
11051 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11053 # Transform the output of nm in a proper C declaration
11054 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11056 # Transform the output of nm in a C name address pair
11057 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11059 # This is the shared library runtime path variable.
11060 runpath_var=$runpath_var
11062 # This is the shared library path variable.
11063 shlibpath_var=$shlibpath_var
11065 # Is shlibpath searched before the hard-coded library search path?
11066 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11068 # How to hardcode a shared library path into an executable.
11069 hardcode_action=$hardcode_action
11071 # Whether we should hardcode library paths into libraries.
11072 hardcode_into_libs=$hardcode_into_libs
11074 # Flag to hardcode \$libdir into a binary during linking.
11075 # This must work even if \$libdir does not exist.
11076 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11078 # If ld is used when linking, flag to hardcode \$libdir into
11079 # a binary during linking. This must work even if \$libdir does
11081 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11083 # Whether we need a single -rpath flag with a separated argument.
11084 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11086 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11087 # resulting binary.
11088 hardcode_direct=$hardcode_direct
11090 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11091 # resulting binary.
11092 hardcode_minus_L=$hardcode_minus_L
11094 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11095 # the resulting binary.
11096 hardcode_shlibpath_var=$hardcode_shlibpath_var
11098 # Set to yes if building a shared library automatically hardcodes DIR into the library
11099 # and all subsequent libraries and executables linked against it.
11100 hardcode_automatic=$hardcode_automatic
11102 # Variables whose values should be saved in libtool wrapper scripts and
11103 # restored at relink time.
11104 variables_saved_for_relink="$variables_saved_for_relink"
11106 # Whether libtool must link a program against all its dependency libraries.
11107 link_all_deplibs=$link_all_deplibs
11109 # Compile-time system search path for libraries
11110 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11112 # Run-time system search path for libraries
11113 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11115 # Fix the shell variable \$srcfile for the compiler.
11116 fix_srcfile_path=$lt_fix_srcfile_path
11118 # Set to yes if exported symbols are required.
11119 always_export_symbols=$always_export_symbols
11121 # The commands to list exported symbols.
11122 export_symbols_cmds=$lt_export_symbols_cmds
11124 # The commands to extract the exported symbol list from a shared archive.
11125 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11127 # Symbols that should not be listed in the preloaded symbols.
11128 exclude_expsyms=$lt_exclude_expsyms
11130 # Symbols that must always be exported.
11131 include_expsyms=$lt_include_expsyms
11133 # ### END LIBTOOL CONFIG
11140 cat <<\EOF >> "$cfgfile"
11142 # AIX sometimes has problems with the GCC collect2 program. For some
11143 # reason, if we set the COLLECT_NAMES environment variable, the problems
11144 # vanish in a puff of smoke.
11145 if test "X${COLLECT_NAMES+set}" != Xset; then
11147 export COLLECT_NAMES
11153 # We use sed instead of cat because bash on DJGPP gets confused if
11154 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11155 # text mode, it properly converts lines to CR/LF. This bash problem
11156 # is reportedly fixed, but why not run on old versions too?
11157 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11159 mv -f "$cfgfile" "$ofile" || \
11160 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11164 # If there is no Makefile yet, we rely on a make rule to execute
11165 # `config.status --recheck' to rerun these tests and create the
11166 # libtool script then.
11167 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11168 if test -f "$ltmain_in"; then
11169 test -f Makefile && make "$ltmain"
11175 ac_cpp='$CPP $CPPFLAGS'
11176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11183 # Check whether --with-tags was given.
11184 if test "${with_tags+set}" = set; then
11185 withval=$with_tags; tagnames="$withval"
11189 if test -f "$ltmain" && test -n "$tagnames"; then
11190 if test ! -f "${ofile}"; then
11191 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11192 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11195 if test -z "$LTCC"; then
11196 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11197 if test -z "$LTCC"; then
11198 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11199 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11201 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11202 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11205 if test -z "$LTCFLAGS"; then
11206 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11209 # Extract list of available tagged configurations in $ofile.
11210 # Note that this assumes the entire list is on one line.
11211 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11213 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11214 for tagname in $tagnames; do
11216 # Check whether tagname contains only valid characters
11217 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11219 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11220 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11221 { (exit 1); exit 1; }; }
11225 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11227 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11228 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11229 { (exit 1); exit 1; }; }
11232 # Update the list of available tags.
11233 if test -n "$tagname"; then
11234 echo appending configuration tag \"$tagname\" to $ofile
11238 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11239 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11240 (test "X$CXX" != "Xg++"))) ; then
11242 ac_cpp='$CXXCPP $CPPFLAGS'
11243 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11244 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11245 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11250 archive_cmds_need_lc_CXX=no
11251 allow_undefined_flag_CXX=
11252 always_export_symbols_CXX=no
11253 archive_expsym_cmds_CXX=
11254 export_dynamic_flag_spec_CXX=
11255 hardcode_direct_CXX=no
11256 hardcode_libdir_flag_spec_CXX=
11257 hardcode_libdir_flag_spec_ld_CXX=
11258 hardcode_libdir_separator_CXX=
11259 hardcode_minus_L_CXX=no
11260 hardcode_shlibpath_var_CXX=unsupported
11261 hardcode_automatic_CXX=no
11263 module_expsym_cmds_CXX=
11264 link_all_deplibs_CXX=unknown
11265 old_archive_cmds_CXX=$old_archive_cmds
11266 no_undefined_flag_CXX=
11267 whole_archive_flag_spec_CXX=
11268 enable_shared_with_static_runtimes_CXX=no
11270 # Dependencies to place before and after the object being linked:
11271 predep_objects_CXX=
11272 postdep_objects_CXX=
11275 compiler_lib_search_path_CXX=
11276 compiler_lib_search_dirs_CXX=
11278 # Source file extension for C++ test sources.
11281 # Object file extension for compiled C++ test sources.
11285 # Code to be used in simple compile tests
11286 lt_simple_compile_test_code="int some_variable = 0;"
11288 # Code to be used in simple link tests
11289 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11291 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11293 # If no C compiler was specified, use CC.
11296 # If no C compiler flags were specified, use CFLAGS.
11297 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11299 # Allow CC to be a program name with arguments.
11303 # save warnings/boilerplate of simple test code
11304 ac_outfile=conftest.$ac_objext
11305 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11306 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11307 _lt_compiler_boilerplate=`cat conftest.err`
11310 ac_outfile=conftest.$ac_objext
11311 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11312 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11313 _lt_linker_boilerplate=`cat conftest.err`
11317 # Allow CC to be a program name with arguments.
11322 lt_save_with_gnu_ld=$with_gnu_ld
11323 lt_save_path_LD=$lt_cv_path_LD
11324 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11325 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11327 $as_unset lt_cv_prog_gnu_ld
11329 if test -n "${lt_cv_path_LDCXX+set}"; then
11330 lt_cv_path_LD=$lt_cv_path_LDCXX
11332 $as_unset lt_cv_path_LD
11334 test -z "${LDCXX+set}" || LD=$LDCXX
11338 for cc_temp in $compiler""; do
11340 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11341 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11346 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11349 # We don't want -fno-exception wen compiling C++ code, so set the
11350 # no_builtin_flag separately
11351 if test "$GXX" = yes; then
11352 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11354 lt_prog_compiler_no_builtin_flag_CXX=
11357 if test "$GXX" = yes; then
11358 # Set up default GNU C++ configuration
11361 # Check whether --with-gnu-ld was given.
11362 if test "${with_gnu_ld+set}" = set; then
11363 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11369 if test "$GCC" = yes; then
11370 # Check if gcc -print-prog-name=ld gives a path.
11371 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11372 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11375 # gcc leaves a trailing carriage return which upsets mingw
11376 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11378 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11381 # Accept absolute paths.
11383 re_direlt='/[^/][^/]*/\.\./'
11384 # Canonicalize the pathname of ld
11385 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11386 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11387 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11389 test -z "$LD" && LD="$ac_prog"
11392 # If it fails, then pretend we aren't using GCC.
11396 # If it is relative, then search for the first ld in PATH.
11397 with_gnu_ld=unknown
11400 elif test "$with_gnu_ld" = yes; then
11401 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11402 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11404 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11405 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11407 if test "${lt_cv_path_LD+set}" = set; then
11408 echo $ECHO_N "(cached) $ECHO_C" >&6
11410 if test -z "$LD"; then
11411 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11412 for ac_dir in $PATH; do
11414 test -z "$ac_dir" && ac_dir=.
11415 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11416 lt_cv_path_LD="$ac_dir/$ac_prog"
11417 # Check to see if the program is GNU ld. I'd rather use --version,
11418 # but apparently some variants of GNU ld only accept -v.
11419 # Break only if it was the GNU/non-GNU ld that we prefer.
11420 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11421 *GNU* | *'with BFD'*)
11422 test "$with_gnu_ld" != no && break
11425 test "$with_gnu_ld" != yes && break
11432 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11436 LD="$lt_cv_path_LD"
11437 if test -n "$LD"; then
11438 { echo "$as_me:$LINENO: result: $LD" >&5
11439 echo "${ECHO_T}$LD" >&6; }
11441 { echo "$as_me:$LINENO: result: no" >&5
11442 echo "${ECHO_T}no" >&6; }
11444 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11445 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11446 { (exit 1); exit 1; }; }
11447 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11448 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11449 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11450 echo $ECHO_N "(cached) $ECHO_C" >&6
11452 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11453 case `$LD -v 2>&1 </dev/null` in
11454 *GNU* | *'with BFD'*)
11455 lt_cv_prog_gnu_ld=yes
11458 lt_cv_prog_gnu_ld=no
11462 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11463 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11464 with_gnu_ld=$lt_cv_prog_gnu_ld
11468 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11469 # archiving commands below assume that GNU ld is being used.
11470 if test "$with_gnu_ld" = yes; then
11471 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11472 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'
11474 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11475 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11477 # If archive_cmds runs LD, not CC, wlarc should be empty
11478 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11479 # investigate it a little bit more. (MM)
11482 # ancient GNU ld didn't support --whole-archive et. al.
11483 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11484 grep 'no-whole-archive' > /dev/null; then
11485 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11487 whole_archive_flag_spec_CXX=
11493 # A generic and very simple default shared library creation
11494 # command for GNU C++ for the case where it uses the native
11495 # linker, instead of GNU ld. If possible, this setting should
11496 # overridden to take advantage of the native linker features on
11497 # the platform it is being used on.
11498 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11501 # Commands to make compiler produce verbose output that lists
11502 # what "hidden" libraries, object files and flags are used when
11503 # linking a shared library.
11504 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11512 # PORTME: fill in a description of your system's C++ link characteristics
11513 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11514 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11518 # FIXME: insert proper C++ library support
11522 if test "$host_cpu" = ia64; then
11523 # On IA64, the linker does run time linking by default, so we don't
11524 # have to do anything special.
11525 aix_use_runtimelinking=no
11526 exp_sym_flag='-Bexport'
11529 aix_use_runtimelinking=no
11531 # Test if we are trying to use run time linking or normal
11532 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11533 # need to do runtime linking.
11534 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11535 for ld_flag in $LDFLAGS; do
11538 aix_use_runtimelinking=yes
11546 exp_sym_flag='-bexport'
11547 no_entry_flag='-bnoentry'
11550 # When large executables or shared objects are built, AIX ld can
11551 # have problems creating the table of contents. If linking a library
11552 # or program results in "error TOC overflow" add -mminimal-toc to
11553 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11554 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11556 archive_cmds_CXX=''
11557 hardcode_direct_CXX=yes
11558 hardcode_libdir_separator_CXX=':'
11559 link_all_deplibs_CXX=yes
11561 if test "$GXX" = yes; then
11562 case $host_os in aix4.[012]|aix4.[012].*)
11563 # We only want to do this on AIX 4.2 and lower, the check
11564 # below for broken collect2 doesn't work under 4.3+
11565 collect2name=`${CC} -print-prog-name=collect2`
11566 if test -f "$collect2name" && \
11567 strings "$collect2name" | grep resolve_lib_name >/dev/null
11569 # We have reworked collect2
11572 # We have old collect2
11573 hardcode_direct_CXX=unsupported
11574 # It fails to find uninstalled libraries when the uninstalled
11575 # path is not listed in the libpath. Setting hardcode_minus_L
11576 # to unsupported forces relinking
11577 hardcode_minus_L_CXX=yes
11578 hardcode_libdir_flag_spec_CXX='-L$libdir'
11579 hardcode_libdir_separator_CXX=
11583 shared_flag='-shared'
11584 if test "$aix_use_runtimelinking" = yes; then
11585 shared_flag="$shared_flag "'${wl}-G'
11589 if test "$host_cpu" = ia64; then
11590 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11591 # chokes on -Wl,-G. The following line is correct:
11594 if test "$aix_use_runtimelinking" = yes; then
11595 shared_flag='${wl}-G'
11597 shared_flag='${wl}-bM:SRE'
11602 # It seems that -bexpall does not export symbols beginning with
11603 # underscore (_), so it is better to generate a list of symbols to export.
11604 always_export_symbols_CXX=yes
11605 if test "$aix_use_runtimelinking" = yes; then
11606 # Warning - without using the other runtime loading flags (-brtl),
11607 # -berok will link without error, but may produce a broken library.
11608 allow_undefined_flag_CXX='-berok'
11609 # Determine the default libpath from the value encoded in an empty executable.
11610 cat >conftest.$ac_ext <<_ACEOF
11613 cat confdefs.h >>conftest.$ac_ext
11614 cat >>conftest.$ac_ext <<_ACEOF
11615 /* end confdefs.h. */
11625 rm -f conftest.$ac_objext conftest$ac_exeext
11626 if { (ac_try="$ac_link"
11627 case "(($ac_try" in
11628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11629 *) ac_try_echo=$ac_try;;
11631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11632 (eval "$ac_link") 2>conftest.er1
11634 grep -v '^ *+' conftest.er1 >conftest.err
11636 cat conftest.err >&5
11637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638 (exit $ac_status); } && {
11639 test -z "$ac_cxx_werror_flag" ||
11640 test ! -s conftest.err
11641 } && test -s conftest$ac_exeext &&
11642 $as_test_x conftest$ac_exeext; then
11644 lt_aix_libpath_sed='
11645 /Import File Strings/,/^$/ {
11651 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11652 # Check for a 64-bit object if we didn't find anything.
11653 if test -z "$aix_libpath"; then
11654 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11657 echo "$as_me: failed program was:" >&5
11658 sed 's/^/| /' conftest.$ac_ext >&5
11663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11664 conftest$ac_exeext conftest.$ac_ext
11665 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11667 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11669 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"
11671 if test "$host_cpu" = ia64; then
11672 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11673 allow_undefined_flag_CXX="-z nodefs"
11674 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"
11676 # Determine the default libpath from the value encoded in an empty executable.
11677 cat >conftest.$ac_ext <<_ACEOF
11680 cat confdefs.h >>conftest.$ac_ext
11681 cat >>conftest.$ac_ext <<_ACEOF
11682 /* end confdefs.h. */
11692 rm -f conftest.$ac_objext conftest$ac_exeext
11693 if { (ac_try="$ac_link"
11694 case "(($ac_try" in
11695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11696 *) ac_try_echo=$ac_try;;
11698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11699 (eval "$ac_link") 2>conftest.er1
11701 grep -v '^ *+' conftest.er1 >conftest.err
11703 cat conftest.err >&5
11704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11705 (exit $ac_status); } && {
11706 test -z "$ac_cxx_werror_flag" ||
11707 test ! -s conftest.err
11708 } && test -s conftest$ac_exeext &&
11709 $as_test_x conftest$ac_exeext; then
11711 lt_aix_libpath_sed='
11712 /Import File Strings/,/^$/ {
11718 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11719 # Check for a 64-bit object if we didn't find anything.
11720 if test -z "$aix_libpath"; then
11721 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11724 echo "$as_me: failed program was:" >&5
11725 sed 's/^/| /' conftest.$ac_ext >&5
11730 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11731 conftest$ac_exeext conftest.$ac_ext
11732 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11734 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11735 # Warning - without using the other run time loading flags,
11736 # -berok will link without error, but may produce a broken library.
11737 no_undefined_flag_CXX=' ${wl}-bernotok'
11738 allow_undefined_flag_CXX=' ${wl}-berok'
11739 # Exported symbols can be pulled into shared objects from archives
11740 whole_archive_flag_spec_CXX='$convenience'
11741 archive_cmds_need_lc_CXX=yes
11742 # This is similar to how AIX traditionally builds its shared libraries.
11743 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'
11749 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11750 allow_undefined_flag_CXX=unsupported
11751 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11752 # support --undefined. This deserves some investigation. FIXME
11753 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11760 case $cc_basename in
11762 # FIXME: insert proper C++ library support
11768 cygwin* | mingw* | pw32*)
11769 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11770 # as there is no search path for DLLs.
11771 hardcode_libdir_flag_spec_CXX='-L$libdir'
11772 allow_undefined_flag_CXX=unsupported
11773 always_export_symbols_CXX=no
11774 enable_shared_with_static_runtimes_CXX=yes
11776 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11777 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'
11778 # If the export-symbols file already is a .def file (1st line
11779 # is EXPORTS), use it as is; otherwise, prepend...
11780 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11781 cp $export_symbols $output_objdir/$soname.def;
11783 echo EXPORTS > $output_objdir/$soname.def;
11784 cat $export_symbols >> $output_objdir/$soname.def;
11786 $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'
11791 darwin* | rhapsody*)
11792 archive_cmds_need_lc_CXX=no
11793 hardcode_direct_CXX=no
11794 hardcode_automatic_CXX=yes
11795 hardcode_shlibpath_var_CXX=unsupported
11796 whole_archive_flag_spec_CXX=''
11797 link_all_deplibs_CXX=yes
11798 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11799 if test "$GXX" = yes ; then
11800 output_verbose_link_cmd='echo'
11801 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}"
11802 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11803 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}"
11804 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}"
11805 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11806 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}"
11807 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}"
11810 case $cc_basename in
11812 output_verbose_link_cmd='echo'
11813 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'
11814 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11815 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11816 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}'
11817 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}'
11827 case $cc_basename in
11829 # FIXME: insert proper C++ library support
11833 # Green Hills C++ Compiler
11834 # FIXME: insert proper C++ library support
11838 # FIXME: insert proper C++ library support
11844 # C++ shared libraries reported to be fairly broken before switch to ELF
11848 archive_cmds_need_lc_CXX=no
11850 freebsd* | dragonfly*)
11851 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11858 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11859 hardcode_libdir_separator_CXX=:
11860 export_dynamic_flag_spec_CXX='${wl}-E'
11861 hardcode_direct_CXX=yes
11862 hardcode_minus_L_CXX=yes # Not in the search PATH,
11863 # but as the default
11864 # location of the library.
11866 case $cc_basename in
11868 # FIXME: insert proper C++ library support
11872 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'
11873 # Commands to make compiler produce verbose output that lists
11874 # what "hidden" libraries, object files and flags are used when
11875 # linking a shared library.
11877 # There doesn't appear to be a way to prevent this compiler from
11878 # explicitly linking system object files so we need to strip them
11879 # from the output so that they don't get included in the library
11881 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'
11884 if test "$GXX" = yes; then
11885 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'
11887 # FIXME: insert proper C++ library support
11894 if test $with_gnu_ld = no; then
11895 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11896 hardcode_libdir_separator_CXX=:
11901 export_dynamic_flag_spec_CXX='${wl}-E'
11907 hardcode_direct_CXX=no
11908 hardcode_shlibpath_var_CXX=no
11911 hardcode_direct_CXX=yes
11912 hardcode_minus_L_CXX=yes # Not in the search PATH,
11913 # but as the default
11914 # location of the library.
11918 case $cc_basename in
11920 # FIXME: insert proper C++ library support
11926 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11929 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11932 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11935 # Commands to make compiler produce verbose output that lists
11936 # what "hidden" libraries, object files and flags are used when
11937 # linking a shared library.
11939 # There doesn't appear to be a way to prevent this compiler from
11940 # explicitly linking system object files so we need to strip them
11941 # from the output so that they don't get included in the library
11943 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'
11946 if test "$GXX" = yes; then
11947 if test $with_gnu_ld = no; then
11950 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11953 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11956 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'
11961 # FIXME: insert proper C++ library support
11968 hardcode_direct_CXX=no
11969 hardcode_shlibpath_var_CXX=no
11970 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11971 export_dynamic_flag_spec_CXX='${wl}-E'
11972 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11973 # Instead, shared libraries are loaded at an image base (0x10000000 by
11974 # default) and relocated if they conflict, which is a slow very memory
11975 # consuming and fragmenting process. To avoid this, we pick a random,
11976 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11977 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11978 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'
11979 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'
11982 case $cc_basename in
11985 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'
11987 # Archives containing C++ object files must be created using
11988 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11989 # necessary to make sure instantiated templates are included
11991 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11994 if test "$GXX" = yes; then
11995 if test "$with_gnu_ld" = no; then
11996 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'
11998 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'
12001 link_all_deplibs_CXX=yes
12004 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12005 hardcode_libdir_separator_CXX=:
12007 linux* | k*bsd*-gnu)
12008 case $cc_basename in
12010 # Kuck and Associates, Inc. (KAI) C++ Compiler
12012 # KCC will only create a shared library if the output file
12013 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12014 # to its proper name (with version) after linking.
12015 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'
12016 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'
12017 # Commands to make compiler produce verbose output that lists
12018 # what "hidden" libraries, object files and flags are used when
12019 # linking a shared library.
12021 # There doesn't appear to be a way to prevent this compiler from
12022 # explicitly linking system object files so we need to strip them
12023 # from the output so that they don't get included in the library
12025 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'
12027 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12028 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12030 # Archives containing C++ object files must be created using
12031 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12032 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12037 # version 8.0 and above of icpc choke on multiply defined symbols
12038 # if we add $predep_objects and $postdep_objects, however 7.1 and
12039 # earlier do not add the objects themselves.
12040 case `$CC -V 2>&1` in
12042 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12043 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'
12045 *) # Version 8.0 or newer
12048 ia64*) tmp_idyn=' -i_dynamic';;
12050 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12051 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'
12054 archive_cmds_need_lc_CXX=no
12055 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12056 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12057 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12060 # Portland Group C++ compiler
12061 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12062 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'
12064 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12065 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12066 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'
12070 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12071 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'
12073 runpath_var=LD_RUN_PATH
12074 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12075 hardcode_libdir_separator_CXX=:
12077 # Commands to make compiler produce verbose output that lists
12078 # what "hidden" libraries, object files and flags are used when
12079 # linking a shared library.
12081 # There doesn't appear to be a way to prevent this compiler from
12082 # explicitly linking system object files so we need to strip them
12083 # from the output so that they don't get included in the library
12085 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'
12088 case `$CC -V 2>&1 | sed 5q` in
12091 no_undefined_flag_CXX=' -zdefs'
12092 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12093 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'
12094 hardcode_libdir_flag_spec_CXX='-R$libdir'
12095 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'
12097 # Not sure whether something based on
12098 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12100 output_verbose_link_cmd='echo'
12102 # Archives containing C++ object files must be created using
12103 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12104 # necessary to make sure instantiated templates are included
12106 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12113 # FIXME: insert proper C++ library support
12117 # FIXME: insert proper C++ library support
12121 case $cc_basename in
12123 # FIXME: insert proper C++ library support
12127 # FIXME: insert proper C++ library support
12133 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12134 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12136 hardcode_libdir_flag_spec_CXX='-R$libdir'
12137 hardcode_direct_CXX=yes
12138 hardcode_shlibpath_var_CXX=no
12140 # Workaround some broken pre-1.5 toolchains
12141 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12144 # C++ shared libraries are fairly broken
12148 if test -f /usr/libexec/ld.so; then
12149 hardcode_direct_CXX=yes
12150 hardcode_shlibpath_var_CXX=no
12151 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12152 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12153 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12154 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12155 export_dynamic_flag_spec_CXX='${wl}-E'
12156 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12158 output_verbose_link_cmd='echo'
12164 case $cc_basename in
12166 # Kuck and Associates, Inc. (KAI) C++ Compiler
12168 # KCC will only create a shared library if the output file
12169 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12170 # to its proper name (with version) after linking.
12171 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'
12173 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12174 hardcode_libdir_separator_CXX=:
12176 # Archives containing C++ object files must be created using
12177 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12178 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12182 # Rational C++ 2.4.1
12183 # FIXME: insert proper C++ library support
12187 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12188 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'
12190 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12191 hardcode_libdir_separator_CXX=:
12193 # Commands to make compiler produce verbose output that lists
12194 # what "hidden" libraries, object files and flags are used when
12195 # linking a shared library.
12197 # There doesn't appear to be a way to prevent this compiler from
12198 # explicitly linking system object files so we need to strip them
12199 # from the output so that they don't get included in the library
12201 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'
12204 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12205 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12206 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'
12208 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12209 hardcode_libdir_separator_CXX=:
12211 # Commands to make compiler produce verbose output that lists
12212 # what "hidden" libraries, object files and flags are used when
12213 # linking a shared library.
12214 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12217 # FIXME: insert proper C++ library support
12224 case $cc_basename in
12226 # Kuck and Associates, Inc. (KAI) C++ Compiler
12228 # KCC will only create a shared library if the output file
12229 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12230 # to its proper name (with version) after linking.
12231 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'
12233 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12234 hardcode_libdir_separator_CXX=:
12236 # Archives containing C++ object files must be created using
12237 # the KAI C++ compiler.
12238 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12241 # Rational C++ 2.4.1
12242 # FIXME: insert proper C++ library support
12246 allow_undefined_flag_CXX=' -expect_unresolved \*'
12247 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'
12248 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12249 echo "-hidden">> $lib.exp~
12250 $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~
12253 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12254 hardcode_libdir_separator_CXX=:
12256 # Commands to make compiler produce verbose output that lists
12257 # what "hidden" libraries, object files and flags are used when
12258 # linking a shared library.
12260 # There doesn't appear to be a way to prevent this compiler from
12261 # explicitly linking system object files so we need to strip them
12262 # from the output so that they don't get included in the library
12264 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'
12267 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12268 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12269 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'
12271 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12272 hardcode_libdir_separator_CXX=:
12274 # Commands to make compiler produce verbose output that lists
12275 # what "hidden" libraries, object files and flags are used when
12276 # linking a shared library.
12277 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12280 # FIXME: insert proper C++ library support
12287 # FIXME: insert proper C++ library support
12291 case $cc_basename in
12294 # FIXME: insert proper C++ library support
12299 # FIXME: insert proper C++ library support
12303 # FIXME: insert proper C++ library support
12309 case $cc_basename in
12311 # Sun C++ 4.2, 5.x and Centerline C++
12312 archive_cmds_need_lc_CXX=yes
12313 no_undefined_flag_CXX=' -zdefs'
12314 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12315 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12316 $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'
12318 hardcode_libdir_flag_spec_CXX='-R$libdir'
12319 hardcode_shlibpath_var_CXX=no
12321 solaris2.[0-5] | solaris2.[0-5].*) ;;
12323 # The compiler driver will combine and reorder linker options,
12324 # but understands `-z linker_flag'.
12325 # Supported since Solaris 2.6 (maybe 2.5.1?)
12326 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12329 link_all_deplibs_CXX=yes
12331 output_verbose_link_cmd='echo'
12333 # Archives containing C++ object files must be created using
12334 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12335 # necessary to make sure instantiated templates are included
12337 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12340 # Green Hills C++ Compiler
12341 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12343 # The C++ compiler must be used to create the archive.
12344 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12347 # GNU C++ compiler with Solaris linker
12348 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12349 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12350 if $CC --version | grep -v '^2\.7' > /dev/null; then
12351 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12352 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12353 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12355 # Commands to make compiler produce verbose output that lists
12356 # what "hidden" libraries, object files and flags are used when
12357 # linking a shared library.
12358 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12360 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12362 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12363 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12364 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12366 # Commands to make compiler produce verbose output that lists
12367 # what "hidden" libraries, object files and flags are used when
12368 # linking a shared library.
12369 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12372 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12374 solaris2.[0-5] | solaris2.[0-5].*) ;;
12376 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12383 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12384 no_undefined_flag_CXX='${wl}-z,text'
12385 archive_cmds_need_lc_CXX=no
12386 hardcode_shlibpath_var_CXX=no
12387 runpath_var='LD_RUN_PATH'
12389 case $cc_basename in
12391 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12392 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12395 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12396 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12400 sysv5* | sco3.2v5* | sco5v6*)
12401 # Note: We can NOT use -z defs as we might desire, because we do not
12402 # link with -lc, and that would cause any symbols used from libc to
12403 # always be unresolved, which means just about no library would
12404 # ever link correctly. If we're not using GNU ld we use -z text
12405 # though, which does catch some bad symbols but isn't as heavy-handed
12407 # For security reasons, it is highly recommended that you always
12408 # use absolute paths for naming shared libraries, and exclude the
12409 # DT_RUNPATH tag from executables and libraries. But doing so
12410 # requires that you compile everything twice, which is a pain.
12411 # So that behaviour is only enabled if SCOABSPATH is set to a
12412 # non-empty value in the environment. Most likely only useful for
12413 # creating official distributions of packages.
12414 # This is a hack until libtool officially supports absolute path
12415 # names for shared libraries.
12416 no_undefined_flag_CXX='${wl}-z,text'
12417 allow_undefined_flag_CXX='${wl}-z,nodefs'
12418 archive_cmds_need_lc_CXX=no
12419 hardcode_shlibpath_var_CXX=no
12420 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12421 hardcode_libdir_separator_CXX=':'
12422 link_all_deplibs_CXX=yes
12423 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12424 runpath_var='LD_RUN_PATH'
12426 case $cc_basename in
12428 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12429 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12432 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12433 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12438 case $cc_basename in
12440 # NonStop-UX NCC 3.20
12441 # FIXME: insert proper C++ library support
12445 # FIXME: insert proper C++ library support
12451 # FIXME: insert proper C++ library support
12455 # FIXME: insert proper C++ library support
12459 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12460 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12461 test "$ld_shlibs_CXX" = no && can_build_shared=no
12466 cat > conftest.$ac_ext <<EOF
12470 Foo (void) { a = 0; }
12476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12477 (eval $ac_compile) 2>&5
12479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480 (exit $ac_status); }; then
12481 # Parse the compiler output and extract the necessary
12482 # objects, libraries and library flags.
12484 # Sentinel used to keep track of whether or not we are before
12485 # the conftest object file.
12486 pre_test_object_deps_done=no
12488 # The `*' in the case matches for architectures that use `case' in
12489 # $output_verbose_cmd can trigger glob expansion during the loop
12490 # eval without this substitution.
12491 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12493 for p in `eval $output_verbose_link_cmd`; do
12497 # Some compilers place space between "-{L,R}" and the path.
12498 # Remove the space.
12499 if test $p = "-L" \
12500 || test $p = "-R"; then
12507 if test "$pre_test_object_deps_done" = no; then
12510 # Internal compiler library paths should come after those
12511 # provided the user. The postdeps already come after the
12512 # user supplied libs so there is no need to process them.
12513 if test -z "$compiler_lib_search_path_CXX"; then
12514 compiler_lib_search_path_CXX="${prev}${p}"
12516 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12519 # The "-l" case would never come before the object being
12520 # linked, so don't bother handling this case.
12523 if test -z "$postdeps_CXX"; then
12524 postdeps_CXX="${prev}${p}"
12526 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12532 # This assumes that the test object file only shows up
12533 # once in the compiler output.
12534 if test "$p" = "conftest.$objext"; then
12535 pre_test_object_deps_done=yes
12539 if test "$pre_test_object_deps_done" = no; then
12540 if test -z "$predep_objects_CXX"; then
12541 predep_objects_CXX="$p"
12543 predep_objects_CXX="$predep_objects_CXX $p"
12546 if test -z "$postdep_objects_CXX"; then
12547 postdep_objects_CXX="$p"
12549 postdep_objects_CXX="$postdep_objects_CXX $p"
12554 *) ;; # Ignore the rest.
12562 echo "libtool.m4: error: problem compiling CXX test program"
12565 $rm -f confest.$objext
12567 compiler_lib_search_dirs_CXX=
12568 if test -n "$compiler_lib_search_path_CXX"; then
12569 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12572 # PORTME: override above test on systems where it is broken
12575 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12576 # hack all around it, let's just trust "g++" to DTRT.
12577 predep_objects_CXX=
12578 postdep_objects_CXX=
12583 case `$CC -V 2>&1 | sed 5q` in
12587 # The more standards-conforming stlport4 library is
12588 # incompatible with the Cstd library. Avoid specifying
12589 # it if it's in CXXFLAGS. Ignore libCrun as
12590 # -library=stlport4 depends on it.
12591 case " $CXX $CXXFLAGS " in
12592 *" -library=stlport4 "*)
12593 solaris_use_stlport4=yes
12596 if test "$solaris_use_stlport4" != yes; then
12597 postdeps_CXX='-library=Cstd -library=Crun'
12604 case $cc_basename in
12606 # The more standards-conforming stlport4 library is
12607 # incompatible with the Cstd library. Avoid specifying
12608 # it if it's in CXXFLAGS. Ignore libCrun as
12609 # -library=stlport4 depends on it.
12610 case " $CXX $CXXFLAGS " in
12611 *" -library=stlport4 "*)
12612 solaris_use_stlport4=yes
12616 # Adding this requires a known-good setup of shared libraries for
12617 # Sun compiler versions before 5.6, else PIC objects from an old
12618 # archive will be linked into the output, leading to subtle bugs.
12619 if test "$solaris_use_stlport4" != yes; then
12620 postdeps_CXX='-library=Cstd -library=Crun'
12627 case " $postdeps_CXX " in
12628 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12631 lt_prog_compiler_wl_CXX=
12632 lt_prog_compiler_pic_CXX=
12633 lt_prog_compiler_static_CXX=
12635 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12636 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12638 # C++ specific cases for pic, static, wl, etc.
12639 if test "$GXX" = yes; then
12640 lt_prog_compiler_wl_CXX='-Wl,'
12641 lt_prog_compiler_static_CXX='-static'
12645 # All AIX code is PIC.
12646 if test "$host_cpu" = ia64; then
12647 # AIX 5 now supports IA64 processor
12648 lt_prog_compiler_static_CXX='-Bstatic'
12652 # FIXME: we need at least 68020 code to build shared libraries, but
12653 # adding the `-m68020' flag to GCC prevents building anything better,
12655 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12657 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12658 # PIC is the default for these OSes.
12660 mingw* | cygwin* | os2* | pw32*)
12661 # This hack is so that the source file can tell whether it is being
12662 # built for inclusion in a dll (and should export symbols for example).
12663 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12664 # (--disable-auto-import) libraries
12665 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12667 darwin* | rhapsody*)
12668 # PIC is the default on this platform
12669 # Common symbols not allowed in MH_DYLIB files
12670 lt_prog_compiler_pic_CXX='-fno-common'
12673 # DJGPP does not support shared libraries at all
12674 lt_prog_compiler_pic_CXX=
12677 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12678 # Instead, we relocate shared libraries at runtime.
12681 if test -d /usr/nec; then
12682 lt_prog_compiler_pic_CXX=-Kconform_pic
12686 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12687 # not for PA HP-UX.
12692 lt_prog_compiler_pic_CXX='-fPIC'
12697 lt_prog_compiler_pic_CXX='-fPIC'
12703 # All AIX code is PIC.
12704 if test "$host_cpu" = ia64; then
12705 # AIX 5 now supports IA64 processor
12706 lt_prog_compiler_static_CXX='-Bstatic'
12708 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12712 case $cc_basename in
12714 # Green Hills C++ Compiler
12715 # _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"
12720 # PIC is the default on this platform
12721 # Common symbols not allowed in MH_DYLIB files
12722 case $cc_basename in
12724 lt_prog_compiler_pic_CXX='-qnocommon'
12725 lt_prog_compiler_wl_CXX='-Wl,'
12730 case $cc_basename in
12732 lt_prog_compiler_pic_CXX='-KPIC'
12735 # Green Hills C++ Compiler
12736 lt_prog_compiler_pic_CXX='-pic'
12742 freebsd* | dragonfly*)
12743 # FreeBSD uses GNU C++
12745 hpux9* | hpux10* | hpux11*)
12746 case $cc_basename in
12748 lt_prog_compiler_wl_CXX='-Wl,'
12749 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12750 if test "$host_cpu" != ia64; then
12751 lt_prog_compiler_pic_CXX='+Z'
12755 lt_prog_compiler_wl_CXX='-Wl,'
12756 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12762 lt_prog_compiler_pic_CXX='+Z'
12771 # This is c89, which is MS Visual C++ (no shared libs)
12772 # Anyone wants to do a port?
12774 irix5* | irix6* | nonstopux*)
12775 case $cc_basename in
12777 lt_prog_compiler_wl_CXX='-Wl,'
12778 lt_prog_compiler_static_CXX='-non_shared'
12779 # CC pic flag -KPIC is the default.
12785 linux* | k*bsd*-gnu)
12786 case $cc_basename in
12789 lt_prog_compiler_wl_CXX='--backend -Wl,'
12790 lt_prog_compiler_pic_CXX='-fPIC'
12794 lt_prog_compiler_wl_CXX='-Wl,'
12795 lt_prog_compiler_pic_CXX='-KPIC'
12796 lt_prog_compiler_static_CXX='-static'
12799 # Portland Group C++ compiler.
12800 lt_prog_compiler_wl_CXX='-Wl,'
12801 lt_prog_compiler_pic_CXX='-fpic'
12802 lt_prog_compiler_static_CXX='-Bstatic'
12806 # Make sure the PIC flag is empty. It appears that all Alpha
12807 # Linux and Compaq Tru64 Unix objects are PIC.
12808 lt_prog_compiler_pic_CXX=
12809 lt_prog_compiler_static_CXX='-non_shared'
12812 case `$CC -V 2>&1 | sed 5q` in
12815 lt_prog_compiler_pic_CXX='-KPIC'
12816 lt_prog_compiler_static_CXX='-Bstatic'
12817 lt_prog_compiler_wl_CXX='-Qoption ld '
12828 case $cc_basename in
12830 lt_prog_compiler_pic_CXX='-W c,exportall'
12838 osf3* | osf4* | osf5*)
12839 case $cc_basename in
12841 lt_prog_compiler_wl_CXX='--backend -Wl,'
12844 # Rational C++ 2.4.1
12845 lt_prog_compiler_pic_CXX='-pic'
12848 # Digital/Compaq C++
12849 lt_prog_compiler_wl_CXX='-Wl,'
12850 # Make sure the PIC flag is empty. It appears that all Alpha
12851 # Linux and Compaq Tru64 Unix objects are PIC.
12852 lt_prog_compiler_pic_CXX=
12853 lt_prog_compiler_static_CXX='-non_shared'
12862 case $cc_basename in
12864 # Sun C++ 4.2, 5.x and Centerline C++
12865 lt_prog_compiler_pic_CXX='-KPIC'
12866 lt_prog_compiler_static_CXX='-Bstatic'
12867 lt_prog_compiler_wl_CXX='-Qoption ld '
12870 # Green Hills C++ Compiler
12871 lt_prog_compiler_pic_CXX='-PIC'
12878 case $cc_basename in
12881 lt_prog_compiler_pic_CXX='-pic'
12882 lt_prog_compiler_static_CXX='-Bstatic'
12886 lt_prog_compiler_pic_CXX='-pic'
12893 case $cc_basename in
12895 # NonStop-UX NCC 3.20
12896 lt_prog_compiler_pic_CXX='-KPIC'
12902 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12903 case $cc_basename in
12905 lt_prog_compiler_wl_CXX='-Wl,'
12906 lt_prog_compiler_pic_CXX='-KPIC'
12907 lt_prog_compiler_static_CXX='-Bstatic'
12914 lt_prog_compiler_can_build_shared_CXX=no
12919 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12920 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12923 # Check to make sure the PIC flag actually works.
12925 if test -n "$lt_prog_compiler_pic_CXX"; then
12927 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12928 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12929 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12930 echo $ECHO_N "(cached) $ECHO_C" >&6
12932 lt_cv_prog_compiler_pic_works_CXX=no
12933 ac_outfile=conftest.$ac_objext
12934 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12935 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12936 # Insert the option either (1) after the last *FLAGS variable, or
12937 # (2) before a word containing "conftest.", or (3) at the end.
12938 # Note that $ac_compile itself does not contain backslashes and begins
12939 # with a dollar sign (not a hyphen), so the echo should work correctly.
12940 # The option is referenced via a variable to avoid confusing sed.
12941 lt_compile=`echo "$ac_compile" | $SED \
12942 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12943 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12944 -e 's:$: $lt_compiler_flag:'`
12945 (eval echo "\"\$as_me:12945: $lt_compile\"" >&5)
12946 (eval "$lt_compile" 2>conftest.err)
12948 cat conftest.err >&5
12949 echo "$as_me:12949: \$? = $ac_status" >&5
12950 if (exit $ac_status) && test -s "$ac_outfile"; then
12951 # The compiler can only warn and ignore the option if not recognized
12952 # So say no if there are warnings other than the usual output.
12953 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12954 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12955 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12956 lt_cv_prog_compiler_pic_works_CXX=yes
12962 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12963 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12965 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12966 case $lt_prog_compiler_pic_CXX in
12968 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12971 lt_prog_compiler_pic_CXX=
12972 lt_prog_compiler_can_build_shared_CXX=no
12977 # For platforms which do not support PIC, -DPIC is meaningless:
12979 lt_prog_compiler_pic_CXX=
12982 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12987 # Check to make sure the static flag actually works.
12989 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12990 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12991 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12992 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12993 echo $ECHO_N "(cached) $ECHO_C" >&6
12995 lt_cv_prog_compiler_static_works_CXX=no
12996 save_LDFLAGS="$LDFLAGS"
12997 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12998 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12999 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13000 # The linker can only warn and ignore the option if not recognized
13001 # So say no if there are warnings
13002 if test -s conftest.err; then
13003 # Append any errors to the config.log.
13004 cat conftest.err 1>&5
13005 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13006 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13007 if diff conftest.exp conftest.er2 >/dev/null; then
13008 lt_cv_prog_compiler_static_works_CXX=yes
13011 lt_cv_prog_compiler_static_works_CXX=yes
13015 LDFLAGS="$save_LDFLAGS"
13018 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13019 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
13021 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13024 lt_prog_compiler_static_CXX=
13028 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13029 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13030 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13031 echo $ECHO_N "(cached) $ECHO_C" >&6
13033 lt_cv_prog_compiler_c_o_CXX=no
13034 $rm -r conftest 2>/dev/null
13038 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13040 lt_compiler_flag="-o out/conftest2.$ac_objext"
13041 # Insert the option either (1) after the last *FLAGS variable, or
13042 # (2) before a word containing "conftest.", or (3) at the end.
13043 # Note that $ac_compile itself does not contain backslashes and begins
13044 # with a dollar sign (not a hyphen), so the echo should work correctly.
13045 lt_compile=`echo "$ac_compile" | $SED \
13046 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13047 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13048 -e 's:$: $lt_compiler_flag:'`
13049 (eval echo "\"\$as_me:13049: $lt_compile\"" >&5)
13050 (eval "$lt_compile" 2>out/conftest.err)
13052 cat out/conftest.err >&5
13053 echo "$as_me:13053: \$? = $ac_status" >&5
13054 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13056 # The compiler can only warn and ignore the option if not recognized
13057 # So say no if there are warnings
13058 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13059 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13060 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13061 lt_cv_prog_compiler_c_o_CXX=yes
13066 # SGI C++ compiler will create directory out/ii_files/ for
13067 # template instantiation
13068 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13069 $rm out/* && rmdir out
13075 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13076 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13079 hard_links="nottested"
13080 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13081 # do not overwrite the value of need_locks provided by the user
13082 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13083 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13086 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13088 ln conftest.a conftest.b 2>&5 || hard_links=no
13089 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13090 { echo "$as_me:$LINENO: result: $hard_links" >&5
13091 echo "${ECHO_T}$hard_links" >&6; }
13092 if test "$hard_links" = no; then
13093 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13094 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13101 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13102 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13104 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13107 # If we're using GNU nm, then we don't want the "-C" option.
13108 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13109 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13110 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'
13112 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'
13116 export_symbols_cmds_CXX="$ltdll_cmds"
13119 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'
13122 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13125 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13127 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13128 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13129 test "$ld_shlibs_CXX" = no && can_build_shared=no
13132 # Do we need to explicitly link libc?
13134 case "x$archive_cmds_need_lc_CXX" in
13136 # Assume -lc should be added
13137 archive_cmds_need_lc_CXX=yes
13139 if test "$enable_shared" = yes && test "$GCC" = yes; then
13140 case $archive_cmds_CXX in
13142 # FIXME: we may have to deal with multi-command sequences.
13145 # Test whether the compiler implicitly links with -lc since on some
13146 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13147 # to ld, don't add -lc before -lgcc.
13148 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13149 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13151 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13154 (eval $ac_compile) 2>&5
13156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157 (exit $ac_status); } 2>conftest.err; then
13160 libobjs=conftest.$ac_objext
13162 wl=$lt_prog_compiler_wl_CXX
13163 pic_flag=$lt_prog_compiler_pic_CXX
13169 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13170 allow_undefined_flag_CXX=
13171 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13172 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13175 (exit $ac_status); }
13177 archive_cmds_need_lc_CXX=no
13179 archive_cmds_need_lc_CXX=yes
13181 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13183 cat conftest.err 1>&5
13186 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13187 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13194 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13195 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13196 library_names_spec=
13197 libname_spec='lib$name'
13201 postuninstall_cmds=
13205 shlibpath_overrides_runpath=unknown
13207 dynamic_linker="$host_os ld.so"
13208 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13210 need_lib_prefix=unknown
13211 hardcode_into_libs=no
13213 # when you set need_version to no, make sure it does not cause -set_version
13214 # flags to be left without arguments
13215 need_version=unknown
13220 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13221 shlibpath_var=LIBPATH
13223 # AIX 3 has no versioning support, so we append a major version to the name.
13224 soname_spec='${libname}${release}${shared_ext}$major'
13231 hardcode_into_libs=yes
13232 if test "$host_cpu" = ia64; then
13233 # AIX 5 supports IA64
13234 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13235 shlibpath_var=LD_LIBRARY_PATH
13237 # With GCC up to 2.95.x, collect2 would create an import file
13238 # for dependence libraries. The import file would start with
13239 # the line `#! .'. This would cause the generated library to
13240 # depend on `.', always an invalid library. This was fixed in
13241 # development snapshots of GCC prior to 3.0.
13243 aix4 | aix4.[01] | aix4.[01].*)
13244 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13246 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13249 can_build_shared=no
13253 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13254 # soname into executable. Probably we can add versioning support to
13255 # collect2, so additional links can be useful in future.
13256 if test "$aix_use_runtimelinking" = yes; then
13257 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13258 # instead of lib<name>.a to let people know that these are not
13259 # typical AIX shared libraries.
13260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13262 # We preserve .a as extension for shared libraries through AIX4.2
13263 # and later when we are not doing run time linking.
13264 library_names_spec='${libname}${release}.a $libname.a'
13265 soname_spec='${libname}${release}${shared_ext}$major'
13267 shlibpath_var=LIBPATH
13272 library_names_spec='$libname.ixlibrary $libname.a'
13273 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13274 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'
13278 library_names_spec='${libname}${shared_ext}'
13279 dynamic_linker="$host_os ld.so"
13280 shlibpath_var=LIBRARY_PATH
13286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13287 soname_spec='${libname}${release}${shared_ext}$major'
13288 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13289 shlibpath_var=LD_LIBRARY_PATH
13290 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13291 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13292 # the default ld.so.conf also contains /usr/contrib/lib and
13293 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13294 # libtool to hard-code these into programs
13297 cygwin* | mingw* | pw32*)
13298 version_type=windows
13303 case $GCC,$host_os in
13304 yes,cygwin* | yes,mingw* | yes,pw32*)
13305 library_names_spec='$libname.dll.a'
13306 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13307 postinstall_cmds='base_file=`basename \${file}`~
13308 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13309 dldir=$destdir/`dirname \$dlpath`~
13310 test -d \$dldir || mkdir -p \$dldir~
13311 $install_prog $dir/$dlname \$dldir/$dlname~
13312 chmod a+x \$dldir/$dlname'
13313 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13314 dlpath=$dir/\$dldll~
13316 shlibpath_overrides_runpath=yes
13320 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13321 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13322 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13325 # MinGW DLLs use traditional 'lib' prefix
13326 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13327 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13328 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13329 # It is most probably a Windows format PATH printed by
13330 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13331 # path with ; separators, and with drive letters. We can handle the
13332 # drive letters (cygwin fileutils understands them), so leave them,
13333 # especially as we might pass files found there to a mingw objdump,
13334 # which wouldn't understand a cygwinified path. Ahh.
13335 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13337 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13341 # pw32 DLLs use 'pw' prefix rather than 'lib'
13342 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13348 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13351 dynamic_linker='Win32 ld.exe'
13352 # FIXME: first we should search . and the directory the executable is in
13356 darwin* | rhapsody*)
13357 dynamic_linker="$host_os dyld"
13358 version_type=darwin
13361 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13362 soname_spec='${libname}${release}${major}$shared_ext'
13363 shlibpath_overrides_runpath=yes
13364 shlibpath_var=DYLD_LIBRARY_PATH
13365 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13367 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13375 soname_spec='${libname}${release}${shared_ext}$major'
13376 shlibpath_var=LD_LIBRARY_PATH
13383 freebsd* | dragonfly*)
13384 # DragonFly does not have aout. When/if they implement a new
13385 # versioning mechanism, adjust this.
13386 if test -x /usr/bin/objformat; then
13387 objformat=`/usr/bin/objformat`
13390 freebsd[123]*) objformat=aout ;;
13391 *) objformat=elf ;;
13394 version_type=freebsd-$objformat
13395 case $version_type in
13397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13402 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13406 shlibpath_var=LD_LIBRARY_PATH
13409 shlibpath_overrides_runpath=yes
13411 freebsd3.[01]* | freebsdelf3.[01]*)
13412 shlibpath_overrides_runpath=yes
13413 hardcode_into_libs=yes
13415 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13416 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13417 shlibpath_overrides_runpath=no
13418 hardcode_into_libs=yes
13420 *) # from 4.6 on, and DragonFly
13421 shlibpath_overrides_runpath=yes
13422 hardcode_into_libs=yes
13431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13432 soname_spec='${libname}${release}${shared_ext}$major'
13433 shlibpath_var=LD_LIBRARY_PATH
13434 hardcode_into_libs=yes
13437 hpux9* | hpux10* | hpux11*)
13438 # Give a soname corresponding to the major version so that dld.sl refuses to
13439 # link against other versions.
13446 hardcode_into_libs=yes
13447 dynamic_linker="$host_os dld.so"
13448 shlibpath_var=LD_LIBRARY_PATH
13449 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13451 soname_spec='${libname}${release}${shared_ext}$major'
13452 if test "X$HPUX_IA64_MODE" = X32; then
13453 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13455 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13457 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13461 hardcode_into_libs=yes
13462 dynamic_linker="$host_os dld.sl"
13463 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13464 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13466 soname_spec='${libname}${release}${shared_ext}$major'
13467 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13468 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13472 dynamic_linker="$host_os dld.sl"
13473 shlibpath_var=SHLIB_PATH
13474 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13476 soname_spec='${libname}${release}${shared_ext}$major'
13479 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13480 postinstall_cmds='chmod 555 $lib'
13487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13488 soname_spec='${libname}${release}${shared_ext}$major'
13489 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13490 shlibpath_var=LD_LIBRARY_PATH
13491 shlibpath_overrides_runpath=no
13492 hardcode_into_libs=yes
13495 irix5* | irix6* | nonstopux*)
13497 nonstopux*) version_type=nonstopux ;;
13499 if test "$lt_cv_prog_gnu_ld" = yes; then
13507 soname_spec='${libname}${release}${shared_ext}$major'
13508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13510 irix5* | nonstopux*)
13511 libsuff= shlibsuff=
13514 case $LD in # libtool.m4 will add one of these switches to LD
13515 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13516 libsuff= shlibsuff= libmagic=32-bit;;
13517 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13518 libsuff=32 shlibsuff=N32 libmagic=N32;;
13519 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13520 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13521 *) libsuff= shlibsuff= libmagic=never-match;;
13525 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13526 shlibpath_overrides_runpath=no
13527 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13528 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13529 hardcode_into_libs=yes
13532 # No shared lib support for Linux oldld, aout, or coff.
13533 linux*oldld* | linux*aout* | linux*coff*)
13537 # This must be Linux ELF.
13538 linux* | k*bsd*-gnu)
13542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13543 soname_spec='${libname}${release}${shared_ext}$major'
13544 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13545 shlibpath_var=LD_LIBRARY_PATH
13546 shlibpath_overrides_runpath=no
13547 # This implies no fast_install, which is unacceptable.
13548 # Some rework will be needed to allow for fast_install
13549 # before this can be enabled.
13550 hardcode_into_libs=yes
13552 # Append ld.so.conf contents to the search path
13553 if test -f /etc/ld.so.conf; then
13554 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' ' '`
13555 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13558 # We used to test for /lib/ld.so.1 and disable shared libraries on
13559 # powerpc, because MkLinux only supported shared libraries with the
13560 # GNU dynamic linker. Since this was broken with cross compilers,
13561 # most powerpc-linux boxes support dynamic linking these days and
13562 # people can always --disable-shared, the test was removed, and we
13563 # assume the GNU/Linux dynamic linker is in use.
13564 dynamic_linker='GNU/Linux ld.so'
13571 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13573 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13574 dynamic_linker='NetBSD (a.out) ld.so'
13576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13577 soname_spec='${libname}${release}${shared_ext}$major'
13578 dynamic_linker='NetBSD ld.elf_so'
13580 shlibpath_var=LD_LIBRARY_PATH
13581 shlibpath_overrides_runpath=yes
13582 hardcode_into_libs=yes
13587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13588 shlibpath_var=LD_LIBRARY_PATH
13589 shlibpath_overrides_runpath=yes
13596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13597 soname_spec='${libname}${release}${shared_ext}$major'
13598 shlibpath_var=LD_LIBRARY_PATH
13599 shlibpath_overrides_runpath=yes
13604 sys_lib_dlsearch_path_spec="/usr/lib"
13606 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13608 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13609 *) need_version=no ;;
13611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13612 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13613 shlibpath_var=LD_LIBRARY_PATH
13614 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13616 openbsd2.[89] | openbsd2.[89].*)
13617 shlibpath_overrides_runpath=no
13620 shlibpath_overrides_runpath=yes
13624 shlibpath_overrides_runpath=yes
13629 libname_spec='$name'
13632 library_names_spec='$libname${shared_ext} $libname.a'
13633 dynamic_linker='OS/2 ld.exe'
13634 shlibpath_var=LIBPATH
13637 osf3* | osf4* | osf5*)
13641 soname_spec='${libname}${release}${shared_ext}$major'
13642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13643 shlibpath_var=LD_LIBRARY_PATH
13644 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13645 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13657 soname_spec='${libname}${release}${shared_ext}$major'
13658 shlibpath_var=LD_LIBRARY_PATH
13659 shlibpath_overrides_runpath=yes
13660 hardcode_into_libs=yes
13661 # ldd complains unless libraries are executable
13662 postinstall_cmds='chmod +x $lib'
13667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13668 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13669 shlibpath_var=LD_LIBRARY_PATH
13670 shlibpath_overrides_runpath=yes
13671 if test "$with_gnu_ld" = yes; then
13679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13680 soname_spec='${libname}${release}${shared_ext}$major'
13681 shlibpath_var=LD_LIBRARY_PATH
13682 case $host_vendor in
13684 shlibpath_overrides_runpath=no
13686 export_dynamic_flag_spec='${wl}-Blargedynsym'
13687 runpath_var=LD_RUN_PATH
13695 shlibpath_overrides_runpath=no
13696 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13702 if test -d /usr/nec ;then
13704 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13705 soname_spec='$libname${shared_ext}.$major'
13706 shlibpath_var=LD_LIBRARY_PATH
13710 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13711 version_type=freebsd-elf
13714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13715 soname_spec='${libname}${release}${shared_ext}$major'
13716 shlibpath_var=LD_LIBRARY_PATH
13717 hardcode_into_libs=yes
13718 if test "$with_gnu_ld" = yes; then
13719 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13720 shlibpath_overrides_runpath=no
13722 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13723 shlibpath_overrides_runpath=yes
13726 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13730 sys_lib_dlsearch_path_spec='/usr/lib'
13735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13736 soname_spec='${libname}${release}${shared_ext}$major'
13737 shlibpath_var=LD_LIBRARY_PATH
13744 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13745 echo "${ECHO_T}$dynamic_linker" >&6; }
13746 test "$dynamic_linker" = no && can_build_shared=no
13748 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13749 echo $ECHO_N "(cached) $ECHO_C" >&6
13751 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13754 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13755 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13756 echo $ECHO_N "(cached) $ECHO_C" >&6
13758 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13761 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13763 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13764 if test "$GCC" = yes; then
13765 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13768 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13769 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13770 hardcode_action_CXX=
13771 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13772 test -n "$runpath_var_CXX" || \
13773 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13775 # We can hardcode non-existant directories.
13776 if test "$hardcode_direct_CXX" != no &&
13777 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13778 # have to relink, otherwise we might link with an installed library
13779 # when we should be linking with a yet-to-be-installed one
13780 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13781 test "$hardcode_minus_L_CXX" != no; then
13782 # Linking always hardcodes the temporary library directory.
13783 hardcode_action_CXX=relink
13785 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13786 hardcode_action_CXX=immediate
13789 # We cannot hardcode anything, or else we can only hardcode existing
13791 hardcode_action_CXX=unsupported
13793 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13794 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13796 if test "$hardcode_action_CXX" = relink; then
13797 # Fast installation is not supported
13798 enable_fast_install=no
13799 elif test "$shlibpath_overrides_runpath" = yes ||
13800 test "$enable_shared" = no; then
13801 # Fast installation is not necessary
13802 enable_fast_install=needless
13806 # The else clause should only fire when bootstrapping the
13807 # libtool distribution, otherwise you forgot to ship ltmain.sh
13808 # with your package, and you will get complaints that there are
13809 # no rules to generate ltmain.sh.
13810 if test -f "$ltmain"; then
13811 # See if we are running on zsh, and set the options which allow our commands through
13812 # without removal of \ escapes.
13813 if test -n "${ZSH_VERSION+set}" ; then
13814 setopt NO_GLOB_SUBST
13816 # Now quote all the things that may contain metacharacters while being
13817 # careful not to overquote the AC_SUBSTed values. We take copies of the
13818 # variables and quote the copies for generation of the libtool script.
13819 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13821 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13822 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13823 deplibs_check_method reload_flag reload_cmds need_locks \
13824 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13825 lt_cv_sys_global_symbol_to_c_name_address \
13826 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13827 old_postinstall_cmds old_postuninstall_cmds \
13831 lt_prog_compiler_wl_CXX \
13832 lt_prog_compiler_pic_CXX \
13833 lt_prog_compiler_static_CXX \
13834 lt_prog_compiler_no_builtin_flag_CXX \
13835 export_dynamic_flag_spec_CXX \
13836 thread_safe_flag_spec_CXX \
13837 whole_archive_flag_spec_CXX \
13838 enable_shared_with_static_runtimes_CXX \
13839 old_archive_cmds_CXX \
13840 old_archive_from_new_cmds_CXX \
13841 predep_objects_CXX \
13842 postdep_objects_CXX \
13845 compiler_lib_search_path_CXX \
13846 compiler_lib_search_dirs_CXX \
13848 archive_expsym_cmds_CXX \
13849 postinstall_cmds_CXX \
13850 postuninstall_cmds_CXX \
13851 old_archive_from_expsyms_cmds_CXX \
13852 allow_undefined_flag_CXX \
13853 no_undefined_flag_CXX \
13854 export_symbols_cmds_CXX \
13855 hardcode_libdir_flag_spec_CXX \
13856 hardcode_libdir_flag_spec_ld_CXX \
13857 hardcode_libdir_separator_CXX \
13858 hardcode_automatic_CXX \
13860 module_expsym_cmds_CXX \
13861 lt_cv_prog_compiler_c_o_CXX \
13862 fix_srcfile_path_CXX \
13863 exclude_expsyms_CXX \
13864 include_expsyms_CXX; do
13867 old_archive_cmds_CXX | \
13868 old_archive_from_new_cmds_CXX | \
13869 archive_cmds_CXX | \
13870 archive_expsym_cmds_CXX | \
13871 module_cmds_CXX | \
13872 module_expsym_cmds_CXX | \
13873 old_archive_from_expsyms_cmds_CXX | \
13874 export_symbols_cmds_CXX | \
13875 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13876 postinstall_cmds | postuninstall_cmds | \
13877 old_postinstall_cmds | old_postuninstall_cmds | \
13878 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13879 # Double-quote double-evaled strings.
13880 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13883 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13889 *'\$0 --fallback-echo"')
13890 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13896 cat <<__EOF__ >> "$cfgfile"
13897 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13899 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13901 # Shell to use when invoking shell scripts.
13904 # Whether or not to build shared libraries.
13905 build_libtool_libs=$enable_shared
13907 # Whether or not to build static libraries.
13908 build_old_libs=$enable_static
13910 # Whether or not to add -lc for building shared libraries.
13911 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13913 # Whether or not to disallow shared libs when runtime libs are static
13914 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13916 # Whether or not to optimize for fast installation.
13917 fast_install=$enable_fast_install
13920 host_alias=$host_alias
13924 # The build system.
13925 build_alias=$build_alias
13929 # An echo program that does not interpret backslashes.
13934 AR_FLAGS=$lt_AR_FLAGS
13939 # LTCC compiler flags.
13940 LTCFLAGS=$lt_LTCFLAGS
13942 # A language-specific compiler.
13943 CC=$lt_compiler_CXX
13945 # Is the compiler the GNU C compiler?
13951 # The linker used to build libraries.
13954 # Whether we need hard or soft links.
13957 # A BSD-compatible nm program.
13960 # A symbol stripping program
13963 # Used to examine libraries when file_magic_cmd begins "file"
13964 MAGIC_CMD=$MAGIC_CMD
13966 # Used on cygwin: DLL creation program.
13969 # Used on cygwin: object dumper.
13972 # Used on cygwin: assembler.
13975 # The name of the directory that contains temporary libtool files.
13978 # How to create reloadable object files.
13979 reload_flag=$lt_reload_flag
13980 reload_cmds=$lt_reload_cmds
13982 # How to pass a linker flag through the compiler.
13983 wl=$lt_lt_prog_compiler_wl_CXX
13985 # Object file suffix (normally "o").
13986 objext="$ac_objext"
13988 # Old archive suffix (normally "a").
13991 # Shared library suffix (normally ".so").
13992 shrext_cmds='$shrext_cmds'
13994 # Executable file suffix (normally "").
13997 # Additional compiler flags for building library objects.
13998 pic_flag=$lt_lt_prog_compiler_pic_CXX
14001 # What is the maximum length of a command?
14002 max_cmd_len=$lt_cv_sys_max_cmd_len
14004 # Does compiler simultaneously support -c and -o options?
14005 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14007 # Must we lock files when doing compilation?
14008 need_locks=$lt_need_locks
14010 # Do we need the lib prefix for modules?
14011 need_lib_prefix=$need_lib_prefix
14013 # Do we need a version for libraries?
14014 need_version=$need_version
14016 # Whether dlopen is supported.
14017 dlopen_support=$enable_dlopen
14019 # Whether dlopen of programs is supported.
14020 dlopen_self=$enable_dlopen_self
14022 # Whether dlopen of statically linked programs is supported.
14023 dlopen_self_static=$enable_dlopen_self_static
14025 # Compiler flag to prevent dynamic linking.
14026 link_static_flag=$lt_lt_prog_compiler_static_CXX
14028 # Compiler flag to turn off builtin functions.
14029 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14031 # Compiler flag to allow reflexive dlopens.
14032 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14034 # Compiler flag to generate shared objects directly from archives.
14035 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14037 # Compiler flag to generate thread-safe objects.
14038 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14040 # Library versioning type.
14041 version_type=$version_type
14043 # Format of library name prefix.
14044 libname_spec=$lt_libname_spec
14046 # List of archive names. First name is the real one, the rest are links.
14047 # The last name is the one that the linker finds with -lNAME.
14048 library_names_spec=$lt_library_names_spec
14050 # The coded name of the library, if different from the real name.
14051 soname_spec=$lt_soname_spec
14053 # Commands used to build and install an old-style archive.
14055 old_archive_cmds=$lt_old_archive_cmds_CXX
14056 old_postinstall_cmds=$lt_old_postinstall_cmds
14057 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14059 # Create an old-style archive from a shared archive.
14060 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14062 # Create a temporary old-style archive to link instead of a shared archive.
14063 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14065 # Commands used to build and install a shared archive.
14066 archive_cmds=$lt_archive_cmds_CXX
14067 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14068 postinstall_cmds=$lt_postinstall_cmds
14069 postuninstall_cmds=$lt_postuninstall_cmds
14071 # Commands used to build a loadable module (assumed same as above if empty)
14072 module_cmds=$lt_module_cmds_CXX
14073 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14075 # Commands to strip libraries.
14076 old_striplib=$lt_old_striplib
14077 striplib=$lt_striplib
14079 # Dependencies to place before the objects being linked to create a
14081 predep_objects=$lt_predep_objects_CXX
14083 # Dependencies to place after the objects being linked to create a
14085 postdep_objects=$lt_postdep_objects_CXX
14087 # Dependencies to place before the objects being linked to create a
14089 predeps=$lt_predeps_CXX
14091 # Dependencies to place after the objects being linked to create a
14093 postdeps=$lt_postdeps_CXX
14095 # The directories searched by this compiler when creating a shared
14097 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14099 # The library search path used internally by the compiler when linking
14100 # a shared library.
14101 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14103 # Method to check whether dependent libraries are shared objects.
14104 deplibs_check_method=$lt_deplibs_check_method
14106 # Command to use when deplibs_check_method == file_magic.
14107 file_magic_cmd=$lt_file_magic_cmd
14109 # Flag that allows shared libraries with undefined symbols to be built.
14110 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14112 # Flag that forces no undefined symbols.
14113 no_undefined_flag=$lt_no_undefined_flag_CXX
14115 # Commands used to finish a libtool library installation in a directory.
14116 finish_cmds=$lt_finish_cmds
14118 # Same as above, but a single script fragment to be evaled but not shown.
14119 finish_eval=$lt_finish_eval
14121 # Take the output of nm and produce a listing of raw symbols and C names.
14122 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14124 # Transform the output of nm in a proper C declaration
14125 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14127 # Transform the output of nm in a C name address pair
14128 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14130 # This is the shared library runtime path variable.
14131 runpath_var=$runpath_var
14133 # This is the shared library path variable.
14134 shlibpath_var=$shlibpath_var
14136 # Is shlibpath searched before the hard-coded library search path?
14137 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14139 # How to hardcode a shared library path into an executable.
14140 hardcode_action=$hardcode_action_CXX
14142 # Whether we should hardcode library paths into libraries.
14143 hardcode_into_libs=$hardcode_into_libs
14145 # Flag to hardcode \$libdir into a binary during linking.
14146 # This must work even if \$libdir does not exist.
14147 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14149 # If ld is used when linking, flag to hardcode \$libdir into
14150 # a binary during linking. This must work even if \$libdir does
14152 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14154 # Whether we need a single -rpath flag with a separated argument.
14155 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14157 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14158 # resulting binary.
14159 hardcode_direct=$hardcode_direct_CXX
14161 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14162 # resulting binary.
14163 hardcode_minus_L=$hardcode_minus_L_CXX
14165 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14166 # the resulting binary.
14167 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14169 # Set to yes if building a shared library automatically hardcodes DIR into the library
14170 # and all subsequent libraries and executables linked against it.
14171 hardcode_automatic=$hardcode_automatic_CXX
14173 # Variables whose values should be saved in libtool wrapper scripts and
14174 # restored at relink time.
14175 variables_saved_for_relink="$variables_saved_for_relink"
14177 # Whether libtool must link a program against all its dependency libraries.
14178 link_all_deplibs=$link_all_deplibs_CXX
14180 # Compile-time system search path for libraries
14181 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14183 # Run-time system search path for libraries
14184 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14186 # Fix the shell variable \$srcfile for the compiler.
14187 fix_srcfile_path=$lt_fix_srcfile_path
14189 # Set to yes if exported symbols are required.
14190 always_export_symbols=$always_export_symbols_CXX
14192 # The commands to list exported symbols.
14193 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14195 # The commands to extract the exported symbol list from a shared archive.
14196 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14198 # Symbols that should not be listed in the preloaded symbols.
14199 exclude_expsyms=$lt_exclude_expsyms_CXX
14201 # Symbols that must always be exported.
14202 include_expsyms=$lt_include_expsyms_CXX
14204 # ### END LIBTOOL TAG CONFIG: $tagname
14210 # If there is no Makefile yet, we rely on a make rule to execute
14211 # `config.status --recheck' to rerun these tests and create the
14212 # libtool script then.
14213 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14214 if test -f "$ltmain_in"; then
14215 test -f Makefile && make "$ltmain"
14221 ac_cpp='$CPP $CPPFLAGS'
14222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14230 with_gnu_ldcxx=$with_gnu_ld
14231 with_gnu_ld=$lt_save_with_gnu_ld
14232 lt_cv_path_LDCXX=$lt_cv_path_LD
14233 lt_cv_path_LD=$lt_save_path_LD
14234 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14235 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14243 if test -n "$F77" && test "X$F77" != "Xno"; then
14246 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14247 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14248 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14251 archive_cmds_need_lc_F77=no
14252 allow_undefined_flag_F77=
14253 always_export_symbols_F77=no
14254 archive_expsym_cmds_F77=
14255 export_dynamic_flag_spec_F77=
14256 hardcode_direct_F77=no
14257 hardcode_libdir_flag_spec_F77=
14258 hardcode_libdir_flag_spec_ld_F77=
14259 hardcode_libdir_separator_F77=
14260 hardcode_minus_L_F77=no
14261 hardcode_automatic_F77=no
14263 module_expsym_cmds_F77=
14264 link_all_deplibs_F77=unknown
14265 old_archive_cmds_F77=$old_archive_cmds
14266 no_undefined_flag_F77=
14267 whole_archive_flag_spec_F77=
14268 enable_shared_with_static_runtimes_F77=no
14270 # Source file extension for f77 test sources.
14273 # Object file extension for compiled f77 test sources.
14277 # Code to be used in simple compile tests
14278 lt_simple_compile_test_code="\
14284 # Code to be used in simple link tests
14285 lt_simple_link_test_code="\
14290 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14292 # If no C compiler was specified, use CC.
14295 # If no C compiler flags were specified, use CFLAGS.
14296 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14298 # Allow CC to be a program name with arguments.
14302 # save warnings/boilerplate of simple test code
14303 ac_outfile=conftest.$ac_objext
14304 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14305 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14306 _lt_compiler_boilerplate=`cat conftest.err`
14309 ac_outfile=conftest.$ac_objext
14310 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14311 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14312 _lt_linker_boilerplate=`cat conftest.err`
14316 # Allow CC to be a program name with arguments.
14321 for cc_temp in $compiler""; do
14323 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14324 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14329 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14332 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14333 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14334 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14335 echo "${ECHO_T}$can_build_shared" >&6; }
14337 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14338 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14339 test "$can_build_shared" = "no" && enable_shared=no
14341 # On AIX, shared libraries and static libraries use the same namespace, and
14342 # are all built from PIC.
14345 test "$enable_shared" = yes && enable_static=no
14346 if test -n "$RANLIB"; then
14347 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14348 postinstall_cmds='$RANLIB $lib'
14352 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14353 test "$enable_shared" = yes && enable_static=no
14357 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14358 echo "${ECHO_T}$enable_shared" >&6; }
14360 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14361 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14362 # Make sure either enable_shared or enable_static is yes.
14363 test "$enable_shared" = yes || enable_static=yes
14364 { echo "$as_me:$LINENO: result: $enable_static" >&5
14365 echo "${ECHO_T}$enable_static" >&6; }
14370 lt_prog_compiler_wl_F77=
14371 lt_prog_compiler_pic_F77=
14372 lt_prog_compiler_static_F77=
14374 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14375 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14377 if test "$GCC" = yes; then
14378 lt_prog_compiler_wl_F77='-Wl,'
14379 lt_prog_compiler_static_F77='-static'
14383 # All AIX code is PIC.
14384 if test "$host_cpu" = ia64; then
14385 # AIX 5 now supports IA64 processor
14386 lt_prog_compiler_static_F77='-Bstatic'
14391 # FIXME: we need at least 68020 code to build shared libraries, but
14392 # adding the `-m68020' flag to GCC prevents building anything better,
14394 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14397 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14398 # PIC is the default for these OSes.
14401 mingw* | cygwin* | pw32* | os2*)
14402 # This hack is so that the source file can tell whether it is being
14403 # built for inclusion in a dll (and should export symbols for example).
14404 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14405 # (--disable-auto-import) libraries
14406 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14409 darwin* | rhapsody*)
14410 # PIC is the default on this platform
14411 # Common symbols not allowed in MH_DYLIB files
14412 lt_prog_compiler_pic_F77='-fno-common'
14416 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14417 # Instead, we relocate shared libraries at runtime.
14421 # Just because we use GCC doesn't mean we suddenly get shared libraries
14422 # on systems that don't support them.
14423 lt_prog_compiler_can_build_shared_F77=no
14428 if test -d /usr/nec; then
14429 lt_prog_compiler_pic_F77=-Kconform_pic
14434 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14435 # not for PA HP-UX.
14441 lt_prog_compiler_pic_F77='-fPIC'
14447 lt_prog_compiler_pic_F77='-fPIC'
14451 # PORTME Check for flag to pass linker flags through the system compiler.
14454 lt_prog_compiler_wl_F77='-Wl,'
14455 if test "$host_cpu" = ia64; then
14456 # AIX 5 now supports IA64 processor
14457 lt_prog_compiler_static_F77='-Bstatic'
14459 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14463 # PIC is the default on this platform
14464 # Common symbols not allowed in MH_DYLIB files
14465 case $cc_basename in
14467 lt_prog_compiler_pic_F77='-qnocommon'
14468 lt_prog_compiler_wl_F77='-Wl,'
14473 mingw* | cygwin* | pw32* | os2*)
14474 # This hack is so that the source file can tell whether it is being
14475 # built for inclusion in a dll (and should export symbols for example).
14476 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14479 hpux9* | hpux10* | hpux11*)
14480 lt_prog_compiler_wl_F77='-Wl,'
14481 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14482 # not for PA HP-UX.
14488 lt_prog_compiler_pic_F77='+Z'
14491 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14492 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14495 irix5* | irix6* | nonstopux*)
14496 lt_prog_compiler_wl_F77='-Wl,'
14497 # PIC (with -KPIC) is the default.
14498 lt_prog_compiler_static_F77='-non_shared'
14502 lt_prog_compiler_pic_F77='-KPIC'
14503 lt_prog_compiler_static_F77='-Bstatic'
14506 linux* | k*bsd*-gnu)
14507 case $cc_basename in
14509 lt_prog_compiler_wl_F77='-Wl,'
14510 lt_prog_compiler_pic_F77='-KPIC'
14511 lt_prog_compiler_static_F77='-static'
14513 pgcc* | pgf77* | pgf90* | pgf95*)
14514 # Portland Group compilers (*not* the Pentium gcc compiler,
14515 # which looks to be a dead project)
14516 lt_prog_compiler_wl_F77='-Wl,'
14517 lt_prog_compiler_pic_F77='-fpic'
14518 lt_prog_compiler_static_F77='-Bstatic'
14521 lt_prog_compiler_wl_F77='-Wl,'
14522 # All Alpha code is PIC.
14523 lt_prog_compiler_static_F77='-non_shared'
14526 case `$CC -V 2>&1 | sed 5q` in
14529 lt_prog_compiler_pic_F77='-KPIC'
14530 lt_prog_compiler_static_F77='-Bstatic'
14531 lt_prog_compiler_wl_F77='-Wl,'
14534 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14535 lt_prog_compiler_pic_F77='-KPIC'
14536 lt_prog_compiler_static_F77='-Bstatic'
14537 lt_prog_compiler_wl_F77=''
14544 osf3* | osf4* | osf5*)
14545 lt_prog_compiler_wl_F77='-Wl,'
14546 # All OSF/1 code is PIC.
14547 lt_prog_compiler_static_F77='-non_shared'
14551 lt_prog_compiler_static_F77='-non_shared'
14555 lt_prog_compiler_pic_F77='-KPIC'
14556 lt_prog_compiler_static_F77='-Bstatic'
14557 case $cc_basename in
14558 f77* | f90* | f95*)
14559 lt_prog_compiler_wl_F77='-Qoption ld ';;
14561 lt_prog_compiler_wl_F77='-Wl,';;
14566 lt_prog_compiler_wl_F77='-Qoption ld '
14567 lt_prog_compiler_pic_F77='-PIC'
14568 lt_prog_compiler_static_F77='-Bstatic'
14571 sysv4 | sysv4.2uw2* | sysv4.3*)
14572 lt_prog_compiler_wl_F77='-Wl,'
14573 lt_prog_compiler_pic_F77='-KPIC'
14574 lt_prog_compiler_static_F77='-Bstatic'
14578 if test -d /usr/nec ;then
14579 lt_prog_compiler_pic_F77='-Kconform_pic'
14580 lt_prog_compiler_static_F77='-Bstatic'
14584 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14585 lt_prog_compiler_wl_F77='-Wl,'
14586 lt_prog_compiler_pic_F77='-KPIC'
14587 lt_prog_compiler_static_F77='-Bstatic'
14591 lt_prog_compiler_wl_F77='-Wl,'
14592 lt_prog_compiler_can_build_shared_F77=no
14596 lt_prog_compiler_pic_F77='-pic'
14597 lt_prog_compiler_static_F77='-Bstatic'
14601 lt_prog_compiler_can_build_shared_F77=no
14606 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14607 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14610 # Check to make sure the PIC flag actually works.
14612 if test -n "$lt_prog_compiler_pic_F77"; then
14614 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14615 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14616 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14617 echo $ECHO_N "(cached) $ECHO_C" >&6
14619 lt_cv_prog_compiler_pic_works_F77=no
14620 ac_outfile=conftest.$ac_objext
14621 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14622 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14623 # Insert the option either (1) after the last *FLAGS variable, or
14624 # (2) before a word containing "conftest.", or (3) at the end.
14625 # Note that $ac_compile itself does not contain backslashes and begins
14626 # with a dollar sign (not a hyphen), so the echo should work correctly.
14627 # The option is referenced via a variable to avoid confusing sed.
14628 lt_compile=`echo "$ac_compile" | $SED \
14629 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14630 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14631 -e 's:$: $lt_compiler_flag:'`
14632 (eval echo "\"\$as_me:14632: $lt_compile\"" >&5)
14633 (eval "$lt_compile" 2>conftest.err)
14635 cat conftest.err >&5
14636 echo "$as_me:14636: \$? = $ac_status" >&5
14637 if (exit $ac_status) && test -s "$ac_outfile"; then
14638 # The compiler can only warn and ignore the option if not recognized
14639 # So say no if there are warnings other than the usual output.
14640 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14641 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14642 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14643 lt_cv_prog_compiler_pic_works_F77=yes
14649 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14650 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14652 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14653 case $lt_prog_compiler_pic_F77 in
14655 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14658 lt_prog_compiler_pic_F77=
14659 lt_prog_compiler_can_build_shared_F77=no
14664 # For platforms which do not support PIC, -DPIC is meaningless:
14666 lt_prog_compiler_pic_F77=
14669 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14674 # Check to make sure the static flag actually works.
14676 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14677 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14678 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14679 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14680 echo $ECHO_N "(cached) $ECHO_C" >&6
14682 lt_cv_prog_compiler_static_works_F77=no
14683 save_LDFLAGS="$LDFLAGS"
14684 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14685 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14686 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14687 # The linker can only warn and ignore the option if not recognized
14688 # So say no if there are warnings
14689 if test -s conftest.err; then
14690 # Append any errors to the config.log.
14691 cat conftest.err 1>&5
14692 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14693 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14694 if diff conftest.exp conftest.er2 >/dev/null; then
14695 lt_cv_prog_compiler_static_works_F77=yes
14698 lt_cv_prog_compiler_static_works_F77=yes
14702 LDFLAGS="$save_LDFLAGS"
14705 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14706 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14708 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14711 lt_prog_compiler_static_F77=
14715 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14716 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14717 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14718 echo $ECHO_N "(cached) $ECHO_C" >&6
14720 lt_cv_prog_compiler_c_o_F77=no
14721 $rm -r conftest 2>/dev/null
14725 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14727 lt_compiler_flag="-o out/conftest2.$ac_objext"
14728 # Insert the option either (1) after the last *FLAGS variable, or
14729 # (2) before a word containing "conftest.", or (3) at the end.
14730 # Note that $ac_compile itself does not contain backslashes and begins
14731 # with a dollar sign (not a hyphen), so the echo should work correctly.
14732 lt_compile=`echo "$ac_compile" | $SED \
14733 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14734 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14735 -e 's:$: $lt_compiler_flag:'`
14736 (eval echo "\"\$as_me:14736: $lt_compile\"" >&5)
14737 (eval "$lt_compile" 2>out/conftest.err)
14739 cat out/conftest.err >&5
14740 echo "$as_me:14740: \$? = $ac_status" >&5
14741 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14743 # The compiler can only warn and ignore the option if not recognized
14744 # So say no if there are warnings
14745 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14746 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14747 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14748 lt_cv_prog_compiler_c_o_F77=yes
14753 # SGI C++ compiler will create directory out/ii_files/ for
14754 # template instantiation
14755 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14756 $rm out/* && rmdir out
14762 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14763 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14766 hard_links="nottested"
14767 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14768 # do not overwrite the value of need_locks provided by the user
14769 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14770 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14773 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14775 ln conftest.a conftest.b 2>&5 || hard_links=no
14776 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14777 { echo "$as_me:$LINENO: result: $hard_links" >&5
14778 echo "${ECHO_T}$hard_links" >&6; }
14779 if test "$hard_links" = no; then
14780 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14781 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14788 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14789 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14792 allow_undefined_flag_F77=
14793 enable_shared_with_static_runtimes_F77=no
14795 archive_expsym_cmds_F77=
14796 old_archive_From_new_cmds_F77=
14797 old_archive_from_expsyms_cmds_F77=
14798 export_dynamic_flag_spec_F77=
14799 whole_archive_flag_spec_F77=
14800 thread_safe_flag_spec_F77=
14801 hardcode_libdir_flag_spec_F77=
14802 hardcode_libdir_flag_spec_ld_F77=
14803 hardcode_libdir_separator_F77=
14804 hardcode_direct_F77=no
14805 hardcode_minus_L_F77=no
14806 hardcode_shlibpath_var_F77=unsupported
14807 link_all_deplibs_F77=unknown
14808 hardcode_automatic_F77=no
14810 module_expsym_cmds_F77=
14811 always_export_symbols_F77=no
14812 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14813 # include_expsyms should be a list of space-separated symbols to be *always*
14814 # included in the symbol list
14815 include_expsyms_F77=
14816 # exclude_expsyms can be an extended regexp of symbols to exclude
14817 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14818 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14819 # as well as any symbol that contains `d'.
14820 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14821 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14822 # platforms (ab)use it in PIC code, but their linkers get confused if
14823 # the symbol is explicitly referenced. Since portable code cannot
14824 # rely on this symbol name, it's probably fine to never include it in
14825 # preloaded symbol tables.
14826 # Exclude shared library initialization/finalization symbols.
14827 extract_expsyms_cmds=
14828 # Just being paranoid about ensuring that cc_basename is set.
14829 for cc_temp in $compiler""; do
14831 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14832 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14837 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14840 cygwin* | mingw* | pw32*)
14841 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14842 # When not using gcc, we currently assume that we are using
14843 # Microsoft Visual C++.
14844 if test "$GCC" != yes; then
14849 # we just hope/assume this is gcc and not c89 (= MSVC++)
14858 if test "$with_gnu_ld" = yes; then
14859 # If archive_cmds runs LD, not CC, wlarc should be empty
14862 # Set some defaults for GNU ld with shared library support. These
14863 # are reset later if shared libraries are not supported. Putting them
14864 # here allows them to be overridden if necessary.
14865 runpath_var=LD_RUN_PATH
14866 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14867 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14868 # ancient GNU ld didn't support --whole-archive et. al.
14869 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14870 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14872 whole_archive_flag_spec_F77=
14874 supports_anon_versioning=no
14875 case `$LD -v 2>/dev/null` in
14876 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14877 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14878 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14879 *\ 2.11.*) ;; # other 2.11 versions
14880 *) supports_anon_versioning=yes ;;
14883 # See if GNU ld supports shared libraries.
14886 # On AIX/PPC, the GNU linker is very broken
14887 if test "$host_cpu" != ia64; then
14891 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14892 *** to be unable to reliably create shared libraries on AIX.
14893 *** Therefore, libtool is disabling shared libraries support. If you
14894 *** really care for shared libraries, you may want to modify your PATH
14895 *** so that a non-GNU linker is found, and then restart.
14902 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)'
14903 hardcode_libdir_flag_spec_F77='-L$libdir'
14904 hardcode_minus_L_F77=yes
14906 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14907 # that the semantics of dynamic libraries on AmigaOS, at least up
14908 # to version 4, is to share data among multiple programs linked
14909 # with the same dynamic library. Since this doesn't match the
14910 # behavior of shared libraries on other platforms, we can't use
14916 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14917 allow_undefined_flag_F77=unsupported
14918 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14919 # support --undefined. This deserves some investigation. FIXME
14920 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14926 cygwin* | mingw* | pw32*)
14927 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14928 # as there is no search path for DLLs.
14929 hardcode_libdir_flag_spec_F77='-L$libdir'
14930 allow_undefined_flag_F77=unsupported
14931 always_export_symbols_F77=no
14932 enable_shared_with_static_runtimes_F77=yes
14933 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14935 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14936 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14937 # If the export-symbols file already is a .def file (1st line
14938 # is EXPORTS), use it as is; otherwise, prepend...
14939 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14940 cp $export_symbols $output_objdir/$soname.def;
14942 echo EXPORTS > $output_objdir/$soname.def;
14943 cat $export_symbols >> $output_objdir/$soname.def;
14945 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14952 hardcode_direct_F77=no
14953 hardcode_shlibpath_var_F77=no
14954 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14955 export_dynamic_flag_spec_F77='${wl}-E'
14956 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14957 # Instead, shared libraries are loaded at an image base (0x10000000 by
14958 # default) and relocated if they conflict, which is a slow very memory
14959 # consuming and fragmenting process. To avoid this, we pick a random,
14960 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14961 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14962 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'
14963 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'
14966 gnu* | linux* | k*bsd*-gnu)
14967 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14969 case $cc_basename,$host_cpu in
14970 pgcc*) # Portland Group C compiler
14971 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'
14972 tmp_addflag=' $pic_flag'
14974 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14975 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'
14976 tmp_addflag=' $pic_flag -Mnomain' ;;
14977 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14978 tmp_addflag=' -i_dynamic' ;;
14979 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14980 tmp_addflag=' -i_dynamic -nofor_main' ;;
14981 ifc* | ifort*) # Intel Fortran compiler
14982 tmp_addflag=' -nofor_main' ;;
14984 case `$CC -V 2>&1 | sed 5q` in
14985 *Sun\ C*) # Sun C 5.9
14986 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'
14987 tmp_sharedflag='-G' ;;
14988 *Sun\ F*) # Sun Fortran 8.3
14989 tmp_sharedflag='-G' ;;
14991 tmp_sharedflag='-shared' ;;
14993 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14995 if test $supports_anon_versioning = yes; then
14996 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14997 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14998 $echo "local: *; };" >> $output_objdir/$libname.ver~
14999 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15007 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15008 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15011 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15012 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15017 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15021 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15022 *** create shared libraries on Solaris systems. Therefore, libtool
15023 *** is disabling shared libraries support. We urge you to upgrade GNU
15024 *** binutils to release 2.9.1 or newer. Another option is to modify
15025 *** your PATH or compiler configuration so that the native linker is
15026 *** used, and then restart.
15029 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15030 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15031 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15037 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15038 case `$LD -v 2>&1` in
15039 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15043 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15044 *** reliably create shared libraries on SCO systems. Therefore, libtool
15045 *** is disabling shared libraries support. We urge you to upgrade GNU
15046 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15047 *** your PATH or compiler configuration so that the native linker is
15048 *** used, and then restart.
15053 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15054 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15055 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15056 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15065 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15067 hardcode_direct_F77=yes
15068 hardcode_shlibpath_var_F77=no
15072 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15073 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15074 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15081 if test "$ld_shlibs_F77" = no; then
15083 hardcode_libdir_flag_spec_F77=
15084 export_dynamic_flag_spec_F77=
15085 whole_archive_flag_spec_F77=
15088 # PORTME fill in a description of your system's linker (not GNU ld)
15091 allow_undefined_flag_F77=unsupported
15092 always_export_symbols_F77=yes
15093 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'
15094 # Note: this linker hardcodes the directories in LIBPATH if there
15095 # are no directories specified by -L.
15096 hardcode_minus_L_F77=yes
15097 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15098 # Neither direct hardcoding nor static linking is supported with a
15100 hardcode_direct_F77=unsupported
15105 if test "$host_cpu" = ia64; then
15106 # On IA64, the linker does run time linking by default, so we don't
15107 # have to do anything special.
15108 aix_use_runtimelinking=no
15109 exp_sym_flag='-Bexport'
15112 # If we're using GNU nm, then we don't want the "-C" option.
15113 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15114 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15115 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'
15117 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'
15119 aix_use_runtimelinking=no
15121 # Test if we are trying to use run time linking or normal
15122 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15123 # need to do runtime linking.
15124 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15125 for ld_flag in $LDFLAGS; do
15126 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15127 aix_use_runtimelinking=yes
15134 exp_sym_flag='-bexport'
15135 no_entry_flag='-bnoentry'
15138 # When large executables or shared objects are built, AIX ld can
15139 # have problems creating the table of contents. If linking a library
15140 # or program results in "error TOC overflow" add -mminimal-toc to
15141 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15142 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15144 archive_cmds_F77=''
15145 hardcode_direct_F77=yes
15146 hardcode_libdir_separator_F77=':'
15147 link_all_deplibs_F77=yes
15149 if test "$GCC" = yes; then
15150 case $host_os in aix4.[012]|aix4.[012].*)
15151 # We only want to do this on AIX 4.2 and lower, the check
15152 # below for broken collect2 doesn't work under 4.3+
15153 collect2name=`${CC} -print-prog-name=collect2`
15154 if test -f "$collect2name" && \
15155 strings "$collect2name" | grep resolve_lib_name >/dev/null
15157 # We have reworked collect2
15160 # We have old collect2
15161 hardcode_direct_F77=unsupported
15162 # It fails to find uninstalled libraries when the uninstalled
15163 # path is not listed in the libpath. Setting hardcode_minus_L
15164 # to unsupported forces relinking
15165 hardcode_minus_L_F77=yes
15166 hardcode_libdir_flag_spec_F77='-L$libdir'
15167 hardcode_libdir_separator_F77=
15171 shared_flag='-shared'
15172 if test "$aix_use_runtimelinking" = yes; then
15173 shared_flag="$shared_flag "'${wl}-G'
15177 if test "$host_cpu" = ia64; then
15178 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15179 # chokes on -Wl,-G. The following line is correct:
15182 if test "$aix_use_runtimelinking" = yes; then
15183 shared_flag='${wl}-G'
15185 shared_flag='${wl}-bM:SRE'
15190 # It seems that -bexpall does not export symbols beginning with
15191 # underscore (_), so it is better to generate a list of symbols to export.
15192 always_export_symbols_F77=yes
15193 if test "$aix_use_runtimelinking" = yes; then
15194 # Warning - without using the other runtime loading flags (-brtl),
15195 # -berok will link without error, but may produce a broken library.
15196 allow_undefined_flag_F77='-berok'
15197 # Determine the default libpath from the value encoded in an empty executable.
15198 cat >conftest.$ac_ext <<_ACEOF
15203 rm -f conftest.$ac_objext conftest$ac_exeext
15204 if { (ac_try="$ac_link"
15205 case "(($ac_try" in
15206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15207 *) ac_try_echo=$ac_try;;
15209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15210 (eval "$ac_link") 2>conftest.er1
15212 grep -v '^ *+' conftest.er1 >conftest.err
15214 cat conftest.err >&5
15215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15216 (exit $ac_status); } && {
15217 test -z "$ac_f77_werror_flag" ||
15218 test ! -s conftest.err
15219 } && test -s conftest$ac_exeext &&
15220 $as_test_x conftest$ac_exeext; then
15222 lt_aix_libpath_sed='
15223 /Import File Strings/,/^$/ {
15229 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15230 # Check for a 64-bit object if we didn't find anything.
15231 if test -z "$aix_libpath"; then
15232 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15235 echo "$as_me: failed program was:" >&5
15236 sed 's/^/| /' conftest.$ac_ext >&5
15241 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15242 conftest$ac_exeext conftest.$ac_ext
15243 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15245 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15246 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"
15248 if test "$host_cpu" = ia64; then
15249 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15250 allow_undefined_flag_F77="-z nodefs"
15251 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"
15253 # Determine the default libpath from the value encoded in an empty executable.
15254 cat >conftest.$ac_ext <<_ACEOF
15259 rm -f conftest.$ac_objext conftest$ac_exeext
15260 if { (ac_try="$ac_link"
15261 case "(($ac_try" in
15262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15263 *) ac_try_echo=$ac_try;;
15265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15266 (eval "$ac_link") 2>conftest.er1
15268 grep -v '^ *+' conftest.er1 >conftest.err
15270 cat conftest.err >&5
15271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15272 (exit $ac_status); } && {
15273 test -z "$ac_f77_werror_flag" ||
15274 test ! -s conftest.err
15275 } && test -s conftest$ac_exeext &&
15276 $as_test_x conftest$ac_exeext; then
15278 lt_aix_libpath_sed='
15279 /Import File Strings/,/^$/ {
15285 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15286 # Check for a 64-bit object if we didn't find anything.
15287 if test -z "$aix_libpath"; then
15288 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15291 echo "$as_me: failed program was:" >&5
15292 sed 's/^/| /' conftest.$ac_ext >&5
15297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15298 conftest$ac_exeext conftest.$ac_ext
15299 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15301 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15302 # Warning - without using the other run time loading flags,
15303 # -berok will link without error, but may produce a broken library.
15304 no_undefined_flag_F77=' ${wl}-bernotok'
15305 allow_undefined_flag_F77=' ${wl}-berok'
15306 # Exported symbols can be pulled into shared objects from archives
15307 whole_archive_flag_spec_F77='$convenience'
15308 archive_cmds_need_lc_F77=yes
15309 # This is similar to how AIX traditionally builds its shared libraries.
15310 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'
15316 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)'
15317 hardcode_libdir_flag_spec_F77='-L$libdir'
15318 hardcode_minus_L_F77=yes
15319 # see comment about different semantics on the GNU ld section
15324 export_dynamic_flag_spec_F77=-rdynamic
15327 cygwin* | mingw* | pw32*)
15328 # When not using gcc, we currently assume that we are using
15329 # Microsoft Visual C++.
15330 # hardcode_libdir_flag_spec is actually meaningless, as there is
15331 # no search path for DLLs.
15332 hardcode_libdir_flag_spec_F77=' '
15333 allow_undefined_flag_F77=unsupported
15334 # Tell ltmain to make .lib files, not .a files.
15336 # Tell ltmain to make .dll files, not .so files.
15338 # FIXME: Setting linknames here is a bad hack.
15339 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15340 # The linker will automatically build a .lib file if we build a DLL.
15341 old_archive_From_new_cmds_F77='true'
15342 # FIXME: Should let the user specify the lib program.
15343 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15344 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15345 enable_shared_with_static_runtimes_F77=yes
15348 darwin* | rhapsody*)
15350 rhapsody* | darwin1.[012])
15351 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15354 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15355 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15357 case ${MACOSX_DEPLOYMENT_TARGET} in
15359 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15362 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15368 archive_cmds_need_lc_F77=no
15369 hardcode_direct_F77=no
15370 hardcode_automatic_F77=yes
15371 hardcode_shlibpath_var_F77=unsupported
15372 whole_archive_flag_spec_F77=''
15373 link_all_deplibs_F77=yes
15374 if test "$GCC" = yes ; then
15375 output_verbose_link_cmd='echo'
15376 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}"
15377 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15378 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}"
15379 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}"
15381 case $cc_basename in
15383 output_verbose_link_cmd='echo'
15384 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15385 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15386 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15387 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}'
15388 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}'
15398 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15399 hardcode_libdir_flag_spec_F77='-L$libdir'
15400 hardcode_shlibpath_var_F77=no
15407 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15408 # support. Future versions do this automatically, but an explicit c++rt0.o
15409 # does not break anything, and helps significantly (at the cost of a little
15412 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15413 hardcode_libdir_flag_spec_F77='-R$libdir'
15414 hardcode_direct_F77=yes
15415 hardcode_shlibpath_var_F77=no
15418 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15420 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15421 hardcode_direct_F77=yes
15422 hardcode_minus_L_F77=yes
15423 hardcode_shlibpath_var_F77=no
15426 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15427 freebsd* | dragonfly*)
15428 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15429 hardcode_libdir_flag_spec_F77='-R$libdir'
15430 hardcode_direct_F77=yes
15431 hardcode_shlibpath_var_F77=no
15435 if test "$GCC" = yes; then
15436 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'
15438 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'
15440 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15441 hardcode_libdir_separator_F77=:
15442 hardcode_direct_F77=yes
15444 # hardcode_minus_L: Not really in the search PATH,
15445 # but as the default location of the library.
15446 hardcode_minus_L_F77=yes
15447 export_dynamic_flag_spec_F77='${wl}-E'
15451 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15452 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15454 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15456 if test "$with_gnu_ld" = no; then
15457 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15458 hardcode_libdir_separator_F77=:
15460 hardcode_direct_F77=yes
15461 export_dynamic_flag_spec_F77='${wl}-E'
15463 # hardcode_minus_L: Not really in the search PATH,
15464 # but as the default location of the library.
15465 hardcode_minus_L_F77=yes
15470 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15473 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15476 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15479 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15485 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15488 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15491 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15495 if test "$with_gnu_ld" = no; then
15496 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15497 hardcode_libdir_separator_F77=:
15501 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15502 hardcode_direct_F77=no
15503 hardcode_shlibpath_var_F77=no
15506 hardcode_direct_F77=yes
15507 export_dynamic_flag_spec_F77='${wl}-E'
15509 # hardcode_minus_L: Not really in the search PATH,
15510 # but as the default location of the library.
15511 hardcode_minus_L_F77=yes
15517 irix5* | irix6* | nonstopux*)
15518 if test "$GCC" = yes; then
15519 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'
15521 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'
15522 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15524 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15525 hardcode_libdir_separator_F77=:
15526 link_all_deplibs_F77=yes
15530 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15531 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15533 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15535 hardcode_libdir_flag_spec_F77='-R$libdir'
15536 hardcode_direct_F77=yes
15537 hardcode_shlibpath_var_F77=no
15541 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15542 hardcode_direct_F77=yes
15543 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15544 hardcode_libdir_separator_F77=:
15545 hardcode_shlibpath_var_F77=no
15549 if test -f /usr/libexec/ld.so; then
15550 hardcode_direct_F77=yes
15551 hardcode_shlibpath_var_F77=no
15552 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15553 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15554 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15555 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15556 export_dynamic_flag_spec_F77='${wl}-E'
15559 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15560 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15561 hardcode_libdir_flag_spec_F77='-R$libdir'
15564 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15565 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15575 hardcode_libdir_flag_spec_F77='-L$libdir'
15576 hardcode_minus_L_F77=yes
15577 allow_undefined_flag_F77=unsupported
15578 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'
15579 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15583 if test "$GCC" = yes; then
15584 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15585 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'
15587 allow_undefined_flag_F77=' -expect_unresolved \*'
15588 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'
15590 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15591 hardcode_libdir_separator_F77=:
15594 osf4* | osf5*) # as osf3* with the addition of -msym flag
15595 if test "$GCC" = yes; then
15596 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15597 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'
15598 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15600 allow_undefined_flag_F77=' -expect_unresolved \*'
15601 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'
15602 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~
15603 $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'
15605 # Both c and cxx compiler support -rpath directly
15606 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15608 hardcode_libdir_separator_F77=:
15612 no_undefined_flag_F77=' -z text'
15613 if test "$GCC" = yes; then
15615 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15616 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15617 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15620 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15621 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15622 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15624 hardcode_libdir_flag_spec_F77='-R$libdir'
15625 hardcode_shlibpath_var_F77=no
15627 solaris2.[0-5] | solaris2.[0-5].*) ;;
15629 # The compiler driver will combine and reorder linker options,
15630 # but understands `-z linker_flag'. GCC discards it without `$wl',
15631 # but is careful enough not to reorder.
15632 # Supported since Solaris 2.6 (maybe 2.5.1?)
15633 if test "$GCC" = yes; then
15634 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15636 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15640 link_all_deplibs_F77=yes
15644 if test "x$host_vendor" = xsequent; then
15645 # Use $CC to link under sequent, because it throws in some extra .o
15646 # files that make .init and .fini sections work.
15647 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15649 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15651 hardcode_libdir_flag_spec_F77='-L$libdir'
15652 hardcode_direct_F77=yes
15653 hardcode_minus_L_F77=yes
15654 hardcode_shlibpath_var_F77=no
15658 case $host_vendor in
15660 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15661 hardcode_direct_F77=yes # is this really true???
15664 ## LD is ld it makes a PLAMLIB
15665 ## CC just makes a GrossModule.
15666 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15667 reload_cmds_F77='$CC -r -o $output$reload_objs'
15668 hardcode_direct_F77=no
15671 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15672 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15675 runpath_var='LD_RUN_PATH'
15676 hardcode_shlibpath_var_F77=no
15680 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15681 hardcode_shlibpath_var_F77=no
15682 export_dynamic_flag_spec_F77='-Bexport'
15686 if test -d /usr/nec; then
15687 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15688 hardcode_shlibpath_var_F77=no
15689 runpath_var=LD_RUN_PATH
15690 hardcode_runpath_var=yes
15695 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15696 no_undefined_flag_F77='${wl}-z,text'
15697 archive_cmds_need_lc_F77=no
15698 hardcode_shlibpath_var_F77=no
15699 runpath_var='LD_RUN_PATH'
15701 if test "$GCC" = yes; then
15702 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15703 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15705 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15706 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15710 sysv5* | sco3.2v5* | sco5v6*)
15711 # Note: We can NOT use -z defs as we might desire, because we do not
15712 # link with -lc, and that would cause any symbols used from libc to
15713 # always be unresolved, which means just about no library would
15714 # ever link correctly. If we're not using GNU ld we use -z text
15715 # though, which does catch some bad symbols but isn't as heavy-handed
15717 no_undefined_flag_F77='${wl}-z,text'
15718 allow_undefined_flag_F77='${wl}-z,nodefs'
15719 archive_cmds_need_lc_F77=no
15720 hardcode_shlibpath_var_F77=no
15721 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15722 hardcode_libdir_separator_F77=':'
15723 link_all_deplibs_F77=yes
15724 export_dynamic_flag_spec_F77='${wl}-Bexport'
15725 runpath_var='LD_RUN_PATH'
15727 if test "$GCC" = yes; then
15728 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15729 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15731 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15732 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15737 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15738 hardcode_libdir_flag_spec_F77='-L$libdir'
15739 hardcode_shlibpath_var_F77=no
15748 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15749 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15750 test "$ld_shlibs_F77" = no && can_build_shared=no
15753 # Do we need to explicitly link libc?
15755 case "x$archive_cmds_need_lc_F77" in
15757 # Assume -lc should be added
15758 archive_cmds_need_lc_F77=yes
15760 if test "$enable_shared" = yes && test "$GCC" = yes; then
15761 case $archive_cmds_F77 in
15763 # FIXME: we may have to deal with multi-command sequences.
15766 # Test whether the compiler implicitly links with -lc since on some
15767 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15768 # to ld, don't add -lc before -lgcc.
15769 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15770 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15772 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15775 (eval $ac_compile) 2>&5
15777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778 (exit $ac_status); } 2>conftest.err; then
15781 libobjs=conftest.$ac_objext
15783 wl=$lt_prog_compiler_wl_F77
15784 pic_flag=$lt_prog_compiler_pic_F77
15790 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15791 allow_undefined_flag_F77=
15792 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15793 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15796 (exit $ac_status); }
15798 archive_cmds_need_lc_F77=no
15800 archive_cmds_need_lc_F77=yes
15802 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15804 cat conftest.err 1>&5
15807 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15808 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15815 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15816 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15817 library_names_spec=
15818 libname_spec='lib$name'
15822 postuninstall_cmds=
15826 shlibpath_overrides_runpath=unknown
15828 dynamic_linker="$host_os ld.so"
15829 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15831 need_lib_prefix=unknown
15832 hardcode_into_libs=no
15834 # when you set need_version to no, make sure it does not cause -set_version
15835 # flags to be left without arguments
15836 need_version=unknown
15841 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15842 shlibpath_var=LIBPATH
15844 # AIX 3 has no versioning support, so we append a major version to the name.
15845 soname_spec='${libname}${release}${shared_ext}$major'
15852 hardcode_into_libs=yes
15853 if test "$host_cpu" = ia64; then
15854 # AIX 5 supports IA64
15855 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15856 shlibpath_var=LD_LIBRARY_PATH
15858 # With GCC up to 2.95.x, collect2 would create an import file
15859 # for dependence libraries. The import file would start with
15860 # the line `#! .'. This would cause the generated library to
15861 # depend on `.', always an invalid library. This was fixed in
15862 # development snapshots of GCC prior to 3.0.
15864 aix4 | aix4.[01] | aix4.[01].*)
15865 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15867 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15870 can_build_shared=no
15874 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15875 # soname into executable. Probably we can add versioning support to
15876 # collect2, so additional links can be useful in future.
15877 if test "$aix_use_runtimelinking" = yes; then
15878 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15879 # instead of lib<name>.a to let people know that these are not
15880 # typical AIX shared libraries.
15881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15883 # We preserve .a as extension for shared libraries through AIX4.2
15884 # and later when we are not doing run time linking.
15885 library_names_spec='${libname}${release}.a $libname.a'
15886 soname_spec='${libname}${release}${shared_ext}$major'
15888 shlibpath_var=LIBPATH
15893 library_names_spec='$libname.ixlibrary $libname.a'
15894 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15895 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'
15899 library_names_spec='${libname}${shared_ext}'
15900 dynamic_linker="$host_os ld.so"
15901 shlibpath_var=LIBRARY_PATH
15907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15908 soname_spec='${libname}${release}${shared_ext}$major'
15909 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15910 shlibpath_var=LD_LIBRARY_PATH
15911 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15912 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15913 # the default ld.so.conf also contains /usr/contrib/lib and
15914 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15915 # libtool to hard-code these into programs
15918 cygwin* | mingw* | pw32*)
15919 version_type=windows
15924 case $GCC,$host_os in
15925 yes,cygwin* | yes,mingw* | yes,pw32*)
15926 library_names_spec='$libname.dll.a'
15927 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15928 postinstall_cmds='base_file=`basename \${file}`~
15929 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15930 dldir=$destdir/`dirname \$dlpath`~
15931 test -d \$dldir || mkdir -p \$dldir~
15932 $install_prog $dir/$dlname \$dldir/$dlname~
15933 chmod a+x \$dldir/$dlname'
15934 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15935 dlpath=$dir/\$dldll~
15937 shlibpath_overrides_runpath=yes
15941 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15942 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15943 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15946 # MinGW DLLs use traditional 'lib' prefix
15947 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15948 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15949 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15950 # It is most probably a Windows format PATH printed by
15951 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15952 # path with ; separators, and with drive letters. We can handle the
15953 # drive letters (cygwin fileutils understands them), so leave them,
15954 # especially as we might pass files found there to a mingw objdump,
15955 # which wouldn't understand a cygwinified path. Ahh.
15956 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15958 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15962 # pw32 DLLs use 'pw' prefix rather than 'lib'
15963 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15969 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15972 dynamic_linker='Win32 ld.exe'
15973 # FIXME: first we should search . and the directory the executable is in
15977 darwin* | rhapsody*)
15978 dynamic_linker="$host_os dyld"
15979 version_type=darwin
15982 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15983 soname_spec='${libname}${release}${major}$shared_ext'
15984 shlibpath_overrides_runpath=yes
15985 shlibpath_var=DYLD_LIBRARY_PATH
15986 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15988 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15996 soname_spec='${libname}${release}${shared_ext}$major'
15997 shlibpath_var=LD_LIBRARY_PATH
16004 freebsd* | dragonfly*)
16005 # DragonFly does not have aout. When/if they implement a new
16006 # versioning mechanism, adjust this.
16007 if test -x /usr/bin/objformat; then
16008 objformat=`/usr/bin/objformat`
16011 freebsd[123]*) objformat=aout ;;
16012 *) objformat=elf ;;
16015 version_type=freebsd-$objformat
16016 case $version_type in
16018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16023 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16027 shlibpath_var=LD_LIBRARY_PATH
16030 shlibpath_overrides_runpath=yes
16032 freebsd3.[01]* | freebsdelf3.[01]*)
16033 shlibpath_overrides_runpath=yes
16034 hardcode_into_libs=yes
16036 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16037 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16038 shlibpath_overrides_runpath=no
16039 hardcode_into_libs=yes
16041 *) # from 4.6 on, and DragonFly
16042 shlibpath_overrides_runpath=yes
16043 hardcode_into_libs=yes
16052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16053 soname_spec='${libname}${release}${shared_ext}$major'
16054 shlibpath_var=LD_LIBRARY_PATH
16055 hardcode_into_libs=yes
16058 hpux9* | hpux10* | hpux11*)
16059 # Give a soname corresponding to the major version so that dld.sl refuses to
16060 # link against other versions.
16067 hardcode_into_libs=yes
16068 dynamic_linker="$host_os dld.so"
16069 shlibpath_var=LD_LIBRARY_PATH
16070 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16072 soname_spec='${libname}${release}${shared_ext}$major'
16073 if test "X$HPUX_IA64_MODE" = X32; then
16074 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16076 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16078 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16082 hardcode_into_libs=yes
16083 dynamic_linker="$host_os dld.sl"
16084 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16085 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16089 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16093 dynamic_linker="$host_os dld.sl"
16094 shlibpath_var=SHLIB_PATH
16095 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16097 soname_spec='${libname}${release}${shared_ext}$major'
16100 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16101 postinstall_cmds='chmod 555 $lib'
16108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16109 soname_spec='${libname}${release}${shared_ext}$major'
16110 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16111 shlibpath_var=LD_LIBRARY_PATH
16112 shlibpath_overrides_runpath=no
16113 hardcode_into_libs=yes
16116 irix5* | irix6* | nonstopux*)
16118 nonstopux*) version_type=nonstopux ;;
16120 if test "$lt_cv_prog_gnu_ld" = yes; then
16128 soname_spec='${libname}${release}${shared_ext}$major'
16129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16131 irix5* | nonstopux*)
16132 libsuff= shlibsuff=
16135 case $LD in # libtool.m4 will add one of these switches to LD
16136 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16137 libsuff= shlibsuff= libmagic=32-bit;;
16138 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16139 libsuff=32 shlibsuff=N32 libmagic=N32;;
16140 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16141 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16142 *) libsuff= shlibsuff= libmagic=never-match;;
16146 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16147 shlibpath_overrides_runpath=no
16148 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16149 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16150 hardcode_into_libs=yes
16153 # No shared lib support for Linux oldld, aout, or coff.
16154 linux*oldld* | linux*aout* | linux*coff*)
16158 # This must be Linux ELF.
16159 linux* | k*bsd*-gnu)
16163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16164 soname_spec='${libname}${release}${shared_ext}$major'
16165 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16166 shlibpath_var=LD_LIBRARY_PATH
16167 shlibpath_overrides_runpath=no
16168 # This implies no fast_install, which is unacceptable.
16169 # Some rework will be needed to allow for fast_install
16170 # before this can be enabled.
16171 hardcode_into_libs=yes
16173 # Append ld.so.conf contents to the search path
16174 if test -f /etc/ld.so.conf; then
16175 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' ' '`
16176 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16179 # We used to test for /lib/ld.so.1 and disable shared libraries on
16180 # powerpc, because MkLinux only supported shared libraries with the
16181 # GNU dynamic linker. Since this was broken with cross compilers,
16182 # most powerpc-linux boxes support dynamic linking these days and
16183 # people can always --disable-shared, the test was removed, and we
16184 # assume the GNU/Linux dynamic linker is in use.
16185 dynamic_linker='GNU/Linux ld.so'
16192 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16194 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16195 dynamic_linker='NetBSD (a.out) ld.so'
16197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16198 soname_spec='${libname}${release}${shared_ext}$major'
16199 dynamic_linker='NetBSD ld.elf_so'
16201 shlibpath_var=LD_LIBRARY_PATH
16202 shlibpath_overrides_runpath=yes
16203 hardcode_into_libs=yes
16208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16209 shlibpath_var=LD_LIBRARY_PATH
16210 shlibpath_overrides_runpath=yes
16217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16218 soname_spec='${libname}${release}${shared_ext}$major'
16219 shlibpath_var=LD_LIBRARY_PATH
16220 shlibpath_overrides_runpath=yes
16225 sys_lib_dlsearch_path_spec="/usr/lib"
16227 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16229 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16230 *) need_version=no ;;
16232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16233 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16234 shlibpath_var=LD_LIBRARY_PATH
16235 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16237 openbsd2.[89] | openbsd2.[89].*)
16238 shlibpath_overrides_runpath=no
16241 shlibpath_overrides_runpath=yes
16245 shlibpath_overrides_runpath=yes
16250 libname_spec='$name'
16253 library_names_spec='$libname${shared_ext} $libname.a'
16254 dynamic_linker='OS/2 ld.exe'
16255 shlibpath_var=LIBPATH
16258 osf3* | osf4* | osf5*)
16262 soname_spec='${libname}${release}${shared_ext}$major'
16263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16264 shlibpath_var=LD_LIBRARY_PATH
16265 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16266 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16278 soname_spec='${libname}${release}${shared_ext}$major'
16279 shlibpath_var=LD_LIBRARY_PATH
16280 shlibpath_overrides_runpath=yes
16281 hardcode_into_libs=yes
16282 # ldd complains unless libraries are executable
16283 postinstall_cmds='chmod +x $lib'
16288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16289 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16290 shlibpath_var=LD_LIBRARY_PATH
16291 shlibpath_overrides_runpath=yes
16292 if test "$with_gnu_ld" = yes; then
16300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16301 soname_spec='${libname}${release}${shared_ext}$major'
16302 shlibpath_var=LD_LIBRARY_PATH
16303 case $host_vendor in
16305 shlibpath_overrides_runpath=no
16307 export_dynamic_flag_spec='${wl}-Blargedynsym'
16308 runpath_var=LD_RUN_PATH
16316 shlibpath_overrides_runpath=no
16317 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16323 if test -d /usr/nec ;then
16325 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16326 soname_spec='$libname${shared_ext}.$major'
16327 shlibpath_var=LD_LIBRARY_PATH
16331 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16332 version_type=freebsd-elf
16335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16336 soname_spec='${libname}${release}${shared_ext}$major'
16337 shlibpath_var=LD_LIBRARY_PATH
16338 hardcode_into_libs=yes
16339 if test "$with_gnu_ld" = yes; then
16340 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16341 shlibpath_overrides_runpath=no
16343 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16344 shlibpath_overrides_runpath=yes
16347 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16351 sys_lib_dlsearch_path_spec='/usr/lib'
16356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16357 soname_spec='${libname}${release}${shared_ext}$major'
16358 shlibpath_var=LD_LIBRARY_PATH
16365 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16366 echo "${ECHO_T}$dynamic_linker" >&6; }
16367 test "$dynamic_linker" = no && can_build_shared=no
16369 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16370 echo $ECHO_N "(cached) $ECHO_C" >&6
16372 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16375 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16376 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16377 echo $ECHO_N "(cached) $ECHO_C" >&6
16379 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16382 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16384 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16385 if test "$GCC" = yes; then
16386 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16389 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16390 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16391 hardcode_action_F77=
16392 if test -n "$hardcode_libdir_flag_spec_F77" || \
16393 test -n "$runpath_var_F77" || \
16394 test "X$hardcode_automatic_F77" = "Xyes" ; then
16396 # We can hardcode non-existant directories.
16397 if test "$hardcode_direct_F77" != no &&
16398 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16399 # have to relink, otherwise we might link with an installed library
16400 # when we should be linking with a yet-to-be-installed one
16401 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16402 test "$hardcode_minus_L_F77" != no; then
16403 # Linking always hardcodes the temporary library directory.
16404 hardcode_action_F77=relink
16406 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16407 hardcode_action_F77=immediate
16410 # We cannot hardcode anything, or else we can only hardcode existing
16412 hardcode_action_F77=unsupported
16414 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16415 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16417 if test "$hardcode_action_F77" = relink; then
16418 # Fast installation is not supported
16419 enable_fast_install=no
16420 elif test "$shlibpath_overrides_runpath" = yes ||
16421 test "$enable_shared" = no; then
16422 # Fast installation is not necessary
16423 enable_fast_install=needless
16427 # The else clause should only fire when bootstrapping the
16428 # libtool distribution, otherwise you forgot to ship ltmain.sh
16429 # with your package, and you will get complaints that there are
16430 # no rules to generate ltmain.sh.
16431 if test -f "$ltmain"; then
16432 # See if we are running on zsh, and set the options which allow our commands through
16433 # without removal of \ escapes.
16434 if test -n "${ZSH_VERSION+set}" ; then
16435 setopt NO_GLOB_SUBST
16437 # Now quote all the things that may contain metacharacters while being
16438 # careful not to overquote the AC_SUBSTed values. We take copies of the
16439 # variables and quote the copies for generation of the libtool script.
16440 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16442 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16443 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16444 deplibs_check_method reload_flag reload_cmds need_locks \
16445 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16446 lt_cv_sys_global_symbol_to_c_name_address \
16447 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16448 old_postinstall_cmds old_postuninstall_cmds \
16452 lt_prog_compiler_wl_F77 \
16453 lt_prog_compiler_pic_F77 \
16454 lt_prog_compiler_static_F77 \
16455 lt_prog_compiler_no_builtin_flag_F77 \
16456 export_dynamic_flag_spec_F77 \
16457 thread_safe_flag_spec_F77 \
16458 whole_archive_flag_spec_F77 \
16459 enable_shared_with_static_runtimes_F77 \
16460 old_archive_cmds_F77 \
16461 old_archive_from_new_cmds_F77 \
16462 predep_objects_F77 \
16463 postdep_objects_F77 \
16466 compiler_lib_search_path_F77 \
16467 compiler_lib_search_dirs_F77 \
16469 archive_expsym_cmds_F77 \
16470 postinstall_cmds_F77 \
16471 postuninstall_cmds_F77 \
16472 old_archive_from_expsyms_cmds_F77 \
16473 allow_undefined_flag_F77 \
16474 no_undefined_flag_F77 \
16475 export_symbols_cmds_F77 \
16476 hardcode_libdir_flag_spec_F77 \
16477 hardcode_libdir_flag_spec_ld_F77 \
16478 hardcode_libdir_separator_F77 \
16479 hardcode_automatic_F77 \
16481 module_expsym_cmds_F77 \
16482 lt_cv_prog_compiler_c_o_F77 \
16483 fix_srcfile_path_F77 \
16484 exclude_expsyms_F77 \
16485 include_expsyms_F77; do
16488 old_archive_cmds_F77 | \
16489 old_archive_from_new_cmds_F77 | \
16490 archive_cmds_F77 | \
16491 archive_expsym_cmds_F77 | \
16492 module_cmds_F77 | \
16493 module_expsym_cmds_F77 | \
16494 old_archive_from_expsyms_cmds_F77 | \
16495 export_symbols_cmds_F77 | \
16496 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16497 postinstall_cmds | postuninstall_cmds | \
16498 old_postinstall_cmds | old_postuninstall_cmds | \
16499 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16500 # Double-quote double-evaled strings.
16501 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16504 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16510 *'\$0 --fallback-echo"')
16511 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16517 cat <<__EOF__ >> "$cfgfile"
16518 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16520 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16522 # Shell to use when invoking shell scripts.
16525 # Whether or not to build shared libraries.
16526 build_libtool_libs=$enable_shared
16528 # Whether or not to build static libraries.
16529 build_old_libs=$enable_static
16531 # Whether or not to add -lc for building shared libraries.
16532 build_libtool_need_lc=$archive_cmds_need_lc_F77
16534 # Whether or not to disallow shared libs when runtime libs are static
16535 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16537 # Whether or not to optimize for fast installation.
16538 fast_install=$enable_fast_install
16541 host_alias=$host_alias
16545 # The build system.
16546 build_alias=$build_alias
16550 # An echo program that does not interpret backslashes.
16555 AR_FLAGS=$lt_AR_FLAGS
16560 # LTCC compiler flags.
16561 LTCFLAGS=$lt_LTCFLAGS
16563 # A language-specific compiler.
16564 CC=$lt_compiler_F77
16566 # Is the compiler the GNU C compiler?
16572 # The linker used to build libraries.
16575 # Whether we need hard or soft links.
16578 # A BSD-compatible nm program.
16581 # A symbol stripping program
16584 # Used to examine libraries when file_magic_cmd begins "file"
16585 MAGIC_CMD=$MAGIC_CMD
16587 # Used on cygwin: DLL creation program.
16590 # Used on cygwin: object dumper.
16593 # Used on cygwin: assembler.
16596 # The name of the directory that contains temporary libtool files.
16599 # How to create reloadable object files.
16600 reload_flag=$lt_reload_flag
16601 reload_cmds=$lt_reload_cmds
16603 # How to pass a linker flag through the compiler.
16604 wl=$lt_lt_prog_compiler_wl_F77
16606 # Object file suffix (normally "o").
16607 objext="$ac_objext"
16609 # Old archive suffix (normally "a").
16612 # Shared library suffix (normally ".so").
16613 shrext_cmds='$shrext_cmds'
16615 # Executable file suffix (normally "").
16618 # Additional compiler flags for building library objects.
16619 pic_flag=$lt_lt_prog_compiler_pic_F77
16622 # What is the maximum length of a command?
16623 max_cmd_len=$lt_cv_sys_max_cmd_len
16625 # Does compiler simultaneously support -c and -o options?
16626 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16628 # Must we lock files when doing compilation?
16629 need_locks=$lt_need_locks
16631 # Do we need the lib prefix for modules?
16632 need_lib_prefix=$need_lib_prefix
16634 # Do we need a version for libraries?
16635 need_version=$need_version
16637 # Whether dlopen is supported.
16638 dlopen_support=$enable_dlopen
16640 # Whether dlopen of programs is supported.
16641 dlopen_self=$enable_dlopen_self
16643 # Whether dlopen of statically linked programs is supported.
16644 dlopen_self_static=$enable_dlopen_self_static
16646 # Compiler flag to prevent dynamic linking.
16647 link_static_flag=$lt_lt_prog_compiler_static_F77
16649 # Compiler flag to turn off builtin functions.
16650 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16652 # Compiler flag to allow reflexive dlopens.
16653 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16655 # Compiler flag to generate shared objects directly from archives.
16656 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16658 # Compiler flag to generate thread-safe objects.
16659 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16661 # Library versioning type.
16662 version_type=$version_type
16664 # Format of library name prefix.
16665 libname_spec=$lt_libname_spec
16667 # List of archive names. First name is the real one, the rest are links.
16668 # The last name is the one that the linker finds with -lNAME.
16669 library_names_spec=$lt_library_names_spec
16671 # The coded name of the library, if different from the real name.
16672 soname_spec=$lt_soname_spec
16674 # Commands used to build and install an old-style archive.
16676 old_archive_cmds=$lt_old_archive_cmds_F77
16677 old_postinstall_cmds=$lt_old_postinstall_cmds
16678 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16680 # Create an old-style archive from a shared archive.
16681 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16683 # Create a temporary old-style archive to link instead of a shared archive.
16684 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16686 # Commands used to build and install a shared archive.
16687 archive_cmds=$lt_archive_cmds_F77
16688 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16689 postinstall_cmds=$lt_postinstall_cmds
16690 postuninstall_cmds=$lt_postuninstall_cmds
16692 # Commands used to build a loadable module (assumed same as above if empty)
16693 module_cmds=$lt_module_cmds_F77
16694 module_expsym_cmds=$lt_module_expsym_cmds_F77
16696 # Commands to strip libraries.
16697 old_striplib=$lt_old_striplib
16698 striplib=$lt_striplib
16700 # Dependencies to place before the objects being linked to create a
16702 predep_objects=$lt_predep_objects_F77
16704 # Dependencies to place after the objects being linked to create a
16706 postdep_objects=$lt_postdep_objects_F77
16708 # Dependencies to place before the objects being linked to create a
16710 predeps=$lt_predeps_F77
16712 # Dependencies to place after the objects being linked to create a
16714 postdeps=$lt_postdeps_F77
16716 # The directories searched by this compiler when creating a shared
16718 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16720 # The library search path used internally by the compiler when linking
16721 # a shared library.
16722 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16724 # Method to check whether dependent libraries are shared objects.
16725 deplibs_check_method=$lt_deplibs_check_method
16727 # Command to use when deplibs_check_method == file_magic.
16728 file_magic_cmd=$lt_file_magic_cmd
16730 # Flag that allows shared libraries with undefined symbols to be built.
16731 allow_undefined_flag=$lt_allow_undefined_flag_F77
16733 # Flag that forces no undefined symbols.
16734 no_undefined_flag=$lt_no_undefined_flag_F77
16736 # Commands used to finish a libtool library installation in a directory.
16737 finish_cmds=$lt_finish_cmds
16739 # Same as above, but a single script fragment to be evaled but not shown.
16740 finish_eval=$lt_finish_eval
16742 # Take the output of nm and produce a listing of raw symbols and C names.
16743 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16745 # Transform the output of nm in a proper C declaration
16746 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16748 # Transform the output of nm in a C name address pair
16749 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16751 # This is the shared library runtime path variable.
16752 runpath_var=$runpath_var
16754 # This is the shared library path variable.
16755 shlibpath_var=$shlibpath_var
16757 # Is shlibpath searched before the hard-coded library search path?
16758 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16760 # How to hardcode a shared library path into an executable.
16761 hardcode_action=$hardcode_action_F77
16763 # Whether we should hardcode library paths into libraries.
16764 hardcode_into_libs=$hardcode_into_libs
16766 # Flag to hardcode \$libdir into a binary during linking.
16767 # This must work even if \$libdir does not exist.
16768 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16770 # If ld is used when linking, flag to hardcode \$libdir into
16771 # a binary during linking. This must work even if \$libdir does
16773 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16775 # Whether we need a single -rpath flag with a separated argument.
16776 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16778 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16779 # resulting binary.
16780 hardcode_direct=$hardcode_direct_F77
16782 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16783 # resulting binary.
16784 hardcode_minus_L=$hardcode_minus_L_F77
16786 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16787 # the resulting binary.
16788 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16790 # Set to yes if building a shared library automatically hardcodes DIR into the library
16791 # and all subsequent libraries and executables linked against it.
16792 hardcode_automatic=$hardcode_automatic_F77
16794 # Variables whose values should be saved in libtool wrapper scripts and
16795 # restored at relink time.
16796 variables_saved_for_relink="$variables_saved_for_relink"
16798 # Whether libtool must link a program against all its dependency libraries.
16799 link_all_deplibs=$link_all_deplibs_F77
16801 # Compile-time system search path for libraries
16802 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16804 # Run-time system search path for libraries
16805 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16807 # Fix the shell variable \$srcfile for the compiler.
16808 fix_srcfile_path=$lt_fix_srcfile_path
16810 # Set to yes if exported symbols are required.
16811 always_export_symbols=$always_export_symbols_F77
16813 # The commands to list exported symbols.
16814 export_symbols_cmds=$lt_export_symbols_cmds_F77
16816 # The commands to extract the exported symbol list from a shared archive.
16817 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16819 # Symbols that should not be listed in the preloaded symbols.
16820 exclude_expsyms=$lt_exclude_expsyms_F77
16822 # Symbols that must always be exported.
16823 include_expsyms=$lt_include_expsyms_F77
16825 # ### END LIBTOOL TAG CONFIG: $tagname
16831 # If there is no Makefile yet, we rely on a make rule to execute
16832 # `config.status --recheck' to rerun these tests and create the
16833 # libtool script then.
16834 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16835 if test -f "$ltmain_in"; then
16836 test -f Makefile && make "$ltmain"
16842 ac_cpp='$CPP $CPPFLAGS'
16843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16855 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16858 # Source file extension for Java test sources.
16861 # Object file extension for compiled Java test sources.
16865 # Code to be used in simple compile tests
16866 lt_simple_compile_test_code="class foo {}"
16868 # Code to be used in simple link tests
16869 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16871 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16873 # If no C compiler was specified, use CC.
16876 # If no C compiler flags were specified, use CFLAGS.
16877 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16879 # Allow CC to be a program name with arguments.
16883 # save warnings/boilerplate of simple test code
16884 ac_outfile=conftest.$ac_objext
16885 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16886 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16887 _lt_compiler_boilerplate=`cat conftest.err`
16890 ac_outfile=conftest.$ac_objext
16891 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16892 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16893 _lt_linker_boilerplate=`cat conftest.err`
16897 # Allow CC to be a program name with arguments.
16902 for cc_temp in $compiler""; do
16904 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16905 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16910 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16913 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16914 archive_cmds_need_lc_GCJ=no
16916 old_archive_cmds_GCJ=$old_archive_cmds
16919 lt_prog_compiler_no_builtin_flag_GCJ=
16921 if test "$GCC" = yes; then
16922 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16925 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16926 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16927 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16928 echo $ECHO_N "(cached) $ECHO_C" >&6
16930 lt_cv_prog_compiler_rtti_exceptions=no
16931 ac_outfile=conftest.$ac_objext
16932 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16933 lt_compiler_flag="-fno-rtti -fno-exceptions"
16934 # Insert the option either (1) after the last *FLAGS variable, or
16935 # (2) before a word containing "conftest.", or (3) at the end.
16936 # Note that $ac_compile itself does not contain backslashes and begins
16937 # with a dollar sign (not a hyphen), so the echo should work correctly.
16938 # The option is referenced via a variable to avoid confusing sed.
16939 lt_compile=`echo "$ac_compile" | $SED \
16940 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16941 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16942 -e 's:$: $lt_compiler_flag:'`
16943 (eval echo "\"\$as_me:16943: $lt_compile\"" >&5)
16944 (eval "$lt_compile" 2>conftest.err)
16946 cat conftest.err >&5
16947 echo "$as_me:16947: \$? = $ac_status" >&5
16948 if (exit $ac_status) && test -s "$ac_outfile"; then
16949 # The compiler can only warn and ignore the option if not recognized
16950 # So say no if there are warnings other than the usual output.
16951 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16952 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16953 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16954 lt_cv_prog_compiler_rtti_exceptions=yes
16960 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16961 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16963 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16964 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16971 lt_prog_compiler_wl_GCJ=
16972 lt_prog_compiler_pic_GCJ=
16973 lt_prog_compiler_static_GCJ=
16975 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16976 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16978 if test "$GCC" = yes; then
16979 lt_prog_compiler_wl_GCJ='-Wl,'
16980 lt_prog_compiler_static_GCJ='-static'
16984 # All AIX code is PIC.
16985 if test "$host_cpu" = ia64; then
16986 # AIX 5 now supports IA64 processor
16987 lt_prog_compiler_static_GCJ='-Bstatic'
16992 # FIXME: we need at least 68020 code to build shared libraries, but
16993 # adding the `-m68020' flag to GCC prevents building anything better,
16995 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16998 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16999 # PIC is the default for these OSes.
17002 mingw* | cygwin* | pw32* | os2*)
17003 # This hack is so that the source file can tell whether it is being
17004 # built for inclusion in a dll (and should export symbols for example).
17005 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17006 # (--disable-auto-import) libraries
17010 darwin* | rhapsody*)
17011 # PIC is the default on this platform
17012 # Common symbols not allowed in MH_DYLIB files
17013 lt_prog_compiler_pic_GCJ='-fno-common'
17017 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17018 # Instead, we relocate shared libraries at runtime.
17022 # Just because we use GCC doesn't mean we suddenly get shared libraries
17023 # on systems that don't support them.
17024 lt_prog_compiler_can_build_shared_GCJ=no
17029 if test -d /usr/nec; then
17030 lt_prog_compiler_pic_GCJ=-Kconform_pic
17035 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17036 # not for PA HP-UX.
17042 lt_prog_compiler_pic_GCJ='-fPIC'
17048 lt_prog_compiler_pic_GCJ='-fPIC'
17052 # PORTME Check for flag to pass linker flags through the system compiler.
17055 lt_prog_compiler_wl_GCJ='-Wl,'
17056 if test "$host_cpu" = ia64; then
17057 # AIX 5 now supports IA64 processor
17058 lt_prog_compiler_static_GCJ='-Bstatic'
17060 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17064 # PIC is the default on this platform
17065 # Common symbols not allowed in MH_DYLIB files
17066 case $cc_basename in
17068 lt_prog_compiler_pic_GCJ='-qnocommon'
17069 lt_prog_compiler_wl_GCJ='-Wl,'
17074 mingw* | cygwin* | pw32* | os2*)
17075 # This hack is so that the source file can tell whether it is being
17076 # built for inclusion in a dll (and should export symbols for example).
17080 hpux9* | hpux10* | hpux11*)
17081 lt_prog_compiler_wl_GCJ='-Wl,'
17082 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17083 # not for PA HP-UX.
17089 lt_prog_compiler_pic_GCJ='+Z'
17092 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17093 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17096 irix5* | irix6* | nonstopux*)
17097 lt_prog_compiler_wl_GCJ='-Wl,'
17098 # PIC (with -KPIC) is the default.
17099 lt_prog_compiler_static_GCJ='-non_shared'
17103 lt_prog_compiler_pic_GCJ='-KPIC'
17104 lt_prog_compiler_static_GCJ='-Bstatic'
17107 linux* | k*bsd*-gnu)
17108 case $cc_basename in
17110 lt_prog_compiler_wl_GCJ='-Wl,'
17111 lt_prog_compiler_pic_GCJ='-KPIC'
17112 lt_prog_compiler_static_GCJ='-static'
17114 pgcc* | pgf77* | pgf90* | pgf95*)
17115 # Portland Group compilers (*not* the Pentium gcc compiler,
17116 # which looks to be a dead project)
17117 lt_prog_compiler_wl_GCJ='-Wl,'
17118 lt_prog_compiler_pic_GCJ='-fpic'
17119 lt_prog_compiler_static_GCJ='-Bstatic'
17122 lt_prog_compiler_wl_GCJ='-Wl,'
17123 # All Alpha code is PIC.
17124 lt_prog_compiler_static_GCJ='-non_shared'
17127 case `$CC -V 2>&1 | sed 5q` in
17130 lt_prog_compiler_pic_GCJ='-KPIC'
17131 lt_prog_compiler_static_GCJ='-Bstatic'
17132 lt_prog_compiler_wl_GCJ='-Wl,'
17135 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17136 lt_prog_compiler_pic_GCJ='-KPIC'
17137 lt_prog_compiler_static_GCJ='-Bstatic'
17138 lt_prog_compiler_wl_GCJ=''
17145 osf3* | osf4* | osf5*)
17146 lt_prog_compiler_wl_GCJ='-Wl,'
17147 # All OSF/1 code is PIC.
17148 lt_prog_compiler_static_GCJ='-non_shared'
17152 lt_prog_compiler_static_GCJ='-non_shared'
17156 lt_prog_compiler_pic_GCJ='-KPIC'
17157 lt_prog_compiler_static_GCJ='-Bstatic'
17158 case $cc_basename in
17159 f77* | f90* | f95*)
17160 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17162 lt_prog_compiler_wl_GCJ='-Wl,';;
17167 lt_prog_compiler_wl_GCJ='-Qoption ld '
17168 lt_prog_compiler_pic_GCJ='-PIC'
17169 lt_prog_compiler_static_GCJ='-Bstatic'
17172 sysv4 | sysv4.2uw2* | sysv4.3*)
17173 lt_prog_compiler_wl_GCJ='-Wl,'
17174 lt_prog_compiler_pic_GCJ='-KPIC'
17175 lt_prog_compiler_static_GCJ='-Bstatic'
17179 if test -d /usr/nec ;then
17180 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17181 lt_prog_compiler_static_GCJ='-Bstatic'
17185 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17186 lt_prog_compiler_wl_GCJ='-Wl,'
17187 lt_prog_compiler_pic_GCJ='-KPIC'
17188 lt_prog_compiler_static_GCJ='-Bstatic'
17192 lt_prog_compiler_wl_GCJ='-Wl,'
17193 lt_prog_compiler_can_build_shared_GCJ=no
17197 lt_prog_compiler_pic_GCJ='-pic'
17198 lt_prog_compiler_static_GCJ='-Bstatic'
17202 lt_prog_compiler_can_build_shared_GCJ=no
17207 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17208 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17211 # Check to make sure the PIC flag actually works.
17213 if test -n "$lt_prog_compiler_pic_GCJ"; then
17215 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17216 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17217 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17218 echo $ECHO_N "(cached) $ECHO_C" >&6
17220 lt_cv_prog_compiler_pic_works_GCJ=no
17221 ac_outfile=conftest.$ac_objext
17222 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17223 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17224 # Insert the option either (1) after the last *FLAGS variable, or
17225 # (2) before a word containing "conftest.", or (3) at the end.
17226 # Note that $ac_compile itself does not contain backslashes and begins
17227 # with a dollar sign (not a hyphen), so the echo should work correctly.
17228 # The option is referenced via a variable to avoid confusing sed.
17229 lt_compile=`echo "$ac_compile" | $SED \
17230 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17231 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17232 -e 's:$: $lt_compiler_flag:'`
17233 (eval echo "\"\$as_me:17233: $lt_compile\"" >&5)
17234 (eval "$lt_compile" 2>conftest.err)
17236 cat conftest.err >&5
17237 echo "$as_me:17237: \$? = $ac_status" >&5
17238 if (exit $ac_status) && test -s "$ac_outfile"; then
17239 # The compiler can only warn and ignore the option if not recognized
17240 # So say no if there are warnings other than the usual output.
17241 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17242 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17243 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17244 lt_cv_prog_compiler_pic_works_GCJ=yes
17250 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17251 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17253 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17254 case $lt_prog_compiler_pic_GCJ in
17256 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17259 lt_prog_compiler_pic_GCJ=
17260 lt_prog_compiler_can_build_shared_GCJ=no
17265 # For platforms which do not support PIC, -DPIC is meaningless:
17267 lt_prog_compiler_pic_GCJ=
17270 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17275 # Check to make sure the static flag actually works.
17277 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17278 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17279 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17280 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17281 echo $ECHO_N "(cached) $ECHO_C" >&6
17283 lt_cv_prog_compiler_static_works_GCJ=no
17284 save_LDFLAGS="$LDFLAGS"
17285 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17286 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17287 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17288 # The linker can only warn and ignore the option if not recognized
17289 # So say no if there are warnings
17290 if test -s conftest.err; then
17291 # Append any errors to the config.log.
17292 cat conftest.err 1>&5
17293 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17294 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17295 if diff conftest.exp conftest.er2 >/dev/null; then
17296 lt_cv_prog_compiler_static_works_GCJ=yes
17299 lt_cv_prog_compiler_static_works_GCJ=yes
17303 LDFLAGS="$save_LDFLAGS"
17306 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17307 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17309 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17312 lt_prog_compiler_static_GCJ=
17316 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17317 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17318 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17319 echo $ECHO_N "(cached) $ECHO_C" >&6
17321 lt_cv_prog_compiler_c_o_GCJ=no
17322 $rm -r conftest 2>/dev/null
17326 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17328 lt_compiler_flag="-o out/conftest2.$ac_objext"
17329 # Insert the option either (1) after the last *FLAGS variable, or
17330 # (2) before a word containing "conftest.", or (3) at the end.
17331 # Note that $ac_compile itself does not contain backslashes and begins
17332 # with a dollar sign (not a hyphen), so the echo should work correctly.
17333 lt_compile=`echo "$ac_compile" | $SED \
17334 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17335 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17336 -e 's:$: $lt_compiler_flag:'`
17337 (eval echo "\"\$as_me:17337: $lt_compile\"" >&5)
17338 (eval "$lt_compile" 2>out/conftest.err)
17340 cat out/conftest.err >&5
17341 echo "$as_me:17341: \$? = $ac_status" >&5
17342 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17344 # The compiler can only warn and ignore the option if not recognized
17345 # So say no if there are warnings
17346 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17347 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17348 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17349 lt_cv_prog_compiler_c_o_GCJ=yes
17354 # SGI C++ compiler will create directory out/ii_files/ for
17355 # template instantiation
17356 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17357 $rm out/* && rmdir out
17363 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17364 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17367 hard_links="nottested"
17368 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17369 # do not overwrite the value of need_locks provided by the user
17370 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17371 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17374 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17376 ln conftest.a conftest.b 2>&5 || hard_links=no
17377 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17378 { echo "$as_me:$LINENO: result: $hard_links" >&5
17379 echo "${ECHO_T}$hard_links" >&6; }
17380 if test "$hard_links" = no; then
17381 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17382 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17389 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17390 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17393 allow_undefined_flag_GCJ=
17394 enable_shared_with_static_runtimes_GCJ=no
17396 archive_expsym_cmds_GCJ=
17397 old_archive_From_new_cmds_GCJ=
17398 old_archive_from_expsyms_cmds_GCJ=
17399 export_dynamic_flag_spec_GCJ=
17400 whole_archive_flag_spec_GCJ=
17401 thread_safe_flag_spec_GCJ=
17402 hardcode_libdir_flag_spec_GCJ=
17403 hardcode_libdir_flag_spec_ld_GCJ=
17404 hardcode_libdir_separator_GCJ=
17405 hardcode_direct_GCJ=no
17406 hardcode_minus_L_GCJ=no
17407 hardcode_shlibpath_var_GCJ=unsupported
17408 link_all_deplibs_GCJ=unknown
17409 hardcode_automatic_GCJ=no
17411 module_expsym_cmds_GCJ=
17412 always_export_symbols_GCJ=no
17413 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17414 # include_expsyms should be a list of space-separated symbols to be *always*
17415 # included in the symbol list
17416 include_expsyms_GCJ=
17417 # exclude_expsyms can be an extended regexp of symbols to exclude
17418 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17419 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17420 # as well as any symbol that contains `d'.
17421 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17422 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17423 # platforms (ab)use it in PIC code, but their linkers get confused if
17424 # the symbol is explicitly referenced. Since portable code cannot
17425 # rely on this symbol name, it's probably fine to never include it in
17426 # preloaded symbol tables.
17427 # Exclude shared library initialization/finalization symbols.
17428 extract_expsyms_cmds=
17429 # Just being paranoid about ensuring that cc_basename is set.
17430 for cc_temp in $compiler""; do
17432 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17433 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17438 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17441 cygwin* | mingw* | pw32*)
17442 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17443 # When not using gcc, we currently assume that we are using
17444 # Microsoft Visual C++.
17445 if test "$GCC" != yes; then
17450 # we just hope/assume this is gcc and not c89 (= MSVC++)
17459 if test "$with_gnu_ld" = yes; then
17460 # If archive_cmds runs LD, not CC, wlarc should be empty
17463 # Set some defaults for GNU ld with shared library support. These
17464 # are reset later if shared libraries are not supported. Putting them
17465 # here allows them to be overridden if necessary.
17466 runpath_var=LD_RUN_PATH
17467 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17468 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17469 # ancient GNU ld didn't support --whole-archive et. al.
17470 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17471 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17473 whole_archive_flag_spec_GCJ=
17475 supports_anon_versioning=no
17476 case `$LD -v 2>/dev/null` in
17477 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17478 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17479 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17480 *\ 2.11.*) ;; # other 2.11 versions
17481 *) supports_anon_versioning=yes ;;
17484 # See if GNU ld supports shared libraries.
17487 # On AIX/PPC, the GNU linker is very broken
17488 if test "$host_cpu" != ia64; then
17492 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17493 *** to be unable to reliably create shared libraries on AIX.
17494 *** Therefore, libtool is disabling shared libraries support. If you
17495 *** really care for shared libraries, you may want to modify your PATH
17496 *** so that a non-GNU linker is found, and then restart.
17503 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)'
17504 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17505 hardcode_minus_L_GCJ=yes
17507 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17508 # that the semantics of dynamic libraries on AmigaOS, at least up
17509 # to version 4, is to share data among multiple programs linked
17510 # with the same dynamic library. Since this doesn't match the
17511 # behavior of shared libraries on other platforms, we can't use
17517 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17518 allow_undefined_flag_GCJ=unsupported
17519 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17520 # support --undefined. This deserves some investigation. FIXME
17521 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17527 cygwin* | mingw* | pw32*)
17528 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17529 # as there is no search path for DLLs.
17530 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17531 allow_undefined_flag_GCJ=unsupported
17532 always_export_symbols_GCJ=no
17533 enable_shared_with_static_runtimes_GCJ=yes
17534 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17536 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17537 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17538 # If the export-symbols file already is a .def file (1st line
17539 # is EXPORTS), use it as is; otherwise, prepend...
17540 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17541 cp $export_symbols $output_objdir/$soname.def;
17543 echo EXPORTS > $output_objdir/$soname.def;
17544 cat $export_symbols >> $output_objdir/$soname.def;
17546 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17553 hardcode_direct_GCJ=no
17554 hardcode_shlibpath_var_GCJ=no
17555 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17556 export_dynamic_flag_spec_GCJ='${wl}-E'
17557 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17558 # Instead, shared libraries are loaded at an image base (0x10000000 by
17559 # default) and relocated if they conflict, which is a slow very memory
17560 # consuming and fragmenting process. To avoid this, we pick a random,
17561 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17562 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17563 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'
17564 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'
17567 gnu* | linux* | k*bsd*-gnu)
17568 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17570 case $cc_basename,$host_cpu in
17571 pgcc*) # Portland Group C compiler
17572 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'
17573 tmp_addflag=' $pic_flag'
17575 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17576 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'
17577 tmp_addflag=' $pic_flag -Mnomain' ;;
17578 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17579 tmp_addflag=' -i_dynamic' ;;
17580 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17581 tmp_addflag=' -i_dynamic -nofor_main' ;;
17582 ifc* | ifort*) # Intel Fortran compiler
17583 tmp_addflag=' -nofor_main' ;;
17585 case `$CC -V 2>&1 | sed 5q` in
17586 *Sun\ C*) # Sun C 5.9
17587 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'
17588 tmp_sharedflag='-G' ;;
17589 *Sun\ F*) # Sun Fortran 8.3
17590 tmp_sharedflag='-G' ;;
17592 tmp_sharedflag='-shared' ;;
17594 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17596 if test $supports_anon_versioning = yes; then
17597 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17598 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17599 $echo "local: *; };" >> $output_objdir/$libname.ver~
17600 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17608 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17609 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17612 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17613 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17618 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17622 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17623 *** create shared libraries on Solaris systems. Therefore, libtool
17624 *** is disabling shared libraries support. We urge you to upgrade GNU
17625 *** binutils to release 2.9.1 or newer. Another option is to modify
17626 *** your PATH or compiler configuration so that the native linker is
17627 *** used, and then restart.
17630 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17631 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17632 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17638 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17639 case `$LD -v 2>&1` in
17640 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17644 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17645 *** reliably create shared libraries on SCO systems. Therefore, libtool
17646 *** is disabling shared libraries support. We urge you to upgrade GNU
17647 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17648 *** your PATH or compiler configuration so that the native linker is
17649 *** used, and then restart.
17654 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17655 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17656 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17657 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17666 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17668 hardcode_direct_GCJ=yes
17669 hardcode_shlibpath_var_GCJ=no
17673 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17674 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17675 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17682 if test "$ld_shlibs_GCJ" = no; then
17684 hardcode_libdir_flag_spec_GCJ=
17685 export_dynamic_flag_spec_GCJ=
17686 whole_archive_flag_spec_GCJ=
17689 # PORTME fill in a description of your system's linker (not GNU ld)
17692 allow_undefined_flag_GCJ=unsupported
17693 always_export_symbols_GCJ=yes
17694 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'
17695 # Note: this linker hardcodes the directories in LIBPATH if there
17696 # are no directories specified by -L.
17697 hardcode_minus_L_GCJ=yes
17698 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17699 # Neither direct hardcoding nor static linking is supported with a
17701 hardcode_direct_GCJ=unsupported
17706 if test "$host_cpu" = ia64; then
17707 # On IA64, the linker does run time linking by default, so we don't
17708 # have to do anything special.
17709 aix_use_runtimelinking=no
17710 exp_sym_flag='-Bexport'
17713 # If we're using GNU nm, then we don't want the "-C" option.
17714 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17715 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17716 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'
17718 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'
17720 aix_use_runtimelinking=no
17722 # Test if we are trying to use run time linking or normal
17723 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17724 # need to do runtime linking.
17725 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17726 for ld_flag in $LDFLAGS; do
17727 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17728 aix_use_runtimelinking=yes
17735 exp_sym_flag='-bexport'
17736 no_entry_flag='-bnoentry'
17739 # When large executables or shared objects are built, AIX ld can
17740 # have problems creating the table of contents. If linking a library
17741 # or program results in "error TOC overflow" add -mminimal-toc to
17742 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17743 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17745 archive_cmds_GCJ=''
17746 hardcode_direct_GCJ=yes
17747 hardcode_libdir_separator_GCJ=':'
17748 link_all_deplibs_GCJ=yes
17750 if test "$GCC" = yes; then
17751 case $host_os in aix4.[012]|aix4.[012].*)
17752 # We only want to do this on AIX 4.2 and lower, the check
17753 # below for broken collect2 doesn't work under 4.3+
17754 collect2name=`${CC} -print-prog-name=collect2`
17755 if test -f "$collect2name" && \
17756 strings "$collect2name" | grep resolve_lib_name >/dev/null
17758 # We have reworked collect2
17761 # We have old collect2
17762 hardcode_direct_GCJ=unsupported
17763 # It fails to find uninstalled libraries when the uninstalled
17764 # path is not listed in the libpath. Setting hardcode_minus_L
17765 # to unsupported forces relinking
17766 hardcode_minus_L_GCJ=yes
17767 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17768 hardcode_libdir_separator_GCJ=
17772 shared_flag='-shared'
17773 if test "$aix_use_runtimelinking" = yes; then
17774 shared_flag="$shared_flag "'${wl}-G'
17778 if test "$host_cpu" = ia64; then
17779 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17780 # chokes on -Wl,-G. The following line is correct:
17783 if test "$aix_use_runtimelinking" = yes; then
17784 shared_flag='${wl}-G'
17786 shared_flag='${wl}-bM:SRE'
17791 # It seems that -bexpall does not export symbols beginning with
17792 # underscore (_), so it is better to generate a list of symbols to export.
17793 always_export_symbols_GCJ=yes
17794 if test "$aix_use_runtimelinking" = yes; then
17795 # Warning - without using the other runtime loading flags (-brtl),
17796 # -berok will link without error, but may produce a broken library.
17797 allow_undefined_flag_GCJ='-berok'
17798 # Determine the default libpath from the value encoded in an empty executable.
17799 cat >conftest.$ac_ext <<_ACEOF
17802 cat confdefs.h >>conftest.$ac_ext
17803 cat >>conftest.$ac_ext <<_ACEOF
17804 /* end confdefs.h. */
17814 rm -f conftest.$ac_objext conftest$ac_exeext
17815 if { (ac_try="$ac_link"
17816 case "(($ac_try" in
17817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17818 *) ac_try_echo=$ac_try;;
17820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17821 (eval "$ac_link") 2>conftest.er1
17823 grep -v '^ *+' conftest.er1 >conftest.err
17825 cat conftest.err >&5
17826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827 (exit $ac_status); } && {
17828 test -z "$ac_c_werror_flag" ||
17829 test ! -s conftest.err
17830 } && test -s conftest$ac_exeext &&
17831 $as_test_x conftest$ac_exeext; then
17833 lt_aix_libpath_sed='
17834 /Import File Strings/,/^$/ {
17840 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17841 # Check for a 64-bit object if we didn't find anything.
17842 if test -z "$aix_libpath"; then
17843 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17846 echo "$as_me: failed program was:" >&5
17847 sed 's/^/| /' conftest.$ac_ext >&5
17852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17853 conftest$ac_exeext conftest.$ac_ext
17854 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17856 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17857 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"
17859 if test "$host_cpu" = ia64; then
17860 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17861 allow_undefined_flag_GCJ="-z nodefs"
17862 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"
17864 # Determine the default libpath from the value encoded in an empty executable.
17865 cat >conftest.$ac_ext <<_ACEOF
17868 cat confdefs.h >>conftest.$ac_ext
17869 cat >>conftest.$ac_ext <<_ACEOF
17870 /* end confdefs.h. */
17880 rm -f conftest.$ac_objext conftest$ac_exeext
17881 if { (ac_try="$ac_link"
17882 case "(($ac_try" in
17883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17884 *) ac_try_echo=$ac_try;;
17886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17887 (eval "$ac_link") 2>conftest.er1
17889 grep -v '^ *+' conftest.er1 >conftest.err
17891 cat conftest.err >&5
17892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17893 (exit $ac_status); } && {
17894 test -z "$ac_c_werror_flag" ||
17895 test ! -s conftest.err
17896 } && test -s conftest$ac_exeext &&
17897 $as_test_x conftest$ac_exeext; then
17899 lt_aix_libpath_sed='
17900 /Import File Strings/,/^$/ {
17906 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17907 # Check for a 64-bit object if we didn't find anything.
17908 if test -z "$aix_libpath"; then
17909 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17912 echo "$as_me: failed program was:" >&5
17913 sed 's/^/| /' conftest.$ac_ext >&5
17918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17919 conftest$ac_exeext conftest.$ac_ext
17920 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17922 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17923 # Warning - without using the other run time loading flags,
17924 # -berok will link without error, but may produce a broken library.
17925 no_undefined_flag_GCJ=' ${wl}-bernotok'
17926 allow_undefined_flag_GCJ=' ${wl}-berok'
17927 # Exported symbols can be pulled into shared objects from archives
17928 whole_archive_flag_spec_GCJ='$convenience'
17929 archive_cmds_need_lc_GCJ=yes
17930 # This is similar to how AIX traditionally builds its shared libraries.
17931 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'
17937 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)'
17938 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17939 hardcode_minus_L_GCJ=yes
17940 # see comment about different semantics on the GNU ld section
17945 export_dynamic_flag_spec_GCJ=-rdynamic
17948 cygwin* | mingw* | pw32*)
17949 # When not using gcc, we currently assume that we are using
17950 # Microsoft Visual C++.
17951 # hardcode_libdir_flag_spec is actually meaningless, as there is
17952 # no search path for DLLs.
17953 hardcode_libdir_flag_spec_GCJ=' '
17954 allow_undefined_flag_GCJ=unsupported
17955 # Tell ltmain to make .lib files, not .a files.
17957 # Tell ltmain to make .dll files, not .so files.
17959 # FIXME: Setting linknames here is a bad hack.
17960 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17961 # The linker will automatically build a .lib file if we build a DLL.
17962 old_archive_From_new_cmds_GCJ='true'
17963 # FIXME: Should let the user specify the lib program.
17964 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17965 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17966 enable_shared_with_static_runtimes_GCJ=yes
17969 darwin* | rhapsody*)
17971 rhapsody* | darwin1.[012])
17972 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17975 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17976 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17978 case ${MACOSX_DEPLOYMENT_TARGET} in
17980 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17983 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17989 archive_cmds_need_lc_GCJ=no
17990 hardcode_direct_GCJ=no
17991 hardcode_automatic_GCJ=yes
17992 hardcode_shlibpath_var_GCJ=unsupported
17993 whole_archive_flag_spec_GCJ=''
17994 link_all_deplibs_GCJ=yes
17995 if test "$GCC" = yes ; then
17996 output_verbose_link_cmd='echo'
17997 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}"
17998 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17999 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}"
18000 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}"
18002 case $cc_basename in
18004 output_verbose_link_cmd='echo'
18005 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18006 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18007 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18008 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}'
18009 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}'
18019 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18020 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18021 hardcode_shlibpath_var_GCJ=no
18028 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18029 # support. Future versions do this automatically, but an explicit c++rt0.o
18030 # does not break anything, and helps significantly (at the cost of a little
18033 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18034 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18035 hardcode_direct_GCJ=yes
18036 hardcode_shlibpath_var_GCJ=no
18039 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18041 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18042 hardcode_direct_GCJ=yes
18043 hardcode_minus_L_GCJ=yes
18044 hardcode_shlibpath_var_GCJ=no
18047 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18048 freebsd* | dragonfly*)
18049 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18050 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18051 hardcode_direct_GCJ=yes
18052 hardcode_shlibpath_var_GCJ=no
18056 if test "$GCC" = yes; then
18057 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'
18059 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'
18061 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18062 hardcode_libdir_separator_GCJ=:
18063 hardcode_direct_GCJ=yes
18065 # hardcode_minus_L: Not really in the search PATH,
18066 # but as the default location of the library.
18067 hardcode_minus_L_GCJ=yes
18068 export_dynamic_flag_spec_GCJ='${wl}-E'
18072 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18073 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18075 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18077 if test "$with_gnu_ld" = no; then
18078 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18079 hardcode_libdir_separator_GCJ=:
18081 hardcode_direct_GCJ=yes
18082 export_dynamic_flag_spec_GCJ='${wl}-E'
18084 # hardcode_minus_L: Not really in the search PATH,
18085 # but as the default location of the library.
18086 hardcode_minus_L_GCJ=yes
18091 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18094 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18097 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18100 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18106 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18109 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18112 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18116 if test "$with_gnu_ld" = no; then
18117 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18118 hardcode_libdir_separator_GCJ=:
18122 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18123 hardcode_direct_GCJ=no
18124 hardcode_shlibpath_var_GCJ=no
18127 hardcode_direct_GCJ=yes
18128 export_dynamic_flag_spec_GCJ='${wl}-E'
18130 # hardcode_minus_L: Not really in the search PATH,
18131 # but as the default location of the library.
18132 hardcode_minus_L_GCJ=yes
18138 irix5* | irix6* | nonstopux*)
18139 if test "$GCC" = yes; then
18140 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'
18142 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'
18143 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18145 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18146 hardcode_libdir_separator_GCJ=:
18147 link_all_deplibs_GCJ=yes
18151 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18152 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18154 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18156 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18157 hardcode_direct_GCJ=yes
18158 hardcode_shlibpath_var_GCJ=no
18162 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18163 hardcode_direct_GCJ=yes
18164 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18165 hardcode_libdir_separator_GCJ=:
18166 hardcode_shlibpath_var_GCJ=no
18170 if test -f /usr/libexec/ld.so; then
18171 hardcode_direct_GCJ=yes
18172 hardcode_shlibpath_var_GCJ=no
18173 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18174 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18175 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18176 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18177 export_dynamic_flag_spec_GCJ='${wl}-E'
18180 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18181 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18182 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18185 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18186 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18196 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18197 hardcode_minus_L_GCJ=yes
18198 allow_undefined_flag_GCJ=unsupported
18199 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'
18200 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18204 if test "$GCC" = yes; then
18205 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18206 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'
18208 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18209 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'
18211 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18212 hardcode_libdir_separator_GCJ=:
18215 osf4* | osf5*) # as osf3* with the addition of -msym flag
18216 if test "$GCC" = yes; then
18217 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18218 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'
18219 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18221 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18222 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'
18223 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~
18224 $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'
18226 # Both c and cxx compiler support -rpath directly
18227 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18229 hardcode_libdir_separator_GCJ=:
18233 no_undefined_flag_GCJ=' -z text'
18234 if test "$GCC" = yes; then
18236 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18237 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18238 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18241 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18242 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18243 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18245 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18246 hardcode_shlibpath_var_GCJ=no
18248 solaris2.[0-5] | solaris2.[0-5].*) ;;
18250 # The compiler driver will combine and reorder linker options,
18251 # but understands `-z linker_flag'. GCC discards it without `$wl',
18252 # but is careful enough not to reorder.
18253 # Supported since Solaris 2.6 (maybe 2.5.1?)
18254 if test "$GCC" = yes; then
18255 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18257 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18261 link_all_deplibs_GCJ=yes
18265 if test "x$host_vendor" = xsequent; then
18266 # Use $CC to link under sequent, because it throws in some extra .o
18267 # files that make .init and .fini sections work.
18268 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18270 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18272 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18273 hardcode_direct_GCJ=yes
18274 hardcode_minus_L_GCJ=yes
18275 hardcode_shlibpath_var_GCJ=no
18279 case $host_vendor in
18281 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18282 hardcode_direct_GCJ=yes # is this really true???
18285 ## LD is ld it makes a PLAMLIB
18286 ## CC just makes a GrossModule.
18287 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18288 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18289 hardcode_direct_GCJ=no
18292 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18293 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18296 runpath_var='LD_RUN_PATH'
18297 hardcode_shlibpath_var_GCJ=no
18301 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18302 hardcode_shlibpath_var_GCJ=no
18303 export_dynamic_flag_spec_GCJ='-Bexport'
18307 if test -d /usr/nec; then
18308 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18309 hardcode_shlibpath_var_GCJ=no
18310 runpath_var=LD_RUN_PATH
18311 hardcode_runpath_var=yes
18316 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18317 no_undefined_flag_GCJ='${wl}-z,text'
18318 archive_cmds_need_lc_GCJ=no
18319 hardcode_shlibpath_var_GCJ=no
18320 runpath_var='LD_RUN_PATH'
18322 if test "$GCC" = yes; then
18323 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18324 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18326 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18327 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18331 sysv5* | sco3.2v5* | sco5v6*)
18332 # Note: We can NOT use -z defs as we might desire, because we do not
18333 # link with -lc, and that would cause any symbols used from libc to
18334 # always be unresolved, which means just about no library would
18335 # ever link correctly. If we're not using GNU ld we use -z text
18336 # though, which does catch some bad symbols but isn't as heavy-handed
18338 no_undefined_flag_GCJ='${wl}-z,text'
18339 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18340 archive_cmds_need_lc_GCJ=no
18341 hardcode_shlibpath_var_GCJ=no
18342 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18343 hardcode_libdir_separator_GCJ=':'
18344 link_all_deplibs_GCJ=yes
18345 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18346 runpath_var='LD_RUN_PATH'
18348 if test "$GCC" = yes; then
18349 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18350 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18352 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18353 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18358 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18359 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18360 hardcode_shlibpath_var_GCJ=no
18369 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18370 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18371 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18374 # Do we need to explicitly link libc?
18376 case "x$archive_cmds_need_lc_GCJ" in
18378 # Assume -lc should be added
18379 archive_cmds_need_lc_GCJ=yes
18381 if test "$enable_shared" = yes && test "$GCC" = yes; then
18382 case $archive_cmds_GCJ in
18384 # FIXME: we may have to deal with multi-command sequences.
18387 # Test whether the compiler implicitly links with -lc since on some
18388 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18389 # to ld, don't add -lc before -lgcc.
18390 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18391 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18393 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18396 (eval $ac_compile) 2>&5
18398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18399 (exit $ac_status); } 2>conftest.err; then
18402 libobjs=conftest.$ac_objext
18404 wl=$lt_prog_compiler_wl_GCJ
18405 pic_flag=$lt_prog_compiler_pic_GCJ
18411 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18412 allow_undefined_flag_GCJ=
18413 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18414 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18417 (exit $ac_status); }
18419 archive_cmds_need_lc_GCJ=no
18421 archive_cmds_need_lc_GCJ=yes
18423 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18425 cat conftest.err 1>&5
18428 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18429 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18436 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18437 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18438 library_names_spec=
18439 libname_spec='lib$name'
18443 postuninstall_cmds=
18447 shlibpath_overrides_runpath=unknown
18449 dynamic_linker="$host_os ld.so"
18450 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18452 need_lib_prefix=unknown
18453 hardcode_into_libs=no
18455 # when you set need_version to no, make sure it does not cause -set_version
18456 # flags to be left without arguments
18457 need_version=unknown
18462 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18463 shlibpath_var=LIBPATH
18465 # AIX 3 has no versioning support, so we append a major version to the name.
18466 soname_spec='${libname}${release}${shared_ext}$major'
18473 hardcode_into_libs=yes
18474 if test "$host_cpu" = ia64; then
18475 # AIX 5 supports IA64
18476 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18477 shlibpath_var=LD_LIBRARY_PATH
18479 # With GCC up to 2.95.x, collect2 would create an import file
18480 # for dependence libraries. The import file would start with
18481 # the line `#! .'. This would cause the generated library to
18482 # depend on `.', always an invalid library. This was fixed in
18483 # development snapshots of GCC prior to 3.0.
18485 aix4 | aix4.[01] | aix4.[01].*)
18486 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18488 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18491 can_build_shared=no
18495 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18496 # soname into executable. Probably we can add versioning support to
18497 # collect2, so additional links can be useful in future.
18498 if test "$aix_use_runtimelinking" = yes; then
18499 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18500 # instead of lib<name>.a to let people know that these are not
18501 # typical AIX shared libraries.
18502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18504 # We preserve .a as extension for shared libraries through AIX4.2
18505 # and later when we are not doing run time linking.
18506 library_names_spec='${libname}${release}.a $libname.a'
18507 soname_spec='${libname}${release}${shared_ext}$major'
18509 shlibpath_var=LIBPATH
18514 library_names_spec='$libname.ixlibrary $libname.a'
18515 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18516 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'
18520 library_names_spec='${libname}${shared_ext}'
18521 dynamic_linker="$host_os ld.so"
18522 shlibpath_var=LIBRARY_PATH
18528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18529 soname_spec='${libname}${release}${shared_ext}$major'
18530 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18531 shlibpath_var=LD_LIBRARY_PATH
18532 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18533 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18534 # the default ld.so.conf also contains /usr/contrib/lib and
18535 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18536 # libtool to hard-code these into programs
18539 cygwin* | mingw* | pw32*)
18540 version_type=windows
18545 case $GCC,$host_os in
18546 yes,cygwin* | yes,mingw* | yes,pw32*)
18547 library_names_spec='$libname.dll.a'
18548 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18549 postinstall_cmds='base_file=`basename \${file}`~
18550 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18551 dldir=$destdir/`dirname \$dlpath`~
18552 test -d \$dldir || mkdir -p \$dldir~
18553 $install_prog $dir/$dlname \$dldir/$dlname~
18554 chmod a+x \$dldir/$dlname'
18555 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18556 dlpath=$dir/\$dldll~
18558 shlibpath_overrides_runpath=yes
18562 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18563 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18564 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18567 # MinGW DLLs use traditional 'lib' prefix
18568 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18569 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18570 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18571 # It is most probably a Windows format PATH printed by
18572 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18573 # path with ; separators, and with drive letters. We can handle the
18574 # drive letters (cygwin fileutils understands them), so leave them,
18575 # especially as we might pass files found there to a mingw objdump,
18576 # which wouldn't understand a cygwinified path. Ahh.
18577 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18579 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18583 # pw32 DLLs use 'pw' prefix rather than 'lib'
18584 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18590 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18593 dynamic_linker='Win32 ld.exe'
18594 # FIXME: first we should search . and the directory the executable is in
18598 darwin* | rhapsody*)
18599 dynamic_linker="$host_os dyld"
18600 version_type=darwin
18603 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18604 soname_spec='${libname}${release}${major}$shared_ext'
18605 shlibpath_overrides_runpath=yes
18606 shlibpath_var=DYLD_LIBRARY_PATH
18607 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18609 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18617 soname_spec='${libname}${release}${shared_ext}$major'
18618 shlibpath_var=LD_LIBRARY_PATH
18625 freebsd* | dragonfly*)
18626 # DragonFly does not have aout. When/if they implement a new
18627 # versioning mechanism, adjust this.
18628 if test -x /usr/bin/objformat; then
18629 objformat=`/usr/bin/objformat`
18632 freebsd[123]*) objformat=aout ;;
18633 *) objformat=elf ;;
18636 version_type=freebsd-$objformat
18637 case $version_type in
18639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18644 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18648 shlibpath_var=LD_LIBRARY_PATH
18651 shlibpath_overrides_runpath=yes
18653 freebsd3.[01]* | freebsdelf3.[01]*)
18654 shlibpath_overrides_runpath=yes
18655 hardcode_into_libs=yes
18657 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18658 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18659 shlibpath_overrides_runpath=no
18660 hardcode_into_libs=yes
18662 *) # from 4.6 on, and DragonFly
18663 shlibpath_overrides_runpath=yes
18664 hardcode_into_libs=yes
18673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18674 soname_spec='${libname}${release}${shared_ext}$major'
18675 shlibpath_var=LD_LIBRARY_PATH
18676 hardcode_into_libs=yes
18679 hpux9* | hpux10* | hpux11*)
18680 # Give a soname corresponding to the major version so that dld.sl refuses to
18681 # link against other versions.
18688 hardcode_into_libs=yes
18689 dynamic_linker="$host_os dld.so"
18690 shlibpath_var=LD_LIBRARY_PATH
18691 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18693 soname_spec='${libname}${release}${shared_ext}$major'
18694 if test "X$HPUX_IA64_MODE" = X32; then
18695 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18697 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18699 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18703 hardcode_into_libs=yes
18704 dynamic_linker="$host_os dld.sl"
18705 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18706 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18708 soname_spec='${libname}${release}${shared_ext}$major'
18709 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18710 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18714 dynamic_linker="$host_os dld.sl"
18715 shlibpath_var=SHLIB_PATH
18716 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18718 soname_spec='${libname}${release}${shared_ext}$major'
18721 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18722 postinstall_cmds='chmod 555 $lib'
18729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18730 soname_spec='${libname}${release}${shared_ext}$major'
18731 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18732 shlibpath_var=LD_LIBRARY_PATH
18733 shlibpath_overrides_runpath=no
18734 hardcode_into_libs=yes
18737 irix5* | irix6* | nonstopux*)
18739 nonstopux*) version_type=nonstopux ;;
18741 if test "$lt_cv_prog_gnu_ld" = yes; then
18749 soname_spec='${libname}${release}${shared_ext}$major'
18750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18752 irix5* | nonstopux*)
18753 libsuff= shlibsuff=
18756 case $LD in # libtool.m4 will add one of these switches to LD
18757 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18758 libsuff= shlibsuff= libmagic=32-bit;;
18759 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18760 libsuff=32 shlibsuff=N32 libmagic=N32;;
18761 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18762 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18763 *) libsuff= shlibsuff= libmagic=never-match;;
18767 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18768 shlibpath_overrides_runpath=no
18769 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18770 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18771 hardcode_into_libs=yes
18774 # No shared lib support for Linux oldld, aout, or coff.
18775 linux*oldld* | linux*aout* | linux*coff*)
18779 # This must be Linux ELF.
18780 linux* | k*bsd*-gnu)
18784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18785 soname_spec='${libname}${release}${shared_ext}$major'
18786 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18787 shlibpath_var=LD_LIBRARY_PATH
18788 shlibpath_overrides_runpath=no
18789 # This implies no fast_install, which is unacceptable.
18790 # Some rework will be needed to allow for fast_install
18791 # before this can be enabled.
18792 hardcode_into_libs=yes
18794 # Append ld.so.conf contents to the search path
18795 if test -f /etc/ld.so.conf; then
18796 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' ' '`
18797 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18800 # We used to test for /lib/ld.so.1 and disable shared libraries on
18801 # powerpc, because MkLinux only supported shared libraries with the
18802 # GNU dynamic linker. Since this was broken with cross compilers,
18803 # most powerpc-linux boxes support dynamic linking these days and
18804 # people can always --disable-shared, the test was removed, and we
18805 # assume the GNU/Linux dynamic linker is in use.
18806 dynamic_linker='GNU/Linux ld.so'
18813 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18815 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18816 dynamic_linker='NetBSD (a.out) ld.so'
18818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18819 soname_spec='${libname}${release}${shared_ext}$major'
18820 dynamic_linker='NetBSD ld.elf_so'
18822 shlibpath_var=LD_LIBRARY_PATH
18823 shlibpath_overrides_runpath=yes
18824 hardcode_into_libs=yes
18829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18830 shlibpath_var=LD_LIBRARY_PATH
18831 shlibpath_overrides_runpath=yes
18838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18839 soname_spec='${libname}${release}${shared_ext}$major'
18840 shlibpath_var=LD_LIBRARY_PATH
18841 shlibpath_overrides_runpath=yes
18846 sys_lib_dlsearch_path_spec="/usr/lib"
18848 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18850 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18851 *) need_version=no ;;
18853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18854 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18855 shlibpath_var=LD_LIBRARY_PATH
18856 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18858 openbsd2.[89] | openbsd2.[89].*)
18859 shlibpath_overrides_runpath=no
18862 shlibpath_overrides_runpath=yes
18866 shlibpath_overrides_runpath=yes
18871 libname_spec='$name'
18874 library_names_spec='$libname${shared_ext} $libname.a'
18875 dynamic_linker='OS/2 ld.exe'
18876 shlibpath_var=LIBPATH
18879 osf3* | osf4* | osf5*)
18883 soname_spec='${libname}${release}${shared_ext}$major'
18884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18885 shlibpath_var=LD_LIBRARY_PATH
18886 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18887 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18899 soname_spec='${libname}${release}${shared_ext}$major'
18900 shlibpath_var=LD_LIBRARY_PATH
18901 shlibpath_overrides_runpath=yes
18902 hardcode_into_libs=yes
18903 # ldd complains unless libraries are executable
18904 postinstall_cmds='chmod +x $lib'
18909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18910 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18911 shlibpath_var=LD_LIBRARY_PATH
18912 shlibpath_overrides_runpath=yes
18913 if test "$with_gnu_ld" = yes; then
18921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18922 soname_spec='${libname}${release}${shared_ext}$major'
18923 shlibpath_var=LD_LIBRARY_PATH
18924 case $host_vendor in
18926 shlibpath_overrides_runpath=no
18928 export_dynamic_flag_spec='${wl}-Blargedynsym'
18929 runpath_var=LD_RUN_PATH
18937 shlibpath_overrides_runpath=no
18938 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18944 if test -d /usr/nec ;then
18946 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18947 soname_spec='$libname${shared_ext}.$major'
18948 shlibpath_var=LD_LIBRARY_PATH
18952 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18953 version_type=freebsd-elf
18956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18957 soname_spec='${libname}${release}${shared_ext}$major'
18958 shlibpath_var=LD_LIBRARY_PATH
18959 hardcode_into_libs=yes
18960 if test "$with_gnu_ld" = yes; then
18961 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18962 shlibpath_overrides_runpath=no
18964 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18965 shlibpath_overrides_runpath=yes
18968 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18972 sys_lib_dlsearch_path_spec='/usr/lib'
18977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18978 soname_spec='${libname}${release}${shared_ext}$major'
18979 shlibpath_var=LD_LIBRARY_PATH
18986 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18987 echo "${ECHO_T}$dynamic_linker" >&6; }
18988 test "$dynamic_linker" = no && can_build_shared=no
18990 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18991 echo $ECHO_N "(cached) $ECHO_C" >&6
18993 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18996 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18997 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18998 echo $ECHO_N "(cached) $ECHO_C" >&6
19000 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19003 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19005 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19006 if test "$GCC" = yes; then
19007 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19010 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19011 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19012 hardcode_action_GCJ=
19013 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19014 test -n "$runpath_var_GCJ" || \
19015 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19017 # We can hardcode non-existant directories.
19018 if test "$hardcode_direct_GCJ" != no &&
19019 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19020 # have to relink, otherwise we might link with an installed library
19021 # when we should be linking with a yet-to-be-installed one
19022 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19023 test "$hardcode_minus_L_GCJ" != no; then
19024 # Linking always hardcodes the temporary library directory.
19025 hardcode_action_GCJ=relink
19027 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19028 hardcode_action_GCJ=immediate
19031 # We cannot hardcode anything, or else we can only hardcode existing
19033 hardcode_action_GCJ=unsupported
19035 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19036 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19038 if test "$hardcode_action_GCJ" = relink; then
19039 # Fast installation is not supported
19040 enable_fast_install=no
19041 elif test "$shlibpath_overrides_runpath" = yes ||
19042 test "$enable_shared" = no; then
19043 # Fast installation is not necessary
19044 enable_fast_install=needless
19048 # The else clause should only fire when bootstrapping the
19049 # libtool distribution, otherwise you forgot to ship ltmain.sh
19050 # with your package, and you will get complaints that there are
19051 # no rules to generate ltmain.sh.
19052 if test -f "$ltmain"; then
19053 # See if we are running on zsh, and set the options which allow our commands through
19054 # without removal of \ escapes.
19055 if test -n "${ZSH_VERSION+set}" ; then
19056 setopt NO_GLOB_SUBST
19058 # Now quote all the things that may contain metacharacters while being
19059 # careful not to overquote the AC_SUBSTed values. We take copies of the
19060 # variables and quote the copies for generation of the libtool script.
19061 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19063 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19064 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19065 deplibs_check_method reload_flag reload_cmds need_locks \
19066 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19067 lt_cv_sys_global_symbol_to_c_name_address \
19068 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19069 old_postinstall_cmds old_postuninstall_cmds \
19073 lt_prog_compiler_wl_GCJ \
19074 lt_prog_compiler_pic_GCJ \
19075 lt_prog_compiler_static_GCJ \
19076 lt_prog_compiler_no_builtin_flag_GCJ \
19077 export_dynamic_flag_spec_GCJ \
19078 thread_safe_flag_spec_GCJ \
19079 whole_archive_flag_spec_GCJ \
19080 enable_shared_with_static_runtimes_GCJ \
19081 old_archive_cmds_GCJ \
19082 old_archive_from_new_cmds_GCJ \
19083 predep_objects_GCJ \
19084 postdep_objects_GCJ \
19087 compiler_lib_search_path_GCJ \
19088 compiler_lib_search_dirs_GCJ \
19090 archive_expsym_cmds_GCJ \
19091 postinstall_cmds_GCJ \
19092 postuninstall_cmds_GCJ \
19093 old_archive_from_expsyms_cmds_GCJ \
19094 allow_undefined_flag_GCJ \
19095 no_undefined_flag_GCJ \
19096 export_symbols_cmds_GCJ \
19097 hardcode_libdir_flag_spec_GCJ \
19098 hardcode_libdir_flag_spec_ld_GCJ \
19099 hardcode_libdir_separator_GCJ \
19100 hardcode_automatic_GCJ \
19102 module_expsym_cmds_GCJ \
19103 lt_cv_prog_compiler_c_o_GCJ \
19104 fix_srcfile_path_GCJ \
19105 exclude_expsyms_GCJ \
19106 include_expsyms_GCJ; do
19109 old_archive_cmds_GCJ | \
19110 old_archive_from_new_cmds_GCJ | \
19111 archive_cmds_GCJ | \
19112 archive_expsym_cmds_GCJ | \
19113 module_cmds_GCJ | \
19114 module_expsym_cmds_GCJ | \
19115 old_archive_from_expsyms_cmds_GCJ | \
19116 export_symbols_cmds_GCJ | \
19117 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19118 postinstall_cmds | postuninstall_cmds | \
19119 old_postinstall_cmds | old_postuninstall_cmds | \
19120 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19121 # Double-quote double-evaled strings.
19122 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19125 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19131 *'\$0 --fallback-echo"')
19132 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19138 cat <<__EOF__ >> "$cfgfile"
19139 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19141 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19143 # Shell to use when invoking shell scripts.
19146 # Whether or not to build shared libraries.
19147 build_libtool_libs=$enable_shared
19149 # Whether or not to build static libraries.
19150 build_old_libs=$enable_static
19152 # Whether or not to add -lc for building shared libraries.
19153 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19155 # Whether or not to disallow shared libs when runtime libs are static
19156 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19158 # Whether or not to optimize for fast installation.
19159 fast_install=$enable_fast_install
19162 host_alias=$host_alias
19166 # The build system.
19167 build_alias=$build_alias
19171 # An echo program that does not interpret backslashes.
19176 AR_FLAGS=$lt_AR_FLAGS
19181 # LTCC compiler flags.
19182 LTCFLAGS=$lt_LTCFLAGS
19184 # A language-specific compiler.
19185 CC=$lt_compiler_GCJ
19187 # Is the compiler the GNU C compiler?
19193 # The linker used to build libraries.
19196 # Whether we need hard or soft links.
19199 # A BSD-compatible nm program.
19202 # A symbol stripping program
19205 # Used to examine libraries when file_magic_cmd begins "file"
19206 MAGIC_CMD=$MAGIC_CMD
19208 # Used on cygwin: DLL creation program.
19211 # Used on cygwin: object dumper.
19214 # Used on cygwin: assembler.
19217 # The name of the directory that contains temporary libtool files.
19220 # How to create reloadable object files.
19221 reload_flag=$lt_reload_flag
19222 reload_cmds=$lt_reload_cmds
19224 # How to pass a linker flag through the compiler.
19225 wl=$lt_lt_prog_compiler_wl_GCJ
19227 # Object file suffix (normally "o").
19228 objext="$ac_objext"
19230 # Old archive suffix (normally "a").
19233 # Shared library suffix (normally ".so").
19234 shrext_cmds='$shrext_cmds'
19236 # Executable file suffix (normally "").
19239 # Additional compiler flags for building library objects.
19240 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19243 # What is the maximum length of a command?
19244 max_cmd_len=$lt_cv_sys_max_cmd_len
19246 # Does compiler simultaneously support -c and -o options?
19247 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19249 # Must we lock files when doing compilation?
19250 need_locks=$lt_need_locks
19252 # Do we need the lib prefix for modules?
19253 need_lib_prefix=$need_lib_prefix
19255 # Do we need a version for libraries?
19256 need_version=$need_version
19258 # Whether dlopen is supported.
19259 dlopen_support=$enable_dlopen
19261 # Whether dlopen of programs is supported.
19262 dlopen_self=$enable_dlopen_self
19264 # Whether dlopen of statically linked programs is supported.
19265 dlopen_self_static=$enable_dlopen_self_static
19267 # Compiler flag to prevent dynamic linking.
19268 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19270 # Compiler flag to turn off builtin functions.
19271 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19273 # Compiler flag to allow reflexive dlopens.
19274 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19276 # Compiler flag to generate shared objects directly from archives.
19277 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19279 # Compiler flag to generate thread-safe objects.
19280 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19282 # Library versioning type.
19283 version_type=$version_type
19285 # Format of library name prefix.
19286 libname_spec=$lt_libname_spec
19288 # List of archive names. First name is the real one, the rest are links.
19289 # The last name is the one that the linker finds with -lNAME.
19290 library_names_spec=$lt_library_names_spec
19292 # The coded name of the library, if different from the real name.
19293 soname_spec=$lt_soname_spec
19295 # Commands used to build and install an old-style archive.
19297 old_archive_cmds=$lt_old_archive_cmds_GCJ
19298 old_postinstall_cmds=$lt_old_postinstall_cmds
19299 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19301 # Create an old-style archive from a shared archive.
19302 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19304 # Create a temporary old-style archive to link instead of a shared archive.
19305 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19307 # Commands used to build and install a shared archive.
19308 archive_cmds=$lt_archive_cmds_GCJ
19309 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19310 postinstall_cmds=$lt_postinstall_cmds
19311 postuninstall_cmds=$lt_postuninstall_cmds
19313 # Commands used to build a loadable module (assumed same as above if empty)
19314 module_cmds=$lt_module_cmds_GCJ
19315 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19317 # Commands to strip libraries.
19318 old_striplib=$lt_old_striplib
19319 striplib=$lt_striplib
19321 # Dependencies to place before the objects being linked to create a
19323 predep_objects=$lt_predep_objects_GCJ
19325 # Dependencies to place after the objects being linked to create a
19327 postdep_objects=$lt_postdep_objects_GCJ
19329 # Dependencies to place before the objects being linked to create a
19331 predeps=$lt_predeps_GCJ
19333 # Dependencies to place after the objects being linked to create a
19335 postdeps=$lt_postdeps_GCJ
19337 # The directories searched by this compiler when creating a shared
19339 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19341 # The library search path used internally by the compiler when linking
19342 # a shared library.
19343 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19345 # Method to check whether dependent libraries are shared objects.
19346 deplibs_check_method=$lt_deplibs_check_method
19348 # Command to use when deplibs_check_method == file_magic.
19349 file_magic_cmd=$lt_file_magic_cmd
19351 # Flag that allows shared libraries with undefined symbols to be built.
19352 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19354 # Flag that forces no undefined symbols.
19355 no_undefined_flag=$lt_no_undefined_flag_GCJ
19357 # Commands used to finish a libtool library installation in a directory.
19358 finish_cmds=$lt_finish_cmds
19360 # Same as above, but a single script fragment to be evaled but not shown.
19361 finish_eval=$lt_finish_eval
19363 # Take the output of nm and produce a listing of raw symbols and C names.
19364 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19366 # Transform the output of nm in a proper C declaration
19367 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19369 # Transform the output of nm in a C name address pair
19370 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19372 # This is the shared library runtime path variable.
19373 runpath_var=$runpath_var
19375 # This is the shared library path variable.
19376 shlibpath_var=$shlibpath_var
19378 # Is shlibpath searched before the hard-coded library search path?
19379 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19381 # How to hardcode a shared library path into an executable.
19382 hardcode_action=$hardcode_action_GCJ
19384 # Whether we should hardcode library paths into libraries.
19385 hardcode_into_libs=$hardcode_into_libs
19387 # Flag to hardcode \$libdir into a binary during linking.
19388 # This must work even if \$libdir does not exist.
19389 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19391 # If ld is used when linking, flag to hardcode \$libdir into
19392 # a binary during linking. This must work even if \$libdir does
19394 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19396 # Whether we need a single -rpath flag with a separated argument.
19397 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19399 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19400 # resulting binary.
19401 hardcode_direct=$hardcode_direct_GCJ
19403 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19404 # resulting binary.
19405 hardcode_minus_L=$hardcode_minus_L_GCJ
19407 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19408 # the resulting binary.
19409 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19411 # Set to yes if building a shared library automatically hardcodes DIR into the library
19412 # and all subsequent libraries and executables linked against it.
19413 hardcode_automatic=$hardcode_automatic_GCJ
19415 # Variables whose values should be saved in libtool wrapper scripts and
19416 # restored at relink time.
19417 variables_saved_for_relink="$variables_saved_for_relink"
19419 # Whether libtool must link a program against all its dependency libraries.
19420 link_all_deplibs=$link_all_deplibs_GCJ
19422 # Compile-time system search path for libraries
19423 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19425 # Run-time system search path for libraries
19426 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19428 # Fix the shell variable \$srcfile for the compiler.
19429 fix_srcfile_path=$lt_fix_srcfile_path
19431 # Set to yes if exported symbols are required.
19432 always_export_symbols=$always_export_symbols_GCJ
19434 # The commands to list exported symbols.
19435 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19437 # The commands to extract the exported symbol list from a shared archive.
19438 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19440 # Symbols that should not be listed in the preloaded symbols.
19441 exclude_expsyms=$lt_exclude_expsyms_GCJ
19443 # Symbols that must always be exported.
19444 include_expsyms=$lt_include_expsyms_GCJ
19446 # ### END LIBTOOL TAG CONFIG: $tagname
19452 # If there is no Makefile yet, we rely on a make rule to execute
19453 # `config.status --recheck' to rerun these tests and create the
19454 # libtool script then.
19455 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19456 if test -f "$ltmain_in"; then
19457 test -f Makefile && make "$ltmain"
19463 ac_cpp='$CPP $CPPFLAGS'
19464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19478 # Source file extension for RC test sources.
19481 # Object file extension for compiled RC test sources.
19485 # Code to be used in simple compile tests
19486 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19488 # Code to be used in simple link tests
19489 lt_simple_link_test_code="$lt_simple_compile_test_code"
19491 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19493 # If no C compiler was specified, use CC.
19496 # If no C compiler flags were specified, use CFLAGS.
19497 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19499 # Allow CC to be a program name with arguments.
19503 # save warnings/boilerplate of simple test code
19504 ac_outfile=conftest.$ac_objext
19505 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19506 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19507 _lt_compiler_boilerplate=`cat conftest.err`
19510 ac_outfile=conftest.$ac_objext
19511 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19512 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19513 _lt_linker_boilerplate=`cat conftest.err`
19517 # Allow CC to be a program name with arguments.
19522 for cc_temp in $compiler""; do
19524 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19525 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19530 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19532 lt_cv_prog_compiler_c_o_RC=yes
19534 # The else clause should only fire when bootstrapping the
19535 # libtool distribution, otherwise you forgot to ship ltmain.sh
19536 # with your package, and you will get complaints that there are
19537 # no rules to generate ltmain.sh.
19538 if test -f "$ltmain"; then
19539 # See if we are running on zsh, and set the options which allow our commands through
19540 # without removal of \ escapes.
19541 if test -n "${ZSH_VERSION+set}" ; then
19542 setopt NO_GLOB_SUBST
19544 # Now quote all the things that may contain metacharacters while being
19545 # careful not to overquote the AC_SUBSTed values. We take copies of the
19546 # variables and quote the copies for generation of the libtool script.
19547 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19549 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19550 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19551 deplibs_check_method reload_flag reload_cmds need_locks \
19552 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19553 lt_cv_sys_global_symbol_to_c_name_address \
19554 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19555 old_postinstall_cmds old_postuninstall_cmds \
19559 lt_prog_compiler_wl_RC \
19560 lt_prog_compiler_pic_RC \
19561 lt_prog_compiler_static_RC \
19562 lt_prog_compiler_no_builtin_flag_RC \
19563 export_dynamic_flag_spec_RC \
19564 thread_safe_flag_spec_RC \
19565 whole_archive_flag_spec_RC \
19566 enable_shared_with_static_runtimes_RC \
19567 old_archive_cmds_RC \
19568 old_archive_from_new_cmds_RC \
19569 predep_objects_RC \
19570 postdep_objects_RC \
19573 compiler_lib_search_path_RC \
19574 compiler_lib_search_dirs_RC \
19576 archive_expsym_cmds_RC \
19577 postinstall_cmds_RC \
19578 postuninstall_cmds_RC \
19579 old_archive_from_expsyms_cmds_RC \
19580 allow_undefined_flag_RC \
19581 no_undefined_flag_RC \
19582 export_symbols_cmds_RC \
19583 hardcode_libdir_flag_spec_RC \
19584 hardcode_libdir_flag_spec_ld_RC \
19585 hardcode_libdir_separator_RC \
19586 hardcode_automatic_RC \
19588 module_expsym_cmds_RC \
19589 lt_cv_prog_compiler_c_o_RC \
19590 fix_srcfile_path_RC \
19591 exclude_expsyms_RC \
19592 include_expsyms_RC; do
19595 old_archive_cmds_RC | \
19596 old_archive_from_new_cmds_RC | \
19597 archive_cmds_RC | \
19598 archive_expsym_cmds_RC | \
19600 module_expsym_cmds_RC | \
19601 old_archive_from_expsyms_cmds_RC | \
19602 export_symbols_cmds_RC | \
19603 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19604 postinstall_cmds | postuninstall_cmds | \
19605 old_postinstall_cmds | old_postuninstall_cmds | \
19606 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19607 # Double-quote double-evaled strings.
19608 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19611 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19617 *'\$0 --fallback-echo"')
19618 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19624 cat <<__EOF__ >> "$cfgfile"
19625 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19627 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19629 # Shell to use when invoking shell scripts.
19632 # Whether or not to build shared libraries.
19633 build_libtool_libs=$enable_shared
19635 # Whether or not to build static libraries.
19636 build_old_libs=$enable_static
19638 # Whether or not to add -lc for building shared libraries.
19639 build_libtool_need_lc=$archive_cmds_need_lc_RC
19641 # Whether or not to disallow shared libs when runtime libs are static
19642 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19644 # Whether or not to optimize for fast installation.
19645 fast_install=$enable_fast_install
19648 host_alias=$host_alias
19652 # The build system.
19653 build_alias=$build_alias
19657 # An echo program that does not interpret backslashes.
19662 AR_FLAGS=$lt_AR_FLAGS
19667 # LTCC compiler flags.
19668 LTCFLAGS=$lt_LTCFLAGS
19670 # A language-specific compiler.
19673 # Is the compiler the GNU C compiler?
19679 # The linker used to build libraries.
19682 # Whether we need hard or soft links.
19685 # A BSD-compatible nm program.
19688 # A symbol stripping program
19691 # Used to examine libraries when file_magic_cmd begins "file"
19692 MAGIC_CMD=$MAGIC_CMD
19694 # Used on cygwin: DLL creation program.
19697 # Used on cygwin: object dumper.
19700 # Used on cygwin: assembler.
19703 # The name of the directory that contains temporary libtool files.
19706 # How to create reloadable object files.
19707 reload_flag=$lt_reload_flag
19708 reload_cmds=$lt_reload_cmds
19710 # How to pass a linker flag through the compiler.
19711 wl=$lt_lt_prog_compiler_wl_RC
19713 # Object file suffix (normally "o").
19714 objext="$ac_objext"
19716 # Old archive suffix (normally "a").
19719 # Shared library suffix (normally ".so").
19720 shrext_cmds='$shrext_cmds'
19722 # Executable file suffix (normally "").
19725 # Additional compiler flags for building library objects.
19726 pic_flag=$lt_lt_prog_compiler_pic_RC
19729 # What is the maximum length of a command?
19730 max_cmd_len=$lt_cv_sys_max_cmd_len
19732 # Does compiler simultaneously support -c and -o options?
19733 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19735 # Must we lock files when doing compilation?
19736 need_locks=$lt_need_locks
19738 # Do we need the lib prefix for modules?
19739 need_lib_prefix=$need_lib_prefix
19741 # Do we need a version for libraries?
19742 need_version=$need_version
19744 # Whether dlopen is supported.
19745 dlopen_support=$enable_dlopen
19747 # Whether dlopen of programs is supported.
19748 dlopen_self=$enable_dlopen_self
19750 # Whether dlopen of statically linked programs is supported.
19751 dlopen_self_static=$enable_dlopen_self_static
19753 # Compiler flag to prevent dynamic linking.
19754 link_static_flag=$lt_lt_prog_compiler_static_RC
19756 # Compiler flag to turn off builtin functions.
19757 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19759 # Compiler flag to allow reflexive dlopens.
19760 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19762 # Compiler flag to generate shared objects directly from archives.
19763 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19765 # Compiler flag to generate thread-safe objects.
19766 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19768 # Library versioning type.
19769 version_type=$version_type
19771 # Format of library name prefix.
19772 libname_spec=$lt_libname_spec
19774 # List of archive names. First name is the real one, the rest are links.
19775 # The last name is the one that the linker finds with -lNAME.
19776 library_names_spec=$lt_library_names_spec
19778 # The coded name of the library, if different from the real name.
19779 soname_spec=$lt_soname_spec
19781 # Commands used to build and install an old-style archive.
19783 old_archive_cmds=$lt_old_archive_cmds_RC
19784 old_postinstall_cmds=$lt_old_postinstall_cmds
19785 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19787 # Create an old-style archive from a shared archive.
19788 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19790 # Create a temporary old-style archive to link instead of a shared archive.
19791 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19793 # Commands used to build and install a shared archive.
19794 archive_cmds=$lt_archive_cmds_RC
19795 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19796 postinstall_cmds=$lt_postinstall_cmds
19797 postuninstall_cmds=$lt_postuninstall_cmds
19799 # Commands used to build a loadable module (assumed same as above if empty)
19800 module_cmds=$lt_module_cmds_RC
19801 module_expsym_cmds=$lt_module_expsym_cmds_RC
19803 # Commands to strip libraries.
19804 old_striplib=$lt_old_striplib
19805 striplib=$lt_striplib
19807 # Dependencies to place before the objects being linked to create a
19809 predep_objects=$lt_predep_objects_RC
19811 # Dependencies to place after the objects being linked to create a
19813 postdep_objects=$lt_postdep_objects_RC
19815 # Dependencies to place before the objects being linked to create a
19817 predeps=$lt_predeps_RC
19819 # Dependencies to place after the objects being linked to create a
19821 postdeps=$lt_postdeps_RC
19823 # The directories searched by this compiler when creating a shared
19825 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19827 # The library search path used internally by the compiler when linking
19828 # a shared library.
19829 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19831 # Method to check whether dependent libraries are shared objects.
19832 deplibs_check_method=$lt_deplibs_check_method
19834 # Command to use when deplibs_check_method == file_magic.
19835 file_magic_cmd=$lt_file_magic_cmd
19837 # Flag that allows shared libraries with undefined symbols to be built.
19838 allow_undefined_flag=$lt_allow_undefined_flag_RC
19840 # Flag that forces no undefined symbols.
19841 no_undefined_flag=$lt_no_undefined_flag_RC
19843 # Commands used to finish a libtool library installation in a directory.
19844 finish_cmds=$lt_finish_cmds
19846 # Same as above, but a single script fragment to be evaled but not shown.
19847 finish_eval=$lt_finish_eval
19849 # Take the output of nm and produce a listing of raw symbols and C names.
19850 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19852 # Transform the output of nm in a proper C declaration
19853 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19855 # Transform the output of nm in a C name address pair
19856 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19858 # This is the shared library runtime path variable.
19859 runpath_var=$runpath_var
19861 # This is the shared library path variable.
19862 shlibpath_var=$shlibpath_var
19864 # Is shlibpath searched before the hard-coded library search path?
19865 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19867 # How to hardcode a shared library path into an executable.
19868 hardcode_action=$hardcode_action_RC
19870 # Whether we should hardcode library paths into libraries.
19871 hardcode_into_libs=$hardcode_into_libs
19873 # Flag to hardcode \$libdir into a binary during linking.
19874 # This must work even if \$libdir does not exist.
19875 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19877 # If ld is used when linking, flag to hardcode \$libdir into
19878 # a binary during linking. This must work even if \$libdir does
19880 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19882 # Whether we need a single -rpath flag with a separated argument.
19883 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19885 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19886 # resulting binary.
19887 hardcode_direct=$hardcode_direct_RC
19889 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19890 # resulting binary.
19891 hardcode_minus_L=$hardcode_minus_L_RC
19893 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19894 # the resulting binary.
19895 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19897 # Set to yes if building a shared library automatically hardcodes DIR into the library
19898 # and all subsequent libraries and executables linked against it.
19899 hardcode_automatic=$hardcode_automatic_RC
19901 # Variables whose values should be saved in libtool wrapper scripts and
19902 # restored at relink time.
19903 variables_saved_for_relink="$variables_saved_for_relink"
19905 # Whether libtool must link a program against all its dependency libraries.
19906 link_all_deplibs=$link_all_deplibs_RC
19908 # Compile-time system search path for libraries
19909 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19911 # Run-time system search path for libraries
19912 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19914 # Fix the shell variable \$srcfile for the compiler.
19915 fix_srcfile_path=$lt_fix_srcfile_path
19917 # Set to yes if exported symbols are required.
19918 always_export_symbols=$always_export_symbols_RC
19920 # The commands to list exported symbols.
19921 export_symbols_cmds=$lt_export_symbols_cmds_RC
19923 # The commands to extract the exported symbol list from a shared archive.
19924 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19926 # Symbols that should not be listed in the preloaded symbols.
19927 exclude_expsyms=$lt_exclude_expsyms_RC
19929 # Symbols that must always be exported.
19930 include_expsyms=$lt_include_expsyms_RC
19932 # ### END LIBTOOL TAG CONFIG: $tagname
19938 # If there is no Makefile yet, we rely on a make rule to execute
19939 # `config.status --recheck' to rerun these tests and create the
19940 # libtool script then.
19941 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19942 if test -f "$ltmain_in"; then
19943 test -f Makefile && make "$ltmain"
19949 ac_cpp='$CPP $CPPFLAGS'
19950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19959 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19960 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19961 { (exit 1); exit 1; }; }
19965 # Append the new tag name to the list of available tags.
19966 if test -n "$tagname" ; then
19967 available_tags="$available_tags $tagname"
19973 # Now substitute the updated list of available tags.
19974 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19975 mv "${ofile}T" "$ofile"
19979 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19980 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19981 { (exit 1); exit 1; }; }
19987 # This can be used to rebuild libtool when needed
19988 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19990 # Always use our own libtool.
19991 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19993 # Prevent multiple expansion
20015 if test "x$CC" != xcc; then
20016 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
20017 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
20019 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
20020 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
20022 set dummy $CC; ac_cc=`echo $2 |
20023 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
20024 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
20025 echo $ECHO_N "(cached) $ECHO_C" >&6
20027 cat >conftest.$ac_ext <<_ACEOF
20030 cat confdefs.h >>conftest.$ac_ext
20031 cat >>conftest.$ac_ext <<_ACEOF
20032 /* end confdefs.h. */
20042 # Make sure it works both with $CC and with simple cc.
20043 # We do the test twice because some compilers refuse to overwrite an
20044 # existing .o file with -o, though they will create one.
20045 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
20047 if { (case "(($ac_try" in
20048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20049 *) ac_try_echo=$ac_try;;
20051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20052 (eval "$ac_try") 2>&5
20054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20055 (exit $ac_status); } &&
20056 test -f conftest2.$ac_objext && { (case "(($ac_try" in
20057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20058 *) ac_try_echo=$ac_try;;
20060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20061 (eval "$ac_try") 2>&5
20063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20064 (exit $ac_status); };
20066 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
20067 if test "x$CC" != xcc; then
20068 # Test first that cc exists at all.
20069 if { ac_try='cc -c conftest.$ac_ext >&5'
20070 { (case "(($ac_try" in
20071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20072 *) ac_try_echo=$ac_try;;
20074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20075 (eval "$ac_try") 2>&5
20077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20078 (exit $ac_status); }; }; then
20079 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
20081 if { (case "(($ac_try" in
20082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20083 *) ac_try_echo=$ac_try;;
20085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20086 (eval "$ac_try") 2>&5
20088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20089 (exit $ac_status); } &&
20090 test -f conftest2.$ac_objext && { (case "(($ac_try" in
20091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20092 *) ac_try_echo=$ac_try;;
20094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20095 (eval "$ac_try") 2>&5
20097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20098 (exit $ac_status); };
20103 # cc exists but doesn't like -o.
20104 eval ac_cv_prog_cc_${ac_cc}_c_o=no
20109 eval ac_cv_prog_cc_${ac_cc}_c_o=no
20111 rm -f core conftest*
20114 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
20115 { echo "$as_me:$LINENO: result: yes" >&5
20116 echo "${ECHO_T}yes" >&6; }
20118 { echo "$as_me:$LINENO: result: no" >&5
20119 echo "${ECHO_T}no" >&6; }
20121 cat >>confdefs.h <<\_ACEOF
20122 #define NO_MINUS_C_MINUS_O 1
20127 # FIXME: we rely on the cache variable name because
20128 # there is no other way.
20130 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
20131 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
20132 # Losing compiler, so override with the script.
20133 # FIXME: It is wrong to rewrite CC.
20134 # But if we don't then we get into trouble of one sort or another.
20135 # A longer-term fix would be to have automake use am__CC in this case,
20136 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
20137 CC="$am_aux_dir/compile $CC"
20141 # Extract the first word of "pkg-config", so it can be a program name with args.
20142 set dummy pkg-config; ac_word=$2
20143 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20145 if test "${ac_cv_prog_HAVE_PKGCONFIG+set}" = set; then
20146 echo $ECHO_N "(cached) $ECHO_C" >&6
20148 if test -n "$HAVE_PKGCONFIG"; then
20149 ac_cv_prog_HAVE_PKGCONFIG="$HAVE_PKGCONFIG" # Let the user override the test.
20151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20152 for as_dir in $PATH
20155 test -z "$as_dir" && as_dir=.
20156 for ac_exec_ext in '' $ac_executable_extensions; do
20157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20158 ac_cv_prog_HAVE_PKGCONFIG="yes"
20159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20166 test -z "$ac_cv_prog_HAVE_PKGCONFIG" && ac_cv_prog_HAVE_PKGCONFIG="no"
20169 HAVE_PKGCONFIG=$ac_cv_prog_HAVE_PKGCONFIG
20170 if test -n "$HAVE_PKGCONFIG"; then
20171 { echo "$as_me:$LINENO: result: $HAVE_PKGCONFIG" >&5
20172 echo "${ECHO_T}$HAVE_PKGCONFIG" >&6; }
20174 { echo "$as_me:$LINENO: result: no" >&5
20175 echo "${ECHO_T}no" >&6; }
20179 if test x"$HAVE_PKGCONFIG" = x"no"; then
20180 { { echo "$as_me:$LINENO: error: pkg-config is required!" >&5
20181 echo "$as_me: error: pkg-config is required!" >&2;}
20182 { (exit 1); exit 1; }; }
20186 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20187 if test -n "$ac_tool_prefix"; then
20188 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20189 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20190 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20192 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20193 echo $ECHO_N "(cached) $ECHO_C" >&6
20195 case $PKG_CONFIG in
20197 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20201 for as_dir in $PATH
20204 test -z "$as_dir" && as_dir=.
20205 for ac_exec_ext in '' $ac_executable_extensions; do
20206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20207 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20218 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20219 if test -n "$PKG_CONFIG"; then
20220 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20221 echo "${ECHO_T}$PKG_CONFIG" >&6; }
20223 { echo "$as_me:$LINENO: result: no" >&5
20224 echo "${ECHO_T}no" >&6; }
20229 if test -z "$ac_cv_path_PKG_CONFIG"; then
20230 ac_pt_PKG_CONFIG=$PKG_CONFIG
20231 # Extract the first word of "pkg-config", so it can be a program name with args.
20232 set dummy pkg-config; ac_word=$2
20233 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20235 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
20236 echo $ECHO_N "(cached) $ECHO_C" >&6
20238 case $ac_pt_PKG_CONFIG in
20240 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20244 for as_dir in $PATH
20247 test -z "$as_dir" && as_dir=.
20248 for ac_exec_ext in '' $ac_executable_extensions; do
20249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20250 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20261 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20262 if test -n "$ac_pt_PKG_CONFIG"; then
20263 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
20264 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
20266 { echo "$as_me:$LINENO: result: no" >&5
20267 echo "${ECHO_T}no" >&6; }
20270 if test "x$ac_pt_PKG_CONFIG" = x; then
20273 case $cross_compiling:$ac_tool_warned in
20275 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20276 whose name does not start with the host triplet. If you think this
20277 configuration is useful to you, please write to autoconf@gnu.org." >&5
20278 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20279 whose name does not start with the host triplet. If you think this
20280 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20281 ac_tool_warned=yes ;;
20283 PKG_CONFIG=$ac_pt_PKG_CONFIG
20286 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20290 if test -n "$PKG_CONFIG"; then
20291 _pkg_min_version=0.19
20292 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
20293 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
20294 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20295 { echo "$as_me:$LINENO: result: yes" >&5
20296 echo "${ECHO_T}yes" >&6; }
20298 { echo "$as_me:$LINENO: result: no" >&5
20299 echo "${ECHO_T}no" >&6; }
20305 ac_config_files="$ac_config_files Makefile data/Makefile doc/Makefile src/Makefile src/build.h lua/Makefile src/dbus/Makefile"
20314 FreeBSD*|GNU/kFreeBSD*)
20328 # Solaris doesn't work at all right now
20334 echo "Your operating system $uname isn't supported"
20335 echo "Feel free to help. :P"
20342 if test x$uname = xLinux; then
20344 BUILD_LINUX_FALSE='#'
20346 BUILD_LINUX_TRUE='#'
20350 #AM_CONDITIONAL(BUILD_SOLARIS, test x$uname = xSunOS)
20353 if test x$uname = xFreeBSD -o x$uname = xGNU/kFreeBSD; then
20354 BUILD_FREEBSD_TRUE=
20355 BUILD_FREEBSD_FALSE='#'
20357 BUILD_FREEBSD_TRUE='#'
20358 BUILD_FREEBSD_FALSE=
20361 #AM_CONDITIONAL(BUILD_NETBSD, test x$uname = xNetBSD)
20364 if test x$uname = xOpenBSD; then
20365 BUILD_OPENBSD_TRUE=
20366 BUILD_OPENBSD_FALSE='#'
20368 BUILD_OPENBSD_TRUE='#'
20369 BUILD_OPENBSD_FALSE=
20373 BUILD_DATE=$(LANG=en_US LC_ALL=en_US LOCALE=en_US date)
20374 BUILD_ARCH="$(uname -sr) ($(uname -m))"
20380 # Check whether --enable-config_output was given.
20381 if test "${enable_config_output+set}" = set; then
20382 enableval=$enable_config_output; want_config_output="$enableval"
20384 want_config_output=yes
20390 if test x$want_config_output = xyes; then
20391 BUILD_CONFIG_OUTPUT_TRUE=
20392 BUILD_CONFIG_OUTPUT_FALSE='#'
20394 BUILD_CONFIG_OUTPUT_TRUE='#'
20395 BUILD_CONFIG_OUTPUT_FALSE=
20398 if test x$want_config_output = xyes; then
20400 cat >>confdefs.h <<\_ACEOF
20401 #define CONFIG_OUTPUT 1
20405 for ac_func in fopencookie
20407 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20408 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20409 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20410 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20411 echo $ECHO_N "(cached) $ECHO_C" >&6
20413 cat >conftest.$ac_ext <<_ACEOF
20416 cat confdefs.h >>conftest.$ac_ext
20417 cat >>conftest.$ac_ext <<_ACEOF
20418 /* end confdefs.h. */
20419 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20420 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20421 #define $ac_func innocuous_$ac_func
20423 /* System header to define __stub macros and hopefully few prototypes,
20424 which can conflict with char $ac_func (); below.
20425 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20426 <limits.h> exists even on freestanding compilers. */
20429 # include <limits.h>
20431 # include <assert.h>
20436 /* Override any GCC internal prototype to avoid an error.
20437 Use char because int might match the return type of a GCC
20438 builtin and then its argument prototype would still apply. */
20443 /* The GNU C library defines this for functions which it implements
20444 to always fail with ENOSYS. Some functions are actually named
20445 something starting with __ and the normal name is an alias. */
20446 #if defined __stub_$ac_func || defined __stub___$ac_func
20453 return $ac_func ();
20458 rm -f conftest.$ac_objext conftest$ac_exeext
20459 if { (ac_try="$ac_link"
20460 case "(($ac_try" in
20461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20462 *) ac_try_echo=$ac_try;;
20464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20465 (eval "$ac_link") 2>conftest.er1
20467 grep -v '^ *+' conftest.er1 >conftest.err
20469 cat conftest.err >&5
20470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20471 (exit $ac_status); } && {
20472 test -z "$ac_c_werror_flag" ||
20473 test ! -s conftest.err
20474 } && test -s conftest$ac_exeext &&
20475 $as_test_x conftest$ac_exeext; then
20476 eval "$as_ac_var=yes"
20478 echo "$as_me: failed program was:" >&5
20479 sed 's/^/| /' conftest.$ac_ext >&5
20481 eval "$as_ac_var=no"
20484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20485 conftest$ac_exeext conftest.$ac_ext
20487 ac_res=`eval echo '${'$as_ac_var'}'`
20488 { echo "$as_me:$LINENO: result: $ac_res" >&5
20489 echo "${ECHO_T}$ac_res" >&6; }
20490 if test `eval echo '${'$as_ac_var'}'` = yes; then
20491 cat >>confdefs.h <<_ACEOF
20492 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20499 for ac_func in funopen
20501 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20502 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20503 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20504 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20505 echo $ECHO_N "(cached) $ECHO_C" >&6
20507 cat >conftest.$ac_ext <<_ACEOF
20510 cat confdefs.h >>conftest.$ac_ext
20511 cat >>conftest.$ac_ext <<_ACEOF
20512 /* end confdefs.h. */
20513 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20514 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20515 #define $ac_func innocuous_$ac_func
20517 /* System header to define __stub macros and hopefully few prototypes,
20518 which can conflict with char $ac_func (); below.
20519 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20520 <limits.h> exists even on freestanding compilers. */
20523 # include <limits.h>
20525 # include <assert.h>
20530 /* Override any GCC internal prototype to avoid an error.
20531 Use char because int might match the return type of a GCC
20532 builtin and then its argument prototype would still apply. */
20537 /* The GNU C library defines this for functions which it implements
20538 to always fail with ENOSYS. Some functions are actually named
20539 something starting with __ and the normal name is an alias. */
20540 #if defined __stub_$ac_func || defined __stub___$ac_func
20547 return $ac_func ();
20552 rm -f conftest.$ac_objext conftest$ac_exeext
20553 if { (ac_try="$ac_link"
20554 case "(($ac_try" in
20555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20556 *) ac_try_echo=$ac_try;;
20558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20559 (eval "$ac_link") 2>conftest.er1
20561 grep -v '^ *+' conftest.er1 >conftest.err
20563 cat conftest.err >&5
20564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20565 (exit $ac_status); } && {
20566 test -z "$ac_c_werror_flag" ||
20567 test ! -s conftest.err
20568 } && test -s conftest$ac_exeext &&
20569 $as_test_x conftest$ac_exeext; then
20570 eval "$as_ac_var=yes"
20572 echo "$as_me: failed program was:" >&5
20573 sed 's/^/| /' conftest.$ac_ext >&5
20575 eval "$as_ac_var=no"
20578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20579 conftest$ac_exeext conftest.$ac_ext
20581 ac_res=`eval echo '${'$as_ac_var'}'`
20582 { echo "$as_me:$LINENO: result: $ac_res" >&5
20583 echo "${ECHO_T}$ac_res" >&6; }
20584 if test `eval echo '${'$as_ac_var'}'` = yes; then
20585 cat >>confdefs.h <<_ACEOF
20586 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20595 # Check whether --enable-own_window was given.
20596 if test "${enable_own_window+set}" = set; then
20597 enableval=$enable_own_window; dah="$enableval"
20603 if test $dah != "no"; then
20605 cat >>confdefs.h <<\_ACEOF
20606 #define OWN_WINDOW 1
20612 # Check whether --enable-ncurses was given.
20613 if test "${enable_ncurses+set}" = set; then
20614 enableval=$enable_ncurses; want_ncurses="$enableval"
20622 if test x$want_ncurses = xyes; then
20623 BUILD_NCURSES_TRUE=
20624 BUILD_NCURSES_FALSE='#'
20626 BUILD_NCURSES_TRUE='#'
20627 BUILD_NCURSES_FALSE=
20630 if test x$want_ncurses = xyes; then
20631 conky_LIBS="$conky_LIBS -lncurses"
20633 cat >>confdefs.h <<\_ACEOF
20641 # Check whether --enable-audacious was given.
20642 if test "${enable_audacious+set}" = set; then
20643 enableval=$enable_audacious; want_audacious="$enableval"
20651 if test x$want_audacious = xyes -o x$want_audacious = xlegacy; then
20652 BUILD_AUDACIOUS_TRUE=
20653 BUILD_AUDACIOUS_FALSE='#'
20655 BUILD_AUDACIOUS_TRUE='#'
20656 BUILD_AUDACIOUS_FALSE=
20659 if test x$want_audacious = xyes; then
20662 { echo "$as_me:$LINENO: checking for Audacious" >&5
20663 echo $ECHO_N "checking for Audacious... $ECHO_C" >&6; }
20665 if test -n "$PKG_CONFIG"; then
20666 if test -n "$Audacious_CFLAGS"; then
20667 pkg_cv_Audacious_CFLAGS="$Audacious_CFLAGS"
20669 if test -n "$PKG_CONFIG" && \
20670 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"audacious >= 1.4.0 audclient dbus-glib-1 glib-2.0 gobject-2.0\"") >&5
20671 ($PKG_CONFIG --exists --print-errors "audacious >= 1.4.0 audclient dbus-glib-1 glib-2.0 gobject-2.0") 2>&5
20673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20674 (exit $ac_status); }; then
20675 pkg_cv_Audacious_CFLAGS=`$PKG_CONFIG --cflags "audacious >= 1.4.0 audclient dbus-glib-1 glib-2.0 gobject-2.0" 2>/dev/null`
20683 if test -n "$PKG_CONFIG"; then
20684 if test -n "$Audacious_LIBS"; then
20685 pkg_cv_Audacious_LIBS="$Audacious_LIBS"
20687 if test -n "$PKG_CONFIG" && \
20688 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"audacious >= 1.4.0 audclient dbus-glib-1 glib-2.0 gobject-2.0\"") >&5
20689 ($PKG_CONFIG --exists --print-errors "audacious >= 1.4.0 audclient dbus-glib-1 glib-2.0 gobject-2.0") 2>&5
20691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20692 (exit $ac_status); }; then
20693 pkg_cv_Audacious_LIBS=`$PKG_CONFIG --libs "audacious >= 1.4.0 audclient dbus-glib-1 glib-2.0 gobject-2.0" 2>/dev/null`
20704 if test $pkg_failed = yes; then
20706 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20707 _pkg_short_errors_supported=yes
20709 _pkg_short_errors_supported=no
20711 if test $_pkg_short_errors_supported = yes; then
20712 Audacious_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "audacious >= 1.4.0 audclient dbus-glib-1 glib-2.0 gobject-2.0"`
20714 Audacious_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "audacious >= 1.4.0 audclient dbus-glib-1 glib-2.0 gobject-2.0"`
20716 # Put the nasty error message in config.log where it belongs
20717 echo "$Audacious_PKG_ERRORS" >&5
20719 { { echo "$as_me:$LINENO: error: Package requirements (audacious >= 1.4.0 audclient dbus-glib-1 glib-2.0 gobject-2.0) were not met:
20721 $Audacious_PKG_ERRORS
20723 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20724 installed software in a non-standard prefix.
20726 Alternatively, you may set the environment variables Audacious_CFLAGS
20727 and Audacious_LIBS to avoid the need to call pkg-config.
20728 See the pkg-config man page for more details.
20730 echo "$as_me: error: Package requirements (audacious >= 1.4.0 audclient dbus-glib-1 glib-2.0 gobject-2.0) were not met:
20732 $Audacious_PKG_ERRORS
20734 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20735 installed software in a non-standard prefix.
20737 Alternatively, you may set the environment variables Audacious_CFLAGS
20738 and Audacious_LIBS to avoid the need to call pkg-config.
20739 See the pkg-config man page for more details.
20741 { (exit 1); exit 1; }; }
20742 elif test $pkg_failed = untried; then
20743 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
20744 is in your PATH or set the PKG_CONFIG environment variable to the full
20745 path to pkg-config.
20747 Alternatively, you may set the environment variables Audacious_CFLAGS
20748 and Audacious_LIBS to avoid the need to call pkg-config.
20749 See the pkg-config man page for more details.
20751 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
20752 See \`config.log' for more details." >&5
20753 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
20754 is in your PATH or set the PKG_CONFIG environment variable to the full
20755 path to pkg-config.
20757 Alternatively, you may set the environment variables Audacious_CFLAGS
20758 and Audacious_LIBS to avoid the need to call pkg-config.
20759 See the pkg-config man page for more details.
20761 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
20762 See \`config.log' for more details." >&2;}
20763 { (exit 1); exit 1; }; }
20765 Audacious_CFLAGS=$pkg_cv_Audacious_CFLAGS
20766 Audacious_LIBS=$pkg_cv_Audacious_LIBS
20767 { echo "$as_me:$LINENO: result: yes" >&5
20768 echo "${ECHO_T}yes" >&6; }
20771 conky_CFLAGS="$conky_CFLAGS $Audacious_CFLAGS"
20772 conky_LIBS="$conky_LIBS $Audacious_LIBS"
20773 save_CPPFLAGS="$CPPFLAGS"
20774 CPPFLAGS="$Audacious_CFLAGS -I`pkg-config --variable=audacious_include_dir audacious`/audacious"
20779 for ac_header in audacious/audctrl.h audacious/dbus.h glib.h glib-object.h
20781 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20782 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20783 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20785 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20786 echo $ECHO_N "(cached) $ECHO_C" >&6
20788 ac_res=`eval echo '${'$as_ac_Header'}'`
20789 { echo "$as_me:$LINENO: result: $ac_res" >&5
20790 echo "${ECHO_T}$ac_res" >&6; }
20792 # Is the header compilable?
20793 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20794 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20795 cat >conftest.$ac_ext <<_ACEOF
20798 cat confdefs.h >>conftest.$ac_ext
20799 cat >>conftest.$ac_ext <<_ACEOF
20800 /* end confdefs.h. */
20801 $ac_includes_default
20802 #include <$ac_header>
20804 rm -f conftest.$ac_objext
20805 if { (ac_try="$ac_compile"
20806 case "(($ac_try" in
20807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20808 *) ac_try_echo=$ac_try;;
20810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20811 (eval "$ac_compile") 2>conftest.er1
20813 grep -v '^ *+' conftest.er1 >conftest.err
20815 cat conftest.err >&5
20816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20817 (exit $ac_status); } && {
20818 test -z "$ac_c_werror_flag" ||
20819 test ! -s conftest.err
20820 } && test -s conftest.$ac_objext; then
20821 ac_header_compiler=yes
20823 echo "$as_me: failed program was:" >&5
20824 sed 's/^/| /' conftest.$ac_ext >&5
20826 ac_header_compiler=no
20829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20830 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20831 echo "${ECHO_T}$ac_header_compiler" >&6; }
20833 # Is the header present?
20834 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20835 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20836 cat >conftest.$ac_ext <<_ACEOF
20839 cat confdefs.h >>conftest.$ac_ext
20840 cat >>conftest.$ac_ext <<_ACEOF
20841 /* end confdefs.h. */
20842 #include <$ac_header>
20844 if { (ac_try="$ac_cpp conftest.$ac_ext"
20845 case "(($ac_try" in
20846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20847 *) ac_try_echo=$ac_try;;
20849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20850 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20852 grep -v '^ *+' conftest.er1 >conftest.err
20854 cat conftest.err >&5
20855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20856 (exit $ac_status); } >/dev/null && {
20857 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20858 test ! -s conftest.err
20860 ac_header_preproc=yes
20862 echo "$as_me: failed program was:" >&5
20863 sed 's/^/| /' conftest.$ac_ext >&5
20865 ac_header_preproc=no
20868 rm -f conftest.err conftest.$ac_ext
20869 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20870 echo "${ECHO_T}$ac_header_preproc" >&6; }
20872 # So? What about this header?
20873 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20875 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20876 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20878 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20879 ac_header_preproc=yes
20882 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20883 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20884 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20885 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20886 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20887 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20888 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20889 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20891 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20892 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20893 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20895 ## --------------------------------------------- ##
20896 ## Report this to brenden1@users.sourceforge.net ##
20897 ## --------------------------------------------- ##
20899 ) | sed "s/^/$as_me: WARNING: /" >&2
20902 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20905 echo $ECHO_N "(cached) $ECHO_C" >&6
20907 eval "$as_ac_Header=\$ac_header_preproc"
20909 ac_res=`eval echo '${'$as_ac_Header'}'`
20910 { echo "$as_me:$LINENO: result: $ac_res" >&5
20911 echo "${ECHO_T}$ac_res" >&6; }
20914 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20915 cat >>confdefs.h <<_ACEOF
20916 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20920 { { echo "$as_me:$LINENO: error: required header(s) not found" >&5
20921 echo "$as_me: error: required header(s) not found" >&2;}
20922 { (exit 1); exit 1; }; }
20927 CPPFLAGS="$save_CPPFLAGS"
20929 cat >>confdefs.h <<\_ACEOF
20930 #define AUDACIOUS 1
20933 else if test x$want_audacious = xlegacy; then
20936 { echo "$as_me:$LINENO: checking for Audacious" >&5
20937 echo $ECHO_N "checking for Audacious... $ECHO_C" >&6; }
20939 if test -n "$PKG_CONFIG"; then
20940 if test -n "$Audacious_CFLAGS"; then
20941 pkg_cv_Audacious_CFLAGS="$Audacious_CFLAGS"
20943 if test -n "$PKG_CONFIG" && \
20944 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"audacious < 1.4.0 glib-2.0\"") >&5
20945 ($PKG_CONFIG --exists --print-errors "audacious < 1.4.0 glib-2.0") 2>&5
20947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20948 (exit $ac_status); }; then
20949 pkg_cv_Audacious_CFLAGS=`$PKG_CONFIG --cflags "audacious < 1.4.0 glib-2.0" 2>/dev/null`
20957 if test -n "$PKG_CONFIG"; then
20958 if test -n "$Audacious_LIBS"; then
20959 pkg_cv_Audacious_LIBS="$Audacious_LIBS"
20961 if test -n "$PKG_CONFIG" && \
20962 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"audacious < 1.4.0 glib-2.0\"") >&5
20963 ($PKG_CONFIG --exists --print-errors "audacious < 1.4.0 glib-2.0") 2>&5
20965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20966 (exit $ac_status); }; then
20967 pkg_cv_Audacious_LIBS=`$PKG_CONFIG --libs "audacious < 1.4.0 glib-2.0" 2>/dev/null`
20978 if test $pkg_failed = yes; then
20980 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20981 _pkg_short_errors_supported=yes
20983 _pkg_short_errors_supported=no
20985 if test $_pkg_short_errors_supported = yes; then
20986 Audacious_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "audacious < 1.4.0 glib-2.0"`
20988 Audacious_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "audacious < 1.4.0 glib-2.0"`
20990 # Put the nasty error message in config.log where it belongs
20991 echo "$Audacious_PKG_ERRORS" >&5
20993 { { echo "$as_me:$LINENO: error: Package requirements (audacious < 1.4.0 glib-2.0) were not met:
20995 $Audacious_PKG_ERRORS
20997 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20998 installed software in a non-standard prefix.
21000 Alternatively, you may set the environment variables Audacious_CFLAGS
21001 and Audacious_LIBS to avoid the need to call pkg-config.
21002 See the pkg-config man page for more details.
21004 echo "$as_me: error: Package requirements (audacious < 1.4.0 glib-2.0) were not met:
21006 $Audacious_PKG_ERRORS
21008 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21009 installed software in a non-standard prefix.
21011 Alternatively, you may set the environment variables Audacious_CFLAGS
21012 and Audacious_LIBS to avoid the need to call pkg-config.
21013 See the pkg-config man page for more details.
21015 { (exit 1); exit 1; }; }
21016 elif test $pkg_failed = untried; then
21017 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
21018 is in your PATH or set the PKG_CONFIG environment variable to the full
21019 path to pkg-config.
21021 Alternatively, you may set the environment variables Audacious_CFLAGS
21022 and Audacious_LIBS to avoid the need to call pkg-config.
21023 See the pkg-config man page for more details.
21025 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
21026 See \`config.log' for more details." >&5
21027 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
21028 is in your PATH or set the PKG_CONFIG environment variable to the full
21029 path to pkg-config.
21031 Alternatively, you may set the environment variables Audacious_CFLAGS
21032 and Audacious_LIBS to avoid the need to call pkg-config.
21033 See the pkg-config man page for more details.
21035 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
21036 See \`config.log' for more details." >&2;}
21037 { (exit 1); exit 1; }; }
21039 Audacious_CFLAGS=$pkg_cv_Audacious_CFLAGS
21040 Audacious_LIBS=$pkg_cv_Audacious_LIBS
21041 { echo "$as_me:$LINENO: result: yes" >&5
21042 echo "${ECHO_T}yes" >&6; }
21045 conky_CFLAGS="$conky_CFLAGS $Audacious_CFLAGS"
21046 conky_LIBS="$conky_LIBS $Audacious_LIBS"
21047 save_CPPFLAGS="$CPPFLAGS"
21048 CPPFLAGS="$Audacious_CFLAGS -I`pkg-config --variable=audacious_include_dir audacious`/audacious"
21051 for ac_header in audacious/beepctrl.h glib.h
21053 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21055 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21057 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21058 echo $ECHO_N "(cached) $ECHO_C" >&6
21060 ac_res=`eval echo '${'$as_ac_Header'}'`
21061 { echo "$as_me:$LINENO: result: $ac_res" >&5
21062 echo "${ECHO_T}$ac_res" >&6; }
21064 # Is the header compilable?
21065 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21066 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21067 cat >conftest.$ac_ext <<_ACEOF
21070 cat confdefs.h >>conftest.$ac_ext
21071 cat >>conftest.$ac_ext <<_ACEOF
21072 /* end confdefs.h. */
21073 $ac_includes_default
21074 #include <$ac_header>
21076 rm -f conftest.$ac_objext
21077 if { (ac_try="$ac_compile"
21078 case "(($ac_try" in
21079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21080 *) ac_try_echo=$ac_try;;
21082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21083 (eval "$ac_compile") 2>conftest.er1
21085 grep -v '^ *+' conftest.er1 >conftest.err
21087 cat conftest.err >&5
21088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21089 (exit $ac_status); } && {
21090 test -z "$ac_c_werror_flag" ||
21091 test ! -s conftest.err
21092 } && test -s conftest.$ac_objext; then
21093 ac_header_compiler=yes
21095 echo "$as_me: failed program was:" >&5
21096 sed 's/^/| /' conftest.$ac_ext >&5
21098 ac_header_compiler=no
21101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21102 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21103 echo "${ECHO_T}$ac_header_compiler" >&6; }
21105 # Is the header present?
21106 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21107 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21108 cat >conftest.$ac_ext <<_ACEOF
21111 cat confdefs.h >>conftest.$ac_ext
21112 cat >>conftest.$ac_ext <<_ACEOF
21113 /* end confdefs.h. */
21114 #include <$ac_header>
21116 if { (ac_try="$ac_cpp conftest.$ac_ext"
21117 case "(($ac_try" in
21118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21119 *) ac_try_echo=$ac_try;;
21121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21122 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21124 grep -v '^ *+' conftest.er1 >conftest.err
21126 cat conftest.err >&5
21127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21128 (exit $ac_status); } >/dev/null && {
21129 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21130 test ! -s conftest.err
21132 ac_header_preproc=yes
21134 echo "$as_me: failed program was:" >&5
21135 sed 's/^/| /' conftest.$ac_ext >&5
21137 ac_header_preproc=no
21140 rm -f conftest.err conftest.$ac_ext
21141 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21142 echo "${ECHO_T}$ac_header_preproc" >&6; }
21144 # So? What about this header?
21145 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21147 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21148 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21149 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21150 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21151 ac_header_preproc=yes
21154 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21155 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21156 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21157 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21158 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21159 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21160 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21161 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21162 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21163 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21164 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21165 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21167 ## --------------------------------------------- ##
21168 ## Report this to brenden1@users.sourceforge.net ##
21169 ## --------------------------------------------- ##
21171 ) | sed "s/^/$as_me: WARNING: /" >&2
21174 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21175 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21176 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21177 echo $ECHO_N "(cached) $ECHO_C" >&6
21179 eval "$as_ac_Header=\$ac_header_preproc"
21181 ac_res=`eval echo '${'$as_ac_Header'}'`
21182 { echo "$as_me:$LINENO: result: $ac_res" >&5
21183 echo "${ECHO_T}$ac_res" >&6; }
21186 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21187 cat >>confdefs.h <<_ACEOF
21188 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21192 { { echo "$as_me:$LINENO: error: required header(s) not found" >&5
21193 echo "$as_me: error: required header(s) not found" >&2;}
21194 { (exit 1); exit 1; }; }
21199 CPPFLAGS="$save_CPPFLAGS"
21201 cat >>confdefs.h <<\_ACEOF
21202 #define AUDACIOUS 1
21206 cat >>confdefs.h <<\_ACEOF
21207 #define AUDACIOUS_LEGACY 1
21215 # Check whether --enable-bmpx was given.
21216 if test "${enable_bmpx+set}" = set; then
21217 enableval=$enable_bmpx; want_bmpx="$enableval"
21225 if test x$want_bmpx = xyes; then
21227 BUILD_BMPX_FALSE='#'
21229 BUILD_BMPX_TRUE='#'
21233 if test x$want_bmpx = xyes; then
21236 { echo "$as_me:$LINENO: checking for BMPx" >&5
21237 echo $ECHO_N "checking for BMPx... $ECHO_C" >&6; }
21239 if test -n "$PKG_CONFIG"; then
21240 if test -n "$BMPx_CFLAGS"; then
21241 pkg_cv_BMPx_CFLAGS="$BMPx_CFLAGS"
21243 if test -n "$PKG_CONFIG" && \
21244 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"bmp-2.0 >= 0.14.0\"") >&5
21245 ($PKG_CONFIG --exists --print-errors "bmp-2.0 >= 0.14.0") 2>&5
21247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21248 (exit $ac_status); }; then
21249 pkg_cv_BMPx_CFLAGS=`$PKG_CONFIG --cflags "bmp-2.0 >= 0.14.0" 2>/dev/null`
21257 if test -n "$PKG_CONFIG"; then
21258 if test -n "$BMPx_LIBS"; then
21259 pkg_cv_BMPx_LIBS="$BMPx_LIBS"
21261 if test -n "$PKG_CONFIG" && \
21262 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"bmp-2.0 >= 0.14.0\"") >&5
21263 ($PKG_CONFIG --exists --print-errors "bmp-2.0 >= 0.14.0") 2>&5
21265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21266 (exit $ac_status); }; then
21267 pkg_cv_BMPx_LIBS=`$PKG_CONFIG --libs "bmp-2.0 >= 0.14.0" 2>/dev/null`
21278 if test $pkg_failed = yes; then
21280 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21281 _pkg_short_errors_supported=yes
21283 _pkg_short_errors_supported=no
21285 if test $_pkg_short_errors_supported = yes; then
21286 BMPx_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "bmp-2.0 >= 0.14.0"`
21288 BMPx_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "bmp-2.0 >= 0.14.0"`
21290 # Put the nasty error message in config.log where it belongs
21291 echo "$BMPx_PKG_ERRORS" >&5
21293 { { echo "$as_me:$LINENO: error: Package requirements (bmp-2.0 >= 0.14.0) were not met:
21297 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21298 installed software in a non-standard prefix.
21300 Alternatively, you may set the environment variables BMPx_CFLAGS
21301 and BMPx_LIBS to avoid the need to call pkg-config.
21302 See the pkg-config man page for more details.
21304 echo "$as_me: error: Package requirements (bmp-2.0 >= 0.14.0) were not met:
21308 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21309 installed software in a non-standard prefix.
21311 Alternatively, you may set the environment variables BMPx_CFLAGS
21312 and BMPx_LIBS to avoid the need to call pkg-config.
21313 See the pkg-config man page for more details.
21315 { (exit 1); exit 1; }; }
21316 elif test $pkg_failed = untried; then
21317 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
21318 is in your PATH or set the PKG_CONFIG environment variable to the full
21319 path to pkg-config.
21321 Alternatively, you may set the environment variables BMPx_CFLAGS
21322 and BMPx_LIBS to avoid the need to call pkg-config.
21323 See the pkg-config man page for more details.
21325 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
21326 See \`config.log' for more details." >&5
21327 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
21328 is in your PATH or set the PKG_CONFIG environment variable to the full
21329 path to pkg-config.
21331 Alternatively, you may set the environment variables BMPx_CFLAGS
21332 and BMPx_LIBS to avoid the need to call pkg-config.
21333 See the pkg-config man page for more details.
21335 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
21336 See \`config.log' for more details." >&2;}
21337 { (exit 1); exit 1; }; }
21339 BMPx_CFLAGS=$pkg_cv_BMPx_CFLAGS
21340 BMPx_LIBS=$pkg_cv_BMPx_LIBS
21341 { echo "$as_me:$LINENO: result: yes" >&5
21342 echo "${ECHO_T}yes" >&6; }
21345 conky_CFLAGS="$conky_CFLAGS $BMPx_CFLAGS"
21346 conky_LIBS="$conky_LIBS $BMPx_LIBS"
21348 cat >>confdefs.h <<\_ACEOF
21356 # Check whether --enable-ibm was given.
21357 if test "${enable_ibm+set}" = set; then
21358 enableval=$enable_ibm; want_ibm="$enableval"
21366 if test x$want_ibm = xyes; then
21368 BUILD_IBM_FALSE='#'
21374 if test x$want_ibm = xyes; then
21375 if test x"$uname" != xLinux; then
21376 { echo "$as_me:$LINENO: support for IBM/Lenovo notebooks not supported on $uname... disabling" >&5
21377 echo "$as_me: support for IBM/Lenovo notebooks not supported on $uname... disabling" >&6;}
21378 want_ibm="not supported on $uname"
21381 cat >>confdefs.h <<\_ACEOF
21390 # Check whether --enable-hddtemp was given.
21391 if test "${enable_hddtemp+set}" = set; then
21392 enableval=$enable_hddtemp; want_hddtemp="$enableval"
21400 if test x$want_hddtemp = xyes; then
21401 BUILD_HDDTEMP_TRUE=
21402 BUILD_HDDTEMP_FALSE='#'
21404 BUILD_HDDTEMP_TRUE='#'
21405 BUILD_HDDTEMP_FALSE=
21408 if test x$want_hddtemp = xyes; then
21409 if test x"$uname" != xLinux; then
21410 { echo "$as_me:$LINENO: hddtemp not supported on $uname... disabling" >&5
21411 echo "$as_me: hddtemp not supported on $uname... disabling" >&6;}
21412 want_hddtemp="not supported on $uname"
21415 cat >>confdefs.h <<\_ACEOF
21424 # Check whether --enable-apcupsd was given.
21425 if test "${enable_apcupsd+set}" = set; then
21426 enableval=$enable_apcupsd; want_apcupsd="$enableval"
21432 if test x$want_apcupsd = xyes; then
21433 if test x"$uname" != xLinux -a x"$uname" != xFreeBSD; then
21434 { echo "$as_me:$LINENO: apcupsd not supported on $uname... disabling" >&5
21435 echo "$as_me: apcupsd not supported on $uname... disabling" >&6;}
21436 want_apcupsd="not supported on $uname"
21439 cat >>confdefs.h <<\_ACEOF
21447 if test x$want_apcupsd = xyes; then
21448 BUILD_APCUPSD_TRUE=
21449 BUILD_APCUPSD_FALSE='#'
21451 BUILD_APCUPSD_TRUE='#'
21452 BUILD_APCUPSD_FALSE=
21458 # Check whether --enable-iostats was given.
21459 if test "${enable_iostats+set}" = set; then
21460 enableval=$enable_iostats; want_iostats="$enableval"
21466 if test x$want_iostats = xyes; then
21467 if test x"$uname" != xLinux -a x"$uname" != xFreeBSD; then
21468 { echo "$as_me:$LINENO: iostats not supported on $uname... disabling" >&5
21469 echo "$as_me: iostats not supported on $uname... disabling" >&6;}
21470 want_iostats="not supported on $uname"
21473 cat >>confdefs.h <<\_ACEOF
21482 # Check whether --enable-math was given.
21483 if test "${enable_math+set}" = set; then
21484 enableval=$enable_math; want_math="$enableval"
21492 if test x$want_math = xyes; then
21494 BUILD_MATH_FALSE='#'
21496 BUILD_MATH_TRUE='#'
21500 if test x$want_math = xyes; then
21501 conky_LIBS="$conky_LIBS -lm"
21503 cat >>confdefs.h <<\_ACEOF
21510 # Check whether --enable-mpd was given.
21511 if test "${enable_mpd+set}" = set; then
21512 enableval=$enable_mpd; want_mpd="$enableval"
21520 if test x$want_mpd = xyes; then
21522 BUILD_MPD_FALSE='#'
21528 if test x$want_mpd = xyes; then
21530 cat >>confdefs.h <<\_ACEOF
21537 # Check whether --enable-moc was given.
21538 if test "${enable_moc+set}" = set; then
21539 enableval=$enable_moc; want_moc="$enableval"
21547 if test x$want_moc = xyes; then
21549 BUILD_MOC_FALSE='#'
21555 if test x$want_moc = xyes; then
21557 cat >>confdefs.h <<\_ACEOF
21564 # Check whether --enable-xmms2 was given.
21565 if test "${enable_xmms2+set}" = set; then
21566 enableval=$enable_xmms2; want_xmms2="$enableval"
21574 if test x$want_xmms2 = xyes; then
21576 BUILD_XMMS2_FALSE='#'
21578 BUILD_XMMS2_TRUE='#'
21582 if test x$want_xmms2 = xyes; then
21585 { echo "$as_me:$LINENO: checking for XMMS2" >&5
21586 echo $ECHO_N "checking for XMMS2... $ECHO_C" >&6; }
21588 if test -n "$PKG_CONFIG"; then
21589 if test -n "$XMMS2_CFLAGS"; then
21590 pkg_cv_XMMS2_CFLAGS="$XMMS2_CFLAGS"
21592 if test -n "$PKG_CONFIG" && \
21593 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xmms2-client >= 0.6\"") >&5
21594 ($PKG_CONFIG --exists --print-errors "xmms2-client >= 0.6") 2>&5
21596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21597 (exit $ac_status); }; then
21598 pkg_cv_XMMS2_CFLAGS=`$PKG_CONFIG --cflags "xmms2-client >= 0.6" 2>/dev/null`
21606 if test -n "$PKG_CONFIG"; then
21607 if test -n "$XMMS2_LIBS"; then
21608 pkg_cv_XMMS2_LIBS="$XMMS2_LIBS"
21610 if test -n "$PKG_CONFIG" && \
21611 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xmms2-client >= 0.6\"") >&5
21612 ($PKG_CONFIG --exists --print-errors "xmms2-client >= 0.6") 2>&5
21614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21615 (exit $ac_status); }; then
21616 pkg_cv_XMMS2_LIBS=`$PKG_CONFIG --libs "xmms2-client >= 0.6" 2>/dev/null`
21627 if test $pkg_failed = yes; then
21629 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21630 _pkg_short_errors_supported=yes
21632 _pkg_short_errors_supported=no
21634 if test $_pkg_short_errors_supported = yes; then
21635 XMMS2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xmms2-client >= 0.6"`
21637 XMMS2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xmms2-client >= 0.6"`
21639 # Put the nasty error message in config.log where it belongs
21640 echo "$XMMS2_PKG_ERRORS" >&5
21642 { { echo "$as_me:$LINENO: error: Package requirements (xmms2-client >= 0.6) were not met:
21646 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21647 installed software in a non-standard prefix.
21649 Alternatively, you may set the environment variables XMMS2_CFLAGS
21650 and XMMS2_LIBS to avoid the need to call pkg-config.
21651 See the pkg-config man page for more details.
21653 echo "$as_me: error: Package requirements (xmms2-client >= 0.6) were not met:
21657 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21658 installed software in a non-standard prefix.
21660 Alternatively, you may set the environment variables XMMS2_CFLAGS
21661 and XMMS2_LIBS to avoid the need to call pkg-config.
21662 See the pkg-config man page for more details.
21664 { (exit 1); exit 1; }; }
21665 elif test $pkg_failed = untried; then
21666 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
21667 is in your PATH or set the PKG_CONFIG environment variable to the full
21668 path to pkg-config.
21670 Alternatively, you may set the environment variables XMMS2_CFLAGS
21671 and XMMS2_LIBS to avoid the need to call pkg-config.
21672 See the pkg-config man page for more details.
21674 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
21675 See \`config.log' for more details." >&5
21676 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
21677 is in your PATH or set the PKG_CONFIG environment variable to the full
21678 path to pkg-config.
21680 Alternatively, you may set the environment variables XMMS2_CFLAGS
21681 and XMMS2_LIBS to avoid the need to call pkg-config.
21682 See the pkg-config man page for more details.
21684 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
21685 See \`config.log' for more details." >&2;}
21686 { (exit 1); exit 1; }; }
21688 XMMS2_CFLAGS=$pkg_cv_XMMS2_CFLAGS
21689 XMMS2_LIBS=$pkg_cv_XMMS2_LIBS
21690 { echo "$as_me:$LINENO: result: yes" >&5
21691 echo "${ECHO_T}yes" >&6; }
21694 conky_CFLAGS="$conky_CFLAGS $XMMS2_CFLAGS"
21695 conky_LIBS="$conky_LIBS $XMMS2_LIBS"
21697 cat >>confdefs.h <<\_ACEOF
21704 # Check whether --enable-curl was given.
21705 if test "${enable_curl+set}" = set; then
21706 enableval=$enable_curl; want_curl="$enableval"
21713 # Check whether --enable-eve was given.
21714 if test "${enable_eve+set}" = set; then
21715 enableval=$enable_eve; want_eve="$enableval"
21723 if test x$want_eve = xyes; then
21725 BUILD_EVE_FALSE='#'
21731 if test x$want_eve = xyes; then
21735 cat >>confdefs.h <<\_ACEOF
21740 cat >>confdefs.h <<\_ACEOF
21741 #define EVEURL_TRAINING "http://api.eve-online.com/char/SkillInTraining.xml.aspx"
21745 cat >>confdefs.h <<\_ACEOF
21746 #define EVEURL_SKILLTREE "http://api.eve-online.com/eve/Skilltree.xml.aspx"
21750 cat >>confdefs.h <<\_ACEOF
21751 #define MY_ENCODING "ISO-8859-1"
21755 cat >>confdefs.h <<\_ACEOF
21756 #define EVE_OUTPUT_FORMAT "%s %d in %s"
21762 # Check whether --enable-rss was given.
21763 if test "${enable_rss+set}" = set; then
21764 enableval=$enable_rss; want_rss="$enableval"
21772 if test x$want_rss = xyes; then
21774 BUILD_RSS_FALSE='#'
21780 if test x$want_rss = xyes; then
21785 cat >>confdefs.h <<\_ACEOF
21792 # Check whether --enable-weather-metar was given.
21793 if test "${enable_weather_metar+set}" = set; then
21794 enableval=$enable_weather_metar; want_metar="$enableval"
21800 # Check whether --enable-weather-xoap was given.
21801 if test "${enable_weather_xoap+set}" = set; then
21802 enableval=$enable_weather_xoap; want_xoap="$enableval"
21808 if test x$want_xoap = xyes; then
21813 if test x$want_metar = xyes; then
21814 BUILD_WEATHER_TRUE=
21815 BUILD_WEATHER_FALSE='#'
21817 BUILD_WEATHER_TRUE='#'
21818 BUILD_WEATHER_FALSE=
21823 if test x$want_xoap = xyes; then
21825 BUILD_XOAP_FALSE='#'
21827 BUILD_XOAP_TRUE='#'
21831 if test x$want_metar = xyes; then
21832 if test x$want_xoap = xyes; then
21835 cat >>confdefs.h <<\_ACEOF
21840 cat >>confdefs.h <<\_ACEOF
21841 #define XOAP_FILE "$HOME/.xoaprc"
21847 cat >>confdefs.h <<\_ACEOF
21854 # Check whether --enable-x11 was given.
21855 if test "${enable_x11+set}" = set; then
21856 enableval=$enable_x11; want_x11="$enableval"
21864 if test x$want_x11 = xyes; then
21866 BUILD_X11_FALSE='#'
21872 if test "x$want_x11" = "xyes"; then
21873 if $PKG_CONFIG --exists x11; then
21876 { echo "$as_me:$LINENO: checking for X11" >&5
21877 echo $ECHO_N "checking for X11... $ECHO_C" >&6; }
21879 if test -n "$PKG_CONFIG"; then
21880 if test -n "$X11_CFLAGS"; then
21881 pkg_cv_X11_CFLAGS="$X11_CFLAGS"
21883 if test -n "$PKG_CONFIG" && \
21884 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11\"") >&5
21885 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
21887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21888 (exit $ac_status); }; then
21889 pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
21897 if test -n "$PKG_CONFIG"; then
21898 if test -n "$X11_LIBS"; then
21899 pkg_cv_X11_LIBS="$X11_LIBS"
21901 if test -n "$PKG_CONFIG" && \
21902 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11\"") >&5
21903 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
21905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21906 (exit $ac_status); }; then
21907 pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
21918 if test $pkg_failed = yes; then
21920 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21921 _pkg_short_errors_supported=yes
21923 _pkg_short_errors_supported=no
21925 if test $_pkg_short_errors_supported = yes; then
21926 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "x11"`
21928 X11_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "x11"`
21930 # Put the nasty error message in config.log where it belongs
21931 echo "$X11_PKG_ERRORS" >&5
21933 { { echo "$as_me:$LINENO: error: Package requirements (x11) were not met:
21937 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21938 installed software in a non-standard prefix.
21940 Alternatively, you may set the environment variables X11_CFLAGS
21941 and X11_LIBS to avoid the need to call pkg-config.
21942 See the pkg-config man page for more details.
21944 echo "$as_me: error: Package requirements (x11) were not met:
21948 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21949 installed software in a non-standard prefix.
21951 Alternatively, you may set the environment variables X11_CFLAGS
21952 and X11_LIBS to avoid the need to call pkg-config.
21953 See the pkg-config man page for more details.
21955 { (exit 1); exit 1; }; }
21956 elif test $pkg_failed = untried; then
21957 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
21958 is in your PATH or set the PKG_CONFIG environment variable to the full
21959 path to pkg-config.
21961 Alternatively, you may set the environment variables X11_CFLAGS
21962 and X11_LIBS to avoid the need to call pkg-config.
21963 See the pkg-config man page for more details.
21965 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
21966 See \`config.log' for more details." >&5
21967 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
21968 is in your PATH or set the PKG_CONFIG environment variable to the full
21969 path to pkg-config.
21971 Alternatively, you may set the environment variables X11_CFLAGS
21972 and X11_LIBS to avoid the need to call pkg-config.
21973 See the pkg-config man page for more details.
21975 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
21976 See \`config.log' for more details." >&2;}
21977 { (exit 1); exit 1; }; }
21979 X11_CFLAGS=$pkg_cv_X11_CFLAGS
21980 X11_LIBS=$pkg_cv_X11_LIBS
21981 { echo "$as_me:$LINENO: result: yes" >&5
21982 echo "${ECHO_T}yes" >&6; }
21985 conky_CFLAGS="$conky_CFLAGS $X11_CFLAGS"
21986 conky_LIBS="$conky_LIBS $X11_LIBS"
21988 { echo "$as_me:$LINENO: checking for X" >&5
21989 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
21992 # Check whether --with-x was given.
21993 if test "${with_x+set}" = set; then
21997 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
21998 if test "x$with_x" = xno; then
21999 # The user explicitly disabled X.
22002 case $x_includes,$x_libraries in #(
22003 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
22004 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
22005 { (exit 1); exit 1; }; };; #(
22006 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
22007 echo $ECHO_N "(cached) $ECHO_C" >&6
22009 # One or both of the vars are not set, and there is no cached value.
22010 ac_x_includes=no ac_x_libraries=no
22011 rm -f -r conftest.dir
22012 if mkdir conftest.dir; then
22014 cat >Imakefile <<'_ACEOF'
22016 @echo incroot='${INCROOT}'
22018 @echo usrlibdir='${USRLIBDIR}'
22020 @echo libdir='${LIBDIR}'
22022 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
22023 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
22024 for ac_var in incroot usrlibdir libdir; do
22025 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
22027 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
22028 for ac_extension in a so sl; do
22029 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
22030 test -f "$ac_im_libdir/libX11.$ac_extension"; then
22031 ac_im_usrlibdir=$ac_im_libdir; break
22034 # Screen out bogus values from the imake configuration. They are
22035 # bogus both because they are the default anyway, and because
22036 # using them would break gcc on systems where it needs fixed includes.
22037 case $ac_im_incroot in
22038 /usr/include) ac_x_includes= ;;
22039 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
22041 case $ac_im_usrlibdir in
22042 /usr/lib | /lib) ;;
22043 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
22047 rm -f -r conftest.dir
22050 # Standard set of common directories for X headers.
22051 # Check X11 before X11Rn because it is often a symlink to the current release.
22063 /usr/local/X11/include
22064 /usr/local/X11R6/include
22065 /usr/local/X11R5/include
22066 /usr/local/X11R4/include
22068 /usr/local/include/X11
22069 /usr/local/include/X11R6
22070 /usr/local/include/X11R5
22071 /usr/local/include/X11R4
22075 /usr/XFree86/include/X11
22079 /usr/unsupported/include
22080 /usr/athena/include
22081 /usr/local/x11r5/include
22082 /usr/lpp/Xamples/include
22084 /usr/openwin/include
22085 /usr/openwin/share/include'
22087 if test "$ac_x_includes" = no; then
22088 # Guess where to find include files, by looking for Xlib.h.
22089 # First, try using that file with no special directory specified.
22090 cat >conftest.$ac_ext <<_ACEOF
22093 cat confdefs.h >>conftest.$ac_ext
22094 cat >>conftest.$ac_ext <<_ACEOF
22095 /* end confdefs.h. */
22096 #include <X11/Xlib.h>
22098 if { (ac_try="$ac_cpp conftest.$ac_ext"
22099 case "(($ac_try" in
22100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22101 *) ac_try_echo=$ac_try;;
22103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22104 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22106 grep -v '^ *+' conftest.er1 >conftest.err
22108 cat conftest.err >&5
22109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22110 (exit $ac_status); } >/dev/null && {
22111 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22112 test ! -s conftest.err
22114 # We can compile using X headers with no special include directory.
22117 echo "$as_me: failed program was:" >&5
22118 sed 's/^/| /' conftest.$ac_ext >&5
22120 for ac_dir in $ac_x_header_dirs; do
22121 if test -r "$ac_dir/X11/Xlib.h"; then
22122 ac_x_includes=$ac_dir
22128 rm -f conftest.err conftest.$ac_ext
22129 fi # $ac_x_includes = no
22131 if test "$ac_x_libraries" = no; then
22132 # Check for the libraries.
22133 # See if we find them without any special options.
22134 # Don't add to $LIBS permanently.
22137 cat >conftest.$ac_ext <<_ACEOF
22140 cat confdefs.h >>conftest.$ac_ext
22141 cat >>conftest.$ac_ext <<_ACEOF
22142 /* end confdefs.h. */
22143 #include <X11/Xlib.h>
22152 rm -f conftest.$ac_objext conftest$ac_exeext
22153 if { (ac_try="$ac_link"
22154 case "(($ac_try" in
22155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22156 *) ac_try_echo=$ac_try;;
22158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22159 (eval "$ac_link") 2>conftest.er1
22161 grep -v '^ *+' conftest.er1 >conftest.err
22163 cat conftest.err >&5
22164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22165 (exit $ac_status); } && {
22166 test -z "$ac_c_werror_flag" ||
22167 test ! -s conftest.err
22168 } && test -s conftest$ac_exeext &&
22169 $as_test_x conftest$ac_exeext; then
22171 # We can link X programs with no special library path.
22174 echo "$as_me: failed program was:" >&5
22175 sed 's/^/| /' conftest.$ac_ext >&5
22178 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
22180 # Don't even attempt the hair of trying to link an X program!
22181 for ac_extension in a so sl; do
22182 if test -r "$ac_dir/libX11.$ac_extension"; then
22183 ac_x_libraries=$ac_dir
22190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22191 conftest$ac_exeext conftest.$ac_ext
22192 fi # $ac_x_libraries = no
22194 case $ac_x_includes,$ac_x_libraries in #(
22195 no,* | *,no | *\'*)
22196 # Didn't find X, or a directory has "'" in its name.
22197 ac_cv_have_x="have_x=no";; #(
22199 # Record where we found X for the cache.
22200 ac_cv_have_x="have_x=yes\
22201 ac_x_includes='$ac_x_includes'\
22202 ac_x_libraries='$ac_x_libraries'"
22208 eval "$ac_cv_have_x"
22211 if test "$have_x" != yes; then
22212 { echo "$as_me:$LINENO: result: $have_x" >&5
22213 echo "${ECHO_T}$have_x" >&6; }
22216 # If each of the values was on the command line, it overrides each guess.
22217 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
22218 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
22219 # Update the cache value to reflect the command line values.
22220 ac_cv_have_x="have_x=yes\
22221 ac_x_includes='$x_includes'\
22222 ac_x_libraries='$x_libraries'"
22223 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
22224 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
22227 if test "$no_x" = yes; then
22228 # Not all programs may use this symbol, but it does not hurt to define it.
22230 cat >>confdefs.h <<\_ACEOF
22231 #define X_DISPLAY_MISSING 1
22234 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
22236 if test -n "$x_includes"; then
22237 X_CFLAGS="$X_CFLAGS -I$x_includes"
22240 # It would also be nice to do this for all -L options, not just this one.
22241 if test -n "$x_libraries"; then
22242 X_LIBS="$X_LIBS -L$x_libraries"
22243 # For Solaris; some versions of Sun CC require a space after -R and
22244 # others require no space. Words are not sufficient . . . .
22245 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
22246 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
22247 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
22248 ac_xsave_c_werror_flag=$ac_c_werror_flag
22249 ac_c_werror_flag=yes
22250 cat >conftest.$ac_ext <<_ACEOF
22253 cat confdefs.h >>conftest.$ac_ext
22254 cat >>conftest.$ac_ext <<_ACEOF
22255 /* end confdefs.h. */
22265 rm -f conftest.$ac_objext conftest$ac_exeext
22266 if { (ac_try="$ac_link"
22267 case "(($ac_try" in
22268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22269 *) ac_try_echo=$ac_try;;
22271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22272 (eval "$ac_link") 2>conftest.er1
22274 grep -v '^ *+' conftest.er1 >conftest.err
22276 cat conftest.err >&5
22277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22278 (exit $ac_status); } && {
22279 test -z "$ac_c_werror_flag" ||
22280 test ! -s conftest.err
22281 } && test -s conftest$ac_exeext &&
22282 $as_test_x conftest$ac_exeext; then
22283 { echo "$as_me:$LINENO: result: no" >&5
22284 echo "${ECHO_T}no" >&6; }
22285 X_LIBS="$X_LIBS -R$x_libraries"
22287 echo "$as_me: failed program was:" >&5
22288 sed 's/^/| /' conftest.$ac_ext >&5
22290 LIBS="$ac_xsave_LIBS -R $x_libraries"
22291 cat >conftest.$ac_ext <<_ACEOF
22294 cat confdefs.h >>conftest.$ac_ext
22295 cat >>conftest.$ac_ext <<_ACEOF
22296 /* end confdefs.h. */
22306 rm -f conftest.$ac_objext conftest$ac_exeext
22307 if { (ac_try="$ac_link"
22308 case "(($ac_try" in
22309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22310 *) ac_try_echo=$ac_try;;
22312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22313 (eval "$ac_link") 2>conftest.er1
22315 grep -v '^ *+' conftest.er1 >conftest.err
22317 cat conftest.err >&5
22318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22319 (exit $ac_status); } && {
22320 test -z "$ac_c_werror_flag" ||
22321 test ! -s conftest.err
22322 } && test -s conftest$ac_exeext &&
22323 $as_test_x conftest$ac_exeext; then
22324 { echo "$as_me:$LINENO: result: yes" >&5
22325 echo "${ECHO_T}yes" >&6; }
22326 X_LIBS="$X_LIBS -R $x_libraries"
22328 echo "$as_me: failed program was:" >&5
22329 sed 's/^/| /' conftest.$ac_ext >&5
22331 { echo "$as_me:$LINENO: result: neither works" >&5
22332 echo "${ECHO_T}neither works" >&6; }
22335 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22336 conftest$ac_exeext conftest.$ac_ext
22339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22340 conftest$ac_exeext conftest.$ac_ext
22341 ac_c_werror_flag=$ac_xsave_c_werror_flag
22342 LIBS=$ac_xsave_LIBS
22345 # Check for system-dependent libraries X programs must link with.
22346 # Do this before checking for the system-independent R6 libraries
22347 # (-lICE), since we may need -lsocket or whatever for X linking.
22349 if test "$ISC" = yes; then
22350 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
22352 # Martyn Johnson says this is needed for Ultrix, if the X
22353 # libraries were built with DECnet support. And Karl Berry says
22354 # the Alpha needs dnet_stub (dnet does not exist).
22355 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
22356 cat >conftest.$ac_ext <<_ACEOF
22359 cat confdefs.h >>conftest.$ac_ext
22360 cat >>conftest.$ac_ext <<_ACEOF
22361 /* end confdefs.h. */
22363 /* Override any GCC internal prototype to avoid an error.
22364 Use char because int might match the return type of a GCC
22365 builtin and then its argument prototype would still apply. */
22369 char XOpenDisplay ();
22373 return XOpenDisplay ();
22378 rm -f conftest.$ac_objext conftest$ac_exeext
22379 if { (ac_try="$ac_link"
22380 case "(($ac_try" in
22381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22382 *) ac_try_echo=$ac_try;;
22384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22385 (eval "$ac_link") 2>conftest.er1
22387 grep -v '^ *+' conftest.er1 >conftest.err
22389 cat conftest.err >&5
22390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22391 (exit $ac_status); } && {
22392 test -z "$ac_c_werror_flag" ||
22393 test ! -s conftest.err
22394 } && test -s conftest$ac_exeext &&
22395 $as_test_x conftest$ac_exeext; then
22398 echo "$as_me: failed program was:" >&5
22399 sed 's/^/| /' conftest.$ac_ext >&5
22401 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
22402 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
22403 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
22404 echo $ECHO_N "(cached) $ECHO_C" >&6
22406 ac_check_lib_save_LIBS=$LIBS
22407 LIBS="-ldnet $LIBS"
22408 cat >conftest.$ac_ext <<_ACEOF
22411 cat confdefs.h >>conftest.$ac_ext
22412 cat >>conftest.$ac_ext <<_ACEOF
22413 /* end confdefs.h. */
22415 /* Override any GCC internal prototype to avoid an error.
22416 Use char because int might match the return type of a GCC
22417 builtin and then its argument prototype would still apply. */
22425 return dnet_ntoa ();
22430 rm -f conftest.$ac_objext conftest$ac_exeext
22431 if { (ac_try="$ac_link"
22432 case "(($ac_try" in
22433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22434 *) ac_try_echo=$ac_try;;
22436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22437 (eval "$ac_link") 2>conftest.er1
22439 grep -v '^ *+' conftest.er1 >conftest.err
22441 cat conftest.err >&5
22442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22443 (exit $ac_status); } && {
22444 test -z "$ac_c_werror_flag" ||
22445 test ! -s conftest.err
22446 } && test -s conftest$ac_exeext &&
22447 $as_test_x conftest$ac_exeext; then
22448 ac_cv_lib_dnet_dnet_ntoa=yes
22450 echo "$as_me: failed program was:" >&5
22451 sed 's/^/| /' conftest.$ac_ext >&5
22453 ac_cv_lib_dnet_dnet_ntoa=no
22456 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22457 conftest$ac_exeext conftest.$ac_ext
22458 LIBS=$ac_check_lib_save_LIBS
22460 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
22461 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
22462 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
22463 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
22466 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
22467 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
22468 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
22469 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
22470 echo $ECHO_N "(cached) $ECHO_C" >&6
22472 ac_check_lib_save_LIBS=$LIBS
22473 LIBS="-ldnet_stub $LIBS"
22474 cat >conftest.$ac_ext <<_ACEOF
22477 cat confdefs.h >>conftest.$ac_ext
22478 cat >>conftest.$ac_ext <<_ACEOF
22479 /* end confdefs.h. */
22481 /* Override any GCC internal prototype to avoid an error.
22482 Use char because int might match the return type of a GCC
22483 builtin and then its argument prototype would still apply. */
22491 return dnet_ntoa ();
22496 rm -f conftest.$ac_objext conftest$ac_exeext
22497 if { (ac_try="$ac_link"
22498 case "(($ac_try" in
22499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22500 *) ac_try_echo=$ac_try;;
22502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22503 (eval "$ac_link") 2>conftest.er1
22505 grep -v '^ *+' conftest.er1 >conftest.err
22507 cat conftest.err >&5
22508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22509 (exit $ac_status); } && {
22510 test -z "$ac_c_werror_flag" ||
22511 test ! -s conftest.err
22512 } && test -s conftest$ac_exeext &&
22513 $as_test_x conftest$ac_exeext; then
22514 ac_cv_lib_dnet_stub_dnet_ntoa=yes
22516 echo "$as_me: failed program was:" >&5
22517 sed 's/^/| /' conftest.$ac_ext >&5
22519 ac_cv_lib_dnet_stub_dnet_ntoa=no
22522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22523 conftest$ac_exeext conftest.$ac_ext
22524 LIBS=$ac_check_lib_save_LIBS
22526 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
22527 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
22528 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
22529 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
22535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22536 conftest$ac_exeext conftest.$ac_ext
22537 LIBS="$ac_xsave_LIBS"
22539 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
22540 # to get the SysV transport functions.
22541 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
22543 # The nsl library prevents programs from opening the X display
22544 # on Irix 5.2, according to T.E. Dickey.
22545 # The functions gethostbyname, getservbyname, and inet_addr are
22546 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
22547 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
22548 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
22549 if test "${ac_cv_func_gethostbyname+set}" = set; then
22550 echo $ECHO_N "(cached) $ECHO_C" >&6
22552 cat >conftest.$ac_ext <<_ACEOF
22555 cat confdefs.h >>conftest.$ac_ext
22556 cat >>conftest.$ac_ext <<_ACEOF
22557 /* end confdefs.h. */
22558 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
22559 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22560 #define gethostbyname innocuous_gethostbyname
22562 /* System header to define __stub macros and hopefully few prototypes,
22563 which can conflict with char gethostbyname (); below.
22564 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22565 <limits.h> exists even on freestanding compilers. */
22568 # include <limits.h>
22570 # include <assert.h>
22573 #undef gethostbyname
22575 /* Override any GCC internal prototype to avoid an error.
22576 Use char because int might match the return type of a GCC
22577 builtin and then its argument prototype would still apply. */
22581 char gethostbyname ();
22582 /* The GNU C library defines this for functions which it implements
22583 to always fail with ENOSYS. Some functions are actually named
22584 something starting with __ and the normal name is an alias. */
22585 #if defined __stub_gethostbyname || defined __stub___gethostbyname
22592 return gethostbyname ();
22597 rm -f conftest.$ac_objext conftest$ac_exeext
22598 if { (ac_try="$ac_link"
22599 case "(($ac_try" in
22600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22601 *) ac_try_echo=$ac_try;;
22603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22604 (eval "$ac_link") 2>conftest.er1
22606 grep -v '^ *+' conftest.er1 >conftest.err
22608 cat conftest.err >&5
22609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22610 (exit $ac_status); } && {
22611 test -z "$ac_c_werror_flag" ||
22612 test ! -s conftest.err
22613 } && test -s conftest$ac_exeext &&
22614 $as_test_x conftest$ac_exeext; then
22615 ac_cv_func_gethostbyname=yes
22617 echo "$as_me: failed program was:" >&5
22618 sed 's/^/| /' conftest.$ac_ext >&5
22620 ac_cv_func_gethostbyname=no
22623 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22624 conftest$ac_exeext conftest.$ac_ext
22626 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
22627 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
22629 if test $ac_cv_func_gethostbyname = no; then
22630 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
22631 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
22632 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
22633 echo $ECHO_N "(cached) $ECHO_C" >&6
22635 ac_check_lib_save_LIBS=$LIBS
22637 cat >conftest.$ac_ext <<_ACEOF
22640 cat confdefs.h >>conftest.$ac_ext
22641 cat >>conftest.$ac_ext <<_ACEOF
22642 /* end confdefs.h. */
22644 /* Override any GCC internal prototype to avoid an error.
22645 Use char because int might match the return type of a GCC
22646 builtin and then its argument prototype would still apply. */
22650 char gethostbyname ();
22654 return gethostbyname ();
22659 rm -f conftest.$ac_objext conftest$ac_exeext
22660 if { (ac_try="$ac_link"
22661 case "(($ac_try" in
22662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22663 *) ac_try_echo=$ac_try;;
22665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22666 (eval "$ac_link") 2>conftest.er1
22668 grep -v '^ *+' conftest.er1 >conftest.err
22670 cat conftest.err >&5
22671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22672 (exit $ac_status); } && {
22673 test -z "$ac_c_werror_flag" ||
22674 test ! -s conftest.err
22675 } && test -s conftest$ac_exeext &&
22676 $as_test_x conftest$ac_exeext; then
22677 ac_cv_lib_nsl_gethostbyname=yes
22679 echo "$as_me: failed program was:" >&5
22680 sed 's/^/| /' conftest.$ac_ext >&5
22682 ac_cv_lib_nsl_gethostbyname=no
22685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22686 conftest$ac_exeext conftest.$ac_ext
22687 LIBS=$ac_check_lib_save_LIBS
22689 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
22690 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
22691 if test $ac_cv_lib_nsl_gethostbyname = yes; then
22692 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
22695 if test $ac_cv_lib_nsl_gethostbyname = no; then
22696 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
22697 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
22698 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
22699 echo $ECHO_N "(cached) $ECHO_C" >&6
22701 ac_check_lib_save_LIBS=$LIBS
22703 cat >conftest.$ac_ext <<_ACEOF
22706 cat confdefs.h >>conftest.$ac_ext
22707 cat >>conftest.$ac_ext <<_ACEOF
22708 /* end confdefs.h. */
22710 /* Override any GCC internal prototype to avoid an error.
22711 Use char because int might match the return type of a GCC
22712 builtin and then its argument prototype would still apply. */
22716 char gethostbyname ();
22720 return gethostbyname ();
22725 rm -f conftest.$ac_objext conftest$ac_exeext
22726 if { (ac_try="$ac_link"
22727 case "(($ac_try" in
22728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22729 *) ac_try_echo=$ac_try;;
22731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22732 (eval "$ac_link") 2>conftest.er1
22734 grep -v '^ *+' conftest.er1 >conftest.err
22736 cat conftest.err >&5
22737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22738 (exit $ac_status); } && {
22739 test -z "$ac_c_werror_flag" ||
22740 test ! -s conftest.err
22741 } && test -s conftest$ac_exeext &&
22742 $as_test_x conftest$ac_exeext; then
22743 ac_cv_lib_bsd_gethostbyname=yes
22745 echo "$as_me: failed program was:" >&5
22746 sed 's/^/| /' conftest.$ac_ext >&5
22748 ac_cv_lib_bsd_gethostbyname=no
22751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22752 conftest$ac_exeext conftest.$ac_ext
22753 LIBS=$ac_check_lib_save_LIBS
22755 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
22756 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
22757 if test $ac_cv_lib_bsd_gethostbyname = yes; then
22758 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
22764 # lieder@skyler.mavd.honeywell.com says without -lsocket,
22765 # socket/setsockopt and other routines are undefined under SCO ODT
22766 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
22767 # on later versions), says Simon Leinen: it contains gethostby*
22768 # variants that don't use the name server (or something). -lsocket
22769 # must be given before -lnsl if both are needed. We assume that
22770 # if connect needs -lnsl, so does gethostbyname.
22771 { echo "$as_me:$LINENO: checking for connect" >&5
22772 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
22773 if test "${ac_cv_func_connect+set}" = set; then
22774 echo $ECHO_N "(cached) $ECHO_C" >&6
22776 cat >conftest.$ac_ext <<_ACEOF
22779 cat confdefs.h >>conftest.$ac_ext
22780 cat >>conftest.$ac_ext <<_ACEOF
22781 /* end confdefs.h. */
22782 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
22783 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22784 #define connect innocuous_connect
22786 /* System header to define __stub macros and hopefully few prototypes,
22787 which can conflict with char connect (); below.
22788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22789 <limits.h> exists even on freestanding compilers. */
22792 # include <limits.h>
22794 # include <assert.h>
22799 /* Override any GCC internal prototype to avoid an error.
22800 Use char because int might match the return type of a GCC
22801 builtin and then its argument prototype would still apply. */
22806 /* The GNU C library defines this for functions which it implements
22807 to always fail with ENOSYS. Some functions are actually named
22808 something starting with __ and the normal name is an alias. */
22809 #if defined __stub_connect || defined __stub___connect
22821 rm -f conftest.$ac_objext conftest$ac_exeext
22822 if { (ac_try="$ac_link"
22823 case "(($ac_try" in
22824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22825 *) ac_try_echo=$ac_try;;
22827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22828 (eval "$ac_link") 2>conftest.er1
22830 grep -v '^ *+' conftest.er1 >conftest.err
22832 cat conftest.err >&5
22833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22834 (exit $ac_status); } && {
22835 test -z "$ac_c_werror_flag" ||
22836 test ! -s conftest.err
22837 } && test -s conftest$ac_exeext &&
22838 $as_test_x conftest$ac_exeext; then
22839 ac_cv_func_connect=yes
22841 echo "$as_me: failed program was:" >&5
22842 sed 's/^/| /' conftest.$ac_ext >&5
22844 ac_cv_func_connect=no
22847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22848 conftest$ac_exeext conftest.$ac_ext
22850 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
22851 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
22853 if test $ac_cv_func_connect = no; then
22854 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
22855 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
22856 if test "${ac_cv_lib_socket_connect+set}" = set; then
22857 echo $ECHO_N "(cached) $ECHO_C" >&6
22859 ac_check_lib_save_LIBS=$LIBS
22860 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
22861 cat >conftest.$ac_ext <<_ACEOF
22864 cat confdefs.h >>conftest.$ac_ext
22865 cat >>conftest.$ac_ext <<_ACEOF
22866 /* end confdefs.h. */
22868 /* Override any GCC internal prototype to avoid an error.
22869 Use char because int might match the return type of a GCC
22870 builtin and then its argument prototype would still apply. */
22883 rm -f conftest.$ac_objext conftest$ac_exeext
22884 if { (ac_try="$ac_link"
22885 case "(($ac_try" in
22886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22887 *) ac_try_echo=$ac_try;;
22889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22890 (eval "$ac_link") 2>conftest.er1
22892 grep -v '^ *+' conftest.er1 >conftest.err
22894 cat conftest.err >&5
22895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22896 (exit $ac_status); } && {
22897 test -z "$ac_c_werror_flag" ||
22898 test ! -s conftest.err
22899 } && test -s conftest$ac_exeext &&
22900 $as_test_x conftest$ac_exeext; then
22901 ac_cv_lib_socket_connect=yes
22903 echo "$as_me: failed program was:" >&5
22904 sed 's/^/| /' conftest.$ac_ext >&5
22906 ac_cv_lib_socket_connect=no
22909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22910 conftest$ac_exeext conftest.$ac_ext
22911 LIBS=$ac_check_lib_save_LIBS
22913 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
22914 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
22915 if test $ac_cv_lib_socket_connect = yes; then
22916 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
22921 # Guillermo Gomez says -lposix is necessary on A/UX.
22922 { echo "$as_me:$LINENO: checking for remove" >&5
22923 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
22924 if test "${ac_cv_func_remove+set}" = set; then
22925 echo $ECHO_N "(cached) $ECHO_C" >&6
22927 cat >conftest.$ac_ext <<_ACEOF
22930 cat confdefs.h >>conftest.$ac_ext
22931 cat >>conftest.$ac_ext <<_ACEOF
22932 /* end confdefs.h. */
22933 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
22934 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22935 #define remove innocuous_remove
22937 /* System header to define __stub macros and hopefully few prototypes,
22938 which can conflict with char remove (); below.
22939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22940 <limits.h> exists even on freestanding compilers. */
22943 # include <limits.h>
22945 # include <assert.h>
22950 /* Override any GCC internal prototype to avoid an error.
22951 Use char because int might match the return type of a GCC
22952 builtin and then its argument prototype would still apply. */
22957 /* The GNU C library defines this for functions which it implements
22958 to always fail with ENOSYS. Some functions are actually named
22959 something starting with __ and the normal name is an alias. */
22960 #if defined __stub_remove || defined __stub___remove
22972 rm -f conftest.$ac_objext conftest$ac_exeext
22973 if { (ac_try="$ac_link"
22974 case "(($ac_try" in
22975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22976 *) ac_try_echo=$ac_try;;
22978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22979 (eval "$ac_link") 2>conftest.er1
22981 grep -v '^ *+' conftest.er1 >conftest.err
22983 cat conftest.err >&5
22984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22985 (exit $ac_status); } && {
22986 test -z "$ac_c_werror_flag" ||
22987 test ! -s conftest.err
22988 } && test -s conftest$ac_exeext &&
22989 $as_test_x conftest$ac_exeext; then
22990 ac_cv_func_remove=yes
22992 echo "$as_me: failed program was:" >&5
22993 sed 's/^/| /' conftest.$ac_ext >&5
22995 ac_cv_func_remove=no
22998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22999 conftest$ac_exeext conftest.$ac_ext
23001 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
23002 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
23004 if test $ac_cv_func_remove = no; then
23005 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
23006 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
23007 if test "${ac_cv_lib_posix_remove+set}" = set; then
23008 echo $ECHO_N "(cached) $ECHO_C" >&6
23010 ac_check_lib_save_LIBS=$LIBS
23011 LIBS="-lposix $LIBS"
23012 cat >conftest.$ac_ext <<_ACEOF
23015 cat confdefs.h >>conftest.$ac_ext
23016 cat >>conftest.$ac_ext <<_ACEOF
23017 /* end confdefs.h. */
23019 /* Override any GCC internal prototype to avoid an error.
23020 Use char because int might match the return type of a GCC
23021 builtin and then its argument prototype would still apply. */
23034 rm -f conftest.$ac_objext conftest$ac_exeext
23035 if { (ac_try="$ac_link"
23036 case "(($ac_try" in
23037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23038 *) ac_try_echo=$ac_try;;
23040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23041 (eval "$ac_link") 2>conftest.er1
23043 grep -v '^ *+' conftest.er1 >conftest.err
23045 cat conftest.err >&5
23046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23047 (exit $ac_status); } && {
23048 test -z "$ac_c_werror_flag" ||
23049 test ! -s conftest.err
23050 } && test -s conftest$ac_exeext &&
23051 $as_test_x conftest$ac_exeext; then
23052 ac_cv_lib_posix_remove=yes
23054 echo "$as_me: failed program was:" >&5
23055 sed 's/^/| /' conftest.$ac_ext >&5
23057 ac_cv_lib_posix_remove=no
23060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23061 conftest$ac_exeext conftest.$ac_ext
23062 LIBS=$ac_check_lib_save_LIBS
23064 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
23065 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
23066 if test $ac_cv_lib_posix_remove = yes; then
23067 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
23072 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
23073 { echo "$as_me:$LINENO: checking for shmat" >&5
23074 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
23075 if test "${ac_cv_func_shmat+set}" = set; then
23076 echo $ECHO_N "(cached) $ECHO_C" >&6
23078 cat >conftest.$ac_ext <<_ACEOF
23081 cat confdefs.h >>conftest.$ac_ext
23082 cat >>conftest.$ac_ext <<_ACEOF
23083 /* end confdefs.h. */
23084 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
23085 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23086 #define shmat innocuous_shmat
23088 /* System header to define __stub macros and hopefully few prototypes,
23089 which can conflict with char shmat (); below.
23090 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23091 <limits.h> exists even on freestanding compilers. */
23094 # include <limits.h>
23096 # include <assert.h>
23101 /* Override any GCC internal prototype to avoid an error.
23102 Use char because int might match the return type of a GCC
23103 builtin and then its argument prototype would still apply. */
23108 /* The GNU C library defines this for functions which it implements
23109 to always fail with ENOSYS. Some functions are actually named
23110 something starting with __ and the normal name is an alias. */
23111 #if defined __stub_shmat || defined __stub___shmat
23123 rm -f conftest.$ac_objext conftest$ac_exeext
23124 if { (ac_try="$ac_link"
23125 case "(($ac_try" in
23126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23127 *) ac_try_echo=$ac_try;;
23129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23130 (eval "$ac_link") 2>conftest.er1
23132 grep -v '^ *+' conftest.er1 >conftest.err
23134 cat conftest.err >&5
23135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23136 (exit $ac_status); } && {
23137 test -z "$ac_c_werror_flag" ||
23138 test ! -s conftest.err
23139 } && test -s conftest$ac_exeext &&
23140 $as_test_x conftest$ac_exeext; then
23141 ac_cv_func_shmat=yes
23143 echo "$as_me: failed program was:" >&5
23144 sed 's/^/| /' conftest.$ac_ext >&5
23146 ac_cv_func_shmat=no
23149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23150 conftest$ac_exeext conftest.$ac_ext
23152 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
23153 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
23155 if test $ac_cv_func_shmat = no; then
23156 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
23157 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
23158 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
23159 echo $ECHO_N "(cached) $ECHO_C" >&6
23161 ac_check_lib_save_LIBS=$LIBS
23163 cat >conftest.$ac_ext <<_ACEOF
23166 cat confdefs.h >>conftest.$ac_ext
23167 cat >>conftest.$ac_ext <<_ACEOF
23168 /* end confdefs.h. */
23170 /* Override any GCC internal prototype to avoid an error.
23171 Use char because int might match the return type of a GCC
23172 builtin and then its argument prototype would still apply. */
23185 rm -f conftest.$ac_objext conftest$ac_exeext
23186 if { (ac_try="$ac_link"
23187 case "(($ac_try" in
23188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23189 *) ac_try_echo=$ac_try;;
23191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23192 (eval "$ac_link") 2>conftest.er1
23194 grep -v '^ *+' conftest.er1 >conftest.err
23196 cat conftest.err >&5
23197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23198 (exit $ac_status); } && {
23199 test -z "$ac_c_werror_flag" ||
23200 test ! -s conftest.err
23201 } && test -s conftest$ac_exeext &&
23202 $as_test_x conftest$ac_exeext; then
23203 ac_cv_lib_ipc_shmat=yes
23205 echo "$as_me: failed program was:" >&5
23206 sed 's/^/| /' conftest.$ac_ext >&5
23208 ac_cv_lib_ipc_shmat=no
23211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23212 conftest$ac_exeext conftest.$ac_ext
23213 LIBS=$ac_check_lib_save_LIBS
23215 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
23216 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
23217 if test $ac_cv_lib_ipc_shmat = yes; then
23218 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
23224 # Check for libraries that X11R6 Xt/Xaw programs need.
23225 ac_save_LDFLAGS=$LDFLAGS
23226 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
23227 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
23228 # check for ICE first), but we must link in the order -lSM -lICE or
23229 # we get undefined symbols. So assume we have SM if we have ICE.
23230 # These have to be linked with before -lX11, unlike the other
23231 # libraries we check for below, so use a different variable.
23232 # John Interrante, Karl Berry
23233 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
23234 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
23235 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
23236 echo $ECHO_N "(cached) $ECHO_C" >&6
23238 ac_check_lib_save_LIBS=$LIBS
23239 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
23240 cat >conftest.$ac_ext <<_ACEOF
23243 cat confdefs.h >>conftest.$ac_ext
23244 cat >>conftest.$ac_ext <<_ACEOF
23245 /* end confdefs.h. */
23247 /* Override any GCC internal prototype to avoid an error.
23248 Use char because int might match the return type of a GCC
23249 builtin and then its argument prototype would still apply. */
23253 char IceConnectionNumber ();
23257 return IceConnectionNumber ();
23262 rm -f conftest.$ac_objext conftest$ac_exeext
23263 if { (ac_try="$ac_link"
23264 case "(($ac_try" in
23265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23266 *) ac_try_echo=$ac_try;;
23268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23269 (eval "$ac_link") 2>conftest.er1
23271 grep -v '^ *+' conftest.er1 >conftest.err
23273 cat conftest.err >&5
23274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23275 (exit $ac_status); } && {
23276 test -z "$ac_c_werror_flag" ||
23277 test ! -s conftest.err
23278 } && test -s conftest$ac_exeext &&
23279 $as_test_x conftest$ac_exeext; then
23280 ac_cv_lib_ICE_IceConnectionNumber=yes
23282 echo "$as_me: failed program was:" >&5
23283 sed 's/^/| /' conftest.$ac_ext >&5
23285 ac_cv_lib_ICE_IceConnectionNumber=no
23288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23289 conftest$ac_exeext conftest.$ac_ext
23290 LIBS=$ac_check_lib_save_LIBS
23292 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
23293 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
23294 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
23295 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
23298 LDFLAGS=$ac_save_LDFLAGS
23302 conky_CFLAGS="$conky_CFLAGS $X_CFLAGS"
23303 conky_LIBS="$conky_LIBS $X_LIBS"
23304 conky_LDFLAGS="$conky_LDFLAGS $conky_LIBS $X_PRE_LIBS"
23305 if test "x$no_x" = "xyes"; then
23306 { { echo "$as_me:$LINENO: error: Can't locate your X11 installation" >&5
23307 echo "$as_me: error: Can't locate your X11 installation" >&2;}
23308 { (exit 1); exit 1; }; }
23311 { echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5
23312 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6; }
23313 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
23314 echo $ECHO_N "(cached) $ECHO_C" >&6
23316 ac_check_lib_save_LIBS=$LIBS
23318 cat >conftest.$ac_ext <<_ACEOF
23321 cat confdefs.h >>conftest.$ac_ext
23322 cat >>conftest.$ac_ext <<_ACEOF
23323 /* end confdefs.h. */
23325 /* Override any GCC internal prototype to avoid an error.
23326 Use char because int might match the return type of a GCC
23327 builtin and then its argument prototype would still apply. */
23331 char XOpenDisplay ();
23335 return XOpenDisplay ();
23340 rm -f conftest.$ac_objext conftest$ac_exeext
23341 if { (ac_try="$ac_link"
23342 case "(($ac_try" in
23343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23344 *) ac_try_echo=$ac_try;;
23346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23347 (eval "$ac_link") 2>conftest.er1
23349 grep -v '^ *+' conftest.er1 >conftest.err
23351 cat conftest.err >&5
23352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23353 (exit $ac_status); } && {
23354 test -z "$ac_c_werror_flag" ||
23355 test ! -s conftest.err
23356 } && test -s conftest$ac_exeext &&
23357 $as_test_x conftest$ac_exeext; then
23358 ac_cv_lib_X11_XOpenDisplay=yes
23360 echo "$as_me: failed program was:" >&5
23361 sed 's/^/| /' conftest.$ac_ext >&5
23363 ac_cv_lib_X11_XOpenDisplay=no
23366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23367 conftest$ac_exeext conftest.$ac_ext
23368 LIBS=$ac_check_lib_save_LIBS
23370 { echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&5
23371 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6; }
23372 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
23373 cat >>confdefs.h <<_ACEOF
23374 #define HAVE_LIBX11 1
23380 { { echo "$as_me:$LINENO: error: Could not find XOpenDisplay in -lX11" >&5
23381 echo "$as_me: error: Could not find XOpenDisplay in -lX11" >&2;}
23382 { (exit 1); exit 1; }; }
23387 cat >>confdefs.h <<\_ACEOF
23394 # Check whether --enable-argb was given.
23395 if test "${enable_argb+set}" = set; then
23396 enableval=$enable_argb; want_argb="$enableval"
23402 if test x$want_argb = xyes; then
23403 if test "x$want_x11" != "xyes"; then
23407 cat >>confdefs.h <<\_ACEOF
23415 # Check whether --enable-imlib2 was given.
23416 if test "${enable_imlib2+set}" = set; then
23417 enableval=$enable_imlib2; want_imlib2="$enableval"
23422 # Check whether --enable-lua-imlib2 was given.
23423 if test "${enable_lua_imlib2+set}" = set; then
23424 enableval=$enable_lua_imlib2; want_lua_imlib2="$enableval"
23430 # if lua-imlib2 is enabled, we must force imlib2
23431 if test x$want_lua_imlib2 = xyes; then
23435 if test x$want_imlib2 = xyes; then
23436 if test "x$want_x11" != "xyes"; then
23441 { echo "$as_me:$LINENO: checking for Imlib2" >&5
23442 echo $ECHO_N "checking for Imlib2... $ECHO_C" >&6; }
23444 if test -n "$PKG_CONFIG"; then
23445 if test -n "$Imlib2_CFLAGS"; then
23446 pkg_cv_Imlib2_CFLAGS="$Imlib2_CFLAGS"
23448 if test -n "$PKG_CONFIG" && \
23449 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"imlib2\"") >&5
23450 ($PKG_CONFIG --exists --print-errors "imlib2") 2>&5
23452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23453 (exit $ac_status); }; then
23454 pkg_cv_Imlib2_CFLAGS=`$PKG_CONFIG --cflags "imlib2" 2>/dev/null`
23462 if test -n "$PKG_CONFIG"; then
23463 if test -n "$Imlib2_LIBS"; then
23464 pkg_cv_Imlib2_LIBS="$Imlib2_LIBS"
23466 if test -n "$PKG_CONFIG" && \
23467 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"imlib2\"") >&5
23468 ($PKG_CONFIG --exists --print-errors "imlib2") 2>&5
23470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23471 (exit $ac_status); }; then
23472 pkg_cv_Imlib2_LIBS=`$PKG_CONFIG --libs "imlib2" 2>/dev/null`
23483 if test $pkg_failed = yes; then
23485 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23486 _pkg_short_errors_supported=yes
23488 _pkg_short_errors_supported=no
23490 if test $_pkg_short_errors_supported = yes; then
23491 Imlib2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "imlib2"`
23493 Imlib2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "imlib2"`
23495 # Put the nasty error message in config.log where it belongs
23496 echo "$Imlib2_PKG_ERRORS" >&5
23498 { { echo "$as_me:$LINENO: error: Package requirements (imlib2) were not met:
23502 Consider adjusting the PKG_CONFIG_PATH environment variable if you
23503 installed software in a non-standard prefix.
23505 Alternatively, you may set the environment variables Imlib2_CFLAGS
23506 and Imlib2_LIBS to avoid the need to call pkg-config.
23507 See the pkg-config man page for more details.
23509 echo "$as_me: error: Package requirements (imlib2) were not met:
23513 Consider adjusting the PKG_CONFIG_PATH environment variable if you
23514 installed software in a non-standard prefix.
23516 Alternatively, you may set the environment variables Imlib2_CFLAGS
23517 and Imlib2_LIBS to avoid the need to call pkg-config.
23518 See the pkg-config man page for more details.
23520 { (exit 1); exit 1; }; }
23521 elif test $pkg_failed = untried; then
23522 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
23523 is in your PATH or set the PKG_CONFIG environment variable to the full
23524 path to pkg-config.
23526 Alternatively, you may set the environment variables Imlib2_CFLAGS
23527 and Imlib2_LIBS to avoid the need to call pkg-config.
23528 See the pkg-config man page for more details.
23530 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
23531 See \`config.log' for more details." >&5
23532 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
23533 is in your PATH or set the PKG_CONFIG environment variable to the full
23534 path to pkg-config.
23536 Alternatively, you may set the environment variables Imlib2_CFLAGS
23537 and Imlib2_LIBS to avoid the need to call pkg-config.
23538 See the pkg-config man page for more details.
23540 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
23541 See \`config.log' for more details." >&2;}
23542 { (exit 1); exit 1; }; }
23544 Imlib2_CFLAGS=$pkg_cv_Imlib2_CFLAGS
23545 Imlib2_LIBS=$pkg_cv_Imlib2_LIBS
23546 { echo "$as_me:$LINENO: result: yes" >&5
23547 echo "${ECHO_T}yes" >&6; }
23550 conky_CFLAGS="$conky_CFLAGS $Imlib2_CFLAGS"
23551 conky_LIBS="$conky_LIBS $Imlib2_LIBS"
23553 cat >>confdefs.h <<\_ACEOF
23561 if test x$want_imlib2 = xyes; then
23563 BUILD_IMLIB2_FALSE='#'
23565 BUILD_IMLIB2_TRUE='#'
23566 BUILD_IMLIB2_FALSE=
23571 # Check whether --enable-lua was given.
23572 if test "${enable_lua+set}" = set; then
23573 enableval=$enable_lua; want_lua="$enableval"
23578 # Check whether --enable-lua-cairo was given.
23579 if test "${enable_lua_cairo+set}" = set; then
23580 enableval=$enable_lua_cairo; want_lua_cairo="$enableval"
23586 if test x$want_lua_cairo = xyes -o x$want_lua_imlib2 = xyes; then
23593 if test x$want_lua = xyes; then
23595 BUILD_LUA_FALSE='#'
23601 if test x$want_lua = xyes; then
23604 { echo "$as_me:$LINENO: checking for LUA" >&5
23605 echo $ECHO_N "checking for LUA... $ECHO_C" >&6; }
23607 if test -n "$PKG_CONFIG"; then
23608 if test -n "$LUA_CFLAGS"; then
23609 pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
23611 if test -n "$PKG_CONFIG" && \
23612 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\"") >&5
23613 ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
23615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23616 (exit $ac_status); }; then
23617 pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
23625 if test -n "$PKG_CONFIG"; then
23626 if test -n "$LUA_LIBS"; then
23627 pkg_cv_LUA_LIBS="$LUA_LIBS"
23629 if test -n "$PKG_CONFIG" && \
23630 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\"") >&5
23631 ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
23633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23634 (exit $ac_status); }; then
23635 pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
23646 if test $pkg_failed = yes; then
23648 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23649 _pkg_short_errors_supported=yes
23651 _pkg_short_errors_supported=no
23653 if test $_pkg_short_errors_supported = yes; then
23654 LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua >= 5.1"`
23656 LUA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua >= 5.1"`
23658 # Put the nasty error message in config.log where it belongs
23659 echo "$LUA_PKG_ERRORS" >&5
23661 { echo "$as_me:$LINENO: result: no" >&5
23662 echo "${ECHO_T}no" >&6; }
23666 { echo "$as_me:$LINENO: checking for LUA51" >&5
23667 echo $ECHO_N "checking for LUA51... $ECHO_C" >&6; }
23669 if test -n "$PKG_CONFIG"; then
23670 if test -n "$LUA51_CFLAGS"; then
23671 pkg_cv_LUA51_CFLAGS="$LUA51_CFLAGS"
23673 if test -n "$PKG_CONFIG" && \
23674 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\"") >&5
23675 ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
23677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23678 (exit $ac_status); }; then
23679 pkg_cv_LUA51_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1 >= 5.1" 2>/dev/null`
23687 if test -n "$PKG_CONFIG"; then
23688 if test -n "$LUA51_LIBS"; then
23689 pkg_cv_LUA51_LIBS="$LUA51_LIBS"
23691 if test -n "$PKG_CONFIG" && \
23692 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\"") >&5
23693 ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
23695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23696 (exit $ac_status); }; then
23697 pkg_cv_LUA51_LIBS=`$PKG_CONFIG --libs "lua-5.1 >= 5.1" 2>/dev/null`
23708 if test $pkg_failed = yes; then
23710 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23711 _pkg_short_errors_supported=yes
23713 _pkg_short_errors_supported=no
23715 if test $_pkg_short_errors_supported = yes; then
23716 LUA51_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua-5.1 >= 5.1"`
23718 LUA51_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua-5.1 >= 5.1"`
23720 # Put the nasty error message in config.log where it belongs
23721 echo "$LUA51_PKG_ERRORS" >&5
23723 { echo "$as_me:$LINENO: result: no" >&5
23724 echo "${ECHO_T}no" >&6; }
23728 { echo "$as_me:$LINENO: checking for LUA51" >&5
23729 echo $ECHO_N "checking for LUA51... $ECHO_C" >&6; }
23731 if test -n "$PKG_CONFIG"; then
23732 if test -n "$LUA51_CFLAGS"; then
23733 pkg_cv_LUA51_CFLAGS="$LUA51_CFLAGS"
23735 if test -n "$PKG_CONFIG" && \
23736 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\"") >&5
23737 ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
23739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23740 (exit $ac_status); }; then
23741 pkg_cv_LUA51_CFLAGS=`$PKG_CONFIG --cflags "lua5.1 >= 5.1" 2>/dev/null`
23749 if test -n "$PKG_CONFIG"; then
23750 if test -n "$LUA51_LIBS"; then
23751 pkg_cv_LUA51_LIBS="$LUA51_LIBS"
23753 if test -n "$PKG_CONFIG" && \
23754 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\"") >&5
23755 ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
23757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23758 (exit $ac_status); }; then
23759 pkg_cv_LUA51_LIBS=`$PKG_CONFIG --libs "lua5.1 >= 5.1" 2>/dev/null`
23770 if test $pkg_failed = yes; then
23772 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23773 _pkg_short_errors_supported=yes
23775 _pkg_short_errors_supported=no
23777 if test $_pkg_short_errors_supported = yes; then
23778 LUA51_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua5.1 >= 5.1"`
23780 LUA51_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua5.1 >= 5.1"`
23782 # Put the nasty error message in config.log where it belongs
23783 echo "$LUA51_PKG_ERRORS" >&5
23785 { { echo "$as_me:$LINENO: error: Package requirements (lua5.1 >= 5.1) were not met:
23789 Consider adjusting the PKG_CONFIG_PATH environment variable if you
23790 installed software in a non-standard prefix.
23792 Alternatively, you may set the environment variables LUA51_CFLAGS
23793 and LUA51_LIBS to avoid the need to call pkg-config.
23794 See the pkg-config man page for more details.
23796 echo "$as_me: error: Package requirements (lua5.1 >= 5.1) were not met:
23800 Consider adjusting the PKG_CONFIG_PATH environment variable if you
23801 installed software in a non-standard prefix.
23803 Alternatively, you may set the environment variables LUA51_CFLAGS
23804 and LUA51_LIBS to avoid the need to call pkg-config.
23805 See the pkg-config man page for more details.
23807 { (exit 1); exit 1; }; }
23808 elif test $pkg_failed = untried; then
23809 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
23810 is in your PATH or set the PKG_CONFIG environment variable to the full
23811 path to pkg-config.
23813 Alternatively, you may set the environment variables LUA51_CFLAGS
23814 and LUA51_LIBS to avoid the need to call pkg-config.
23815 See the pkg-config man page for more details.
23817 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
23818 See \`config.log' for more details." >&5
23819 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
23820 is in your PATH or set the PKG_CONFIG environment variable to the full
23821 path to pkg-config.
23823 Alternatively, you may set the environment variables LUA51_CFLAGS
23824 and LUA51_LIBS to avoid the need to call pkg-config.
23825 See the pkg-config man page for more details.
23827 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
23828 See \`config.log' for more details." >&2;}
23829 { (exit 1); exit 1; }; }
23831 LUA51_CFLAGS=$pkg_cv_LUA51_CFLAGS
23832 LUA51_LIBS=$pkg_cv_LUA51_LIBS
23833 { echo "$as_me:$LINENO: result: yes" >&5
23834 echo "${ECHO_T}yes" >&6; }
23838 elif test $pkg_failed = untried; then
23842 { echo "$as_me:$LINENO: checking for LUA51" >&5
23843 echo $ECHO_N "checking for LUA51... $ECHO_C" >&6; }
23845 if test -n "$PKG_CONFIG"; then
23846 if test -n "$LUA51_CFLAGS"; then
23847 pkg_cv_LUA51_CFLAGS="$LUA51_CFLAGS"
23849 if test -n "$PKG_CONFIG" && \
23850 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\"") >&5
23851 ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
23853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23854 (exit $ac_status); }; then
23855 pkg_cv_LUA51_CFLAGS=`$PKG_CONFIG --cflags "lua5.1 >= 5.1" 2>/dev/null`
23863 if test -n "$PKG_CONFIG"; then
23864 if test -n "$LUA51_LIBS"; then
23865 pkg_cv_LUA51_LIBS="$LUA51_LIBS"
23867 if test -n "$PKG_CONFIG" && \
23868 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\"") >&5
23869 ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
23871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23872 (exit $ac_status); }; then
23873 pkg_cv_LUA51_LIBS=`$PKG_CONFIG --libs "lua5.1 >= 5.1" 2>/dev/null`
23884 if test $pkg_failed = yes; then
23886 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23887 _pkg_short_errors_supported=yes
23889 _pkg_short_errors_supported=no
23891 if test $_pkg_short_errors_supported = yes; then
23892 LUA51_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua5.1 >= 5.1"`
23894 LUA51_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua5.1 >= 5.1"`
23896 # Put the nasty error message in config.log where it belongs
23897 echo "$LUA51_PKG_ERRORS" >&5
23899 { { echo "$as_me:$LINENO: error: Package requirements (lua5.1 >= 5.1) were not met:
23903 Consider adjusting the PKG_CONFIG_PATH environment variable if you
23904 installed software in a non-standard prefix.
23906 Alternatively, you may set the environment variables LUA51_CFLAGS
23907 and LUA51_LIBS to avoid the need to call pkg-config.
23908 See the pkg-config man page for more details.
23910 echo "$as_me: error: Package requirements (lua5.1 >= 5.1) were not met:
23914 Consider adjusting the PKG_CONFIG_PATH environment variable if you
23915 installed software in a non-standard prefix.
23917 Alternatively, you may set the environment variables LUA51_CFLAGS
23918 and LUA51_LIBS to avoid the need to call pkg-config.
23919 See the pkg-config man page for more details.
23921 { (exit 1); exit 1; }; }
23922 elif test $pkg_failed = untried; then
23923 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
23924 is in your PATH or set the PKG_CONFIG environment variable to the full
23925 path to pkg-config.
23927 Alternatively, you may set the environment variables LUA51_CFLAGS
23928 and LUA51_LIBS to avoid the need to call pkg-config.
23929 See the pkg-config man page for more details.
23931 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
23932 See \`config.log' for more details." >&5
23933 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
23934 is in your PATH or set the PKG_CONFIG environment variable to the full
23935 path to pkg-config.
23937 Alternatively, you may set the environment variables LUA51_CFLAGS
23938 and LUA51_LIBS to avoid the need to call pkg-config.
23939 See the pkg-config man page for more details.
23941 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
23942 See \`config.log' for more details." >&2;}
23943 { (exit 1); exit 1; }; }
23945 LUA51_CFLAGS=$pkg_cv_LUA51_CFLAGS
23946 LUA51_LIBS=$pkg_cv_LUA51_LIBS
23947 { echo "$as_me:$LINENO: result: yes" >&5
23948 echo "${ECHO_T}yes" >&6; }
23953 LUA51_CFLAGS=$pkg_cv_LUA51_CFLAGS
23954 LUA51_LIBS=$pkg_cv_LUA51_LIBS
23955 { echo "$as_me:$LINENO: result: yes" >&5
23956 echo "${ECHO_T}yes" >&6; }
23960 elif test $pkg_failed = untried; then
23964 { echo "$as_me:$LINENO: checking for LUA51" >&5
23965 echo $ECHO_N "checking for LUA51... $ECHO_C" >&6; }
23967 if test -n "$PKG_CONFIG"; then
23968 if test -n "$LUA51_CFLAGS"; then
23969 pkg_cv_LUA51_CFLAGS="$LUA51_CFLAGS"
23971 if test -n "$PKG_CONFIG" && \
23972 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\"") >&5
23973 ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
23975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23976 (exit $ac_status); }; then
23977 pkg_cv_LUA51_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1 >= 5.1" 2>/dev/null`
23985 if test -n "$PKG_CONFIG"; then
23986 if test -n "$LUA51_LIBS"; then
23987 pkg_cv_LUA51_LIBS="$LUA51_LIBS"
23989 if test -n "$PKG_CONFIG" && \
23990 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\"") >&5
23991 ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
23993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23994 (exit $ac_status); }; then
23995 pkg_cv_LUA51_LIBS=`$PKG_CONFIG --libs "lua-5.1 >= 5.1" 2>/dev/null`
24006 if test $pkg_failed = yes; then
24008 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24009 _pkg_short_errors_supported=yes
24011 _pkg_short_errors_supported=no
24013 if test $_pkg_short_errors_supported = yes; then
24014 LUA51_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua-5.1 >= 5.1"`
24016 LUA51_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua-5.1 >= 5.1"`
24018 # Put the nasty error message in config.log where it belongs
24019 echo "$LUA51_PKG_ERRORS" >&5
24021 { echo "$as_me:$LINENO: result: no" >&5
24022 echo "${ECHO_T}no" >&6; }
24026 { echo "$as_me:$LINENO: checking for LUA51" >&5
24027 echo $ECHO_N "checking for LUA51... $ECHO_C" >&6; }
24029 if test -n "$PKG_CONFIG"; then
24030 if test -n "$LUA51_CFLAGS"; then
24031 pkg_cv_LUA51_CFLAGS="$LUA51_CFLAGS"
24033 if test -n "$PKG_CONFIG" && \
24034 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\"") >&5
24035 ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
24037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24038 (exit $ac_status); }; then
24039 pkg_cv_LUA51_CFLAGS=`$PKG_CONFIG --cflags "lua5.1 >= 5.1" 2>/dev/null`
24047 if test -n "$PKG_CONFIG"; then
24048 if test -n "$LUA51_LIBS"; then
24049 pkg_cv_LUA51_LIBS="$LUA51_LIBS"
24051 if test -n "$PKG_CONFIG" && \
24052 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\"") >&5
24053 ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
24055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24056 (exit $ac_status); }; then
24057 pkg_cv_LUA51_LIBS=`$PKG_CONFIG --libs "lua5.1 >= 5.1" 2>/dev/null`
24068 if test $pkg_failed = yes; then
24070 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24071 _pkg_short_errors_supported=yes
24073 _pkg_short_errors_supported=no
24075 if test $_pkg_short_errors_supported = yes; then
24076 LUA51_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua5.1 >= 5.1"`
24078 LUA51_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua5.1 >= 5.1"`
24080 # Put the nasty error message in config.log where it belongs
24081 echo "$LUA51_PKG_ERRORS" >&5
24083 { { echo "$as_me:$LINENO: error: Package requirements (lua5.1 >= 5.1) were not met:
24087 Consider adjusting the PKG_CONFIG_PATH environment variable if you
24088 installed software in a non-standard prefix.
24090 Alternatively, you may set the environment variables LUA51_CFLAGS
24091 and LUA51_LIBS to avoid the need to call pkg-config.
24092 See the pkg-config man page for more details.
24094 echo "$as_me: error: Package requirements (lua5.1 >= 5.1) were not met:
24098 Consider adjusting the PKG_CONFIG_PATH environment variable if you
24099 installed software in a non-standard prefix.
24101 Alternatively, you may set the environment variables LUA51_CFLAGS
24102 and LUA51_LIBS to avoid the need to call pkg-config.
24103 See the pkg-config man page for more details.
24105 { (exit 1); exit 1; }; }
24106 elif test $pkg_failed = untried; then
24107 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
24108 is in your PATH or set the PKG_CONFIG environment variable to the full
24109 path to pkg-config.
24111 Alternatively, you may set the environment variables LUA51_CFLAGS
24112 and LUA51_LIBS to avoid the need to call pkg-config.
24113 See the pkg-config man page for more details.
24115 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
24116 See \`config.log' for more details." >&5
24117 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
24118 is in your PATH or set the PKG_CONFIG environment variable to the full
24119 path to pkg-config.
24121 Alternatively, you may set the environment variables LUA51_CFLAGS
24122 and LUA51_LIBS to avoid the need to call pkg-config.
24123 See the pkg-config man page for more details.
24125 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
24126 See \`config.log' for more details." >&2;}
24127 { (exit 1); exit 1; }; }
24129 LUA51_CFLAGS=$pkg_cv_LUA51_CFLAGS
24130 LUA51_LIBS=$pkg_cv_LUA51_LIBS
24131 { echo "$as_me:$LINENO: result: yes" >&5
24132 echo "${ECHO_T}yes" >&6; }
24136 elif test $pkg_failed = untried; then
24140 { echo "$as_me:$LINENO: checking for LUA51" >&5
24141 echo $ECHO_N "checking for LUA51... $ECHO_C" >&6; }
24143 if test -n "$PKG_CONFIG"; then
24144 if test -n "$LUA51_CFLAGS"; then
24145 pkg_cv_LUA51_CFLAGS="$LUA51_CFLAGS"
24147 if test -n "$PKG_CONFIG" && \
24148 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\"") >&5
24149 ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
24151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24152 (exit $ac_status); }; then
24153 pkg_cv_LUA51_CFLAGS=`$PKG_CONFIG --cflags "lua5.1 >= 5.1" 2>/dev/null`
24161 if test -n "$PKG_CONFIG"; then
24162 if test -n "$LUA51_LIBS"; then
24163 pkg_cv_LUA51_LIBS="$LUA51_LIBS"
24165 if test -n "$PKG_CONFIG" && \
24166 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\"") >&5
24167 ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
24169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24170 (exit $ac_status); }; then
24171 pkg_cv_LUA51_LIBS=`$PKG_CONFIG --libs "lua5.1 >= 5.1" 2>/dev/null`
24182 if test $pkg_failed = yes; then
24184 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24185 _pkg_short_errors_supported=yes
24187 _pkg_short_errors_supported=no
24189 if test $_pkg_short_errors_supported = yes; then
24190 LUA51_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lua5.1 >= 5.1"`
24192 LUA51_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lua5.1 >= 5.1"`
24194 # Put the nasty error message in config.log where it belongs
24195 echo "$LUA51_PKG_ERRORS" >&5
24197 { { echo "$as_me:$LINENO: error: Package requirements (lua5.1 >= 5.1) were not met:
24201 Consider adjusting the PKG_CONFIG_PATH environment variable if you
24202 installed software in a non-standard prefix.
24204 Alternatively, you may set the environment variables LUA51_CFLAGS
24205 and LUA51_LIBS to avoid the need to call pkg-config.
24206 See the pkg-config man page for more details.
24208 echo "$as_me: error: Package requirements (lua5.1 >= 5.1) were not met:
24212 Consider adjusting the PKG_CONFIG_PATH environment variable if you
24213 installed software in a non-standard prefix.
24215 Alternatively, you may set the environment variables LUA51_CFLAGS
24216 and LUA51_LIBS to avoid the need to call pkg-config.
24217 See the pkg-config man page for more details.
24219 { (exit 1); exit 1; }; }
24220 elif test $pkg_failed = untried; then
24221 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
24222 is in your PATH or set the PKG_CONFIG environment variable to the full
24223 path to pkg-config.
24225 Alternatively, you may set the environment variables LUA51_CFLAGS
24226 and LUA51_LIBS to avoid the need to call pkg-config.
24227 See the pkg-config man page for more details.
24229 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
24230 See \`config.log' for more details." >&5
24231 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
24232 is in your PATH or set the PKG_CONFIG environment variable to the full
24233 path to pkg-config.
24235 Alternatively, you may set the environment variables LUA51_CFLAGS
24236 and LUA51_LIBS to avoid the need to call pkg-config.
24237 See the pkg-config man page for more details.
24239 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
24240 See \`config.log' for more details." >&2;}
24241 { (exit 1); exit 1; }; }
24243 LUA51_CFLAGS=$pkg_cv_LUA51_CFLAGS
24244 LUA51_LIBS=$pkg_cv_LUA51_LIBS
24245 { echo "$as_me:$LINENO: result: yes" >&5
24246 echo "${ECHO_T}yes" >&6; }
24251 LUA51_CFLAGS=$pkg_cv_LUA51_CFLAGS
24252 LUA51_LIBS=$pkg_cv_LUA51_LIBS
24253 { echo "$as_me:$LINENO: result: yes" >&5
24254 echo "${ECHO_T}yes" >&6; }
24259 LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
24260 LUA_LIBS=$pkg_cv_LUA_LIBS
24261 { echo "$as_me:$LINENO: result: yes" >&5
24262 echo "${ECHO_T}yes" >&6; }
24265 conky_CFLAGS="$conky_CFLAGS $LUA_CFLAGS $LUA51_CFLAGS"
24266 conky_LIBS="$conky_LIBS $LUA_LIBS $LUA51_LIBS"
24268 if test x$need_tolua = xyes; then
24270 cat >>confdefs.h <<\_ACEOF
24271 #define LUA_EXTRAS 1
24274 if test "x$want_x11" != "xyes"; then
24277 if test x$want_lua_cairo = xyes; then
24280 { echo "$as_me:$LINENO: checking for cairo" >&5
24281 echo $ECHO_N "checking for cairo... $ECHO_C" >&6; }
24283 if test -n "$PKG_CONFIG"; then
24284 if test -n "$cairo_CFLAGS"; then
24285 pkg_cv_cairo_CFLAGS="$cairo_CFLAGS"
24287 if test -n "$PKG_CONFIG" && \
24288 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
24289 ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
24291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24292 (exit $ac_status); }; then
24293 pkg_cv_cairo_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
24301 if test -n "$PKG_CONFIG"; then
24302 if test -n "$cairo_LIBS"; then
24303 pkg_cv_cairo_LIBS="$cairo_LIBS"
24305 if test -n "$PKG_CONFIG" && \
24306 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
24307 ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
24309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24310 (exit $ac_status); }; then
24311 pkg_cv_cairo_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
24322 if test $pkg_failed = yes; then
24324 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24325 _pkg_short_errors_supported=yes
24327 _pkg_short_errors_supported=no
24329 if test $_pkg_short_errors_supported = yes; then
24330 cairo_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo"`
24332 cairo_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
24334 # Put the nasty error message in config.log where it belongs
24335 echo "$cairo_PKG_ERRORS" >&5
24337 { { echo "$as_me:$LINENO: error: Package requirements (cairo) were not met:
24341 Consider adjusting the PKG_CONFIG_PATH environment variable if you
24342 installed software in a non-standard prefix.
24344 Alternatively, you may set the environment variables cairo_CFLAGS
24345 and cairo_LIBS to avoid the need to call pkg-config.
24346 See the pkg-config man page for more details.
24348 echo "$as_me: error: Package requirements (cairo) were not met:
24352 Consider adjusting the PKG_CONFIG_PATH environment variable if you
24353 installed software in a non-standard prefix.
24355 Alternatively, you may set the environment variables cairo_CFLAGS
24356 and cairo_LIBS to avoid the need to call pkg-config.
24357 See the pkg-config man page for more details.
24359 { (exit 1); exit 1; }; }
24360 elif test $pkg_failed = untried; then
24361 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
24362 is in your PATH or set the PKG_CONFIG environment variable to the full
24363 path to pkg-config.
24365 Alternatively, you may set the environment variables cairo_CFLAGS
24366 and cairo_LIBS to avoid the need to call pkg-config.
24367 See the pkg-config man page for more details.
24369 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
24370 See \`config.log' for more details." >&5
24371 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
24372 is in your PATH or set the PKG_CONFIG environment variable to the full
24373 path to pkg-config.
24375 Alternatively, you may set the environment variables cairo_CFLAGS
24376 and cairo_LIBS to avoid the need to call pkg-config.
24377 See the pkg-config man page for more details.
24379 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
24380 See \`config.log' for more details." >&2;}
24381 { (exit 1); exit 1; }; }
24383 cairo_CFLAGS=$pkg_cv_cairo_CFLAGS
24384 cairo_LIBS=$pkg_cv_cairo_LIBS
24385 { echo "$as_me:$LINENO: result: yes" >&5
24386 echo "${ECHO_T}yes" >&6; }
24391 { echo "$as_me:$LINENO: checking for cairo_xlib" >&5
24392 echo $ECHO_N "checking for cairo_xlib... $ECHO_C" >&6; }
24394 if test -n "$PKG_CONFIG"; then
24395 if test -n "$cairo_xlib_CFLAGS"; then
24396 pkg_cv_cairo_xlib_CFLAGS="$cairo_xlib_CFLAGS"
24398 if test -n "$PKG_CONFIG" && \
24399 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo-xlib\"") >&5
24400 ($PKG_CONFIG --exists --print-errors "cairo-xlib") 2>&5
24402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24403 (exit $ac_status); }; then
24404 pkg_cv_cairo_xlib_CFLAGS=`$PKG_CONFIG --cflags "cairo-xlib" 2>/dev/null`
24412 if test -n "$PKG_CONFIG"; then
24413 if test -n "$cairo_xlib_LIBS"; then
24414 pkg_cv_cairo_xlib_LIBS="$cairo_xlib_LIBS"
24416 if test -n "$PKG_CONFIG" && \
24417 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo-xlib\"") >&5
24418 ($PKG_CONFIG --exists --print-errors "cairo-xlib") 2>&5
24420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24421 (exit $ac_status); }; then
24422 pkg_cv_cairo_xlib_LIBS=`$PKG_CONFIG --libs "cairo-xlib" 2>/dev/null`
24433 if test $pkg_failed = yes; then
24435 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24436 _pkg_short_errors_supported=yes
24438 _pkg_short_errors_supported=no
24440 if test $_pkg_short_errors_supported = yes; then
24441 cairo_xlib_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo-xlib"`
24443 cairo_xlib_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo-xlib"`
24445 # Put the nasty error message in config.log where it belongs
24446 echo "$cairo_xlib_PKG_ERRORS" >&5
24448 { { echo "$as_me:$LINENO: error: Package requirements (cairo-xlib) were not met:
24450 $cairo_xlib_PKG_ERRORS
24452 Consider adjusting the PKG_CONFIG_PATH environment variable if you
24453 installed software in a non-standard prefix.
24455 Alternatively, you may set the environment variables cairo_xlib_CFLAGS
24456 and cairo_xlib_LIBS to avoid the need to call pkg-config.
24457 See the pkg-config man page for more details.
24459 echo "$as_me: error: Package requirements (cairo-xlib) were not met:
24461 $cairo_xlib_PKG_ERRORS
24463 Consider adjusting the PKG_CONFIG_PATH environment variable if you
24464 installed software in a non-standard prefix.
24466 Alternatively, you may set the environment variables cairo_xlib_CFLAGS
24467 and cairo_xlib_LIBS to avoid the need to call pkg-config.
24468 See the pkg-config man page for more details.
24470 { (exit 1); exit 1; }; }
24471 elif test $pkg_failed = untried; then
24472 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
24473 is in your PATH or set the PKG_CONFIG environment variable to the full
24474 path to pkg-config.
24476 Alternatively, you may set the environment variables cairo_xlib_CFLAGS
24477 and cairo_xlib_LIBS to avoid the need to call pkg-config.
24478 See the pkg-config man page for more details.
24480 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
24481 See \`config.log' for more details." >&5
24482 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
24483 is in your PATH or set the PKG_CONFIG environment variable to the full
24484 path to pkg-config.
24486 Alternatively, you may set the environment variables cairo_xlib_CFLAGS
24487 and cairo_xlib_LIBS to avoid the need to call pkg-config.
24488 See the pkg-config man page for more details.
24490 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
24491 See \`config.log' for more details." >&2;}
24492 { (exit 1); exit 1; }; }
24494 cairo_xlib_CFLAGS=$pkg_cv_cairo_xlib_CFLAGS
24495 cairo_xlib_LIBS=$pkg_cv_cairo_xlib_LIBS
24496 { echo "$as_me:$LINENO: result: yes" >&5
24497 echo "${ECHO_T}yes" >&6; }
24501 cat >>confdefs.h <<\_ACEOF
24502 #define HAVE_LUA_CAIRO 1
24505 libcairo_CFLAGS="$libcairo_CFLAGS $cairo_CFLAGS $cairo_xlib_CFLAGS"
24506 libcairo_LIBS="$libcairo_LIBS $cairo_LIBS $cairo_xlib_LIBS"
24508 if test x$want_imlib2 = xyes; then
24510 cat >>confdefs.h <<\_ACEOF
24511 #define HAVE_LUA_IMLIB2 1
24516 for ac_prog in tolua++ tolua++5.1 tolua++-5.1
24518 # Extract the first word of "$ac_prog", so it can be a program name with args.
24519 set dummy $ac_prog; ac_word=$2
24520 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24522 if test "${ac_cv_prog_toluapp+set}" = set; then
24523 echo $ECHO_N "(cached) $ECHO_C" >&6
24525 if test -n "$toluapp"; then
24526 ac_cv_prog_toluapp="$toluapp" # Let the user override the test.
24528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24529 for as_dir in $PATH
24532 test -z "$as_dir" && as_dir=.
24533 for ac_exec_ext in '' $ac_executable_extensions; do
24534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24535 ac_cv_prog_toluapp="$ac_prog"
24536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24545 toluapp=$ac_cv_prog_toluapp
24546 if test -n "$toluapp"; then
24547 { echo "$as_me:$LINENO: result: $toluapp" >&5
24548 echo "${ECHO_T}$toluapp" >&6; }
24550 { echo "$as_me:$LINENO: result: no" >&5
24551 echo "${ECHO_T}no" >&6; }
24555 test -n "$toluapp" && break
24557 test -n "$toluapp" || toluapp="no"
24559 if test x$toluapp = xno; then
24560 { { echo "$as_me:$LINENO: error: tolua++, tolua++5.1, or tolua++-5.1 is required for Lua extras." >&5
24561 echo "$as_me: error: tolua++, tolua++5.1, or tolua++-5.1 is required for Lua extras." >&2;}
24562 { (exit 1); exit 1; }; }
24564 { echo "$as_me:$LINENO: checking for library containing tolua_error" >&5
24565 echo $ECHO_N "checking for library containing tolua_error... $ECHO_C" >&6; }
24566 if test "${ac_cv_search_tolua_error+set}" = set; then
24567 echo $ECHO_N "(cached) $ECHO_C" >&6
24569 ac_func_search_save_LIBS=$LIBS
24570 cat >conftest.$ac_ext <<_ACEOF
24573 cat confdefs.h >>conftest.$ac_ext
24574 cat >>conftest.$ac_ext <<_ACEOF
24575 /* end confdefs.h. */
24577 /* Override any GCC internal prototype to avoid an error.
24578 Use char because int might match the return type of a GCC
24579 builtin and then its argument prototype would still apply. */
24583 char tolua_error ();
24587 return tolua_error ();
24592 for ac_lib in '' tolua++-5.1 tolua++ tolua++5.1; do
24593 if test -z "$ac_lib"; then
24594 ac_res="none required"
24597 LIBS="-l$ac_lib $LUA_LIBS $LUA51_LIBS $ac_func_search_save_LIBS"
24599 rm -f conftest.$ac_objext conftest$ac_exeext
24600 if { (ac_try="$ac_link"
24601 case "(($ac_try" in
24602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24603 *) ac_try_echo=$ac_try;;
24605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24606 (eval "$ac_link") 2>conftest.er1
24608 grep -v '^ *+' conftest.er1 >conftest.err
24610 cat conftest.err >&5
24611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24612 (exit $ac_status); } && {
24613 test -z "$ac_c_werror_flag" ||
24614 test ! -s conftest.err
24615 } && test -s conftest$ac_exeext &&
24616 $as_test_x conftest$ac_exeext; then
24617 ac_cv_search_tolua_error=$ac_res
24619 echo "$as_me: failed program was:" >&5
24620 sed 's/^/| /' conftest.$ac_ext >&5
24625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24627 if test "${ac_cv_search_tolua_error+set}" = set; then
24631 if test "${ac_cv_search_tolua_error+set}" = set; then
24634 ac_cv_search_tolua_error=no
24636 rm conftest.$ac_ext
24637 LIBS=$ac_func_search_save_LIBS
24639 { echo "$as_me:$LINENO: result: $ac_cv_search_tolua_error" >&5
24640 echo "${ECHO_T}$ac_cv_search_tolua_error" >&6; }
24641 ac_res=$ac_cv_search_tolua_error
24642 if test "$ac_res" != no; then
24643 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24645 tolua_LIBS="${LIBS}"
24647 tolua_CFLAGS="${CFLAGS}"
24651 { { echo "$as_me:$LINENO: error: tolua_error not found" >&5
24652 echo "$as_me: error: tolua_error not found" >&2;}
24653 { (exit 1); exit 1; }; }
24657 conky_LIBS="$conky_LIBS $tolua_LIBS"
24658 tolua_CFLAGS="$tolua_CFLAGS $LUA_CFLAGS $LUA51_CFLAGS"
24659 tolua_LIBS="$tolua_LIBS $LUA_LIBS $LUA51_LIBS"
24662 cat >>confdefs.h <<\_ACEOF
24669 if test x$want_lua_cairo = xyes; then
24670 BUILD_LUA_CAIRO_TRUE=
24671 BUILD_LUA_CAIRO_FALSE='#'
24673 BUILD_LUA_CAIRO_TRUE='#'
24674 BUILD_LUA_CAIRO_FALSE=
24679 if test x$want_lua_imlib2 = xyes; then
24680 BUILD_LUA_IMLIB2_TRUE=
24681 BUILD_LUA_IMLIB2_FALSE='#'
24683 BUILD_LUA_IMLIB2_TRUE='#'
24684 BUILD_LUA_IMLIB2_FALSE=
24689 # Check whether --enable-wlan was given.
24690 if test "${enable_wlan+set}" = set; then
24691 enableval=$enable_wlan; want_wlan="$enableval"
24699 if test x$want_wlan = xyes; then
24701 BUILD_WLAN_FALSE='#'
24703 BUILD_WLAN_TRUE='#'
24707 if test x$want_wlan = xyes; then
24709 for ac_header in iwlib.h
24711 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24712 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24713 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24715 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24716 echo $ECHO_N "(cached) $ECHO_C" >&6
24718 ac_res=`eval echo '${'$as_ac_Header'}'`
24719 { echo "$as_me:$LINENO: result: $ac_res" >&5
24720 echo "${ECHO_T}$ac_res" >&6; }
24722 # Is the header compilable?
24723 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24724 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24725 cat >conftest.$ac_ext <<_ACEOF
24728 cat confdefs.h >>conftest.$ac_ext
24729 cat >>conftest.$ac_ext <<_ACEOF
24730 /* end confdefs.h. */
24731 $ac_includes_default
24732 #include <$ac_header>
24734 rm -f conftest.$ac_objext
24735 if { (ac_try="$ac_compile"
24736 case "(($ac_try" in
24737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24738 *) ac_try_echo=$ac_try;;
24740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24741 (eval "$ac_compile") 2>conftest.er1
24743 grep -v '^ *+' conftest.er1 >conftest.err
24745 cat conftest.err >&5
24746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24747 (exit $ac_status); } && {
24748 test -z "$ac_c_werror_flag" ||
24749 test ! -s conftest.err
24750 } && test -s conftest.$ac_objext; then
24751 ac_header_compiler=yes
24753 echo "$as_me: failed program was:" >&5
24754 sed 's/^/| /' conftest.$ac_ext >&5
24756 ac_header_compiler=no
24759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24760 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24761 echo "${ECHO_T}$ac_header_compiler" >&6; }
24763 # Is the header present?
24764 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24765 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24766 cat >conftest.$ac_ext <<_ACEOF
24769 cat confdefs.h >>conftest.$ac_ext
24770 cat >>conftest.$ac_ext <<_ACEOF
24771 /* end confdefs.h. */
24772 #include <$ac_header>
24774 if { (ac_try="$ac_cpp conftest.$ac_ext"
24775 case "(($ac_try" in
24776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24777 *) ac_try_echo=$ac_try;;
24779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24780 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24782 grep -v '^ *+' conftest.er1 >conftest.err
24784 cat conftest.err >&5
24785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24786 (exit $ac_status); } >/dev/null && {
24787 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24788 test ! -s conftest.err
24790 ac_header_preproc=yes
24792 echo "$as_me: failed program was:" >&5
24793 sed 's/^/| /' conftest.$ac_ext >&5
24795 ac_header_preproc=no
24798 rm -f conftest.err conftest.$ac_ext
24799 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24800 echo "${ECHO_T}$ac_header_preproc" >&6; }
24802 # So? What about this header?
24803 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24805 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24806 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24807 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24808 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24809 ac_header_preproc=yes
24812 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24813 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24814 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24815 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24816 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24817 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24818 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24819 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24820 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24821 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24822 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24823 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24825 ## --------------------------------------------- ##
24826 ## Report this to brenden1@users.sourceforge.net ##
24827 ## --------------------------------------------- ##
24829 ) | sed "s/^/$as_me: WARNING: /" >&2
24832 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24834 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24835 echo $ECHO_N "(cached) $ECHO_C" >&6
24837 eval "$as_ac_Header=\$ac_header_preproc"
24839 ac_res=`eval echo '${'$as_ac_Header'}'`
24840 { echo "$as_me:$LINENO: result: $ac_res" >&5
24841 echo "${ECHO_T}$ac_res" >&6; }
24844 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24845 cat >>confdefs.h <<_ACEOF
24846 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24850 { { echo "$as_me:$LINENO: error: iwlib.h header not found" >&5
24851 echo "$as_me: error: iwlib.h header not found" >&2;}
24852 { (exit 1); exit 1; }; }
24857 { echo "$as_me:$LINENO: checking for iw_sockets_open in -liw" >&5
24858 echo $ECHO_N "checking for iw_sockets_open in -liw... $ECHO_C" >&6; }
24859 if test "${ac_cv_lib_iw_iw_sockets_open+set}" = set; then
24860 echo $ECHO_N "(cached) $ECHO_C" >&6
24862 ac_check_lib_save_LIBS=$LIBS
24863 LIBS="-liw $conky_LIBS $LIBS"
24864 cat >conftest.$ac_ext <<_ACEOF
24867 cat confdefs.h >>conftest.$ac_ext
24868 cat >>conftest.$ac_ext <<_ACEOF
24869 /* end confdefs.h. */
24871 /* Override any GCC internal prototype to avoid an error.
24872 Use char because int might match the return type of a GCC
24873 builtin and then its argument prototype would still apply. */
24877 char iw_sockets_open ();
24881 return iw_sockets_open ();
24886 rm -f conftest.$ac_objext conftest$ac_exeext
24887 if { (ac_try="$ac_link"
24888 case "(($ac_try" in
24889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24890 *) ac_try_echo=$ac_try;;
24892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24893 (eval "$ac_link") 2>conftest.er1
24895 grep -v '^ *+' conftest.er1 >conftest.err
24897 cat conftest.err >&5
24898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24899 (exit $ac_status); } && {
24900 test -z "$ac_c_werror_flag" ||
24901 test ! -s conftest.err
24902 } && test -s conftest$ac_exeext &&
24903 $as_test_x conftest$ac_exeext; then
24904 ac_cv_lib_iw_iw_sockets_open=yes
24906 echo "$as_me: failed program was:" >&5
24907 sed 's/^/| /' conftest.$ac_ext >&5
24909 ac_cv_lib_iw_iw_sockets_open=no
24912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24913 conftest$ac_exeext conftest.$ac_ext
24914 LIBS=$ac_check_lib_save_LIBS
24916 { echo "$as_me:$LINENO: result: $ac_cv_lib_iw_iw_sockets_open" >&5
24917 echo "${ECHO_T}$ac_cv_lib_iw_iw_sockets_open" >&6; }
24918 if test $ac_cv_lib_iw_iw_sockets_open = yes; then
24919 conky_LIBS="-liw $conky_LIBS"
24921 { { echo "$as_me:$LINENO: error: iw_sockets_open not found" >&5
24922 echo "$as_me: error: iw_sockets_open not found" >&2;}
24923 { (exit 1); exit 1; }; }
24927 cat >>confdefs.h <<\_ACEOF
24928 #define HAVE_IWLIB 1
24934 # Check whether --enable-portmon was given.
24935 if test "${enable_portmon+set}" = set; then
24936 enableval=$enable_portmon; want_portmon="$enableval"
24942 if test x"$want_portmon" = xyes; then
24943 if test x"$uname" != xLinux; then
24944 { echo "$as_me:$LINENO: port monitors not supported on $uname... disabling" >&5
24945 echo "$as_me: port monitors not supported on $uname... disabling" >&6;}
24946 want_portmon="not supported on $uname"
24949 for ac_func in getnameinfo
24951 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24952 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24953 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24954 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24955 echo $ECHO_N "(cached) $ECHO_C" >&6
24957 cat >conftest.$ac_ext <<_ACEOF
24960 cat confdefs.h >>conftest.$ac_ext
24961 cat >>conftest.$ac_ext <<_ACEOF
24962 /* end confdefs.h. */
24963 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24964 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24965 #define $ac_func innocuous_$ac_func
24967 /* System header to define __stub macros and hopefully few prototypes,
24968 which can conflict with char $ac_func (); below.
24969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24970 <limits.h> exists even on freestanding compilers. */
24973 # include <limits.h>
24975 # include <assert.h>
24980 /* Override any GCC internal prototype to avoid an error.
24981 Use char because int might match the return type of a GCC
24982 builtin and then its argument prototype would still apply. */
24987 /* The GNU C library defines this for functions which it implements
24988 to always fail with ENOSYS. Some functions are actually named
24989 something starting with __ and the normal name is an alias. */
24990 #if defined __stub_$ac_func || defined __stub___$ac_func
24997 return $ac_func ();
25002 rm -f conftest.$ac_objext conftest$ac_exeext
25003 if { (ac_try="$ac_link"
25004 case "(($ac_try" in
25005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25006 *) ac_try_echo=$ac_try;;
25008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25009 (eval "$ac_link") 2>conftest.er1
25011 grep -v '^ *+' conftest.er1 >conftest.err
25013 cat conftest.err >&5
25014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25015 (exit $ac_status); } && {
25016 test -z "$ac_c_werror_flag" ||
25017 test ! -s conftest.err
25018 } && test -s conftest$ac_exeext &&
25019 $as_test_x conftest$ac_exeext; then
25020 eval "$as_ac_var=yes"
25022 echo "$as_me: failed program was:" >&5
25023 sed 's/^/| /' conftest.$ac_ext >&5
25025 eval "$as_ac_var=no"
25028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25029 conftest$ac_exeext conftest.$ac_ext
25031 ac_res=`eval echo '${'$as_ac_var'}'`
25032 { echo "$as_me:$LINENO: result: $ac_res" >&5
25033 echo "${ECHO_T}$ac_res" >&6; }
25034 if test `eval echo '${'$as_ac_var'}'` = yes; then
25035 cat >>confdefs.h <<_ACEOF
25036 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25040 { { echo "$as_me:$LINENO: error: getnameinfo function not found" >&5
25041 echo "$as_me: error: getnameinfo function not found" >&2;}
25042 { (exit 1); exit 1; }; }
25051 for ac_header in netdb.h netinet/in.h netinet/tcp.h sys/socket.h arpa/inet.h
25053 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25055 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25057 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25058 echo $ECHO_N "(cached) $ECHO_C" >&6
25060 ac_res=`eval echo '${'$as_ac_Header'}'`
25061 { echo "$as_me:$LINENO: result: $ac_res" >&5
25062 echo "${ECHO_T}$ac_res" >&6; }
25064 # Is the header compilable?
25065 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25066 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25067 cat >conftest.$ac_ext <<_ACEOF
25070 cat confdefs.h >>conftest.$ac_ext
25071 cat >>conftest.$ac_ext <<_ACEOF
25072 /* end confdefs.h. */
25073 $ac_includes_default
25074 #include <$ac_header>
25076 rm -f conftest.$ac_objext
25077 if { (ac_try="$ac_compile"
25078 case "(($ac_try" in
25079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25080 *) ac_try_echo=$ac_try;;
25082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25083 (eval "$ac_compile") 2>conftest.er1
25085 grep -v '^ *+' conftest.er1 >conftest.err
25087 cat conftest.err >&5
25088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25089 (exit $ac_status); } && {
25090 test -z "$ac_c_werror_flag" ||
25091 test ! -s conftest.err
25092 } && test -s conftest.$ac_objext; then
25093 ac_header_compiler=yes
25095 echo "$as_me: failed program was:" >&5
25096 sed 's/^/| /' conftest.$ac_ext >&5
25098 ac_header_compiler=no
25101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25102 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25103 echo "${ECHO_T}$ac_header_compiler" >&6; }
25105 # Is the header present?
25106 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25107 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25108 cat >conftest.$ac_ext <<_ACEOF
25111 cat confdefs.h >>conftest.$ac_ext
25112 cat >>conftest.$ac_ext <<_ACEOF
25113 /* end confdefs.h. */
25114 #include <$ac_header>
25116 if { (ac_try="$ac_cpp conftest.$ac_ext"
25117 case "(($ac_try" in
25118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25119 *) ac_try_echo=$ac_try;;
25121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25122 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25124 grep -v '^ *+' conftest.er1 >conftest.err
25126 cat conftest.err >&5
25127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25128 (exit $ac_status); } >/dev/null && {
25129 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25130 test ! -s conftest.err
25132 ac_header_preproc=yes
25134 echo "$as_me: failed program was:" >&5
25135 sed 's/^/| /' conftest.$ac_ext >&5
25137 ac_header_preproc=no
25140 rm -f conftest.err conftest.$ac_ext
25141 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25142 echo "${ECHO_T}$ac_header_preproc" >&6; }
25144 # So? What about this header?
25145 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25147 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25148 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25149 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25150 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25151 ac_header_preproc=yes
25154 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25155 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25156 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25157 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25158 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25159 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25160 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25161 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25162 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25163 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25164 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25165 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25167 ## --------------------------------------------- ##
25168 ## Report this to brenden1@users.sourceforge.net ##
25169 ## --------------------------------------------- ##
25171 ) | sed "s/^/$as_me: WARNING: /" >&2
25174 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25175 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25176 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25177 echo $ECHO_N "(cached) $ECHO_C" >&6
25179 eval "$as_ac_Header=\$ac_header_preproc"
25181 ac_res=`eval echo '${'$as_ac_Header'}'`
25182 { echo "$as_me:$LINENO: result: $ac_res" >&5
25183 echo "${ECHO_T}$ac_res" >&6; }
25186 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25187 cat >>confdefs.h <<_ACEOF
25188 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25192 PORT_MONITORS_MISSING=yes
25197 if test x"$PORT_MONITORS_MISSING" = xyes; then
25198 { { echo "$as_me:$LINENO: error: missing a needed network header for port monitoring" >&5
25199 echo "$as_me: error: missing a needed network header for port monitoring" >&2;}
25200 { (exit 1); exit 1; }; }
25204 cat >>confdefs.h <<\_ACEOF
25205 #define TCP_PORT_MONITOR 1
25212 if test x"$want_portmon" = xyes; then
25213 BUILD_PORT_MONITORS_TRUE=
25214 BUILD_PORT_MONITORS_FALSE='#'
25216 BUILD_PORT_MONITORS_TRUE='#'
25217 BUILD_PORT_MONITORS_FALSE=
25225 if test "X$prefix" = "XNONE"; then
25226 acl_final_prefix="$ac_default_prefix"
25228 acl_final_prefix="$prefix"
25230 if test "X$exec_prefix" = "XNONE"; then
25231 acl_final_exec_prefix='${prefix}'
25233 acl_final_exec_prefix="$exec_prefix"
25235 acl_save_prefix="$prefix"
25236 prefix="$acl_final_prefix"
25237 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
25238 prefix="$acl_save_prefix"
25241 # Check whether --with-gnu-ld was given.
25242 if test "${with_gnu_ld+set}" = set; then
25243 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
25248 # Prepare PATH_SEPARATOR.
25249 # The user is always right.
25250 if test "${PATH_SEPARATOR+set}" != set; then
25251 echo "#! /bin/sh" >conf$$.sh
25252 echo "exit 0" >>conf$$.sh
25254 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25262 if test "$GCC" = yes; then
25263 # Check if gcc -print-prog-name=ld gives a path.
25264 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
25265 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
25268 # gcc leaves a trailing carriage return which upsets mingw
25269 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
25271 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
25274 # Accept absolute paths.
25275 [\\/]* | [A-Za-z]:[\\/]*)
25276 re_direlt='/[^/][^/]*/\.\./'
25277 # Canonicalize the path of ld
25278 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
25279 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
25280 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
25282 test -z "$LD" && LD="$ac_prog"
25285 # If it fails, then pretend we aren't using GCC.
25289 # If it is relative, then search for the first ld in PATH.
25290 with_gnu_ld=unknown
25293 elif test "$with_gnu_ld" = yes; then
25294 { echo "$as_me:$LINENO: checking for GNU ld" >&5
25295 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
25297 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
25298 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
25300 if test "${acl_cv_path_LD+set}" = set; then
25301 echo $ECHO_N "(cached) $ECHO_C" >&6
25303 if test -z "$LD"; then
25304 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
25305 for ac_dir in $PATH; do
25306 test -z "$ac_dir" && ac_dir=.
25307 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
25308 acl_cv_path_LD="$ac_dir/$ac_prog"
25309 # Check to see if the program is GNU ld. I'd rather use --version,
25310 # but apparently some GNU ld's only accept -v.
25311 # Break only if it was the GNU/non-GNU ld that we prefer.
25312 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
25313 *GNU* | *'with BFD'*)
25314 test "$with_gnu_ld" != no && break ;;
25316 test "$with_gnu_ld" != yes && break ;;
25322 acl_cv_path_LD="$LD" # Let the user override the test with a path.
25326 LD="$acl_cv_path_LD"
25327 if test -n "$LD"; then
25328 { echo "$as_me:$LINENO: result: $LD" >&5
25329 echo "${ECHO_T}$LD" >&6; }
25331 { echo "$as_me:$LINENO: result: no" >&5
25332 echo "${ECHO_T}no" >&6; }
25334 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
25335 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
25336 { (exit 1); exit 1; }; }
25337 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
25338 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
25339 if test "${acl_cv_prog_gnu_ld+set}" = set; then
25340 echo $ECHO_N "(cached) $ECHO_C" >&6
25342 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
25343 case `$LD -v 2>&1 </dev/null` in
25344 *GNU* | *'with BFD'*)
25345 acl_cv_prog_gnu_ld=yes ;;
25347 acl_cv_prog_gnu_ld=no ;;
25350 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
25351 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
25352 with_gnu_ld=$acl_cv_prog_gnu_ld
25357 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
25358 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
25359 if test "${acl_cv_rpath+set}" = set; then
25360 echo $ECHO_N "(cached) $ECHO_C" >&6
25363 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
25364 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
25366 rm -f ./conftest.sh
25370 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
25371 echo "${ECHO_T}$acl_cv_rpath" >&6; }
25373 acl_libext="$acl_cv_libext"
25374 acl_shlibext="$acl_cv_shlibext"
25375 acl_libname_spec="$acl_cv_libname_spec"
25376 acl_library_names_spec="$acl_cv_library_names_spec"
25377 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
25378 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
25379 acl_hardcode_direct="$acl_cv_hardcode_direct"
25380 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
25381 # Check whether --enable-rpath was given.
25382 if test "${enable_rpath+set}" = set; then
25383 enableval=$enable_rpath; :
25391 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
25392 if test -n "$searchpath"; then
25393 acl_save_IFS="${IFS= }"; IFS=":"
25394 for searchdir in $searchpath; do
25395 if test -d "$searchdir"; then
25396 case "$searchdir" in
25397 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
25398 *) searchdir=`cd "$searchdir" && pwd`
25399 case "$searchdir" in
25400 */lib64 ) acl_libdirstem=lib64 ;;
25405 IFS="$acl_save_IFS"
25418 acl_save_prefix="$prefix"
25419 prefix="$acl_final_prefix"
25420 acl_save_exec_prefix="$exec_prefix"
25421 exec_prefix="$acl_final_exec_prefix"
25423 eval additional_includedir=\"$includedir\"
25424 eval additional_libdir=\"$libdir\"
25426 exec_prefix="$acl_save_exec_prefix"
25427 prefix="$acl_save_prefix"
25430 # Check whether --with-libiconv-prefix was given.
25431 if test "${with_libiconv_prefix+set}" = set; then
25432 withval=$with_libiconv_prefix;
25433 if test "X$withval" = "Xno"; then
25436 if test "X$withval" = "X"; then
25438 acl_save_prefix="$prefix"
25439 prefix="$acl_final_prefix"
25440 acl_save_exec_prefix="$exec_prefix"
25441 exec_prefix="$acl_final_exec_prefix"
25443 eval additional_includedir=\"$includedir\"
25444 eval additional_libdir=\"$libdir\"
25446 exec_prefix="$acl_save_exec_prefix"
25447 prefix="$acl_save_prefix"
25450 additional_includedir="$withval/include"
25451 additional_libdir="$withval/$acl_libdirstem"
25463 names_already_handled=
25464 names_next_round='iconv '
25465 while test -n "$names_next_round"; do
25466 names_this_round="$names_next_round"
25468 for name in $names_this_round; do
25470 for n in $names_already_handled; do
25471 if test "$n" = "$name"; then
25472 already_handled=yes
25476 if test -z "$already_handled"; then
25477 names_already_handled="$names_already_handled $name"
25478 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
25479 eval value=\"\$HAVE_LIB$uppername\"
25480 if test -n "$value"; then
25481 if test "$value" = yes; then
25482 eval value=\"\$LIB$uppername\"
25483 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
25484 eval value=\"\$LTLIB$uppername\"
25485 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
25494 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
25495 if test -n "$acl_shlibext"; then
25496 shrext=".$acl_shlibext" # typically: shrext=.so
25500 if test $use_additional = yes; then
25501 dir="$additional_libdir"
25502 if test -n "$acl_shlibext"; then
25503 if test -f "$dir/$libname$shrext"; then
25505 found_so="$dir/$libname$shrext"
25507 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
25508 ver=`(cd "$dir" && \
25509 for f in "$libname$shrext".*; do echo "$f"; done \
25510 | sed -e "s,^$libname$shrext\\\\.,," \
25511 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
25512 | sed 1q ) 2>/dev/null`
25513 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
25515 found_so="$dir/$libname$shrext.$ver"
25518 eval library_names=\"$acl_library_names_spec\"
25519 for f in $library_names; do
25520 if test -f "$dir/$f"; then
25529 if test "X$found_dir" = "X"; then
25530 if test -f "$dir/$libname.$acl_libext"; then
25532 found_a="$dir/$libname.$acl_libext"
25535 if test "X$found_dir" != "X"; then
25536 if test -f "$dir/$libname.la"; then
25537 found_la="$dir/$libname.la"
25541 if test "X$found_dir" = "X"; then
25542 for x in $LDFLAGS $LTLIBICONV; do
25544 acl_save_prefix="$prefix"
25545 prefix="$acl_final_prefix"
25546 acl_save_exec_prefix="$exec_prefix"
25547 exec_prefix="$acl_final_exec_prefix"
25549 exec_prefix="$acl_save_exec_prefix"
25550 prefix="$acl_save_prefix"
25554 dir=`echo "X$x" | sed -e 's/^X-L//'`
25555 if test -n "$acl_shlibext"; then
25556 if test -f "$dir/$libname$shrext"; then
25558 found_so="$dir/$libname$shrext"
25560 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
25561 ver=`(cd "$dir" && \
25562 for f in "$libname$shrext".*; do echo "$f"; done \
25563 | sed -e "s,^$libname$shrext\\\\.,," \
25564 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
25565 | sed 1q ) 2>/dev/null`
25566 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
25568 found_so="$dir/$libname$shrext.$ver"
25571 eval library_names=\"$acl_library_names_spec\"
25572 for f in $library_names; do
25573 if test -f "$dir/$f"; then
25582 if test "X$found_dir" = "X"; then
25583 if test -f "$dir/$libname.$acl_libext"; then
25585 found_a="$dir/$libname.$acl_libext"
25588 if test "X$found_dir" != "X"; then
25589 if test -f "$dir/$libname.la"; then
25590 found_la="$dir/$libname.la"
25595 if test "X$found_dir" != "X"; then
25600 if test "X$found_dir" != "X"; then
25601 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
25602 if test "X$found_so" != "X"; then
25603 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
25604 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
25607 for x in $ltrpathdirs; do
25608 if test "X$x" = "X$found_dir"; then
25613 if test -z "$haveit"; then
25614 ltrpathdirs="$ltrpathdirs $found_dir"
25616 if test "$acl_hardcode_direct" = yes; then
25617 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
25619 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
25620 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
25622 for x in $rpathdirs; do
25623 if test "X$x" = "X$found_dir"; then
25628 if test -z "$haveit"; then
25629 rpathdirs="$rpathdirs $found_dir"
25633 for x in $LDFLAGS $LIBICONV; do
25635 acl_save_prefix="$prefix"
25636 prefix="$acl_final_prefix"
25637 acl_save_exec_prefix="$exec_prefix"
25638 exec_prefix="$acl_final_exec_prefix"
25640 exec_prefix="$acl_save_exec_prefix"
25641 prefix="$acl_save_prefix"
25643 if test "X$x" = "X-L$found_dir"; then
25648 if test -z "$haveit"; then
25649 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
25651 if test "$acl_hardcode_minus_L" != no; then
25652 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
25654 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
25660 if test "X$found_a" != "X"; then
25661 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
25663 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
25666 additional_includedir=
25667 case "$found_dir" in
25668 */$acl_libdirstem | */$acl_libdirstem/)
25669 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
25670 LIBICONV_PREFIX="$basedir"
25671 additional_includedir="$basedir/include"
25674 if test "X$additional_includedir" != "X"; then
25675 if test "X$additional_includedir" != "X/usr/include"; then
25677 if test "X$additional_includedir" = "X/usr/local/include"; then
25678 if test -n "$GCC"; then
25680 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
25684 if test -z "$haveit"; then
25685 for x in $CPPFLAGS $INCICONV; do
25687 acl_save_prefix="$prefix"
25688 prefix="$acl_final_prefix"
25689 acl_save_exec_prefix="$exec_prefix"
25690 exec_prefix="$acl_final_exec_prefix"
25692 exec_prefix="$acl_save_exec_prefix"
25693 prefix="$acl_save_prefix"
25695 if test "X$x" = "X-I$additional_includedir"; then
25700 if test -z "$haveit"; then
25701 if test -d "$additional_includedir"; then
25702 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
25708 if test -n "$found_la"; then
25709 save_libdir="$libdir"
25710 case "$found_la" in
25711 */* | *\\*) . "$found_la" ;;
25712 *) . "./$found_la" ;;
25714 libdir="$save_libdir"
25715 for dep in $dependency_libs; do
25718 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
25719 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
25721 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
25722 if test -n "$GCC"; then
25724 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
25728 if test -z "$haveit"; then
25730 for x in $LDFLAGS $LIBICONV; do
25732 acl_save_prefix="$prefix"
25733 prefix="$acl_final_prefix"
25734 acl_save_exec_prefix="$exec_prefix"
25735 exec_prefix="$acl_final_exec_prefix"
25737 exec_prefix="$acl_save_exec_prefix"
25738 prefix="$acl_save_prefix"
25740 if test "X$x" = "X-L$additional_libdir"; then
25745 if test -z "$haveit"; then
25746 if test -d "$additional_libdir"; then
25747 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
25751 for x in $LDFLAGS $LTLIBICONV; do
25753 acl_save_prefix="$prefix"
25754 prefix="$acl_final_prefix"
25755 acl_save_exec_prefix="$exec_prefix"
25756 exec_prefix="$acl_final_exec_prefix"
25758 exec_prefix="$acl_save_exec_prefix"
25759 prefix="$acl_save_prefix"
25761 if test "X$x" = "X-L$additional_libdir"; then
25766 if test -z "$haveit"; then
25767 if test -d "$additional_libdir"; then
25768 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
25775 dir=`echo "X$dep" | sed -e 's/^X-R//'`
25776 if test "$enable_rpath" != no; then
25778 for x in $rpathdirs; do
25779 if test "X$x" = "X$dir"; then
25784 if test -z "$haveit"; then
25785 rpathdirs="$rpathdirs $dir"
25788 for x in $ltrpathdirs; do
25789 if test "X$x" = "X$dir"; then
25794 if test -z "$haveit"; then
25795 ltrpathdirs="$ltrpathdirs $dir"
25800 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
25803 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
25806 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
25807 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
25813 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
25814 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
25820 if test "X$rpathdirs" != "X"; then
25821 if test -n "$acl_hardcode_libdir_separator"; then
25823 for found_dir in $rpathdirs; do
25824 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
25826 acl_save_libdir="$libdir"
25828 eval flag=\"$acl_hardcode_libdir_flag_spec\"
25829 libdir="$acl_save_libdir"
25830 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
25832 for found_dir in $rpathdirs; do
25833 acl_save_libdir="$libdir"
25834 libdir="$found_dir"
25835 eval flag=\"$acl_hardcode_libdir_flag_spec\"
25836 libdir="$acl_save_libdir"
25837 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
25841 if test "X$ltrpathdirs" != "X"; then
25842 for found_dir in $ltrpathdirs; do
25843 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
25853 am_save_CPPFLAGS="$CPPFLAGS"
25855 for element in $INCICONV; do
25857 for x in $CPPFLAGS; do
25859 acl_save_prefix="$prefix"
25860 prefix="$acl_final_prefix"
25861 acl_save_exec_prefix="$exec_prefix"
25862 exec_prefix="$acl_final_exec_prefix"
25864 exec_prefix="$acl_save_exec_prefix"
25865 prefix="$acl_save_prefix"
25867 if test "X$x" = "X$element"; then
25872 if test -z "$haveit"; then
25873 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
25878 { echo "$as_me:$LINENO: checking for iconv" >&5
25879 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
25880 if test "${am_cv_func_iconv+set}" = set; then
25881 echo $ECHO_N "(cached) $ECHO_C" >&6
25884 am_cv_func_iconv="no, consider installing GNU libiconv"
25886 cat >conftest.$ac_ext <<_ACEOF
25889 cat confdefs.h >>conftest.$ac_ext
25890 cat >>conftest.$ac_ext <<_ACEOF
25891 /* end confdefs.h. */
25892 #include <stdlib.h>
25897 iconv_t cd = iconv_open("","");
25898 iconv(cd,NULL,NULL,NULL,NULL);
25904 rm -f conftest.$ac_objext conftest$ac_exeext
25905 if { (ac_try="$ac_link"
25906 case "(($ac_try" in
25907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25908 *) ac_try_echo=$ac_try;;
25910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25911 (eval "$ac_link") 2>conftest.er1
25913 grep -v '^ *+' conftest.er1 >conftest.err
25915 cat conftest.err >&5
25916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25917 (exit $ac_status); } && {
25918 test -z "$ac_c_werror_flag" ||
25919 test ! -s conftest.err
25920 } && test -s conftest$ac_exeext &&
25921 $as_test_x conftest$ac_exeext; then
25922 am_cv_func_iconv=yes
25924 echo "$as_me: failed program was:" >&5
25925 sed 's/^/| /' conftest.$ac_ext >&5
25930 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25931 conftest$ac_exeext conftest.$ac_ext
25932 if test "$am_cv_func_iconv" != yes; then
25933 am_save_LIBS="$LIBS"
25934 LIBS="$LIBS $LIBICONV"
25935 cat >conftest.$ac_ext <<_ACEOF
25938 cat confdefs.h >>conftest.$ac_ext
25939 cat >>conftest.$ac_ext <<_ACEOF
25940 /* end confdefs.h. */
25941 #include <stdlib.h>
25946 iconv_t cd = iconv_open("","");
25947 iconv(cd,NULL,NULL,NULL,NULL);
25953 rm -f conftest.$ac_objext conftest$ac_exeext
25954 if { (ac_try="$ac_link"
25955 case "(($ac_try" in
25956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25957 *) ac_try_echo=$ac_try;;
25959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25960 (eval "$ac_link") 2>conftest.er1
25962 grep -v '^ *+' conftest.er1 >conftest.err
25964 cat conftest.err >&5
25965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25966 (exit $ac_status); } && {
25967 test -z "$ac_c_werror_flag" ||
25968 test ! -s conftest.err
25969 } && test -s conftest$ac_exeext &&
25970 $as_test_x conftest$ac_exeext; then
25971 am_cv_lib_iconv=yes
25972 am_cv_func_iconv=yes
25974 echo "$as_me: failed program was:" >&5
25975 sed 's/^/| /' conftest.$ac_ext >&5
25980 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25981 conftest$ac_exeext conftest.$ac_ext
25982 LIBS="$am_save_LIBS"
25986 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
25987 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
25988 if test "$am_cv_func_iconv" = yes; then
25989 { echo "$as_me:$LINENO: checking for working iconv" >&5
25990 echo $ECHO_N "checking for working iconv... $ECHO_C" >&6; }
25991 if test "${am_cv_func_iconv_works+set}" = set; then
25992 echo $ECHO_N "(cached) $ECHO_C" >&6
25995 am_save_LIBS="$LIBS"
25996 if test $am_cv_lib_iconv = yes; then
25997 LIBS="$LIBS $LIBICONV"
25999 if test "$cross_compiling" = yes; then
26001 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
26002 *) am_cv_func_iconv_works="guessing yes" ;;
26005 cat >conftest.$ac_ext <<_ACEOF
26008 cat confdefs.h >>conftest.$ac_ext
26009 cat >>conftest.$ac_ext <<_ACEOF
26010 /* end confdefs.h. */
26013 #include <string.h>
26016 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
26019 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
26020 if (cd_utf8_to_88591 != (iconv_t)(-1))
26022 static const char input[] = "\342\202\254"; /* EURO SIGN */
26024 const char *inptr = input;
26025 size_t inbytesleft = strlen (input);
26026 char *outptr = buf;
26027 size_t outbytesleft = sizeof (buf);
26028 size_t res = iconv (cd_utf8_to_88591,
26029 (char **) &inptr, &inbytesleft,
26030 &outptr, &outbytesleft);
26035 #if 0 /* This bug could be worked around by the caller. */
26036 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
26038 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
26039 if (cd_88591_to_utf8 != (iconv_t)(-1))
26041 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
26043 const char *inptr = input;
26044 size_t inbytesleft = strlen (input);
26045 char *outptr = buf;
26046 size_t outbytesleft = sizeof (buf);
26047 size_t res = iconv (cd_88591_to_utf8,
26048 (char **) &inptr, &inbytesleft,
26049 &outptr, &outbytesleft);
26055 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
26057 if (/* Try standardized names. */
26058 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
26059 /* Try IRIX, OSF/1 names. */
26060 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
26061 /* Try AIX names. */
26062 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
26063 /* Try HP-UX names. */
26064 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
26069 rm -f conftest$ac_exeext
26070 if { (ac_try="$ac_link"
26071 case "(($ac_try" in
26072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26073 *) ac_try_echo=$ac_try;;
26075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26076 (eval "$ac_link") 2>&5
26078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26079 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26080 { (case "(($ac_try" in
26081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26082 *) ac_try_echo=$ac_try;;
26084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26085 (eval "$ac_try") 2>&5
26087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26088 (exit $ac_status); }; }; then
26089 am_cv_func_iconv_works=yes
26091 echo "$as_me: program exited with status $ac_status" >&5
26092 echo "$as_me: failed program was:" >&5
26093 sed 's/^/| /' conftest.$ac_ext >&5
26095 ( exit $ac_status )
26096 am_cv_func_iconv_works=no
26098 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26102 LIBS="$am_save_LIBS"
26105 { echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
26106 echo "${ECHO_T}$am_cv_func_iconv_works" >&6; }
26107 case "$am_cv_func_iconv_works" in
26108 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
26109 *) am_func_iconv=yes ;;
26112 am_func_iconv=no am_cv_lib_iconv=no
26114 if test "$am_func_iconv" = yes; then
26116 cat >>confdefs.h <<\_ACEOF
26117 #define HAVE_ICONV 1
26121 if test "$am_cv_lib_iconv" = yes; then
26122 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
26123 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
26124 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
26125 echo "${ECHO_T}$LIBICONV" >&6; }
26127 CPPFLAGS="$am_save_CPPFLAGS"
26134 if test "$am_cv_func_iconv" = yes; then
26135 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
26136 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
26137 if test "${am_cv_proto_iconv+set}" = set; then
26138 echo $ECHO_N "(cached) $ECHO_C" >&6
26141 cat >conftest.$ac_ext <<_ACEOF
26144 cat confdefs.h >>conftest.$ac_ext
26145 cat >>conftest.$ac_ext <<_ACEOF
26146 /* end confdefs.h. */
26148 #include <stdlib.h>
26154 #if defined(__STDC__) || defined(__cplusplus)
26155 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
26168 rm -f conftest.$ac_objext
26169 if { (ac_try="$ac_compile"
26170 case "(($ac_try" in
26171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26172 *) ac_try_echo=$ac_try;;
26174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26175 (eval "$ac_compile") 2>conftest.er1
26177 grep -v '^ *+' conftest.er1 >conftest.err
26179 cat conftest.err >&5
26180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26181 (exit $ac_status); } && {
26182 test -z "$ac_c_werror_flag" ||
26183 test ! -s conftest.err
26184 } && test -s conftest.$ac_objext; then
26185 am_cv_proto_iconv_arg1=""
26187 echo "$as_me: failed program was:" >&5
26188 sed 's/^/| /' conftest.$ac_ext >&5
26190 am_cv_proto_iconv_arg1="const"
26193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26194 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
26197 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
26198 { echo "$as_me:$LINENO: result: ${ac_t:-
26199 }$am_cv_proto_iconv" >&5
26200 echo "${ECHO_T}${ac_t:-
26201 }$am_cv_proto_iconv" >&6; }
26203 cat >>confdefs.h <<_ACEOF
26204 #define ICONV_CONST $am_cv_proto_iconv_arg1
26209 if test "$am_cv_func_iconv" != yes; then
26210 { echo "$as_me:$LINENO: WARNING: Could not find libiconv" >&5
26211 echo "$as_me: WARNING: Could not find libiconv" >&2;}
26213 conky_LIBS="$conky_LIBS $LIBICONV"
26217 if test "$am_cv_func_iconv" = yes; then
26219 BUILD_ICONV_FALSE='#'
26221 BUILD_ICONV_TRUE='#'
26227 # Check whether --enable-double_buffer was given.
26228 if test "${enable_double_buffer+set}" = set; then
26229 enableval=$enable_double_buffer; want_double_buffer="$enableval"
26231 want_double_buffer=yes
26235 if test "x$want_double_buffer" = "xyes"; then
26236 if test "x$want_x11" != "xyes"; then
26237 want_double_buffer=no
26239 if $PKG_CONFIG --exists xext; then
26242 { echo "$as_me:$LINENO: checking for Xext" >&5
26243 echo $ECHO_N "checking for Xext... $ECHO_C" >&6; }
26245 if test -n "$PKG_CONFIG"; then
26246 if test -n "$Xext_CFLAGS"; then
26247 pkg_cv_Xext_CFLAGS="$Xext_CFLAGS"
26249 if test -n "$PKG_CONFIG" && \
26250 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xext\"") >&5
26251 ($PKG_CONFIG --exists --print-errors "xext") 2>&5
26253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26254 (exit $ac_status); }; then
26255 pkg_cv_Xext_CFLAGS=`$PKG_CONFIG --cflags "xext" 2>/dev/null`
26263 if test -n "$PKG_CONFIG"; then
26264 if test -n "$Xext_LIBS"; then
26265 pkg_cv_Xext_LIBS="$Xext_LIBS"
26267 if test -n "$PKG_CONFIG" && \
26268 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xext\"") >&5
26269 ($PKG_CONFIG --exists --print-errors "xext") 2>&5
26271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26272 (exit $ac_status); }; then
26273 pkg_cv_Xext_LIBS=`$PKG_CONFIG --libs "xext" 2>/dev/null`
26284 if test $pkg_failed = yes; then
26286 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26287 _pkg_short_errors_supported=yes
26289 _pkg_short_errors_supported=no
26291 if test $_pkg_short_errors_supported = yes; then
26292 Xext_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xext"`
26294 Xext_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xext"`
26296 # Put the nasty error message in config.log where it belongs
26297 echo "$Xext_PKG_ERRORS" >&5
26299 { { echo "$as_me:$LINENO: error: Package requirements (xext) were not met:
26303 Consider adjusting the PKG_CONFIG_PATH environment variable if you
26304 installed software in a non-standard prefix.
26306 Alternatively, you may set the environment variables Xext_CFLAGS
26307 and Xext_LIBS to avoid the need to call pkg-config.
26308 See the pkg-config man page for more details.
26310 echo "$as_me: error: Package requirements (xext) were not met:
26314 Consider adjusting the PKG_CONFIG_PATH environment variable if you
26315 installed software in a non-standard prefix.
26317 Alternatively, you may set the environment variables Xext_CFLAGS
26318 and Xext_LIBS to avoid the need to call pkg-config.
26319 See the pkg-config man page for more details.
26321 { (exit 1); exit 1; }; }
26322 elif test $pkg_failed = untried; then
26323 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
26324 is in your PATH or set the PKG_CONFIG environment variable to the full
26325 path to pkg-config.
26327 Alternatively, you may set the environment variables Xext_CFLAGS
26328 and Xext_LIBS to avoid the need to call pkg-config.
26329 See the pkg-config man page for more details.
26331 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
26332 See \`config.log' for more details." >&5
26333 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
26334 is in your PATH or set the PKG_CONFIG environment variable to the full
26335 path to pkg-config.
26337 Alternatively, you may set the environment variables Xext_CFLAGS
26338 and Xext_LIBS to avoid the need to call pkg-config.
26339 See the pkg-config man page for more details.
26341 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
26342 See \`config.log' for more details." >&2;}
26343 { (exit 1); exit 1; }; }
26345 Xext_CFLAGS=$pkg_cv_Xext_CFLAGS
26346 Xext_LIBS=$pkg_cv_Xext_LIBS
26347 { echo "$as_me:$LINENO: result: yes" >&5
26348 echo "${ECHO_T}yes" >&6; }
26351 conky_CFLAGS="$conky_CFLAGS $Xext_CFLAGS"
26352 conky_LIBS="$conky_LIBS $Xext_LIBS"
26354 { echo "$as_me:$LINENO: checking for XdbeQueryExtension in -lXext" >&5
26355 echo $ECHO_N "checking for XdbeQueryExtension in -lXext... $ECHO_C" >&6; }
26356 if test "${ac_cv_lib_Xext_XdbeQueryExtension+set}" = set; then
26357 echo $ECHO_N "(cached) $ECHO_C" >&6
26359 ac_check_lib_save_LIBS=$LIBS
26360 LIBS="-lXext $LIBS"
26361 cat >conftest.$ac_ext <<_ACEOF
26364 cat confdefs.h >>conftest.$ac_ext
26365 cat >>conftest.$ac_ext <<_ACEOF
26366 /* end confdefs.h. */
26368 /* Override any GCC internal prototype to avoid an error.
26369 Use char because int might match the return type of a GCC
26370 builtin and then its argument prototype would still apply. */
26374 char XdbeQueryExtension ();
26378 return XdbeQueryExtension ();
26383 rm -f conftest.$ac_objext conftest$ac_exeext
26384 if { (ac_try="$ac_link"
26385 case "(($ac_try" in
26386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26387 *) ac_try_echo=$ac_try;;
26389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26390 (eval "$ac_link") 2>conftest.er1
26392 grep -v '^ *+' conftest.er1 >conftest.err
26394 cat conftest.err >&5
26395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26396 (exit $ac_status); } && {
26397 test -z "$ac_c_werror_flag" ||
26398 test ! -s conftest.err
26399 } && test -s conftest$ac_exeext &&
26400 $as_test_x conftest$ac_exeext; then
26401 ac_cv_lib_Xext_XdbeQueryExtension=yes
26403 echo "$as_me: failed program was:" >&5
26404 sed 's/^/| /' conftest.$ac_ext >&5
26406 ac_cv_lib_Xext_XdbeQueryExtension=no
26409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26410 conftest$ac_exeext conftest.$ac_ext
26411 LIBS=$ac_check_lib_save_LIBS
26413 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XdbeQueryExtension" >&5
26414 echo "${ECHO_T}$ac_cv_lib_Xext_XdbeQueryExtension" >&6; }
26415 if test $ac_cv_lib_Xext_XdbeQueryExtension = yes; then
26416 conky_LIBS="$conky_LIBS -lXext"
26418 { { echo "$as_me:$LINENO: error: Could not find XdbeQueryExtension in -lXext" >&5
26419 echo "$as_me: error: Could not find XdbeQueryExtension in -lXext" >&2;}
26420 { (exit 1); exit 1; }; }
26425 cat >>confdefs.h <<\_ACEOF
26426 #define HAVE_XDBE 1
26434 # Check whether --enable-xdamage was given.
26435 if test "${enable_xdamage+set}" = set; then
26436 enableval=$enable_xdamage; want_xdamage="$enableval"
26442 if test "x$want_xdamage" = "xyes"; then
26443 if test "x$want_x11" != "xyes"; then
26446 if $PKG_CONFIG --exists xdamage; then
26449 { echo "$as_me:$LINENO: checking for XDamage" >&5
26450 echo $ECHO_N "checking for XDamage... $ECHO_C" >&6; }
26452 if test -n "$PKG_CONFIG"; then
26453 if test -n "$XDamage_CFLAGS"; then
26454 pkg_cv_XDamage_CFLAGS="$XDamage_CFLAGS"
26456 if test -n "$PKG_CONFIG" && \
26457 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xdamage\"") >&5
26458 ($PKG_CONFIG --exists --print-errors "xdamage") 2>&5
26460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26461 (exit $ac_status); }; then
26462 pkg_cv_XDamage_CFLAGS=`$PKG_CONFIG --cflags "xdamage" 2>/dev/null`
26470 if test -n "$PKG_CONFIG"; then
26471 if test -n "$XDamage_LIBS"; then
26472 pkg_cv_XDamage_LIBS="$XDamage_LIBS"
26474 if test -n "$PKG_CONFIG" && \
26475 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xdamage\"") >&5
26476 ($PKG_CONFIG --exists --print-errors "xdamage") 2>&5
26478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26479 (exit $ac_status); }; then
26480 pkg_cv_XDamage_LIBS=`$PKG_CONFIG --libs "xdamage" 2>/dev/null`
26491 if test $pkg_failed = yes; then
26493 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26494 _pkg_short_errors_supported=yes
26496 _pkg_short_errors_supported=no
26498 if test $_pkg_short_errors_supported = yes; then
26499 XDamage_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xdamage"`
26501 XDamage_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xdamage"`
26503 # Put the nasty error message in config.log where it belongs
26504 echo "$XDamage_PKG_ERRORS" >&5
26506 { { echo "$as_me:$LINENO: error: Package requirements (xdamage) were not met:
26508 $XDamage_PKG_ERRORS
26510 Consider adjusting the PKG_CONFIG_PATH environment variable if you
26511 installed software in a non-standard prefix.
26513 Alternatively, you may set the environment variables XDamage_CFLAGS
26514 and XDamage_LIBS to avoid the need to call pkg-config.
26515 See the pkg-config man page for more details.
26517 echo "$as_me: error: Package requirements (xdamage) were not met:
26519 $XDamage_PKG_ERRORS
26521 Consider adjusting the PKG_CONFIG_PATH environment variable if you
26522 installed software in a non-standard prefix.
26524 Alternatively, you may set the environment variables XDamage_CFLAGS
26525 and XDamage_LIBS to avoid the need to call pkg-config.
26526 See the pkg-config man page for more details.
26528 { (exit 1); exit 1; }; }
26529 elif test $pkg_failed = untried; then
26530 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
26531 is in your PATH or set the PKG_CONFIG environment variable to the full
26532 path to pkg-config.
26534 Alternatively, you may set the environment variables XDamage_CFLAGS
26535 and XDamage_LIBS to avoid the need to call pkg-config.
26536 See the pkg-config man page for more details.
26538 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
26539 See \`config.log' for more details." >&5
26540 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
26541 is in your PATH or set the PKG_CONFIG environment variable to the full
26542 path to pkg-config.
26544 Alternatively, you may set the environment variables XDamage_CFLAGS
26545 and XDamage_LIBS to avoid the need to call pkg-config.
26546 See the pkg-config man page for more details.
26548 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
26549 See \`config.log' for more details." >&2;}
26550 { (exit 1); exit 1; }; }
26552 XDamage_CFLAGS=$pkg_cv_XDamage_CFLAGS
26553 XDamage_LIBS=$pkg_cv_XDamage_LIBS
26554 { echo "$as_me:$LINENO: result: yes" >&5
26555 echo "${ECHO_T}yes" >&6; }
26558 conky_CFLAGS="$conky_CFLAGS $XDamage_CFLAGS"
26559 conky_LIBS="$conky_LIBS $XDamage_LIBS"
26561 { echo "$as_me:$LINENO: checking for XDamageQueryExtension in -lXdamage" >&5
26562 echo $ECHO_N "checking for XDamageQueryExtension in -lXdamage... $ECHO_C" >&6; }
26563 if test "${ac_cv_lib_Xdamage_XDamageQueryExtension+set}" = set; then
26564 echo $ECHO_N "(cached) $ECHO_C" >&6
26566 ac_check_lib_save_LIBS=$LIBS
26567 LIBS="-lXdamage $LIBS"
26568 cat >conftest.$ac_ext <<_ACEOF
26571 cat confdefs.h >>conftest.$ac_ext
26572 cat >>conftest.$ac_ext <<_ACEOF
26573 /* end confdefs.h. */
26575 /* Override any GCC internal prototype to avoid an error.
26576 Use char because int might match the return type of a GCC
26577 builtin and then its argument prototype would still apply. */
26581 char XDamageQueryExtension ();
26585 return XDamageQueryExtension ();
26590 rm -f conftest.$ac_objext conftest$ac_exeext
26591 if { (ac_try="$ac_link"
26592 case "(($ac_try" in
26593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26594 *) ac_try_echo=$ac_try;;
26596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26597 (eval "$ac_link") 2>conftest.er1
26599 grep -v '^ *+' conftest.er1 >conftest.err
26601 cat conftest.err >&5
26602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26603 (exit $ac_status); } && {
26604 test -z "$ac_c_werror_flag" ||
26605 test ! -s conftest.err
26606 } && test -s conftest$ac_exeext &&
26607 $as_test_x conftest$ac_exeext; then
26608 ac_cv_lib_Xdamage_XDamageQueryExtension=yes
26610 echo "$as_me: failed program was:" >&5
26611 sed 's/^/| /' conftest.$ac_ext >&5
26613 ac_cv_lib_Xdamage_XDamageQueryExtension=no
26616 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26617 conftest$ac_exeext conftest.$ac_ext
26618 LIBS=$ac_check_lib_save_LIBS
26620 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xdamage_XDamageQueryExtension" >&5
26621 echo "${ECHO_T}$ac_cv_lib_Xdamage_XDamageQueryExtension" >&6; }
26622 if test $ac_cv_lib_Xdamage_XDamageQueryExtension = yes; then
26623 conky_LIBS="$conky_LIBS -lXdamage"
26625 { { echo "$as_me:$LINENO: error: Could not find XDamageQueryExtension in -lXdamage" >&5
26626 echo "$as_me: error: Could not find XDamageQueryExtension in -lXdamage" >&2;}
26627 { (exit 1); exit 1; }; }
26632 cat >>confdefs.h <<\_ACEOF
26633 #define HAVE_XDAMAGE 1
26641 # Check whether --enable-xft was given.
26642 if test "${enable_xft+set}" = set; then
26643 enableval=$enable_xft; want_xft="$enableval"
26649 if test x$want_xft = "xyes"; then
26650 if test "x$want_x11" != "xyes"; then
26655 { echo "$as_me:$LINENO: checking for Xft" >&5
26656 echo $ECHO_N "checking for Xft... $ECHO_C" >&6; }
26658 if test -n "$PKG_CONFIG"; then
26659 if test -n "$Xft_CFLAGS"; then
26660 pkg_cv_Xft_CFLAGS="$Xft_CFLAGS"
26662 if test -n "$PKG_CONFIG" && \
26663 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xft\"") >&5
26664 ($PKG_CONFIG --exists --print-errors "xft") 2>&5
26666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26667 (exit $ac_status); }; then
26668 pkg_cv_Xft_CFLAGS=`$PKG_CONFIG --cflags "xft" 2>/dev/null`
26676 if test -n "$PKG_CONFIG"; then
26677 if test -n "$Xft_LIBS"; then
26678 pkg_cv_Xft_LIBS="$Xft_LIBS"
26680 if test -n "$PKG_CONFIG" && \
26681 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xft\"") >&5
26682 ($PKG_CONFIG --exists --print-errors "xft") 2>&5
26684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26685 (exit $ac_status); }; then
26686 pkg_cv_Xft_LIBS=`$PKG_CONFIG --libs "xft" 2>/dev/null`
26697 if test $pkg_failed = yes; then
26699 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26700 _pkg_short_errors_supported=yes
26702 _pkg_short_errors_supported=no
26704 if test $_pkg_short_errors_supported = yes; then
26705 Xft_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xft"`
26707 Xft_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft"`
26709 # Put the nasty error message in config.log where it belongs
26710 echo "$Xft_PKG_ERRORS" >&5
26712 { { echo "$as_me:$LINENO: error: Package requirements (xft) were not met:
26716 Consider adjusting the PKG_CONFIG_PATH environment variable if you
26717 installed software in a non-standard prefix.
26719 Alternatively, you may set the environment variables Xft_CFLAGS
26720 and Xft_LIBS to avoid the need to call pkg-config.
26721 See the pkg-config man page for more details.
26723 echo "$as_me: error: Package requirements (xft) were not met:
26727 Consider adjusting the PKG_CONFIG_PATH environment variable if you
26728 installed software in a non-standard prefix.
26730 Alternatively, you may set the environment variables Xft_CFLAGS
26731 and Xft_LIBS to avoid the need to call pkg-config.
26732 See the pkg-config man page for more details.
26734 { (exit 1); exit 1; }; }
26735 elif test $pkg_failed = untried; then
26736 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
26737 is in your PATH or set the PKG_CONFIG environment variable to the full
26738 path to pkg-config.
26740 Alternatively, you may set the environment variables Xft_CFLAGS
26741 and Xft_LIBS to avoid the need to call pkg-config.
26742 See the pkg-config man page for more details.
26744 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
26745 See \`config.log' for more details." >&5
26746 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
26747 is in your PATH or set the PKG_CONFIG environment variable to the full
26748 path to pkg-config.
26750 Alternatively, you may set the environment variables Xft_CFLAGS
26751 and Xft_LIBS to avoid the need to call pkg-config.
26752 See the pkg-config man page for more details.
26754 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
26755 See \`config.log' for more details." >&2;}
26756 { (exit 1); exit 1; }; }
26758 Xft_CFLAGS=$pkg_cv_Xft_CFLAGS
26759 Xft_LIBS=$pkg_cv_Xft_LIBS
26760 { echo "$as_me:$LINENO: result: yes" >&5
26761 echo "${ECHO_T}yes" >&6; }
26764 conky_CFLAGS="$conky_CFLAGS $Xft_CFLAGS"
26765 conky_LIBS="$conky_LIBS $Xft_LIBS"
26767 cat >>confdefs.h <<\_ACEOF
26775 # Check whether --enable-nvidia was given.
26776 if test "${enable_nvidia+set}" = set; then
26777 enableval=$enable_nvidia; want_nvidia="$enableval"
26782 if test x$want_nvidia = xyes; then
26783 if test "x$want_x11" != "xyes"; then
26788 for ac_header in NVCtrl/NVCtrl.h
26790 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26791 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26792 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26794 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26795 echo $ECHO_N "(cached) $ECHO_C" >&6
26797 ac_res=`eval echo '${'$as_ac_Header'}'`
26798 { echo "$as_me:$LINENO: result: $ac_res" >&5
26799 echo "${ECHO_T}$ac_res" >&6; }
26801 # Is the header compilable?
26802 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26803 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26804 cat >conftest.$ac_ext <<_ACEOF
26807 cat confdefs.h >>conftest.$ac_ext
26808 cat >>conftest.$ac_ext <<_ACEOF
26809 /* end confdefs.h. */
26810 $ac_includes_default
26811 #include <$ac_header>
26813 rm -f conftest.$ac_objext
26814 if { (ac_try="$ac_compile"
26815 case "(($ac_try" in
26816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26817 *) ac_try_echo=$ac_try;;
26819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26820 (eval "$ac_compile") 2>conftest.er1
26822 grep -v '^ *+' conftest.er1 >conftest.err
26824 cat conftest.err >&5
26825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26826 (exit $ac_status); } && {
26827 test -z "$ac_c_werror_flag" ||
26828 test ! -s conftest.err
26829 } && test -s conftest.$ac_objext; then
26830 ac_header_compiler=yes
26832 echo "$as_me: failed program was:" >&5
26833 sed 's/^/| /' conftest.$ac_ext >&5
26835 ac_header_compiler=no
26838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26839 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26840 echo "${ECHO_T}$ac_header_compiler" >&6; }
26842 # Is the header present?
26843 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26844 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26845 cat >conftest.$ac_ext <<_ACEOF
26848 cat confdefs.h >>conftest.$ac_ext
26849 cat >>conftest.$ac_ext <<_ACEOF
26850 /* end confdefs.h. */
26851 #include <$ac_header>
26853 if { (ac_try="$ac_cpp conftest.$ac_ext"
26854 case "(($ac_try" in
26855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26856 *) ac_try_echo=$ac_try;;
26858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26859 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26861 grep -v '^ *+' conftest.er1 >conftest.err
26863 cat conftest.err >&5
26864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26865 (exit $ac_status); } >/dev/null && {
26866 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26867 test ! -s conftest.err
26869 ac_header_preproc=yes
26871 echo "$as_me: failed program was:" >&5
26872 sed 's/^/| /' conftest.$ac_ext >&5
26874 ac_header_preproc=no
26877 rm -f conftest.err conftest.$ac_ext
26878 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26879 echo "${ECHO_T}$ac_header_preproc" >&6; }
26881 # So? What about this header?
26882 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26884 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26885 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26886 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26887 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26888 ac_header_preproc=yes
26891 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26892 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26893 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26894 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26895 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26896 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26897 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26898 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26899 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26900 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26901 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26902 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26904 ## --------------------------------------------- ##
26905 ## Report this to brenden1@users.sourceforge.net ##
26906 ## --------------------------------------------- ##
26908 ) | sed "s/^/$as_me: WARNING: /" >&2
26911 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26913 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26914 echo $ECHO_N "(cached) $ECHO_C" >&6
26916 eval "$as_ac_Header=\$ac_header_preproc"
26918 ac_res=`eval echo '${'$as_ac_Header'}'`
26919 { echo "$as_me:$LINENO: result: $ac_res" >&5
26920 echo "${ECHO_T}$ac_res" >&6; }
26923 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26924 cat >>confdefs.h <<_ACEOF
26925 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26929 { { echo "$as_me:$LINENO: error: NVCtrl/NVCtrl.h header not found" >&5
26930 echo "$as_me: error: NVCtrl/NVCtrl.h header not found" >&2;}
26931 { (exit 1); exit 1; }; }
26936 conky_LIBS="$conky_LIBS -lXNVCtrl"
26938 cat >>confdefs.h <<\_ACEOF
26946 if test x$want_nvidia = xyes; then
26948 BUILD_NVIDIA_FALSE='#'
26950 BUILD_NVIDIA_TRUE='#'
26951 BUILD_NVIDIA_FALSE=
26956 if test x$WANT_GLIB = xyes; then
26959 { echo "$as_me:$LINENO: checking for GLib2" >&5
26960 echo $ECHO_N "checking for GLib2... $ECHO_C" >&6; }
26962 if test -n "$PKG_CONFIG"; then
26963 if test -n "$GLib2_CFLAGS"; then
26964 pkg_cv_GLib2_CFLAGS="$GLib2_CFLAGS"
26966 if test -n "$PKG_CONFIG" && \
26967 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
26968 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
26970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26971 (exit $ac_status); }; then
26972 pkg_cv_GLib2_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
26980 if test -n "$PKG_CONFIG"; then
26981 if test -n "$GLib2_LIBS"; then
26982 pkg_cv_GLib2_LIBS="$GLib2_LIBS"
26984 if test -n "$PKG_CONFIG" && \
26985 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
26986 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
26988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26989 (exit $ac_status); }; then
26990 pkg_cv_GLib2_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
27001 if test $pkg_failed = yes; then
27003 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27004 _pkg_short_errors_supported=yes
27006 _pkg_short_errors_supported=no
27008 if test $_pkg_short_errors_supported = yes; then
27009 GLib2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0"`
27011 GLib2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0"`
27013 # Put the nasty error message in config.log where it belongs
27014 echo "$GLib2_PKG_ERRORS" >&5
27016 { { echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
27020 Consider adjusting the PKG_CONFIG_PATH environment variable if you
27021 installed software in a non-standard prefix.
27023 Alternatively, you may set the environment variables GLib2_CFLAGS
27024 and GLib2_LIBS to avoid the need to call pkg-config.
27025 See the pkg-config man page for more details.
27027 echo "$as_me: error: Package requirements (glib-2.0) were not met:
27031 Consider adjusting the PKG_CONFIG_PATH environment variable if you
27032 installed software in a non-standard prefix.
27034 Alternatively, you may set the environment variables GLib2_CFLAGS
27035 and GLib2_LIBS to avoid the need to call pkg-config.
27036 See the pkg-config man page for more details.
27038 { (exit 1); exit 1; }; }
27039 elif test $pkg_failed = untried; then
27040 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
27041 is in your PATH or set the PKG_CONFIG environment variable to the full
27042 path to pkg-config.
27044 Alternatively, you may set the environment variables GLib2_CFLAGS
27045 and GLib2_LIBS to avoid the need to call pkg-config.
27046 See the pkg-config man page for more details.
27048 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
27049 See \`config.log' for more details." >&5
27050 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
27051 is in your PATH or set the PKG_CONFIG environment variable to the full
27052 path to pkg-config.
27054 Alternatively, you may set the environment variables GLib2_CFLAGS
27055 and GLib2_LIBS to avoid the need to call pkg-config.
27056 See the pkg-config man page for more details.
27058 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
27059 See \`config.log' for more details." >&2;}
27060 { (exit 1); exit 1; }; }
27062 GLib2_CFLAGS=$pkg_cv_GLib2_CFLAGS
27063 GLib2_LIBS=$pkg_cv_GLib2_LIBS
27064 { echo "$as_me:$LINENO: result: yes" >&5
27065 echo "${ECHO_T}yes" >&6; }
27068 conky_CFLAGS="$conky_CFLAGS $GLib2_CFLAGS"
27069 conky_LIBS="$conky_LIBS $GLib2_LIBS"
27073 if test x$want_curl = xyes; then
27076 { echo "$as_me:$LINENO: checking for libcurl" >&5
27077 echo $ECHO_N "checking for libcurl... $ECHO_C" >&6; }
27079 if test -n "$PKG_CONFIG"; then
27080 if test -n "$libcurl_CFLAGS"; then
27081 pkg_cv_libcurl_CFLAGS="$libcurl_CFLAGS"
27083 if test -n "$PKG_CONFIG" && \
27084 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcurl\"") >&5
27085 ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
27087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27088 (exit $ac_status); }; then
27089 pkg_cv_libcurl_CFLAGS=`$PKG_CONFIG --cflags "libcurl" 2>/dev/null`
27097 if test -n "$PKG_CONFIG"; then
27098 if test -n "$libcurl_LIBS"; then
27099 pkg_cv_libcurl_LIBS="$libcurl_LIBS"
27101 if test -n "$PKG_CONFIG" && \
27102 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcurl\"") >&5
27103 ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
27105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27106 (exit $ac_status); }; then
27107 pkg_cv_libcurl_LIBS=`$PKG_CONFIG --libs "libcurl" 2>/dev/null`
27118 if test $pkg_failed = yes; then
27120 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27121 _pkg_short_errors_supported=yes
27123 _pkg_short_errors_supported=no
27125 if test $_pkg_short_errors_supported = yes; then
27126 libcurl_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libcurl"`
27128 libcurl_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libcurl"`
27130 # Put the nasty error message in config.log where it belongs
27131 echo "$libcurl_PKG_ERRORS" >&5
27133 { { echo "$as_me:$LINENO: error: Package requirements (libcurl) were not met:
27135 $libcurl_PKG_ERRORS
27137 Consider adjusting the PKG_CONFIG_PATH environment variable if you
27138 installed software in a non-standard prefix.
27140 Alternatively, you may set the environment variables libcurl_CFLAGS
27141 and libcurl_LIBS to avoid the need to call pkg-config.
27142 See the pkg-config man page for more details.
27144 echo "$as_me: error: Package requirements (libcurl) were not met:
27146 $libcurl_PKG_ERRORS
27148 Consider adjusting the PKG_CONFIG_PATH environment variable if you
27149 installed software in a non-standard prefix.
27151 Alternatively, you may set the environment variables libcurl_CFLAGS
27152 and libcurl_LIBS to avoid the need to call pkg-config.
27153 See the pkg-config man page for more details.
27155 { (exit 1); exit 1; }; }
27156 elif test $pkg_failed = untried; then
27157 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
27158 is in your PATH or set the PKG_CONFIG environment variable to the full
27159 path to pkg-config.
27161 Alternatively, you may set the environment variables libcurl_CFLAGS
27162 and libcurl_LIBS to avoid the need to call pkg-config.
27163 See the pkg-config man page for more details.
27165 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
27166 See \`config.log' for more details." >&5
27167 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
27168 is in your PATH or set the PKG_CONFIG environment variable to the full
27169 path to pkg-config.
27171 Alternatively, you may set the environment variables libcurl_CFLAGS
27172 and libcurl_LIBS to avoid the need to call pkg-config.
27173 See the pkg-config man page for more details.
27175 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
27176 See \`config.log' for more details." >&2;}
27177 { (exit 1); exit 1; }; }
27179 libcurl_CFLAGS=$pkg_cv_libcurl_CFLAGS
27180 libcurl_LIBS=$pkg_cv_libcurl_LIBS
27181 { echo "$as_me:$LINENO: result: yes" >&5
27182 echo "${ECHO_T}yes" >&6; }
27185 conky_CFLAGS="$conky_CFLAGS $libcurl_CFLAGS"
27186 conky_LIBS="$conky_LIBS $libcurl_LIBS"
27188 cat >>confdefs.h <<\_ACEOF
27189 #define HAVE_CURL 1
27195 if test x$want_curl = xyes; then
27197 BUILD_CURL_FALSE='#'
27199 BUILD_CURL_TRUE='#'
27205 if test x$want_libxml2 = xyes; then
27208 { echo "$as_me:$LINENO: checking for libxml2" >&5
27209 echo $ECHO_N "checking for libxml2... $ECHO_C" >&6; }
27211 if test -n "$PKG_CONFIG"; then
27212 if test -n "$libxml2_CFLAGS"; then
27213 pkg_cv_libxml2_CFLAGS="$libxml2_CFLAGS"
27215 if test -n "$PKG_CONFIG" && \
27216 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\"") >&5
27217 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
27219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27220 (exit $ac_status); }; then
27221 pkg_cv_libxml2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null`
27229 if test -n "$PKG_CONFIG"; then
27230 if test -n "$libxml2_LIBS"; then
27231 pkg_cv_libxml2_LIBS="$libxml2_LIBS"
27233 if test -n "$PKG_CONFIG" && \
27234 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\"") >&5
27235 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
27237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27238 (exit $ac_status); }; then
27239 pkg_cv_libxml2_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null`
27250 if test $pkg_failed = yes; then
27252 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27253 _pkg_short_errors_supported=yes
27255 _pkg_short_errors_supported=no
27257 if test $_pkg_short_errors_supported = yes; then
27258 libxml2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libxml-2.0"`
27260 libxml2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0"`
27262 # Put the nasty error message in config.log where it belongs
27263 echo "$libxml2_PKG_ERRORS" >&5
27265 { { echo "$as_me:$LINENO: error: Package requirements (libxml-2.0) were not met:
27267 $libxml2_PKG_ERRORS
27269 Consider adjusting the PKG_CONFIG_PATH environment variable if you
27270 installed software in a non-standard prefix.
27272 Alternatively, you may set the environment variables libxml2_CFLAGS
27273 and libxml2_LIBS to avoid the need to call pkg-config.
27274 See the pkg-config man page for more details.
27276 echo "$as_me: error: Package requirements (libxml-2.0) were not met:
27278 $libxml2_PKG_ERRORS
27280 Consider adjusting the PKG_CONFIG_PATH environment variable if you
27281 installed software in a non-standard prefix.
27283 Alternatively, you may set the environment variables libxml2_CFLAGS
27284 and libxml2_LIBS to avoid the need to call pkg-config.
27285 See the pkg-config man page for more details.
27287 { (exit 1); exit 1; }; }
27288 elif test $pkg_failed = untried; then
27289 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
27290 is in your PATH or set the PKG_CONFIG environment variable to the full
27291 path to pkg-config.
27293 Alternatively, you may set the environment variables libxml2_CFLAGS
27294 and libxml2_LIBS to avoid the need to call pkg-config.
27295 See the pkg-config man page for more details.
27297 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
27298 See \`config.log' for more details." >&5
27299 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
27300 is in your PATH or set the PKG_CONFIG environment variable to the full
27301 path to pkg-config.
27303 Alternatively, you may set the environment variables libxml2_CFLAGS
27304 and libxml2_LIBS to avoid the need to call pkg-config.
27305 See the pkg-config man page for more details.
27307 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
27308 See \`config.log' for more details." >&2;}
27309 { (exit 1); exit 1; }; }
27311 libxml2_CFLAGS=$pkg_cv_libxml2_CFLAGS
27312 libxml2_LIBS=$pkg_cv_libxml2_LIBS
27313 { echo "$as_me:$LINENO: result: yes" >&5
27314 echo "${ECHO_T}yes" >&6; }
27317 conky_CFLAGS="$conky_CFLAGS $libxml2_CFLAGS"
27318 conky_LIBS="$conky_LIBS $libxml2_LIBS"
27322 if test x$WANT_KVM = xyes; then
27323 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
27324 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
27325 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
27326 echo $ECHO_N "(cached) $ECHO_C" >&6
27328 ac_check_lib_save_LIBS=$LIBS
27330 cat >conftest.$ac_ext <<_ACEOF
27333 cat confdefs.h >>conftest.$ac_ext
27334 cat >>conftest.$ac_ext <<_ACEOF
27335 /* end confdefs.h. */
27337 /* Override any GCC internal prototype to avoid an error.
27338 Use char because int might match the return type of a GCC
27339 builtin and then its argument prototype would still apply. */
27347 return kvm_open ();
27352 rm -f conftest.$ac_objext conftest$ac_exeext
27353 if { (ac_try="$ac_link"
27354 case "(($ac_try" in
27355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27356 *) ac_try_echo=$ac_try;;
27358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27359 (eval "$ac_link") 2>conftest.er1
27361 grep -v '^ *+' conftest.er1 >conftest.err
27363 cat conftest.err >&5
27364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27365 (exit $ac_status); } && {
27366 test -z "$ac_c_werror_flag" ||
27367 test ! -s conftest.err
27368 } && test -s conftest$ac_exeext &&
27369 $as_test_x conftest$ac_exeext; then
27370 ac_cv_lib_kvm_kvm_open=yes
27372 echo "$as_me: failed program was:" >&5
27373 sed 's/^/| /' conftest.$ac_ext >&5
27375 ac_cv_lib_kvm_kvm_open=no
27378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27379 conftest$ac_exeext conftest.$ac_ext
27380 LIBS=$ac_check_lib_save_LIBS
27382 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
27383 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
27384 if test $ac_cv_lib_kvm_kvm_open = yes; then
27385 conky_LIBS="$conky_LIBS -lkvm"
27387 { { echo "$as_me:$LINENO: error: Could not find kvm_open in -lkvm." >&5
27388 echo "$as_me: error: Could not find kvm_open in -lkvm." >&2;}
27389 { (exit 1); exit 1; }; }
27396 if test x$WANT_DEVSTAT = xyes; then
27397 { echo "$as_me:$LINENO: checking for devstat_getversion in -ldevstat" >&5
27398 echo $ECHO_N "checking for devstat_getversion in -ldevstat... $ECHO_C" >&6; }
27399 if test "${ac_cv_lib_devstat_devstat_getversion+set}" = set; then
27400 echo $ECHO_N "(cached) $ECHO_C" >&6
27402 ac_check_lib_save_LIBS=$LIBS
27403 LIBS="-ldevstat $LIBS"
27404 cat >conftest.$ac_ext <<_ACEOF
27407 cat confdefs.h >>conftest.$ac_ext
27408 cat >>conftest.$ac_ext <<_ACEOF
27409 /* end confdefs.h. */
27411 /* Override any GCC internal prototype to avoid an error.
27412 Use char because int might match the return type of a GCC
27413 builtin and then its argument prototype would still apply. */
27417 char devstat_getversion ();
27421 return devstat_getversion ();
27426 rm -f conftest.$ac_objext conftest$ac_exeext
27427 if { (ac_try="$ac_link"
27428 case "(($ac_try" in
27429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27430 *) ac_try_echo=$ac_try;;
27432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27433 (eval "$ac_link") 2>conftest.er1
27435 grep -v '^ *+' conftest.er1 >conftest.err
27437 cat conftest.err >&5
27438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27439 (exit $ac_status); } && {
27440 test -z "$ac_c_werror_flag" ||
27441 test ! -s conftest.err
27442 } && test -s conftest$ac_exeext &&
27443 $as_test_x conftest$ac_exeext; then
27444 ac_cv_lib_devstat_devstat_getversion=yes
27446 echo "$as_me: failed program was:" >&5
27447 sed 's/^/| /' conftest.$ac_ext >&5
27449 ac_cv_lib_devstat_devstat_getversion=no
27452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27453 conftest$ac_exeext conftest.$ac_ext
27454 LIBS=$ac_check_lib_save_LIBS
27456 { echo "$as_me:$LINENO: result: $ac_cv_lib_devstat_devstat_getversion" >&5
27457 echo "${ECHO_T}$ac_cv_lib_devstat_devstat_getversion" >&6; }
27458 if test $ac_cv_lib_devstat_devstat_getversion = yes; then
27459 conky_LIBS="$conky_LIBS -ldevstat"
27461 { { echo "$as_me:$LINENO: error: Cound not find devstat_getversion in -ldevstat." >&5
27462 echo "$as_me: error: Cound not find devstat_getversion in -ldevstat." >&2;}
27463 { (exit 1); exit 1; }; }
27470 if test x$WANT_OSSLIB = xyes; then
27471 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
27472 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
27473 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
27474 echo $ECHO_N "(cached) $ECHO_C" >&6
27476 ac_check_lib_save_LIBS=$LIBS
27477 LIBS="-lossaudio $LIBS"
27478 cat >conftest.$ac_ext <<_ACEOF
27481 cat confdefs.h >>conftest.$ac_ext
27482 cat >>conftest.$ac_ext <<_ACEOF
27483 /* end confdefs.h. */
27485 /* Override any GCC internal prototype to avoid an error.
27486 Use char because int might match the return type of a GCC
27487 builtin and then its argument prototype would still apply. */
27491 char _oss_ioctl ();
27495 return _oss_ioctl ();
27500 rm -f conftest.$ac_objext conftest$ac_exeext
27501 if { (ac_try="$ac_link"
27502 case "(($ac_try" in
27503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27504 *) ac_try_echo=$ac_try;;
27506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27507 (eval "$ac_link") 2>conftest.er1
27509 grep -v '^ *+' conftest.er1 >conftest.err
27511 cat conftest.err >&5
27512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27513 (exit $ac_status); } && {
27514 test -z "$ac_c_werror_flag" ||
27515 test ! -s conftest.err
27516 } && test -s conftest$ac_exeext &&
27517 $as_test_x conftest$ac_exeext; then
27518 ac_cv_lib_ossaudio__oss_ioctl=yes
27520 echo "$as_me: failed program was:" >&5
27521 sed 's/^/| /' conftest.$ac_ext >&5
27523 ac_cv_lib_ossaudio__oss_ioctl=no
27526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27527 conftest$ac_exeext conftest.$ac_ext
27528 LIBS=$ac_check_lib_save_LIBS
27530 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
27531 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
27532 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
27533 conky_LIBS="$conky_LIBS -lossaudio"
27535 { { echo "$as_me:$LINENO: error: Could not find oss_ioctl in -lossaudio." >&5
27536 echo "$as_me: error: Could not find oss_ioctl in -lossaudio." >&2;}
27537 { (exit 1); exit 1; }; }
27543 # Check whether --enable-alsa was given.
27544 if test "${enable_alsa+set}" = set; then
27545 enableval=$enable_alsa; want_alsa="$enableval"
27551 if test x$want_alsa = xyes; then
27552 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
27553 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
27554 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
27555 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
27556 echo $ECHO_N "(cached) $ECHO_C" >&6
27558 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
27559 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
27561 # Is the header compilable?
27562 { echo "$as_me:$LINENO: checking alsa/asoundlib.h usability" >&5
27563 echo $ECHO_N "checking alsa/asoundlib.h usability... $ECHO_C" >&6; }
27564 cat >conftest.$ac_ext <<_ACEOF
27567 cat confdefs.h >>conftest.$ac_ext
27568 cat >>conftest.$ac_ext <<_ACEOF
27569 /* end confdefs.h. */
27570 $ac_includes_default
27571 #include <alsa/asoundlib.h>
27573 rm -f conftest.$ac_objext
27574 if { (ac_try="$ac_compile"
27575 case "(($ac_try" in
27576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27577 *) ac_try_echo=$ac_try;;
27579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27580 (eval "$ac_compile") 2>conftest.er1
27582 grep -v '^ *+' conftest.er1 >conftest.err
27584 cat conftest.err >&5
27585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27586 (exit $ac_status); } && {
27587 test -z "$ac_c_werror_flag" ||
27588 test ! -s conftest.err
27589 } && test -s conftest.$ac_objext; then
27590 ac_header_compiler=yes
27592 echo "$as_me: failed program was:" >&5
27593 sed 's/^/| /' conftest.$ac_ext >&5
27595 ac_header_compiler=no
27598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27599 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27600 echo "${ECHO_T}$ac_header_compiler" >&6; }
27602 # Is the header present?
27603 { echo "$as_me:$LINENO: checking alsa/asoundlib.h presence" >&5
27604 echo $ECHO_N "checking alsa/asoundlib.h presence... $ECHO_C" >&6; }
27605 cat >conftest.$ac_ext <<_ACEOF
27608 cat confdefs.h >>conftest.$ac_ext
27609 cat >>conftest.$ac_ext <<_ACEOF
27610 /* end confdefs.h. */
27611 #include <alsa/asoundlib.h>
27613 if { (ac_try="$ac_cpp conftest.$ac_ext"
27614 case "(($ac_try" in
27615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27616 *) ac_try_echo=$ac_try;;
27618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27619 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27621 grep -v '^ *+' conftest.er1 >conftest.err
27623 cat conftest.err >&5
27624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27625 (exit $ac_status); } >/dev/null && {
27626 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27627 test ! -s conftest.err
27629 ac_header_preproc=yes
27631 echo "$as_me: failed program was:" >&5
27632 sed 's/^/| /' conftest.$ac_ext >&5
27634 ac_header_preproc=no
27637 rm -f conftest.err conftest.$ac_ext
27638 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27639 echo "${ECHO_T}$ac_header_preproc" >&6; }
27641 # So? What about this header?
27642 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27644 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
27645 echo "$as_me: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27646 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&5
27647 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
27648 ac_header_preproc=yes
27651 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&5
27652 echo "$as_me: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&2;}
27653 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&5
27654 echo "$as_me: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
27655 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&5
27656 echo "$as_me: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&2;}
27657 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
27658 echo "$as_me: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
27659 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
27660 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
27661 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
27662 echo "$as_me: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
27664 ## --------------------------------------------- ##
27665 ## Report this to brenden1@users.sourceforge.net ##
27666 ## --------------------------------------------- ##
27668 ) | sed "s/^/$as_me: WARNING: /" >&2
27671 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
27672 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
27673 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
27674 echo $ECHO_N "(cached) $ECHO_C" >&6
27676 ac_cv_header_alsa_asoundlib_h=$ac_header_preproc
27678 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
27679 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
27682 if test $ac_cv_header_alsa_asoundlib_h = yes; then
27690 if test x$want_alsa = xyes; then
27691 { echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
27692 echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6; }
27693 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
27694 echo $ECHO_N "(cached) $ECHO_C" >&6
27696 ac_check_lib_save_LIBS=$LIBS
27697 LIBS="-lasound $LIBS"
27698 cat >conftest.$ac_ext <<_ACEOF
27701 cat confdefs.h >>conftest.$ac_ext
27702 cat >>conftest.$ac_ext <<_ACEOF
27703 /* end confdefs.h. */
27705 /* Override any GCC internal prototype to avoid an error.
27706 Use char because int might match the return type of a GCC
27707 builtin and then its argument prototype would still apply. */
27711 char snd_pcm_open ();
27715 return snd_pcm_open ();
27720 rm -f conftest.$ac_objext conftest$ac_exeext
27721 if { (ac_try="$ac_link"
27722 case "(($ac_try" in
27723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27724 *) ac_try_echo=$ac_try;;
27726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27727 (eval "$ac_link") 2>conftest.er1
27729 grep -v '^ *+' conftest.er1 >conftest.err
27731 cat conftest.err >&5
27732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27733 (exit $ac_status); } && {
27734 test -z "$ac_c_werror_flag" ||
27735 test ! -s conftest.err
27736 } && test -s conftest$ac_exeext &&
27737 $as_test_x conftest$ac_exeext; then
27738 ac_cv_lib_asound_snd_pcm_open=yes
27740 echo "$as_me: failed program was:" >&5
27741 sed 's/^/| /' conftest.$ac_ext >&5
27743 ac_cv_lib_asound_snd_pcm_open=no
27746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27747 conftest$ac_exeext conftest.$ac_ext
27748 LIBS=$ac_check_lib_save_LIBS
27750 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
27751 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6; }
27752 if test $ac_cv_lib_asound_snd_pcm_open = yes; then
27753 conky_LIBS="$conky_LIBS -lasound"
27775 for ac_header in signal.h unistd.h sys/utsname.h sys/stat.h linux/soundcard.h alsa/asoundlib.h dirent.h mcheck.h \
27776 sys/statfs.h sys/param.h pthread.h semaphore.h assert.h errno.h time.h
27778 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27779 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27780 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27782 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27783 echo $ECHO_N "(cached) $ECHO_C" >&6
27785 ac_res=`eval echo '${'$as_ac_Header'}'`
27786 { echo "$as_me:$LINENO: result: $ac_res" >&5
27787 echo "${ECHO_T}$ac_res" >&6; }
27789 # Is the header compilable?
27790 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27791 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27792 cat >conftest.$ac_ext <<_ACEOF
27795 cat confdefs.h >>conftest.$ac_ext
27796 cat >>conftest.$ac_ext <<_ACEOF
27797 /* end confdefs.h. */
27798 $ac_includes_default
27799 #include <$ac_header>
27801 rm -f conftest.$ac_objext
27802 if { (ac_try="$ac_compile"
27803 case "(($ac_try" in
27804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27805 *) ac_try_echo=$ac_try;;
27807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27808 (eval "$ac_compile") 2>conftest.er1
27810 grep -v '^ *+' conftest.er1 >conftest.err
27812 cat conftest.err >&5
27813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27814 (exit $ac_status); } && {
27815 test -z "$ac_c_werror_flag" ||
27816 test ! -s conftest.err
27817 } && test -s conftest.$ac_objext; then
27818 ac_header_compiler=yes
27820 echo "$as_me: failed program was:" >&5
27821 sed 's/^/| /' conftest.$ac_ext >&5
27823 ac_header_compiler=no
27826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27827 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27828 echo "${ECHO_T}$ac_header_compiler" >&6; }
27830 # Is the header present?
27831 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27832 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27833 cat >conftest.$ac_ext <<_ACEOF
27836 cat confdefs.h >>conftest.$ac_ext
27837 cat >>conftest.$ac_ext <<_ACEOF
27838 /* end confdefs.h. */
27839 #include <$ac_header>
27841 if { (ac_try="$ac_cpp conftest.$ac_ext"
27842 case "(($ac_try" in
27843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27844 *) ac_try_echo=$ac_try;;
27846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27847 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27849 grep -v '^ *+' conftest.er1 >conftest.err
27851 cat conftest.err >&5
27852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27853 (exit $ac_status); } >/dev/null && {
27854 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27855 test ! -s conftest.err
27857 ac_header_preproc=yes
27859 echo "$as_me: failed program was:" >&5
27860 sed 's/^/| /' conftest.$ac_ext >&5
27862 ac_header_preproc=no
27865 rm -f conftest.err conftest.$ac_ext
27866 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27867 echo "${ECHO_T}$ac_header_preproc" >&6; }
27869 # So? What about this header?
27870 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27872 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27873 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27875 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27876 ac_header_preproc=yes
27879 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27880 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27881 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27882 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27883 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27884 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27885 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27886 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27887 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27888 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27889 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27890 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27892 ## --------------------------------------------- ##
27893 ## Report this to brenden1@users.sourceforge.net ##
27894 ## --------------------------------------------- ##
27896 ) | sed "s/^/$as_me: WARNING: /" >&2
27899 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27900 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27901 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27902 echo $ECHO_N "(cached) $ECHO_C" >&6
27904 eval "$as_ac_Header=\$ac_header_preproc"
27906 ac_res=`eval echo '${'$as_ac_Header'}'`
27907 { echo "$as_me:$LINENO: result: $ac_res" >&5
27908 echo "${ECHO_T}$ac_res" >&6; }
27911 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27912 cat >>confdefs.h <<_ACEOF
27913 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27921 for ac_header in sys/mount.h
27923 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27924 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27925 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27926 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27927 echo $ECHO_N "(cached) $ECHO_C" >&6
27929 cat >conftest.$ac_ext <<_ACEOF
27932 cat confdefs.h >>conftest.$ac_ext
27933 cat >>conftest.$ac_ext <<_ACEOF
27934 /* end confdefs.h. */
27935 #ifdef HAVE_SYS_PARAM_H
27936 #include <sys/param.h>
27940 #include <$ac_header>
27942 rm -f conftest.$ac_objext
27943 if { (ac_try="$ac_compile"
27944 case "(($ac_try" in
27945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27946 *) ac_try_echo=$ac_try;;
27948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27949 (eval "$ac_compile") 2>conftest.er1
27951 grep -v '^ *+' conftest.er1 >conftest.err
27953 cat conftest.err >&5
27954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27955 (exit $ac_status); } && {
27956 test -z "$ac_c_werror_flag" ||
27957 test ! -s conftest.err
27958 } && test -s conftest.$ac_objext; then
27959 eval "$as_ac_Header=yes"
27961 echo "$as_me: failed program was:" >&5
27962 sed 's/^/| /' conftest.$ac_ext >&5
27964 eval "$as_ac_Header=no"
27967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27969 ac_res=`eval echo '${'$as_ac_Header'}'`
27970 { echo "$as_me:$LINENO: result: $ac_res" >&5
27971 echo "${ECHO_T}$ac_res" >&6; }
27972 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27973 cat >>confdefs.h <<_ACEOF
27974 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27981 # check if we have inotify support
27982 # DML #AC_CHECK_HEADERS([sys/inotify.h])
27986 cat >>confdefs.h <<\_ACEOF
27987 #define DEFAULTNETDEV "eth0"
27991 cat >>confdefs.h <<\_ACEOF
27992 #define CONFIG_FILE "$HOME/.conkyrc"
27996 cat >>confdefs.h <<\_ACEOF
27997 #define MAX_SPECIALS_DEFAULT 512
28001 cat >>confdefs.h <<\_ACEOF
28002 #define MAX_USER_TEXT_DEFAULT 16384
28006 cat >>confdefs.h <<\_ACEOF
28007 #define DEFAULT_TEXT_BUFFER_SIZE 256
28011 cat >>confdefs.h <<\_ACEOF
28012 #define MAX_NET_INTERFACES 16
28026 for ac_func in calloc malloc free popen sysinfo getloadavg memrchr strndup gethostbyname_r
28028 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28029 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28030 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28031 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28032 echo $ECHO_N "(cached) $ECHO_C" >&6
28034 cat >conftest.$ac_ext <<_ACEOF
28037 cat confdefs.h >>conftest.$ac_ext
28038 cat >>conftest.$ac_ext <<_ACEOF
28039 /* end confdefs.h. */
28040 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28041 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28042 #define $ac_func innocuous_$ac_func
28044 /* System header to define __stub macros and hopefully few prototypes,
28045 which can conflict with char $ac_func (); below.
28046 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28047 <limits.h> exists even on freestanding compilers. */
28050 # include <limits.h>
28052 # include <assert.h>
28057 /* Override any GCC internal prototype to avoid an error.
28058 Use char because int might match the return type of a GCC
28059 builtin and then its argument prototype would still apply. */
28064 /* The GNU C library defines this for functions which it implements
28065 to always fail with ENOSYS. Some functions are actually named
28066 something starting with __ and the normal name is an alias. */
28067 #if defined __stub_$ac_func || defined __stub___$ac_func
28074 return $ac_func ();
28079 rm -f conftest.$ac_objext conftest$ac_exeext
28080 if { (ac_try="$ac_link"
28081 case "(($ac_try" in
28082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28083 *) ac_try_echo=$ac_try;;
28085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28086 (eval "$ac_link") 2>conftest.er1
28088 grep -v '^ *+' conftest.er1 >conftest.err
28090 cat conftest.err >&5
28091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28092 (exit $ac_status); } && {
28093 test -z "$ac_c_werror_flag" ||
28094 test ! -s conftest.err
28095 } && test -s conftest$ac_exeext &&
28096 $as_test_x conftest$ac_exeext; then
28097 eval "$as_ac_var=yes"
28099 echo "$as_me: failed program was:" >&5
28100 sed 's/^/| /' conftest.$ac_ext >&5
28102 eval "$as_ac_var=no"
28105 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28106 conftest$ac_exeext conftest.$ac_ext
28108 ac_res=`eval echo '${'$as_ac_var'}'`
28109 { echo "$as_me:$LINENO: result: $ac_res" >&5
28110 echo "${ECHO_T}$ac_res" >&6; }
28111 if test `eval echo '${'$as_ac_var'}'` = yes; then
28112 cat >>confdefs.h <<_ACEOF
28113 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28119 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
28120 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
28121 if test "${ac_cv_search_clock_gettime+set}" = set; then
28122 echo $ECHO_N "(cached) $ECHO_C" >&6
28124 ac_func_search_save_LIBS=$LIBS
28125 cat >conftest.$ac_ext <<_ACEOF
28128 cat confdefs.h >>conftest.$ac_ext
28129 cat >>conftest.$ac_ext <<_ACEOF
28130 /* end confdefs.h. */
28132 /* Override any GCC internal prototype to avoid an error.
28133 Use char because int might match the return type of a GCC
28134 builtin and then its argument prototype would still apply. */
28138 char clock_gettime ();
28142 return clock_gettime ();
28147 for ac_lib in '' rt; do
28148 if test -z "$ac_lib"; then
28149 ac_res="none required"
28152 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28154 rm -f conftest.$ac_objext conftest$ac_exeext
28155 if { (ac_try="$ac_link"
28156 case "(($ac_try" in
28157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28158 *) ac_try_echo=$ac_try;;
28160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28161 (eval "$ac_link") 2>conftest.er1
28163 grep -v '^ *+' conftest.er1 >conftest.err
28165 cat conftest.err >&5
28166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28167 (exit $ac_status); } && {
28168 test -z "$ac_c_werror_flag" ||
28169 test ! -s conftest.err
28170 } && test -s conftest$ac_exeext &&
28171 $as_test_x conftest$ac_exeext; then
28172 ac_cv_search_clock_gettime=$ac_res
28174 echo "$as_me: failed program was:" >&5
28175 sed 's/^/| /' conftest.$ac_ext >&5
28180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28182 if test "${ac_cv_search_clock_gettime+set}" = set; then
28186 if test "${ac_cv_search_clock_gettime+set}" = set; then
28189 ac_cv_search_clock_gettime=no
28191 rm conftest.$ac_ext
28192 LIBS=$ac_func_search_save_LIBS
28194 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
28195 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
28196 ac_res=$ac_cv_search_clock_gettime
28197 if test "$ac_res" != no; then
28198 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28199 conky_LIBS="$conky_LIBS $LIBS"
28201 cat >>confdefs.h <<\_ACEOF
28202 #define HAVE_CLOCK_GETTIME 1
28207 for ac_func in gettimeofday
28209 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28210 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28211 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28212 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28213 echo $ECHO_N "(cached) $ECHO_C" >&6
28215 cat >conftest.$ac_ext <<_ACEOF
28218 cat confdefs.h >>conftest.$ac_ext
28219 cat >>conftest.$ac_ext <<_ACEOF
28220 /* end confdefs.h. */
28221 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28222 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28223 #define $ac_func innocuous_$ac_func
28225 /* System header to define __stub macros and hopefully few prototypes,
28226 which can conflict with char $ac_func (); below.
28227 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28228 <limits.h> exists even on freestanding compilers. */
28231 # include <limits.h>
28233 # include <assert.h>
28238 /* Override any GCC internal prototype to avoid an error.
28239 Use char because int might match the return type of a GCC
28240 builtin and then its argument prototype would still apply. */
28245 /* The GNU C library defines this for functions which it implements
28246 to always fail with ENOSYS. Some functions are actually named
28247 something starting with __ and the normal name is an alias. */
28248 #if defined __stub_$ac_func || defined __stub___$ac_func
28255 return $ac_func ();
28260 rm -f conftest.$ac_objext conftest$ac_exeext
28261 if { (ac_try="$ac_link"
28262 case "(($ac_try" in
28263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28264 *) ac_try_echo=$ac_try;;
28266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28267 (eval "$ac_link") 2>conftest.er1
28269 grep -v '^ *+' conftest.er1 >conftest.err
28271 cat conftest.err >&5
28272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28273 (exit $ac_status); } && {
28274 test -z "$ac_c_werror_flag" ||
28275 test ! -s conftest.err
28276 } && test -s conftest$ac_exeext &&
28277 $as_test_x conftest$ac_exeext; then
28278 eval "$as_ac_var=yes"
28280 echo "$as_me: failed program was:" >&5
28281 sed 's/^/| /' conftest.$ac_ext >&5
28283 eval "$as_ac_var=no"
28286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28287 conftest$ac_exeext conftest.$ac_ext
28289 ac_res=`eval echo '${'$as_ac_var'}'`
28290 { echo "$as_me:$LINENO: result: $ac_res" >&5
28291 echo "${ECHO_T}$ac_res" >&6; }
28292 if test `eval echo '${'$as_ac_var'}'` = yes; then
28293 cat >>confdefs.h <<_ACEOF
28294 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28298 { { echo "$as_me:$LINENO: error: gettimeofday() not available!" >&5
28299 echo "$as_me: error: gettimeofday() not available!" >&2;}
28300 { (exit 1); exit 1; }; }
28308 { echo "$as_me:$LINENO: checking for struct statfs.f_fstypename" >&5
28309 echo $ECHO_N "checking for struct statfs.f_fstypename... $ECHO_C" >&6; }
28310 if test "${ac_cv_member_struct_statfs_f_fstypename+set}" = set; then
28311 echo $ECHO_N "(cached) $ECHO_C" >&6
28313 cat >conftest.$ac_ext <<_ACEOF
28316 cat confdefs.h >>conftest.$ac_ext
28317 cat >>conftest.$ac_ext <<_ACEOF
28318 /* end confdefs.h. */
28319 #include <sys/statfs.h>
28324 static struct statfs ac_aggr;
28325 if (ac_aggr.f_fstypename)
28331 rm -f conftest.$ac_objext
28332 if { (ac_try="$ac_compile"
28333 case "(($ac_try" in
28334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28335 *) ac_try_echo=$ac_try;;
28337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28338 (eval "$ac_compile") 2>conftest.er1
28340 grep -v '^ *+' conftest.er1 >conftest.err
28342 cat conftest.err >&5
28343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28344 (exit $ac_status); } && {
28345 test -z "$ac_c_werror_flag" ||
28346 test ! -s conftest.err
28347 } && test -s conftest.$ac_objext; then
28348 ac_cv_member_struct_statfs_f_fstypename=yes
28350 echo "$as_me: failed program was:" >&5
28351 sed 's/^/| /' conftest.$ac_ext >&5
28353 cat >conftest.$ac_ext <<_ACEOF
28356 cat confdefs.h >>conftest.$ac_ext
28357 cat >>conftest.$ac_ext <<_ACEOF
28358 /* end confdefs.h. */
28359 #include <sys/statfs.h>
28364 static struct statfs ac_aggr;
28365 if (sizeof ac_aggr.f_fstypename)
28371 rm -f conftest.$ac_objext
28372 if { (ac_try="$ac_compile"
28373 case "(($ac_try" in
28374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28375 *) ac_try_echo=$ac_try;;
28377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28378 (eval "$ac_compile") 2>conftest.er1
28380 grep -v '^ *+' conftest.er1 >conftest.err
28382 cat conftest.err >&5
28383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28384 (exit $ac_status); } && {
28385 test -z "$ac_c_werror_flag" ||
28386 test ! -s conftest.err
28387 } && test -s conftest.$ac_objext; then
28388 ac_cv_member_struct_statfs_f_fstypename=yes
28390 echo "$as_me: failed program was:" >&5
28391 sed 's/^/| /' conftest.$ac_ext >&5
28393 ac_cv_member_struct_statfs_f_fstypename=no
28396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28401 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_fstypename" >&5
28402 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_fstypename" >&6; }
28403 if test $ac_cv_member_struct_statfs_f_fstypename = yes; then
28405 cat >>confdefs.h <<\_ACEOF
28406 #define HAVE_STRUCT_STATFS_F_FSTYPENAME 1
28413 if test "${ac_cv_header_zlib_h+set}" = set; then
28414 { echo "$as_me:$LINENO: checking for zlib.h" >&5
28415 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
28416 if test "${ac_cv_header_zlib_h+set}" = set; then
28417 echo $ECHO_N "(cached) $ECHO_C" >&6
28419 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
28420 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
28422 # Is the header compilable?
28423 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
28424 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
28425 cat >conftest.$ac_ext <<_ACEOF
28428 cat confdefs.h >>conftest.$ac_ext
28429 cat >>conftest.$ac_ext <<_ACEOF
28430 /* end confdefs.h. */
28431 $ac_includes_default
28434 rm -f conftest.$ac_objext
28435 if { (ac_try="$ac_compile"
28436 case "(($ac_try" in
28437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28438 *) ac_try_echo=$ac_try;;
28440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28441 (eval "$ac_compile") 2>conftest.er1
28443 grep -v '^ *+' conftest.er1 >conftest.err
28445 cat conftest.err >&5
28446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28447 (exit $ac_status); } && {
28448 test -z "$ac_c_werror_flag" ||
28449 test ! -s conftest.err
28450 } && test -s conftest.$ac_objext; then
28451 ac_header_compiler=yes
28453 echo "$as_me: failed program was:" >&5
28454 sed 's/^/| /' conftest.$ac_ext >&5
28456 ac_header_compiler=no
28459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28460 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28461 echo "${ECHO_T}$ac_header_compiler" >&6; }
28463 # Is the header present?
28464 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
28465 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
28466 cat >conftest.$ac_ext <<_ACEOF
28469 cat confdefs.h >>conftest.$ac_ext
28470 cat >>conftest.$ac_ext <<_ACEOF
28471 /* end confdefs.h. */
28474 if { (ac_try="$ac_cpp conftest.$ac_ext"
28475 case "(($ac_try" in
28476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28477 *) ac_try_echo=$ac_try;;
28479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28480 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28482 grep -v '^ *+' conftest.er1 >conftest.err
28484 cat conftest.err >&5
28485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28486 (exit $ac_status); } >/dev/null && {
28487 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28488 test ! -s conftest.err
28490 ac_header_preproc=yes
28492 echo "$as_me: failed program was:" >&5
28493 sed 's/^/| /' conftest.$ac_ext >&5
28495 ac_header_preproc=no
28498 rm -f conftest.err conftest.$ac_ext
28499 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28500 echo "${ECHO_T}$ac_header_preproc" >&6; }
28502 # So? What about this header?
28503 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28505 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
28506 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28507 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
28508 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
28509 ac_header_preproc=yes
28512 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
28513 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
28514 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
28515 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
28516 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
28517 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
28518 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
28519 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
28520 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
28521 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
28522 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
28523 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
28525 ## --------------------------------------------- ##
28526 ## Report this to brenden1@users.sourceforge.net ##
28527 ## --------------------------------------------- ##
28529 ) | sed "s/^/$as_me: WARNING: /" >&2
28532 { echo "$as_me:$LINENO: checking for zlib.h" >&5
28533 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
28534 if test "${ac_cv_header_zlib_h+set}" = set; then
28535 echo $ECHO_N "(cached) $ECHO_C" >&6
28537 ac_cv_header_zlib_h=$ac_header_preproc
28539 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
28540 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
28543 if test $ac_cv_header_zlib_h = yes; then
28546 { { echo "$as_me:$LINENO: error: zlib is missing; please install the headers first" >&5
28547 echo "$as_me: error: zlib is missing; please install the headers first" >&2;}
28548 { (exit 1); exit 1; }; }
28558 for ac_prog in db2x_xsltproc
28560 # Extract the first word of "$ac_prog", so it can be a program name with args.
28561 set dummy $ac_prog; ac_word=$2
28562 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28564 if test "${ac_cv_prog_db2x_xsltproc_cmd+set}" = set; then
28565 echo $ECHO_N "(cached) $ECHO_C" >&6
28567 if test -n "$db2x_xsltproc_cmd"; then
28568 ac_cv_prog_db2x_xsltproc_cmd="$db2x_xsltproc_cmd" # Let the user override the test.
28570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28571 for as_dir in $PATH
28574 test -z "$as_dir" && as_dir=.
28575 for ac_exec_ext in '' $ac_executable_extensions; do
28576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28577 ac_cv_prog_db2x_xsltproc_cmd="$ac_prog"
28578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28587 db2x_xsltproc_cmd=$ac_cv_prog_db2x_xsltproc_cmd
28588 if test -n "$db2x_xsltproc_cmd"; then
28589 { echo "$as_me:$LINENO: result: $db2x_xsltproc_cmd" >&5
28590 echo "${ECHO_T}$db2x_xsltproc_cmd" >&6; }
28592 { echo "$as_me:$LINENO: result: no" >&5
28593 echo "${ECHO_T}no" >&6; }
28597 test -n "$db2x_xsltproc_cmd" && break
28600 for ac_prog in db2x_manxml
28602 # Extract the first word of "$ac_prog", so it can be a program name with args.
28603 set dummy $ac_prog; ac_word=$2
28604 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28606 if test "${ac_cv_prog_db2x_manxml_cmd+set}" = set; then
28607 echo $ECHO_N "(cached) $ECHO_C" >&6
28609 if test -n "$db2x_manxml_cmd"; then
28610 ac_cv_prog_db2x_manxml_cmd="$db2x_manxml_cmd" # Let the user override the test.
28612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28613 for as_dir in $PATH
28616 test -z "$as_dir" && as_dir=.
28617 for ac_exec_ext in '' $ac_executable_extensions; do
28618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28619 ac_cv_prog_db2x_manxml_cmd="$ac_prog"
28620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28629 db2x_manxml_cmd=$ac_cv_prog_db2x_manxml_cmd
28630 if test -n "$db2x_manxml_cmd"; then
28631 { echo "$as_me:$LINENO: result: $db2x_manxml_cmd" >&5
28632 echo "${ECHO_T}$db2x_manxml_cmd" >&6; }
28634 { echo "$as_me:$LINENO: result: no" >&5
28635 echo "${ECHO_T}no" >&6; }
28639 test -n "$db2x_manxml_cmd" && break
28642 for ac_prog in xsltproc
28644 # Extract the first word of "$ac_prog", so it can be a program name with args.
28645 set dummy $ac_prog; ac_word=$2
28646 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28648 if test "${ac_cv_prog_xsltproc_cmd+set}" = set; then
28649 echo $ECHO_N "(cached) $ECHO_C" >&6
28651 if test -n "$xsltproc_cmd"; then
28652 ac_cv_prog_xsltproc_cmd="$xsltproc_cmd" # Let the user override the test.
28654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28655 for as_dir in $PATH
28658 test -z "$as_dir" && as_dir=.
28659 for ac_exec_ext in '' $ac_executable_extensions; do
28660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28661 ac_cv_prog_xsltproc_cmd="$ac_prog"
28662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28671 xsltproc_cmd=$ac_cv_prog_xsltproc_cmd
28672 if test -n "$xsltproc_cmd"; then
28673 { echo "$as_me:$LINENO: result: $xsltproc_cmd" >&5
28674 echo "${ECHO_T}$xsltproc_cmd" >&6; }
28676 { echo "$as_me:$LINENO: result: no" >&5
28677 echo "${ECHO_T}no" >&6; }
28681 test -n "$xsltproc_cmd" && break
28684 if test x$db2x_xsltproc_cmd = "x" -o x$xsltproc_cmd = "x"; then
28688 HAVE_DOCSTUFF_TRUE=
28689 HAVE_DOCSTUFF_FALSE='#'
28691 HAVE_DOCSTUFF_TRUE='#'
28692 HAVE_DOCSTUFF_FALSE=
28699 HAVE_DOCSTUFF_TRUE=
28700 HAVE_DOCSTUFF_FALSE='#'
28702 HAVE_DOCSTUFF_TRUE='#'
28703 HAVE_DOCSTUFF_FALSE=
28709 if test x$WANT_KSTAT = xyes; then
28711 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
28712 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
28713 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
28714 echo $ECHO_N "(cached) $ECHO_C" >&6
28716 ac_check_lib_save_LIBS=$LIBS
28717 LIBS="-lkstat $LIBS"
28718 cat >conftest.$ac_ext <<_ACEOF
28721 cat confdefs.h >>conftest.$ac_ext
28722 cat >>conftest.$ac_ext <<_ACEOF
28723 /* end confdefs.h. */
28725 /* Override any GCC internal prototype to avoid an error.
28726 Use char because int might match the return type of a GCC
28727 builtin and then its argument prototype would still apply. */
28731 char kstat_open ();
28735 return kstat_open ();
28740 rm -f conftest.$ac_objext conftest$ac_exeext
28741 if { (ac_try="$ac_link"
28742 case "(($ac_try" in
28743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28744 *) ac_try_echo=$ac_try;;
28746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28747 (eval "$ac_link") 2>conftest.er1
28749 grep -v '^ *+' conftest.er1 >conftest.err
28751 cat conftest.err >&5
28752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28753 (exit $ac_status); } && {
28754 test -z "$ac_c_werror_flag" ||
28755 test ! -s conftest.err
28756 } && test -s conftest$ac_exeext &&
28757 $as_test_x conftest$ac_exeext; then
28758 ac_cv_lib_kstat_kstat_open=yes
28760 echo "$as_me: failed program was:" >&5
28761 sed 's/^/| /' conftest.$ac_ext >&5
28763 ac_cv_lib_kstat_kstat_open=no
28766 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28767 conftest$ac_exeext conftest.$ac_ext
28768 LIBS=$ac_check_lib_save_LIBS
28770 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
28771 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
28772 if test $ac_cv_lib_kstat_kstat_open = yes; then
28777 if test x$dah = xyes; then
28779 cat >>confdefs.h <<\_ACEOF
28780 #define HAVE_KSTAT 1
28783 conky_LDFLAGS="$conky_LDFLAGS -lkstat"
28790 { echo "$as_me:$LINENO: checking if $LD accepts -O1" >&5
28791 echo $ECHO_N "checking if $LD accepts -O1... $ECHO_C" >&6; }
28792 case `$LD -O1 -v 2>&1 </dev/null` in
28794 conky_LDFLAGS="$conky_LDFLAGS -Wl,-O1"
28795 { echo "$as_me:$LINENO: result: yes" >&5
28796 echo "${ECHO_T}yes" >&6; }
28799 { echo "$as_me:$LINENO: result: no" >&5
28800 echo "${ECHO_T}no" >&6; }
28806 conky_CFLAGS="$conky_CFLAGS -Wall -W"
28809 # Check whether --enable-debug was given.
28810 if test "${enable_debug+set}" = set; then
28811 enableval=$enable_debug; want_debug="$enableval"
28817 if test "x$want_debug" = "xyes" -a $ac_cv_c_compiler_gnu != no; then
28818 conky_CFLAGS="$conky_CFLAGS -g3 -O0"
28820 cat >>confdefs.h <<\_ACEOF
28827 # Check whether --enable-testing was given.
28828 if test "${enable_testing+set}" = set; then
28829 enableval=$enable_testing; want_testing="$enableval"
28835 if test "x$want_testing" = "xyes" -a $ac_cv_c_compiler_gnu != no; then
28836 if test "x$want_debug" = "xyes"; then
28837 conky_CFLAGS="$conky_CFLAGS -Wextra -Wunused -Wdeclaration-after-statement -Wundef -Wendif-labels -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wold-style-definition -Winline -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -std=c99 -pedantic -Werror"
28839 cat >>confdefs.h <<\_ACEOF
28844 conky_CFLAGS="$conky_CFLAGS -O0 -g3 -Wextra -Wunused -Wdeclaration-after-statement -Wundef -Wendif-labels -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wold-style-definition -Winline -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -std=c99 -pedantic -Werror"
28846 cat >>confdefs.h <<\_ACEOF
28854 # Check whether --enable-profiling was given.
28855 if test "${enable_profiling+set}" = set; then
28856 enableval=$enable_profiling; want_profiling="$enableval"
28862 if test "x$want_profiling" = "xyes" -a $ac_cv_c_compiler_gnu != no; then
28863 if test "x$want_debug" = "xyes"; then
28864 conky_CFLAGS="$conky_CFLAGS -pg -fprofile-arcs -ftest-coverage"
28866 conky_CFLAGS="$conky_CFLAGS -g3 -pg -fprofile-arcs -ftest-coverage"
28869 cat >>confdefs.h <<\_ACEOF
28879 cat >confcache <<\_ACEOF
28880 # This file is a shell script that caches the results of configure
28881 # tests run on this system so they can be shared between configure
28882 # scripts and configure runs, see configure's option --config-cache.
28883 # It is not useful on other systems. If it contains results you don't
28884 # want to keep, you may remove or edit it.
28886 # config.status only pays attention to the cache file if you give it
28887 # the --recheck option to rerun configure.
28889 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28890 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28891 # following values.
28895 # The following way of writing the cache mishandles newlines in values,
28896 # but we know of no workaround that is simple, portable, and efficient.
28897 # So, we kill variables containing newlines.
28898 # Ultrix sh set writes to stderr and can't be redirected directly,
28899 # and sets the high bit in the cache file unless we assign to the vars.
28901 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28902 eval ac_val=\$$ac_var
28906 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
28907 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
28910 _ | IFS | as_nl) ;; #(
28911 *) $as_unset $ac_var ;;
28917 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28918 *${as_nl}ac_space=\ *)
28919 # `set' does not quote correctly, so add quotes (double-quote
28920 # substitution turns \\\\ into \\, and sed turns \\ into \).
28923 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28926 # `set' quotes correctly as required by POSIX, so do not add quotes.
28927 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28936 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28938 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28940 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28941 if test -w "$cache_file"; then
28942 test "x$cache_file" != "x/dev/null" &&
28943 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
28944 echo "$as_me: updating cache $cache_file" >&6;}
28945 cat confcache >$cache_file
28947 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
28948 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28953 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28954 # Let make expand exec_prefix.
28955 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28957 DEFS=-DHAVE_CONFIG_H
28961 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28962 # 1. Remove the extension, and $U if already installed.
28963 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28964 ac_i=`echo "$ac_i" | sed "$ac_script"`
28965 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28966 # will be set to the directory where LIBOBJS objects are built.
28967 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28968 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
28970 LIBOBJS=$ac_libobjs
28972 LTLIBOBJS=$ac_ltlibobjs
28975 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28976 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
28977 Usually this means the macro was only invoked conditionally." >&5
28978 echo "$as_me: error: conditional \"AMDEP\" was never defined.
28979 Usually this means the macro was only invoked conditionally." >&2;}
28980 { (exit 1); exit 1; }; }
28982 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28983 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
28984 Usually this means the macro was only invoked conditionally." >&5
28985 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
28986 Usually this means the macro was only invoked conditionally." >&2;}
28987 { (exit 1); exit 1; }; }
28989 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
28990 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
28991 Usually this means the macro was only invoked conditionally." >&5
28992 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
28993 Usually this means the macro was only invoked conditionally." >&2;}
28994 { (exit 1); exit 1; }; }
28996 if test -z "${BUILD_LINUX_TRUE}" && test -z "${BUILD_LINUX_FALSE}"; then
28997 { { echo "$as_me:$LINENO: error: conditional \"BUILD_LINUX\" was never defined.
28998 Usually this means the macro was only invoked conditionally." >&5
28999 echo "$as_me: error: conditional \"BUILD_LINUX\" was never defined.
29000 Usually this means the macro was only invoked conditionally." >&2;}
29001 { (exit 1); exit 1; }; }
29003 if test -z "${BUILD_FREEBSD_TRUE}" && test -z "${BUILD_FREEBSD_FALSE}"; then
29004 { { echo "$as_me:$LINENO: error: conditional \"BUILD_FREEBSD\" was never defined.
29005 Usually this means the macro was only invoked conditionally." >&5
29006 echo "$as_me: error: conditional \"BUILD_FREEBSD\" was never defined.
29007 Usually this means the macro was only invoked conditionally." >&2;}
29008 { (exit 1); exit 1; }; }
29010 if test -z "${BUILD_OPENBSD_TRUE}" && test -z "${BUILD_OPENBSD_FALSE}"; then
29011 { { echo "$as_me:$LINENO: error: conditional \"BUILD_OPENBSD\" was never defined.
29012 Usually this means the macro was only invoked conditionally." >&5
29013 echo "$as_me: error: conditional \"BUILD_OPENBSD\" was never defined.
29014 Usually this means the macro was only invoked conditionally." >&2;}
29015 { (exit 1); exit 1; }; }
29017 if test -z "${BUILD_CONFIG_OUTPUT_TRUE}" && test -z "${BUILD_CONFIG_OUTPUT_FALSE}"; then
29018 { { echo "$as_me:$LINENO: error: conditional \"BUILD_CONFIG_OUTPUT\" was never defined.
29019 Usually this means the macro was only invoked conditionally." >&5
29020 echo "$as_me: error: conditional \"BUILD_CONFIG_OUTPUT\" was never defined.
29021 Usually this means the macro was only invoked conditionally." >&2;}
29022 { (exit 1); exit 1; }; }
29024 if test -z "${BUILD_NCURSES_TRUE}" && test -z "${BUILD_NCURSES_FALSE}"; then
29025 { { echo "$as_me:$LINENO: error: conditional \"BUILD_NCURSES\" was never defined.
29026 Usually this means the macro was only invoked conditionally." >&5
29027 echo "$as_me: error: conditional \"BUILD_NCURSES\" was never defined.
29028 Usually this means the macro was only invoked conditionally." >&2;}
29029 { (exit 1); exit 1; }; }
29031 if test -z "${BUILD_AUDACIOUS_TRUE}" && test -z "${BUILD_AUDACIOUS_FALSE}"; then
29032 { { echo "$as_me:$LINENO: error: conditional \"BUILD_AUDACIOUS\" was never defined.
29033 Usually this means the macro was only invoked conditionally." >&5
29034 echo "$as_me: error: conditional \"BUILD_AUDACIOUS\" was never defined.
29035 Usually this means the macro was only invoked conditionally." >&2;}
29036 { (exit 1); exit 1; }; }
29038 if test -z "${BUILD_BMPX_TRUE}" && test -z "${BUILD_BMPX_FALSE}"; then
29039 { { echo "$as_me:$LINENO: error: conditional \"BUILD_BMPX\" was never defined.
29040 Usually this means the macro was only invoked conditionally." >&5
29041 echo "$as_me: error: conditional \"BUILD_BMPX\" was never defined.
29042 Usually this means the macro was only invoked conditionally." >&2;}
29043 { (exit 1); exit 1; }; }
29045 if test -z "${BUILD_IBM_TRUE}" && test -z "${BUILD_IBM_FALSE}"; then
29046 { { echo "$as_me:$LINENO: error: conditional \"BUILD_IBM\" was never defined.
29047 Usually this means the macro was only invoked conditionally." >&5
29048 echo "$as_me: error: conditional \"BUILD_IBM\" was never defined.
29049 Usually this means the macro was only invoked conditionally." >&2;}
29050 { (exit 1); exit 1; }; }
29052 if test -z "${BUILD_HDDTEMP_TRUE}" && test -z "${BUILD_HDDTEMP_FALSE}"; then
29053 { { echo "$as_me:$LINENO: error: conditional \"BUILD_HDDTEMP\" was never defined.
29054 Usually this means the macro was only invoked conditionally." >&5
29055 echo "$as_me: error: conditional \"BUILD_HDDTEMP\" was never defined.
29056 Usually this means the macro was only invoked conditionally." >&2;}
29057 { (exit 1); exit 1; }; }
29059 if test -z "${BUILD_APCUPSD_TRUE}" && test -z "${BUILD_APCUPSD_FALSE}"; then
29060 { { echo "$as_me:$LINENO: error: conditional \"BUILD_APCUPSD\" was never defined.
29061 Usually this means the macro was only invoked conditionally." >&5
29062 echo "$as_me: error: conditional \"BUILD_APCUPSD\" was never defined.
29063 Usually this means the macro was only invoked conditionally." >&2;}
29064 { (exit 1); exit 1; }; }
29066 if test -z "${BUILD_MATH_TRUE}" && test -z "${BUILD_MATH_FALSE}"; then
29067 { { echo "$as_me:$LINENO: error: conditional \"BUILD_MATH\" was never defined.
29068 Usually this means the macro was only invoked conditionally." >&5
29069 echo "$as_me: error: conditional \"BUILD_MATH\" was never defined.
29070 Usually this means the macro was only invoked conditionally." >&2;}
29071 { (exit 1); exit 1; }; }
29073 if test -z "${BUILD_MPD_TRUE}" && test -z "${BUILD_MPD_FALSE}"; then
29074 { { echo "$as_me:$LINENO: error: conditional \"BUILD_MPD\" was never defined.
29075 Usually this means the macro was only invoked conditionally." >&5
29076 echo "$as_me: error: conditional \"BUILD_MPD\" was never defined.
29077 Usually this means the macro was only invoked conditionally." >&2;}
29078 { (exit 1); exit 1; }; }
29080 if test -z "${BUILD_MOC_TRUE}" && test -z "${BUILD_MOC_FALSE}"; then
29081 { { echo "$as_me:$LINENO: error: conditional \"BUILD_MOC\" was never defined.
29082 Usually this means the macro was only invoked conditionally." >&5
29083 echo "$as_me: error: conditional \"BUILD_MOC\" was never defined.
29084 Usually this means the macro was only invoked conditionally." >&2;}
29085 { (exit 1); exit 1; }; }
29087 if test -z "${BUILD_XMMS2_TRUE}" && test -z "${BUILD_XMMS2_FALSE}"; then
29088 { { echo "$as_me:$LINENO: error: conditional \"BUILD_XMMS2\" was never defined.
29089 Usually this means the macro was only invoked conditionally." >&5
29090 echo "$as_me: error: conditional \"BUILD_XMMS2\" was never defined.
29091 Usually this means the macro was only invoked conditionally." >&2;}
29092 { (exit 1); exit 1; }; }
29094 if test -z "${BUILD_EVE_TRUE}" && test -z "${BUILD_EVE_FALSE}"; then
29095 { { echo "$as_me:$LINENO: error: conditional \"BUILD_EVE\" was never defined.
29096 Usually this means the macro was only invoked conditionally." >&5
29097 echo "$as_me: error: conditional \"BUILD_EVE\" was never defined.
29098 Usually this means the macro was only invoked conditionally." >&2;}
29099 { (exit 1); exit 1; }; }
29101 if test -z "${BUILD_RSS_TRUE}" && test -z "${BUILD_RSS_FALSE}"; then
29102 { { echo "$as_me:$LINENO: error: conditional \"BUILD_RSS\" was never defined.
29103 Usually this means the macro was only invoked conditionally." >&5
29104 echo "$as_me: error: conditional \"BUILD_RSS\" was never defined.
29105 Usually this means the macro was only invoked conditionally." >&2;}
29106 { (exit 1); exit 1; }; }
29108 if test -z "${BUILD_WEATHER_TRUE}" && test -z "${BUILD_WEATHER_FALSE}"; then
29109 { { echo "$as_me:$LINENO: error: conditional \"BUILD_WEATHER\" was never defined.
29110 Usually this means the macro was only invoked conditionally." >&5
29111 echo "$as_me: error: conditional \"BUILD_WEATHER\" was never defined.
29112 Usually this means the macro was only invoked conditionally." >&2;}
29113 { (exit 1); exit 1; }; }
29115 if test -z "${BUILD_XOAP_TRUE}" && test -z "${BUILD_XOAP_FALSE}"; then
29116 { { echo "$as_me:$LINENO: error: conditional \"BUILD_XOAP\" was never defined.
29117 Usually this means the macro was only invoked conditionally." >&5
29118 echo "$as_me: error: conditional \"BUILD_XOAP\" was never defined.
29119 Usually this means the macro was only invoked conditionally." >&2;}
29120 { (exit 1); exit 1; }; }
29122 if test -z "${BUILD_X11_TRUE}" && test -z "${BUILD_X11_FALSE}"; then
29123 { { echo "$as_me:$LINENO: error: conditional \"BUILD_X11\" was never defined.
29124 Usually this means the macro was only invoked conditionally." >&5
29125 echo "$as_me: error: conditional \"BUILD_X11\" was never defined.
29126 Usually this means the macro was only invoked conditionally." >&2;}
29127 { (exit 1); exit 1; }; }
29129 if test -z "${BUILD_IMLIB2_TRUE}" && test -z "${BUILD_IMLIB2_FALSE}"; then
29130 { { echo "$as_me:$LINENO: error: conditional \"BUILD_IMLIB2\" was never defined.
29131 Usually this means the macro was only invoked conditionally." >&5
29132 echo "$as_me: error: conditional \"BUILD_IMLIB2\" was never defined.
29133 Usually this means the macro was only invoked conditionally." >&2;}
29134 { (exit 1); exit 1; }; }
29136 if test -z "${BUILD_LUA_TRUE}" && test -z "${BUILD_LUA_FALSE}"; then
29137 { { echo "$as_me:$LINENO: error: conditional \"BUILD_LUA\" was never defined.
29138 Usually this means the macro was only invoked conditionally." >&5
29139 echo "$as_me: error: conditional \"BUILD_LUA\" was never defined.
29140 Usually this means the macro was only invoked conditionally." >&2;}
29141 { (exit 1); exit 1; }; }
29143 if test -z "${BUILD_LUA_CAIRO_TRUE}" && test -z "${BUILD_LUA_CAIRO_FALSE}"; then
29144 { { echo "$as_me:$LINENO: error: conditional \"BUILD_LUA_CAIRO\" was never defined.
29145 Usually this means the macro was only invoked conditionally." >&5
29146 echo "$as_me: error: conditional \"BUILD_LUA_CAIRO\" was never defined.
29147 Usually this means the macro was only invoked conditionally." >&2;}
29148 { (exit 1); exit 1; }; }
29150 if test -z "${BUILD_LUA_IMLIB2_TRUE}" && test -z "${BUILD_LUA_IMLIB2_FALSE}"; then
29151 { { echo "$as_me:$LINENO: error: conditional \"BUILD_LUA_IMLIB2\" was never defined.
29152 Usually this means the macro was only invoked conditionally." >&5
29153 echo "$as_me: error: conditional \"BUILD_LUA_IMLIB2\" was never defined.
29154 Usually this means the macro was only invoked conditionally." >&2;}
29155 { (exit 1); exit 1; }; }
29157 if test -z "${BUILD_WLAN_TRUE}" && test -z "${BUILD_WLAN_FALSE}"; then
29158 { { echo "$as_me:$LINENO: error: conditional \"BUILD_WLAN\" was never defined.
29159 Usually this means the macro was only invoked conditionally." >&5
29160 echo "$as_me: error: conditional \"BUILD_WLAN\" was never defined.
29161 Usually this means the macro was only invoked conditionally." >&2;}
29162 { (exit 1); exit 1; }; }
29164 if test -z "${BUILD_PORT_MONITORS_TRUE}" && test -z "${BUILD_PORT_MONITORS_FALSE}"; then
29165 { { echo "$as_me:$LINENO: error: conditional \"BUILD_PORT_MONITORS\" was never defined.
29166 Usually this means the macro was only invoked conditionally." >&5
29167 echo "$as_me: error: conditional \"BUILD_PORT_MONITORS\" was never defined.
29168 Usually this means the macro was only invoked conditionally." >&2;}
29169 { (exit 1); exit 1; }; }
29171 if test -z "${BUILD_ICONV_TRUE}" && test -z "${BUILD_ICONV_FALSE}"; then
29172 { { echo "$as_me:$LINENO: error: conditional \"BUILD_ICONV\" was never defined.
29173 Usually this means the macro was only invoked conditionally." >&5
29174 echo "$as_me: error: conditional \"BUILD_ICONV\" was never defined.
29175 Usually this means the macro was only invoked conditionally." >&2;}
29176 { (exit 1); exit 1; }; }
29178 if test -z "${BUILD_NVIDIA_TRUE}" && test -z "${BUILD_NVIDIA_FALSE}"; then
29179 { { echo "$as_me:$LINENO: error: conditional \"BUILD_NVIDIA\" was never defined.
29180 Usually this means the macro was only invoked conditionally." >&5
29181 echo "$as_me: error: conditional \"BUILD_NVIDIA\" was never defined.
29182 Usually this means the macro was only invoked conditionally." >&2;}
29183 { (exit 1); exit 1; }; }
29185 if test -z "${BUILD_CURL_TRUE}" && test -z "${BUILD_CURL_FALSE}"; then
29186 { { echo "$as_me:$LINENO: error: conditional \"BUILD_CURL\" was never defined.
29187 Usually this means the macro was only invoked conditionally." >&5
29188 echo "$as_me: error: conditional \"BUILD_CURL\" was never defined.
29189 Usually this means the macro was only invoked conditionally." >&2;}
29190 { (exit 1); exit 1; }; }
29192 if test -z "${HAVE_DOCSTUFF_TRUE}" && test -z "${HAVE_DOCSTUFF_FALSE}"; then
29193 { { echo "$as_me:$LINENO: error: conditional \"HAVE_DOCSTUFF\" was never defined.
29194 Usually this means the macro was only invoked conditionally." >&5
29195 echo "$as_me: error: conditional \"HAVE_DOCSTUFF\" was never defined.
29196 Usually this means the macro was only invoked conditionally." >&2;}
29197 { (exit 1); exit 1; }; }
29199 if test -z "${HAVE_DOCSTUFF_TRUE}" && test -z "${HAVE_DOCSTUFF_FALSE}"; then
29200 { { echo "$as_me:$LINENO: error: conditional \"HAVE_DOCSTUFF\" was never defined.
29201 Usually this means the macro was only invoked conditionally." >&5
29202 echo "$as_me: error: conditional \"HAVE_DOCSTUFF\" was never defined.
29203 Usually this means the macro was only invoked conditionally." >&2;}
29204 { (exit 1); exit 1; }; }
29207 : ${CONFIG_STATUS=./config.status}
29208 ac_clean_files_save=$ac_clean_files
29209 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29210 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29211 echo "$as_me: creating $CONFIG_STATUS" >&6;}
29212 cat >$CONFIG_STATUS <<_ACEOF
29214 # Generated by $as_me.
29215 # Run this file to recreate the current configuration.
29216 # Compiler output produced by configure, useful for debugging
29217 # configure, is in config.log if it exists.
29220 ac_cs_recheck=false
29222 SHELL=\${CONFIG_SHELL-$SHELL}
29225 cat >>$CONFIG_STATUS <<\_ACEOF
29226 ## --------------------- ##
29227 ## M4sh Initialization. ##
29228 ## --------------------- ##
29230 # Be more Bourne compatible
29231 DUALCASE=1; export DUALCASE # for MKS sh
29232 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29235 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
29236 # is contrary to our usage. Disable this feature.
29237 alias -g '${1+"$@"}'='"$@"'
29238 setopt NO_GLOB_SUBST
29240 case `(set -o) 2>/dev/null` in
29241 *posix*) set -o posix ;;
29250 # Avoid depending upon Character Ranges.
29251 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29252 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29253 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29254 as_cr_digits='0123456789'
29255 as_cr_alnum=$as_cr_Letters$as_cr_digits
29257 # The user is always right.
29258 if test "${PATH_SEPARATOR+set}" != set; then
29259 echo "#! /bin/sh" >conf$$.sh
29260 echo "exit 0" >>conf$$.sh
29262 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
29270 # Support unset when possible.
29271 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29279 # We need space, tab and new line, in precisely that order. Quoting is
29280 # there to prevent editors from complaining about space-tab.
29281 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29282 # splitting by setting IFS to empty value.)
29287 # Find who we are. Look in the path if we contain no directory separator.
29289 *[\\/]* ) as_myself=$0 ;;
29290 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29291 for as_dir in $PATH
29294 test -z "$as_dir" && as_dir=.
29295 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29301 # We did not find ourselves, most probably we were run as `sh COMMAND'
29302 # in which case we are not to be found in the path.
29303 if test "x$as_myself" = x; then
29306 if test ! -f "$as_myself"; then
29307 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29308 { (exit 1); exit 1; }
29311 # Work around bugs in pre-3.0 UWIN ksh.
29312 for as_var in ENV MAIL MAILPATH
29313 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29321 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29322 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29323 LC_TELEPHONE LC_TIME
29325 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
29326 eval $as_var=C; export $as_var
29328 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29332 # Required to use basename.
29333 if expr a : '\(a\)' >/dev/null 2>&1 &&
29334 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29340 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29341 as_basename=basename
29347 # Name of the executable.
29348 as_me=`$as_basename -- "$0" ||
29349 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29350 X"$0" : 'X\(//\)$' \| \
29351 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29353 sed '/^.*\/\([^/][^/]*\)\/*$/{
29372 as_lineno_1=$LINENO
29373 as_lineno_2=$LINENO
29374 test "x$as_lineno_1" != "x$as_lineno_2" &&
29375 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
29377 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29378 # uniformly replaced by the line number. The first 'sed' inserts a
29379 # line-number line after each line using $LINENO; the second 'sed'
29380 # does the real work. The second script uses 'N' to pair each
29381 # line-number line with the line containing $LINENO, and appends
29382 # trailing '-' during substitution so that $LINENO is not a special
29383 # case at line end.
29384 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29385 # scripts with optimization help from Paolo Bonzini. Blame Lee
29386 # E. McMahon (1931-1989) for sed's syntax. :-)
29398 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
29401 ' >$as_me.lineno &&
29402 chmod +x "$as_me.lineno" ||
29403 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
29404 { (exit 1); exit 1; }; }
29406 # Don't try to exec as it changes $[0], causing all sort of problems
29407 # (the dirname of $[0] is not the place where we might find the
29408 # original and so on. Autoconf is especially sensitive to this).
29409 . "./$as_me.lineno"
29410 # Exit status is that of the last command.
29415 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29421 ECHO_C= ECHO_N= ECHO_T=
29422 case `echo -n x` in
29424 case `echo 'x\c'` in
29425 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29432 if expr a : '\(a\)' >/dev/null 2>&1 &&
29433 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29439 rm -f conf$$ conf$$.exe conf$$.file
29440 if test -d conf$$.dir; then
29441 rm -f conf$$.dir/conf$$.file
29447 if ln -s conf$$.file conf$$ 2>/dev/null; then
29449 # ... but there are two gotchas:
29450 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29451 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29452 # In both cases, we have to default to `cp -p'.
29453 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29455 elif ln conf$$.file conf$$ 2>/dev/null; then
29460 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29461 rmdir conf$$.dir 2>/dev/null
29463 if mkdir -p . 2>/dev/null; then
29466 test -d ./-p && rmdir ./-p
29470 if test -x / >/dev/null 2>&1; then
29471 as_test_x='test -x'
29473 if ls -dL / >/dev/null 2>&1; then
29480 if test -d "$1"; then
29486 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
29487 ???[sx]*):;;*)false;;esac;fi
29491 as_executable_p=$as_test_x
29493 # Sed expression to map a string onto a valid CPP name.
29494 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29496 # Sed expression to map a string onto a valid variable name.
29497 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29502 # Save the log message, to keep $[0] and so on meaningful, and to
29503 # report actual input values of CONFIG_FILES etc. instead of their
29504 # values after options handling.
29506 This file was extended by Conky $as_me 1.8.5_pre2390, which was
29507 generated by GNU Autoconf 2.61. Invocation command line was
29509 CONFIG_FILES = $CONFIG_FILES
29510 CONFIG_HEADERS = $CONFIG_HEADERS
29511 CONFIG_LINKS = $CONFIG_LINKS
29512 CONFIG_COMMANDS = $CONFIG_COMMANDS
29515 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29520 cat >>$CONFIG_STATUS <<_ACEOF
29521 # Files that config.status was made for.
29522 config_files="$ac_config_files"
29523 config_headers="$ac_config_headers"
29524 config_commands="$ac_config_commands"
29528 cat >>$CONFIG_STATUS <<\_ACEOF
29530 \`$as_me' instantiates files from templates according to the
29531 current configuration.
29533 Usage: $0 [OPTIONS] [FILE]...
29535 -h, --help print this help, then exit
29536 -V, --version print version number and configuration settings, then exit
29537 -q, --quiet do not print progress messages
29538 -d, --debug don't remove temporary files
29539 --recheck update $as_me by reconfiguring in the same conditions
29540 --file=FILE[:TEMPLATE]
29541 instantiate the configuration file FILE
29542 --header=FILE[:TEMPLATE]
29543 instantiate the configuration header FILE
29545 Configuration files:
29548 Configuration headers:
29551 Configuration commands:
29554 Report bugs to <bug-autoconf@gnu.org>."
29557 cat >>$CONFIG_STATUS <<_ACEOF
29559 Conky config.status 1.8.5_pre2390
29560 configured by $0, generated by GNU Autoconf 2.61,
29561 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29563 Copyright (C) 2006 Free Software Foundation, Inc.
29564 This config.status script is free software; the Free Software Foundation
29565 gives unlimited permission to copy, distribute and modify it."
29572 cat >>$CONFIG_STATUS <<\_ACEOF
29573 # If no file are specified by the user, then we need to provide default
29574 # value. By we need to know if files were specified by the user.
29580 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29581 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29592 # Handling of the options.
29593 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29595 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29596 echo "$ac_cs_version"; exit ;;
29597 --debug | --debu | --deb | --de | --d | -d )
29599 --file | --fil | --fi | --f )
29601 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
29602 ac_need_defaults=false;;
29603 --header | --heade | --head | --hea )
29605 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
29606 ac_need_defaults=false;;
29608 # Conflict between --help and --header
29609 { echo "$as_me: error: ambiguous option: $1
29610 Try \`$0 --help' for more information." >&2
29611 { (exit 1); exit 1; }; };;
29612 --help | --hel | -h )
29613 echo "$ac_cs_usage"; exit ;;
29614 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29615 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29618 # This is an error.
29619 -*) { echo "$as_me: error: unrecognized option: $1
29620 Try \`$0 --help' for more information." >&2
29621 { (exit 1); exit 1; }; } ;;
29623 *) ac_config_targets="$ac_config_targets $1"
29624 ac_need_defaults=false ;;
29630 ac_configure_extra_args=
29632 if $ac_cs_silent; then
29634 ac_configure_extra_args="$ac_configure_extra_args --silent"
29638 cat >>$CONFIG_STATUS <<_ACEOF
29639 if \$ac_cs_recheck; then
29640 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
29641 CONFIG_SHELL=$SHELL
29642 export CONFIG_SHELL
29643 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29647 cat >>$CONFIG_STATUS <<\_ACEOF
29651 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29652 ## Running $as_me. ##
29658 cat >>$CONFIG_STATUS <<_ACEOF
29662 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
29666 cat >>$CONFIG_STATUS <<\_ACEOF
29668 # Handling of arguments.
29669 for ac_config_target in $ac_config_targets
29671 case $ac_config_target in
29672 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
29673 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29674 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29675 "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
29676 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
29677 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
29678 "src/build.h") CONFIG_FILES="$CONFIG_FILES src/build.h" ;;
29679 "lua/Makefile") CONFIG_FILES="$CONFIG_FILES lua/Makefile" ;;
29680 "src/dbus/Makefile") CONFIG_FILES="$CONFIG_FILES src/dbus/Makefile" ;;
29682 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29683 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29684 { (exit 1); exit 1; }; };;
29689 # If the user did not use the arguments to specify the items to instantiate,
29690 # then the envvar interface is used. Set only those that are not.
29691 # We use the long form for the default assignment because of an extremely
29692 # bizarre bug on SunOS 4.1.3.
29693 if $ac_need_defaults; then
29694 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29695 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29696 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29699 # Have a temporary directory for convenience. Make it in the build tree
29700 # simply because there is no reason against having it here, and in addition,
29701 # creating and moving files from /tmp can sometimes cause problems.
29702 # Hook for its removal unless debugging.
29703 # Note that there is a small window in which the directory will not be cleaned:
29704 # after its creation but before its name has been assigned to `$tmp'.
29708 trap 'exit_status=$?
29709 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29711 trap '{ (exit 1); exit 1; }' 1 2 13 15
29713 # Create a (secure) tmp directory for tmp files.
29716 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29717 test -n "$tmp" && test -d "$tmp"
29720 tmp=./conf$$-$RANDOM
29721 (umask 077 && mkdir "$tmp")
29724 echo "$me: cannot create a temporary directory in ." >&2
29725 { (exit 1); exit 1; }
29729 # Set up the sed scripts for CONFIG_FILES section.
29732 # No need to generate the scripts if there are no CONFIG_FILES.
29733 # This happens for instance when ./config.status config.h
29734 if test -n "$CONFIG_FILES"; then
29741 for ac_last_try in false false false false false :; do
29742 cat >conf$$subs.sed <<_ACEOF
29743 SHELL!$SHELL$ac_delim
29744 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
29745 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
29746 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
29747 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
29748 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
29749 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
29750 exec_prefix!$exec_prefix$ac_delim
29751 prefix!$prefix$ac_delim
29752 program_transform_name!$program_transform_name$ac_delim
29753 bindir!$bindir$ac_delim
29754 sbindir!$sbindir$ac_delim
29755 libexecdir!$libexecdir$ac_delim
29756 datarootdir!$datarootdir$ac_delim
29757 datadir!$datadir$ac_delim
29758 sysconfdir!$sysconfdir$ac_delim
29759 sharedstatedir!$sharedstatedir$ac_delim
29760 localstatedir!$localstatedir$ac_delim
29761 includedir!$includedir$ac_delim
29762 oldincludedir!$oldincludedir$ac_delim
29763 docdir!$docdir$ac_delim
29764 infodir!$infodir$ac_delim
29765 htmldir!$htmldir$ac_delim
29766 dvidir!$dvidir$ac_delim
29767 pdfdir!$pdfdir$ac_delim
29768 psdir!$psdir$ac_delim
29769 libdir!$libdir$ac_delim
29770 localedir!$localedir$ac_delim
29771 mandir!$mandir$ac_delim
29772 DEFS!$DEFS$ac_delim
29773 ECHO_C!$ECHO_C$ac_delim
29774 ECHO_N!$ECHO_N$ac_delim
29775 ECHO_T!$ECHO_T$ac_delim
29776 LIBS!$LIBS$ac_delim
29777 build_alias!$build_alias$ac_delim
29778 host_alias!$host_alias$ac_delim
29779 target_alias!$target_alias$ac_delim
29780 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
29781 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
29782 INSTALL_DATA!$INSTALL_DATA$ac_delim
29783 CYGPATH_W!$CYGPATH_W$ac_delim
29784 PACKAGE!$PACKAGE$ac_delim
29785 VERSION!$VERSION$ac_delim
29786 ACLOCAL!$ACLOCAL$ac_delim
29787 AUTOCONF!$AUTOCONF$ac_delim
29788 AUTOMAKE!$AUTOMAKE$ac_delim
29789 AUTOHEADER!$AUTOHEADER$ac_delim
29790 MAKEINFO!$MAKEINFO$ac_delim
29791 AMTAR!$AMTAR$ac_delim
29792 install_sh!$install_sh$ac_delim
29793 STRIP!$STRIP$ac_delim
29794 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
29795 mkdir_p!$mkdir_p$ac_delim
29797 SET_MAKE!$SET_MAKE$ac_delim
29798 am__leading_dot!$am__leading_dot$ac_delim
29799 CFLAGS!$CFLAGS$ac_delim
29801 LDFLAGS!$LDFLAGS$ac_delim
29802 CPPFLAGS!$CPPFLAGS$ac_delim
29803 ac_ct_CC!$ac_ct_CC$ac_delim
29804 EXEEXT!$EXEEXT$ac_delim
29805 OBJEXT!$OBJEXT$ac_delim
29806 DEPDIR!$DEPDIR$ac_delim
29807 am__include!$am__include$ac_delim
29808 am__quote!$am__quote$ac_delim
29809 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
29810 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
29811 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
29812 CCDEPMODE!$CCDEPMODE$ac_delim
29813 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
29814 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
29816 build!$build$ac_delim
29817 build_cpu!$build_cpu$ac_delim
29818 build_vendor!$build_vendor$ac_delim
29819 build_os!$build_os$ac_delim
29820 host!$host$ac_delim
29821 host_cpu!$host_cpu$ac_delim
29822 host_vendor!$host_vendor$ac_delim
29823 host_os!$host_os$ac_delim
29824 GREP!$GREP$ac_delim
29825 EGREP!$EGREP$ac_delim
29826 LN_S!$LN_S$ac_delim
29827 ECHO!$ECHO$ac_delim
29829 RANLIB!$RANLIB$ac_delim
29830 DSYMUTIL!$DSYMUTIL$ac_delim
29831 NMEDIT!$NMEDIT$ac_delim
29834 CXXFLAGS!$CXXFLAGS$ac_delim
29835 ac_ct_CXX!$ac_ct_CXX$ac_delim
29836 CXXDEPMODE!$CXXDEPMODE$ac_delim
29837 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
29838 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
29839 CXXCPP!$CXXCPP$ac_delim
29842 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
29844 elif $ac_last_try; then
29845 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29846 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29847 { (exit 1); exit 1; }; }
29849 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29853 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
29854 if test -n "$ac_eof"; then
29855 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
29856 ac_eof=`expr $ac_eof + 1`
29859 cat >>$CONFIG_STATUS <<_ACEOF
29860 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
29861 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29864 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29865 s/^/s,@/; s/!/@,|#_!!_#|/
29868 s/'"$ac_delim"'$/,g/; t
29870 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29871 ' >>$CONFIG_STATUS <conf$$subs.sed
29872 rm -f conf$$subs.sed
29873 cat >>$CONFIG_STATUS <<_ACEOF
29879 for ac_last_try in false false false false false :; do
29880 cat >conf$$subs.sed <<_ACEOF
29882 FFLAGS!$FFLAGS$ac_delim
29883 ac_ct_F77!$ac_ct_F77$ac_delim
29884 LIBTOOL!$LIBTOOL$ac_delim
29885 HAVE_PKGCONFIG!$HAVE_PKGCONFIG$ac_delim
29886 PKG_CONFIG!$PKG_CONFIG$ac_delim
29887 BUILD_LINUX_TRUE!$BUILD_LINUX_TRUE$ac_delim
29888 BUILD_LINUX_FALSE!$BUILD_LINUX_FALSE$ac_delim
29889 BUILD_FREEBSD_TRUE!$BUILD_FREEBSD_TRUE$ac_delim
29890 BUILD_FREEBSD_FALSE!$BUILD_FREEBSD_FALSE$ac_delim
29891 BUILD_OPENBSD_TRUE!$BUILD_OPENBSD_TRUE$ac_delim
29892 BUILD_OPENBSD_FALSE!$BUILD_OPENBSD_FALSE$ac_delim
29893 BUILD_DATE!$BUILD_DATE$ac_delim
29894 BUILD_ARCH!$BUILD_ARCH$ac_delim
29895 BUILD_CONFIG_OUTPUT_TRUE!$BUILD_CONFIG_OUTPUT_TRUE$ac_delim
29896 BUILD_CONFIG_OUTPUT_FALSE!$BUILD_CONFIG_OUTPUT_FALSE$ac_delim
29897 BUILD_NCURSES_TRUE!$BUILD_NCURSES_TRUE$ac_delim
29898 BUILD_NCURSES_FALSE!$BUILD_NCURSES_FALSE$ac_delim
29899 BUILD_AUDACIOUS_TRUE!$BUILD_AUDACIOUS_TRUE$ac_delim
29900 BUILD_AUDACIOUS_FALSE!$BUILD_AUDACIOUS_FALSE$ac_delim
29901 Audacious_CFLAGS!$Audacious_CFLAGS$ac_delim
29902 Audacious_LIBS!$Audacious_LIBS$ac_delim
29903 BUILD_BMPX_TRUE!$BUILD_BMPX_TRUE$ac_delim
29904 BUILD_BMPX_FALSE!$BUILD_BMPX_FALSE$ac_delim
29905 BMPx_CFLAGS!$BMPx_CFLAGS$ac_delim
29906 BMPx_LIBS!$BMPx_LIBS$ac_delim
29907 BUILD_IBM_TRUE!$BUILD_IBM_TRUE$ac_delim
29908 BUILD_IBM_FALSE!$BUILD_IBM_FALSE$ac_delim
29909 BUILD_HDDTEMP_TRUE!$BUILD_HDDTEMP_TRUE$ac_delim
29910 BUILD_HDDTEMP_FALSE!$BUILD_HDDTEMP_FALSE$ac_delim
29911 BUILD_APCUPSD_TRUE!$BUILD_APCUPSD_TRUE$ac_delim
29912 BUILD_APCUPSD_FALSE!$BUILD_APCUPSD_FALSE$ac_delim
29913 BUILD_MATH_TRUE!$BUILD_MATH_TRUE$ac_delim
29914 BUILD_MATH_FALSE!$BUILD_MATH_FALSE$ac_delim
29915 BUILD_MPD_TRUE!$BUILD_MPD_TRUE$ac_delim
29916 BUILD_MPD_FALSE!$BUILD_MPD_FALSE$ac_delim
29917 BUILD_MOC_TRUE!$BUILD_MOC_TRUE$ac_delim
29918 BUILD_MOC_FALSE!$BUILD_MOC_FALSE$ac_delim
29919 BUILD_XMMS2_TRUE!$BUILD_XMMS2_TRUE$ac_delim
29920 BUILD_XMMS2_FALSE!$BUILD_XMMS2_FALSE$ac_delim
29921 XMMS2_CFLAGS!$XMMS2_CFLAGS$ac_delim
29922 XMMS2_LIBS!$XMMS2_LIBS$ac_delim
29923 BUILD_EVE_TRUE!$BUILD_EVE_TRUE$ac_delim
29924 BUILD_EVE_FALSE!$BUILD_EVE_FALSE$ac_delim
29925 BUILD_RSS_TRUE!$BUILD_RSS_TRUE$ac_delim
29926 BUILD_RSS_FALSE!$BUILD_RSS_FALSE$ac_delim
29927 BUILD_WEATHER_TRUE!$BUILD_WEATHER_TRUE$ac_delim
29928 BUILD_WEATHER_FALSE!$BUILD_WEATHER_FALSE$ac_delim
29929 BUILD_XOAP_TRUE!$BUILD_XOAP_TRUE$ac_delim
29930 BUILD_XOAP_FALSE!$BUILD_XOAP_FALSE$ac_delim
29931 BUILD_X11_TRUE!$BUILD_X11_TRUE$ac_delim
29932 BUILD_X11_FALSE!$BUILD_X11_FALSE$ac_delim
29933 X11_CFLAGS!$X11_CFLAGS$ac_delim
29934 X11_LIBS!$X11_LIBS$ac_delim
29935 XMKMF!$XMKMF$ac_delim
29936 X_CFLAGS!$X_CFLAGS$ac_delim
29937 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
29938 X_LIBS!$X_LIBS$ac_delim
29939 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
29940 Imlib2_CFLAGS!$Imlib2_CFLAGS$ac_delim
29941 Imlib2_LIBS!$Imlib2_LIBS$ac_delim
29942 BUILD_IMLIB2_TRUE!$BUILD_IMLIB2_TRUE$ac_delim
29943 BUILD_IMLIB2_FALSE!$BUILD_IMLIB2_FALSE$ac_delim
29944 BUILD_LUA_TRUE!$BUILD_LUA_TRUE$ac_delim
29945 BUILD_LUA_FALSE!$BUILD_LUA_FALSE$ac_delim
29946 LUA_CFLAGS!$LUA_CFLAGS$ac_delim
29947 LUA_LIBS!$LUA_LIBS$ac_delim
29948 LUA51_CFLAGS!$LUA51_CFLAGS$ac_delim
29949 LUA51_LIBS!$LUA51_LIBS$ac_delim
29950 cairo_CFLAGS!$cairo_CFLAGS$ac_delim
29951 cairo_LIBS!$cairo_LIBS$ac_delim
29952 cairo_xlib_CFLAGS!$cairo_xlib_CFLAGS$ac_delim
29953 cairo_xlib_LIBS!$cairo_xlib_LIBS$ac_delim
29954 toluapp!$toluapp$ac_delim
29955 tolua_LIBS!$tolua_LIBS$ac_delim
29956 tolua_CFLAGS!$tolua_CFLAGS$ac_delim
29957 BUILD_LUA_CAIRO_TRUE!$BUILD_LUA_CAIRO_TRUE$ac_delim
29958 BUILD_LUA_CAIRO_FALSE!$BUILD_LUA_CAIRO_FALSE$ac_delim
29959 BUILD_LUA_IMLIB2_TRUE!$BUILD_LUA_IMLIB2_TRUE$ac_delim
29960 BUILD_LUA_IMLIB2_FALSE!$BUILD_LUA_IMLIB2_FALSE$ac_delim
29961 BUILD_WLAN_TRUE!$BUILD_WLAN_TRUE$ac_delim
29962 BUILD_WLAN_FALSE!$BUILD_WLAN_FALSE$ac_delim
29963 BUILD_PORT_MONITORS_TRUE!$BUILD_PORT_MONITORS_TRUE$ac_delim
29964 BUILD_PORT_MONITORS_FALSE!$BUILD_PORT_MONITORS_FALSE$ac_delim
29965 LIBICONV!$LIBICONV$ac_delim
29966 LTLIBICONV!$LTLIBICONV$ac_delim
29967 BUILD_ICONV_TRUE!$BUILD_ICONV_TRUE$ac_delim
29968 BUILD_ICONV_FALSE!$BUILD_ICONV_FALSE$ac_delim
29969 Xext_CFLAGS!$Xext_CFLAGS$ac_delim
29970 Xext_LIBS!$Xext_LIBS$ac_delim
29971 XDamage_CFLAGS!$XDamage_CFLAGS$ac_delim
29972 XDamage_LIBS!$XDamage_LIBS$ac_delim
29973 Xft_CFLAGS!$Xft_CFLAGS$ac_delim
29974 Xft_LIBS!$Xft_LIBS$ac_delim
29975 BUILD_NVIDIA_TRUE!$BUILD_NVIDIA_TRUE$ac_delim
29976 BUILD_NVIDIA_FALSE!$BUILD_NVIDIA_FALSE$ac_delim
29977 GLib2_CFLAGS!$GLib2_CFLAGS$ac_delim
29980 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
29982 elif $ac_last_try; then
29983 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29984 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29985 { (exit 1); exit 1; }; }
29987 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29991 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
29992 if test -n "$ac_eof"; then
29993 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
29994 ac_eof=`expr $ac_eof + 1`
29997 cat >>$CONFIG_STATUS <<_ACEOF
29998 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
29999 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30002 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30003 s/^/s,@/; s/!/@,|#_!!_#|/
30006 s/'"$ac_delim"'$/,g/; t
30008 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30009 ' >>$CONFIG_STATUS <conf$$subs.sed
30010 rm -f conf$$subs.sed
30011 cat >>$CONFIG_STATUS <<_ACEOF
30017 for ac_last_try in false false false false false :; do
30018 cat >conf$$subs.sed <<_ACEOF
30019 GLib2_LIBS!$GLib2_LIBS$ac_delim
30020 libcurl_CFLAGS!$libcurl_CFLAGS$ac_delim
30021 libcurl_LIBS!$libcurl_LIBS$ac_delim
30022 BUILD_CURL_TRUE!$BUILD_CURL_TRUE$ac_delim
30023 BUILD_CURL_FALSE!$BUILD_CURL_FALSE$ac_delim
30024 libxml2_CFLAGS!$libxml2_CFLAGS$ac_delim
30025 libxml2_LIBS!$libxml2_LIBS$ac_delim
30026 db2x_xsltproc_cmd!$db2x_xsltproc_cmd$ac_delim
30027 db2x_manxml_cmd!$db2x_manxml_cmd$ac_delim
30028 xsltproc_cmd!$xsltproc_cmd$ac_delim
30029 HAVE_DOCSTUFF_TRUE!$HAVE_DOCSTUFF_TRUE$ac_delim
30030 HAVE_DOCSTUFF_FALSE!$HAVE_DOCSTUFF_FALSE$ac_delim
30031 conky_CFLAGS!$conky_CFLAGS$ac_delim
30032 conky_LIBS!$conky_LIBS$ac_delim
30033 LIBOBJS!$LIBOBJS$ac_delim
30034 LTLIBOBJS!$LTLIBOBJS$ac_delim
30037 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 16; then
30039 elif $ac_last_try; then
30040 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30041 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30042 { (exit 1); exit 1; }; }
30044 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30048 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30049 if test -n "$ac_eof"; then
30050 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30051 ac_eof=`expr $ac_eof + 1`
30054 cat >>$CONFIG_STATUS <<_ACEOF
30055 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
30056 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
30059 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30060 s/^/s,@/; s/!/@,|#_!!_#|/
30063 s/'"$ac_delim"'$/,g/; t
30065 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30066 ' >>$CONFIG_STATUS <conf$$subs.sed
30067 rm -f conf$$subs.sed
30068 cat >>$CONFIG_STATUS <<_ACEOF
30075 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30076 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30077 # trailing colons and then remove the whole line if VPATH becomes empty
30078 # (actually we leave an empty line to preserve line numbers).
30079 if test "x$srcdir" = x.; then
30080 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30081 s/:*\$(srcdir):*/:/
30082 s/:*\${srcdir}:*/:/
30084 s/^\([^=]*=[ ]*\):*/\1/
30090 cat >>$CONFIG_STATUS <<\_ACEOF
30091 fi # test -n "$CONFIG_FILES"
30094 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
30097 :[FHLC]) ac_mode=$ac_tag; continue;;
30099 case $ac_mode$ac_tag in
30101 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
30102 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
30103 { (exit 1); exit 1; }; };;
30104 :[FH]-) ac_tag=-:-;;
30105 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30122 -) ac_f="$tmp/stdin";;
30123 *) # Look for the file first in the build tree, then in the source tree
30124 # (if the path is not absolute). The absolute path cannot be DOS-style,
30125 # because $ac_f cannot contain `:'.
30129 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30131 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
30132 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
30133 { (exit 1); exit 1; }; };;
30135 ac_file_inputs="$ac_file_inputs $ac_f"
30138 # Let's still pretend it is `configure' which instantiates (i.e., don't
30139 # use $as_me), people would be surprised to read:
30140 # /* config.h. Generated by config.status. */
30141 configure_input="Generated from "`IFS=:
30142 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
30143 if test x"$ac_file" != x-; then
30144 configure_input="$ac_file. $configure_input"
30145 { echo "$as_me:$LINENO: creating $ac_file" >&5
30146 echo "$as_me: creating $ac_file" >&6;}
30150 *:-:* | *:-) cat >"$tmp/stdin";;
30155 ac_dir=`$as_dirname -- "$ac_file" ||
30156 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30157 X"$ac_file" : 'X\(//\)[^/]' \| \
30158 X"$ac_file" : 'X\(//\)$' \| \
30159 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30165 /^X\(\/\/\)[^/].*/{
30180 -*) as_dir=./$as_dir;;
30182 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30186 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
30187 *) as_qdir=$as_dir;;
30189 as_dirs="'$as_qdir' $as_dirs"
30190 as_dir=`$as_dirname -- "$as_dir" ||
30191 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30192 X"$as_dir" : 'X\(//\)[^/]' \| \
30193 X"$as_dir" : 'X\(//\)$' \| \
30194 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30196 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30200 /^X\(\/\/\)[^/].*/{
30213 test -d "$as_dir" && break
30215 test -z "$as_dirs" || eval "mkdir $as_dirs"
30216 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30217 echo "$as_me: error: cannot create directory $as_dir" >&2;}
30218 { (exit 1); exit 1; }; }; }
30222 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30224 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30225 # A ".." for each directory in $ac_dir_suffix.
30226 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
30227 case $ac_top_builddir_sub in
30228 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30229 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30232 ac_abs_top_builddir=$ac_pwd
30233 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30234 # for backward compatibility:
30235 ac_top_builddir=$ac_top_build_prefix
30238 .) # We are building in place.
30240 ac_top_srcdir=$ac_top_builddir_sub
30241 ac_abs_top_srcdir=$ac_pwd ;;
30242 [\\/]* | ?:[\\/]* ) # Absolute name.
30243 ac_srcdir=$srcdir$ac_dir_suffix;
30244 ac_top_srcdir=$srcdir
30245 ac_abs_top_srcdir=$srcdir ;;
30246 *) # Relative name.
30247 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30248 ac_top_srcdir=$ac_top_build_prefix$srcdir
30249 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30251 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30261 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30262 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
30266 cat >>$CONFIG_STATUS <<\_ACEOF
30267 # If the template does not know about datarootdir, expand it.
30268 # FIXME: This hack should be removed a few years after 2.60.
30269 ac_datarootdir_hack=; ac_datarootdir_seen=
30271 case `sed -n '/datarootdir/ {
30280 ' $ac_file_inputs` in
30281 *datarootdir*) ac_datarootdir_seen=yes;;
30282 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30283 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30284 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30286 cat >>$CONFIG_STATUS <<_ACEOF
30287 ac_datarootdir_hack='
30288 s&@datadir@&$datadir&g
30289 s&@docdir@&$docdir&g
30290 s&@infodir@&$infodir&g
30291 s&@localedir@&$localedir&g
30292 s&@mandir@&$mandir&g
30293 s&\\\${datarootdir}&$datarootdir&g' ;;
30297 # Neutralize VPATH when `$srcdir' = `.'.
30298 # Shell code in configure.ac might set extrasub.
30299 # FIXME: do we really want to maintain this feature?
30300 cat >>$CONFIG_STATUS <<_ACEOF
30304 cat >>$CONFIG_STATUS <<\_ACEOF
30306 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30307 s&@configure_input@&$configure_input&;t t
30308 s&@top_builddir@&$ac_top_builddir_sub&;t t
30309 s&@srcdir@&$ac_srcdir&;t t
30310 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30311 s&@top_srcdir@&$ac_top_srcdir&;t t
30312 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30313 s&@builddir@&$ac_builddir&;t t
30314 s&@abs_builddir@&$ac_abs_builddir&;t t
30315 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30316 s&@INSTALL@&$ac_INSTALL&;t t
30317 $ac_datarootdir_hack
30318 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
30320 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30321 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30322 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30323 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30324 which seems to be undefined. Please make sure it is defined." >&5
30325 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30326 which seems to be undefined. Please make sure it is defined." >&2;}
30330 -) cat "$tmp/out"; rm -f "$tmp/out";;
30331 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
30340 # Transform confdefs.h into a sed script `conftest.defines', that
30341 # substitutes the proper values into config.h.in to produce config.h.
30342 rm -f conftest.defines conftest.tail
30343 # First, append a space to every undef/define line, to ease matching.
30344 echo 's/$/ /' >conftest.defines
30345 # Then, protect against being on the right side of a sed subst, or in
30346 # an unquoted here document, in config.status. If some macros were
30347 # called several times there might be several #defines for the same
30348 # symbol, which is useless. But do not sort them, since the last
30349 # AC_DEFINE must be honored.
30350 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30351 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
30352 # NAME is the cpp macro being defined, VALUE is the value it is being given.
30353 # PARAMS is the parameter list in the macro definition--in most cases, it's
30354 # just an empty string.
30355 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
30356 ac_dB='\\)[ (].*,\\1define\\2'
30364 s/^[ ]*#[ ]*define[ ][ ]*//
30369 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
30370 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
30371 ' >>conftest.defines
30373 # Remove the space that was appended to ease matching.
30374 # Then replace #undef with comments. This is necessary, for
30375 # example, in the case of _POSIX_SOURCE, which is predefined and required
30376 # on some systems where configure will not decide to define it.
30377 # (The regexp can be short, since the line contains either #define or #undef.)
30379 s,^[ #]*u.*,/* & */,' >>conftest.defines
30381 # Break up conftest.defines:
30382 ac_max_sed_lines=50
30384 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
30385 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
30386 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
30388 ac_in='$ac_file_inputs'
30389 ac_out='"$tmp/out1"'
30390 ac_nxt='"$tmp/out2"'
30394 # Write a here document:
30395 cat >>$CONFIG_STATUS <<_ACEOF
30396 # First, check the format of the line:
30397 cat >"\$tmp/defines.sed" <<\\CEOF
30398 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
30399 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
30403 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
30405 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
30406 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
30407 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
30408 grep . conftest.tail >/dev/null || break
30409 rm -f conftest.defines
30410 mv conftest.tail conftest.defines
30412 rm -f conftest.defines conftest.tail
30414 echo "ac_result=$ac_in" >>$CONFIG_STATUS
30415 cat >>$CONFIG_STATUS <<\_ACEOF
30416 if test x"$ac_file" != x-; then
30417 echo "/* $configure_input */" >"$tmp/config.h"
30418 cat "$ac_result" >>"$tmp/config.h"
30419 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
30420 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30421 echo "$as_me: $ac_file is unchanged" >&6;}
30424 mv "$tmp/config.h" $ac_file
30427 echo "/* $configure_input */"
30431 # Compute $ac_file's index in $config_headers.
30433 for _am_header in $config_headers :; do
30434 case $_am_header in
30435 $ac_file | $ac_file:* )
30438 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
30441 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
30442 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30443 X$ac_file : 'X\(//\)[^/]' \| \
30444 X$ac_file : 'X\(//\)$' \| \
30445 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
30447 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30451 /^X\(\/\/\)[^/].*/{
30463 s/.*/./; q'`/stamp-h$_am_stamp_count
30466 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
30467 echo "$as_me: executing $ac_file commands" >&6;}
30472 case $ac_file$ac_mode in
30473 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
30474 # Strip MF so we end up with the name of the file.
30475 mf=`echo "$mf" | sed -e 's/:.*$//'`
30476 # Check whether this is an Automake generated Makefile or not.
30477 # We used to match only the files named `Makefile.in', but
30478 # some people rename them; so instead we look at the file content.
30479 # Grep'ing the first line is not enough: some people post-process
30480 # each Makefile.in and add a new line on top of each file to say so.
30481 # So let's grep whole file.
30482 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
30483 dirpart=`$as_dirname -- "$mf" ||
30484 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30485 X"$mf" : 'X\(//\)[^/]' \| \
30486 X"$mf" : 'X\(//\)$' \| \
30487 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
30489 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30493 /^X\(\/\/\)[^/].*/{
30509 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
30510 # Extract the definition of DEP_FILES from the Makefile without
30512 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
30513 test -z "$DEPDIR" && continue
30514 # When using ansi2knr, U may be empty or an underscore; expand it
30515 U=`sed -n 's/^U = //p' < "$mf"`
30516 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
30517 # We invoke sed twice because it is the simplest approach to
30518 # changing $(DEPDIR) to its actual value in the expansion.
30519 for file in `sed -n '
30520 /^DEP_FILES = .*\\\\$/ {
30529 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
30530 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
30531 # Make sure the directory exists.
30532 test -f "$dirpart/$file" && continue
30533 fdir=`$as_dirname -- "$file" ||
30534 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30535 X"$file" : 'X\(//\)[^/]' \| \
30536 X"$file" : 'X\(//\)$' \| \
30537 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
30539 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30543 /^X\(\/\/\)[^/].*/{
30556 { as_dir=$dirpart/$fdir
30558 -*) as_dir=./$as_dir;;
30560 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30564 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
30565 *) as_qdir=$as_dir;;
30567 as_dirs="'$as_qdir' $as_dirs"
30568 as_dir=`$as_dirname -- "$as_dir" ||
30569 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30570 X"$as_dir" : 'X\(//\)[^/]' \| \
30571 X"$as_dir" : 'X\(//\)$' \| \
30572 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30574 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30578 /^X\(\/\/\)[^/].*/{
30591 test -d "$as_dir" && break
30593 test -z "$as_dirs" || eval "mkdir $as_dirs"
30594 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30595 echo "$as_me: error: cannot create directory $as_dir" >&2;}
30596 { (exit 1); exit 1; }; }; }
30597 # echo "creating $dirpart/$file"
30598 echo '# dummy' > "$dirpart/$file"
30607 { (exit 0); exit 0; }
30609 chmod +x $CONFIG_STATUS
30610 ac_clean_files=$ac_clean_files_save
30613 # configure is writing to config.log, and then calls config.status.
30614 # config.status does its own redirection, appending to config.log.
30615 # Unfortunately, on DOS this fails, as config.log is still kept open
30616 # by configure, so config.status won't be able to write to it; its
30617 # output is simply discarded. So we exec the FD to /dev/null,
30618 # effectively closing config.log, so it can be properly (re)opened and
30619 # appended to by config.status. When coming back to configure, we
30620 # need to make the FD available again.
30621 if test "$no_create" != yes; then
30623 ac_config_status_args=
30624 test "$silent" = yes &&
30625 ac_config_status_args="$ac_config_status_args --quiet"
30627 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30629 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30630 # would make configure fail if this is the last instruction.
30631 $ac_cs_success || { (exit 1); exit 1; }
30637 $PACKAGE $VERSION configured successfully:
30639 Installing into: $prefix
30640 System config dir: $sysconfdir
30641 C compiler flags: $conky_CFLAGS
30642 Libraries: $conky_LIBS
30643 Linker flags: $conky_LDFLAGS
30646 X11 support: $want_x11
30647 XDamage support: $want_xdamage
30648 XDBE support: $want_double_buffer
30649 Xft support: $want_xft
30650 ARGB support $want_argb
30653 Audacious: $want_audacious
30661 hddtemp: $want_hddtemp
30662 portmon: $want_portmon
30668 wireless: $want_wlan
30670 nvidia: $want_nvidia
30671 eve-online: $want_eve
30672 config-output: $want_config_output
30673 Imlib2: $want_imlib2
30674 ALSA mixer: $want_alsa
30675 apcupsd: $want_apcupsd
30676 I/O stats: $want_iostats
30677 ncurses: $want_ncurses
30679 * Lua ($want_lua) bindings:
30680 Cairo: $want_lua_cairo
30681 Imlib2: $want_lua_imlib2