2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
258 CONFIG_SHELL=$as_shell
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
286 as_func_ret_success () {
289 as_func_ret_failure () {
294 if as_func_success; then
298 echo as_func_success failed.
301 if as_func_failure; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 ECHO_C= ECHO_N= ECHO_T=
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 elif ln conf$$.file conf$$ 2>/dev/null; then
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
517 test -d ./-p && rmdir ./-p
521 if test -x / >/dev/null 2>&1; then
524 if ls -dL / >/dev/null 2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
558 # Remove one level of quotation (which was required for Make).
559 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
564 if test "X$1" = X--no-reexec; then
565 # Discard the --no-reexec flag, and continue.
567 elif test "X$1" = X--fallback-echo; then
568 # Avoid inline document here, it may be left over
570 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571 # Yippee, $echo works!
574 # Restart under the correct shell.
575 exec $SHELL "$0" --no-reexec ${1+"$@"}
578 if test "X$1" = X--fallback-echo; then
579 # used as fallback echo
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
589 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
591 if test -z "$ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
597 echo_test_string="`eval $cmd`" &&
598 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
605 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
610 # The Solaris, AIX, and Digital Unix default echo programs unquote
611 # backslashes. This makes it impossible to quote backslashes using
612 # echo "$something" | sed 's/\\/\\\\/g'
614 # So, first we look for a working echo in the user's PATH.
616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617 for dir in $PATH /usr/ucb; do
619 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
629 if test "X$echo" = Xecho; then
630 # We didn't find a better echo, so look for alternatives.
631 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633 test "X$echo_testing_string" = "X$echo_test_string"; then
634 # This shell has a builtin print -r that does the trick.
636 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637 test "X$CONFIG_SHELL" != X/bin/ksh; then
638 # If we have ksh, try running configure again with it.
639 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640 export ORIGINAL_CONFIG_SHELL
641 CONFIG_SHELL=/bin/ksh
643 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
647 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649 test "X$echo_testing_string" = "X$echo_test_string"; then
652 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653 test "X$echo_testing_string" = 'X\t' &&
654 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655 test "X$echo_testing_string" = "X$echo_test_string"; then
656 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
658 SHELL="$CONFIG_SHELL"
660 echo="$CONFIG_SHELL $0 --fallback-echo"
661 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662 test "X$echo_testing_string" = 'X\t' &&
663 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664 test "X$echo_testing_string" = "X$echo_test_string"; then
665 echo="$CONFIG_SHELL $0 --fallback-echo"
667 # maybe with a smaller string...
670 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
678 if test "$prev" != 'sed 50q "$0"'; then
679 echo_test_string=`eval $prev`
680 export echo_test_string
681 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
683 # Oops. We lost completely, so just stick with echo.
692 # Copy echo and quote the copy suitably for passing to libtool from
693 # the Makefile, instead of quoting the original, which is used later.
695 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
702 tagnames=${tagnames+${tagnames},}CXX
704 tagnames=${tagnames+${tagnames},}F77
706 exec 7<&0 </dev/null 6>&1
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710 # so uname gets run too.
711 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
716 ac_default_prefix=/usr/local
718 ac_config_libobj_dir=.
724 SHELL=${CONFIG_SHELL-/bin/sh}
726 # Identity of this package.
733 ac_unique_file="acinclude.m4"
734 ac_default_prefix=${KDEDIR:-the kde prefix}
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>
781 program_transform_name
834 INSTALL_STRIP_PROGRAM
871 unsermake_enable_pch_TRUE
872 unsermake_enable_pch_FALSE
878 ENABLE_PERMISSIVE_FLAG
884 KDE_USE_CLOSURE_FALSE
887 KDE_USE_NMCHECK_FALSE
1012 REQUIRED_KDE_VERSION
1013 REQUIRED_SCIM_VERSION
1028 SCIM_KDEUTILS_CFLAGS
1036 ac_precious_vars='build_alias
1057 SCIM_KDEUTILS_CFLAGS
1061 # Initialize some variables set by options.
1063 ac_init_version=false
1064 # The variables have the same names as the options, with
1065 # dashes changed to underlines.
1066 cache_file=/dev/null
1073 program_transform_name=s,x,x,
1081 # Installation directory options.
1082 # These are left unexpanded so users can "make install exec_prefix=/foo"
1083 # and all the variables that are supposed to be based on exec_prefix
1084 # by default will actually change.
1085 # Use braces instead of parens because sh, perl, etc. also accept them.
1086 # (The list follows the same order as the GNU Coding Standards.)
1087 bindir='${exec_prefix}/bin'
1088 sbindir='${exec_prefix}/sbin'
1089 libexecdir='${exec_prefix}/libexec'
1090 datarootdir='${prefix}/share'
1091 datadir='${datarootdir}'
1092 sysconfdir='${prefix}/etc'
1093 sharedstatedir='${prefix}/com'
1094 localstatedir='${prefix}/var'
1095 includedir='${prefix}/include'
1096 oldincludedir='/usr/include'
1097 docdir='${datarootdir}/doc/${PACKAGE}'
1098 infodir='${datarootdir}/info'
1103 libdir='${exec_prefix}/lib'
1104 localedir='${datarootdir}/locale'
1105 mandir='${datarootdir}/man'
1111 # If the previous option needs an argument, assign it.
1112 if test -n "$ac_prev"; then
1113 eval $ac_prev=\$ac_option
1119 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1123 # Accept the important Cygnus configure options, so we can diagnose typos.
1125 case $ac_dashdash$ac_option in
1129 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1131 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1132 bindir=$ac_optarg ;;
1134 -build | --build | --buil | --bui | --bu)
1135 ac_prev=build_alias ;;
1136 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1137 build_alias=$ac_optarg ;;
1139 -cache-file | --cache-file | --cache-fil | --cache-fi \
1140 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1141 ac_prev=cache_file ;;
1142 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1143 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1144 cache_file=$ac_optarg ;;
1146 --config-cache | -C)
1147 cache_file=config.cache ;;
1149 -datadir | --datadir | --datadi | --datad)
1151 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1152 datadir=$ac_optarg ;;
1154 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1155 | --dataroo | --dataro | --datar)
1156 ac_prev=datarootdir ;;
1157 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1158 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1159 datarootdir=$ac_optarg ;;
1161 -disable-* | --disable-*)
1162 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1163 # Reject names that are not valid shell variable names.
1164 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1165 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1166 { (exit 1); exit 1; }; }
1167 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1168 eval enable_$ac_feature=no ;;
1170 -docdir | --docdir | --docdi | --doc | --do)
1172 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1173 docdir=$ac_optarg ;;
1175 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1177 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1178 dvidir=$ac_optarg ;;
1180 -enable-* | --enable-*)
1181 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1182 # Reject names that are not valid shell variable names.
1183 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1184 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1185 { (exit 1); exit 1; }; }
1186 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1187 eval enable_$ac_feature=\$ac_optarg ;;
1189 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1190 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1191 | --exec | --exe | --ex)
1192 ac_prev=exec_prefix ;;
1193 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1194 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1195 | --exec=* | --exe=* | --ex=*)
1196 exec_prefix=$ac_optarg ;;
1198 -gas | --gas | --ga | --g)
1199 # Obsolete; use --with-gas.
1202 -help | --help | --hel | --he | -h)
1203 ac_init_help=long ;;
1204 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1205 ac_init_help=recursive ;;
1206 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1207 ac_init_help=short ;;
1209 -host | --host | --hos | --ho)
1210 ac_prev=host_alias ;;
1211 -host=* | --host=* | --hos=* | --ho=*)
1212 host_alias=$ac_optarg ;;
1214 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1216 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1218 htmldir=$ac_optarg ;;
1220 -includedir | --includedir | --includedi | --included | --include \
1221 | --includ | --inclu | --incl | --inc)
1222 ac_prev=includedir ;;
1223 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1224 | --includ=* | --inclu=* | --incl=* | --inc=*)
1225 includedir=$ac_optarg ;;
1227 -infodir | --infodir | --infodi | --infod | --info | --inf)
1229 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1230 infodir=$ac_optarg ;;
1232 -libdir | --libdir | --libdi | --libd)
1234 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1235 libdir=$ac_optarg ;;
1237 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1238 | --libexe | --libex | --libe)
1239 ac_prev=libexecdir ;;
1240 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1241 | --libexe=* | --libex=* | --libe=*)
1242 libexecdir=$ac_optarg ;;
1244 -localedir | --localedir | --localedi | --localed | --locale)
1245 ac_prev=localedir ;;
1246 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1247 localedir=$ac_optarg ;;
1249 -localstatedir | --localstatedir | --localstatedi | --localstated \
1250 | --localstate | --localstat | --localsta | --localst | --locals)
1251 ac_prev=localstatedir ;;
1252 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1253 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1254 localstatedir=$ac_optarg ;;
1256 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1258 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1259 mandir=$ac_optarg ;;
1261 -nfp | --nfp | --nf)
1262 # Obsolete; use --without-fp.
1265 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1266 | --no-cr | --no-c | -n)
1269 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1270 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1273 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1274 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1275 | --oldin | --oldi | --old | --ol | --o)
1276 ac_prev=oldincludedir ;;
1277 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1278 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1279 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1280 oldincludedir=$ac_optarg ;;
1282 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1284 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1285 prefix=$ac_optarg ;;
1287 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1288 | --program-pre | --program-pr | --program-p)
1289 ac_prev=program_prefix ;;
1290 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1291 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1292 program_prefix=$ac_optarg ;;
1294 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1295 | --program-suf | --program-su | --program-s)
1296 ac_prev=program_suffix ;;
1297 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1298 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1299 program_suffix=$ac_optarg ;;
1301 -program-transform-name | --program-transform-name \
1302 | --program-transform-nam | --program-transform-na \
1303 | --program-transform-n | --program-transform- \
1304 | --program-transform | --program-transfor \
1305 | --program-transfo | --program-transf \
1306 | --program-trans | --program-tran \
1307 | --progr-tra | --program-tr | --program-t)
1308 ac_prev=program_transform_name ;;
1309 -program-transform-name=* | --program-transform-name=* \
1310 | --program-transform-nam=* | --program-transform-na=* \
1311 | --program-transform-n=* | --program-transform-=* \
1312 | --program-transform=* | --program-transfor=* \
1313 | --program-transfo=* | --program-transf=* \
1314 | --program-trans=* | --program-tran=* \
1315 | --progr-tra=* | --program-tr=* | --program-t=*)
1316 program_transform_name=$ac_optarg ;;
1318 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1320 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1321 pdfdir=$ac_optarg ;;
1323 -psdir | --psdir | --psdi | --psd | --ps)
1325 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1328 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1329 | -silent | --silent | --silen | --sile | --sil)
1332 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1334 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1336 sbindir=$ac_optarg ;;
1338 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1339 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1340 | --sharedst | --shareds | --shared | --share | --shar \
1342 ac_prev=sharedstatedir ;;
1343 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1344 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1345 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1347 sharedstatedir=$ac_optarg ;;
1349 -site | --site | --sit)
1351 -site=* | --site=* | --sit=*)
1354 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1356 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1357 srcdir=$ac_optarg ;;
1359 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1360 | --syscon | --sysco | --sysc | --sys | --sy)
1361 ac_prev=sysconfdir ;;
1362 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1363 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1364 sysconfdir=$ac_optarg ;;
1366 -target | --target | --targe | --targ | --tar | --ta | --t)
1367 ac_prev=target_alias ;;
1368 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1369 target_alias=$ac_optarg ;;
1371 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1374 -version | --version | --versio | --versi | --vers | -V)
1375 ac_init_version=: ;;
1378 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1379 # Reject names that are not valid shell variable names.
1380 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1381 { echo "$as_me: error: invalid package name: $ac_package" >&2
1382 { (exit 1); exit 1; }; }
1383 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1384 eval with_$ac_package=\$ac_optarg ;;
1386 -without-* | --without-*)
1387 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1388 # Reject names that are not valid shell variable names.
1389 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1390 { echo "$as_me: error: invalid package name: $ac_package" >&2
1391 { (exit 1); exit 1; }; }
1392 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1393 eval with_$ac_package=no ;;
1396 # Obsolete; use --with-x.
1399 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1400 | --x-incl | --x-inc | --x-in | --x-i)
1401 ac_prev=x_includes ;;
1402 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1403 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1404 x_includes=$ac_optarg ;;
1406 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1407 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1408 ac_prev=x_libraries ;;
1409 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1410 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1411 x_libraries=$ac_optarg ;;
1413 -*) { echo "$as_me: error: unrecognized option: $ac_option
1414 Try \`$0 --help' for more information." >&2
1415 { (exit 1); exit 1; }; }
1419 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1420 # Reject names that are not valid shell variable names.
1421 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1422 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1423 { (exit 1); exit 1; }; }
1424 eval $ac_envvar=\$ac_optarg
1425 export $ac_envvar ;;
1428 # FIXME: should be removed in autoconf 3.0.
1429 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1430 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1431 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1432 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1438 if test -n "$ac_prev"; then
1439 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1440 { echo "$as_me: error: missing argument to $ac_option" >&2
1441 { (exit 1); exit 1; }; }
1444 # Be sure to have absolute directory names.
1445 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1446 datadir sysconfdir sharedstatedir localstatedir includedir \
1447 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1448 libdir localedir mandir
1450 eval ac_val=\$$ac_var
1452 [\\/$]* | ?:[\\/]* ) continue;;
1453 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1455 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1456 { (exit 1); exit 1; }; }
1459 # There might be people who depend on the old broken behavior: `$host'
1460 # used to hold the argument of --host etc.
1461 # FIXME: To remove some day.
1464 target=$target_alias
1466 # FIXME: To remove some day.
1467 if test "x$host_alias" != x; then
1468 if test "x$build_alias" = x; then
1469 cross_compiling=maybe
1470 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1471 If a cross compiler is detected then cross compile mode will be used." >&2
1472 elif test "x$build_alias" != "x$host_alias"; then
1478 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1480 test "$silent" = yes && exec 6>/dev/null
1483 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1484 ac_ls_di=`ls -di .` &&
1485 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1486 { echo "$as_me: error: Working directory cannot be determined" >&2
1487 { (exit 1); exit 1; }; }
1488 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1489 { echo "$as_me: error: pwd does not report name of working directory" >&2
1490 { (exit 1); exit 1; }; }
1493 # Find the source files, if location was not specified.
1494 if test -z "$srcdir"; then
1495 ac_srcdir_defaulted=yes
1496 # Try the directory containing this script, then the parent directory.
1497 ac_confdir=`$as_dirname -- "$0" ||
1498 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1499 X"$0" : 'X\(//\)[^/]' \| \
1500 X"$0" : 'X\(//\)$' \| \
1501 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1503 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1521 if test ! -r "$srcdir/$ac_unique_file"; then
1525 ac_srcdir_defaulted=no
1527 if test ! -r "$srcdir/$ac_unique_file"; then
1528 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1529 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1530 { (exit 1); exit 1; }; }
1532 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1534 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1535 { (exit 1); exit 1; }; }
1537 # When building in place, set srcdir=.
1538 if test "$ac_abs_confdir" = "$ac_pwd"; then
1541 # Remove unnecessary trailing slashes from srcdir.
1542 # Double slashes in file names in object file debugging info
1543 # mess up M-x gdb in Emacs.
1545 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1547 for ac_var in $ac_precious_vars; do
1548 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1549 eval ac_env_${ac_var}_value=\$${ac_var}
1550 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1551 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1555 # Report the --help message.
1557 if test "$ac_init_help" = "long"; then
1558 # Omit some internal or obsolete options to make the list less imposing.
1559 # This message is too long to be a string in the A/UX 3.1 sh.
1561 \`configure' configures this package to adapt to many kinds of systems.
1563 Usage: $0 [OPTION]... [VAR=VALUE]...
1565 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1566 VAR=VALUE. See below for descriptions of some of the useful variables.
1568 Defaults for the options are specified in brackets.
1571 -h, --help display this help and exit
1572 --help=short display options specific to this package
1573 --help=recursive display the short help of all the included packages
1574 -V, --version display version information and exit
1575 -q, --quiet, --silent do not print \`checking...' messages
1576 --cache-file=FILE cache test results in FILE [disabled]
1577 -C, --config-cache alias for \`--cache-file=config.cache'
1578 -n, --no-create do not create output files
1579 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1581 Installation directories:
1582 --prefix=PREFIX install architecture-independent files in PREFIX
1583 [$ac_default_prefix]
1584 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1587 By default, \`make install' will install all the files in
1588 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1589 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1590 for instance \`--prefix=\$HOME'.
1592 For better control, use the options below.
1594 Fine tuning of the installation directories:
1595 --bindir=DIR user executables [EPREFIX/bin]
1596 --sbindir=DIR system admin executables [EPREFIX/sbin]
1597 --libexecdir=DIR program executables [EPREFIX/libexec]
1598 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1599 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1600 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1601 --libdir=DIR object code libraries [EPREFIX/lib]
1602 --includedir=DIR C header files [PREFIX/include]
1603 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1604 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1605 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1606 --infodir=DIR info documentation [DATAROOTDIR/info]
1607 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1608 --mandir=DIR man documentation [DATAROOTDIR/man]
1609 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1610 --htmldir=DIR html documentation [DOCDIR]
1611 --dvidir=DIR dvi documentation [DOCDIR]
1612 --pdfdir=DIR pdf documentation [DOCDIR]
1613 --psdir=DIR ps documentation [DOCDIR]
1619 --program-prefix=PREFIX prepend PREFIX to installed program names
1620 --program-suffix=SUFFIX append SUFFIX to installed program names
1621 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1624 --build=BUILD configure for building on BUILD [guessed]
1625 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1626 --target=TARGET configure for building compilers for TARGET [HOST]
1630 if test -n "$ac_init_help"; then
1635 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1636 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1637 --disable-fast-perl disable fast Makefile generation (needs perl)
1638 --enable-debug=ARG enables debug symbols (yes|no|full) default=no
1639 --disable-debug disables debug output and debug symbols default=no
1640 --enable-strict compiles with strict compiler options (may not
1642 --disable-warnings disables compilation with -Wall and similar
1643 --enable-profile creates profiling infos default=no
1644 --disable-dependency-tracking speeds up one-time build
1645 --enable-dependency-tracking do not reject slow dependency extractors
1646 --enable-pch enables precompiled header support (currently only
1647 KCC or gcc >=3.4+unsermake) default=no
1648 --enable-coverage use gcc coverage testing
1649 --enable-new-ldflags enable the new linker flags
1650 --enable-final build size optimized apps (experimental - needs lots
1652 --enable-closure delay template instantiation
1653 --enable-nmcheck enable automatic namespace cleanness check
1654 --enable-shared[=PKGS] build shared libraries [default=yes]
1655 --enable-static[=PKGS] build static libraries [default=no]
1656 --enable-libsuffix /lib directory suffix (64,32,none=default)
1657 --enable-fast-install[=PKGS]
1658 optimize for fast installation [default=yes]
1659 --disable-libtool-lock avoid locking (might break parallel builds)
1660 --enable-embedded link to Qt-embedded, don't use X
1661 --enable-qtopia link to Qt-embedded, link to the Qtopia Environment
1662 --enable-mac link to Qt/Mac (don't use X)
1663 --disable-mt link to non-threaded Qt (deprecated)
1664 --disable-threading disables threading even if libpthread found
1665 --disable-rpath do not use the rpath feature of ld
1666 --disable-path-check don't try to find out, where to install
1667 --disable-nls do not use Native Language Support
1668 --disable-rpath do not hardcode runtime library paths
1669 --enable-scim-debug Turn on debugging
1672 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1673 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1674 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1675 --with-pic try to use only PIC/non-PIC objects [default=use
1677 --with-tags[=TAGS] include additional configurations [automatic]
1678 --with-extra-includes=DIR
1679 adds non standard include paths
1680 --with-extra-libs=DIR adds non standard library paths
1681 --with-qt-dir=DIR where the root of Qt is installed
1682 --with-qt-includes=DIR where the Qt includes are.
1683 --with-qt-libraries=DIR where the Qt library is installed.
1684 --without-arts build without aRts default=no
1685 --with-gnu-ld assume the C compiler uses GNU ld default=no
1686 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1687 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1688 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1689 --without-libintl-prefix don't search for libintl in includedir and libdir
1691 Some influential environment variables:
1692 CC C compiler command
1693 CFLAGS C compiler flags
1694 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1695 nonstandard directory <lib dir>
1696 LIBS libraries to pass to the linker, e.g. -l<library>
1697 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1698 you have headers in a nonstandard directory <include dir>
1700 CXX C++ compiler command
1701 CXXFLAGS C++ compiler flags
1702 CXXCPP C++ preprocessor
1703 F77 Fortran 77 compiler command
1704 FFLAGS Fortran 77 compiler flags
1705 XMKMF Path to xmkmf, Makefile generator for X Window System
1706 PKG_CONFIG path to pkg-config utility
1707 SCIM_CFLAGS C compiler flags for SCIM, overriding pkg-config
1708 SCIM_LIBS linker flags for SCIM, overriding pkg-config
1709 SKIM_CFLAGS C compiler flags for SKIM, overriding pkg-config
1710 SKIM_LIBS linker flags for SKIM, overriding pkg-config
1711 SCIM_KDEUTILS_CFLAGS
1712 C compiler flags for SCIM_KDEUTILS, overriding pkg-config
1714 linker flags for SCIM_KDEUTILS, overriding pkg-config
1716 Use these variables to override the choices made by `configure' or to help
1717 it to find libraries and programs with nonstandard names/locations.
1723 if test "$ac_init_help" = "recursive"; then
1724 # If there are subdirs, report their specific --help.
1725 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1726 test -d "$ac_dir" || continue
1730 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1732 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1733 # A ".." for each directory in $ac_dir_suffix.
1734 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1735 case $ac_top_builddir_sub in
1736 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1737 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1740 ac_abs_top_builddir=$ac_pwd
1741 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1742 # for backward compatibility:
1743 ac_top_builddir=$ac_top_build_prefix
1746 .) # We are building in place.
1748 ac_top_srcdir=$ac_top_builddir_sub
1749 ac_abs_top_srcdir=$ac_pwd ;;
1750 [\\/]* | ?:[\\/]* ) # Absolute name.
1751 ac_srcdir=$srcdir$ac_dir_suffix;
1752 ac_top_srcdir=$srcdir
1753 ac_abs_top_srcdir=$srcdir ;;
1755 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1756 ac_top_srcdir=$ac_top_build_prefix$srcdir
1757 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1759 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1761 cd "$ac_dir" || { ac_status=$?; continue; }
1762 # Check for guested configure.
1763 if test -f "$ac_srcdir/configure.gnu"; then
1765 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1766 elif test -f "$ac_srcdir/configure"; then
1768 $SHELL "$ac_srcdir/configure" --help=recursive
1770 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1772 cd "$ac_pwd" || { ac_status=$?; break; }
1776 test -n "$ac_init_help" && exit $ac_status
1777 if $ac_init_version; then
1780 generated by GNU Autoconf 2.61
1782 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1783 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1784 This configure script is free software; the Free Software Foundation
1785 gives unlimited permission to copy, distribute and modify it.
1789 cat >config.log <<_ACEOF
1790 This file contains any messages produced by compilers while
1791 running configure, to aid debugging if configure makes a mistake.
1793 It was created by $as_me, which was
1794 generated by GNU Autoconf 2.61. Invocation command line was
1806 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1807 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1808 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1809 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1810 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1812 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1813 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1815 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1816 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1817 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1818 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1819 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1820 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1821 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1829 test -z "$as_dir" && as_dir=.
1830 echo "PATH: $as_dir"
1846 # Keep a trace of the command line.
1847 # Strip out --no-create and --no-recursion so they do not pile up.
1848 # Strip out --silent because we don't want to record it for future runs.
1849 # Also quote any args containing shell meta-characters.
1850 # Make two passes to allow for proper duplicate-argument suppression.
1854 ac_must_keep_next=false
1860 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1861 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1862 | -silent | --silent | --silen | --sile | --sil)
1865 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1868 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1870 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1871 if test $ac_must_keep_next = true; then
1872 ac_must_keep_next=false # Got value, back to normal.
1875 *=* | --config-cache | -C | -disable-* | --disable-* \
1876 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1877 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1878 | -with-* | --with-* | -without-* | --without-* | --x)
1879 case "$ac_configure_args0 " in
1880 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1883 -* ) ac_must_keep_next=true ;;
1886 ac_configure_args="$ac_configure_args '$ac_arg'"
1891 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1892 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1894 # When interrupted or exit'd, cleanup temporary files, and complete
1895 # config.log. We remove comments because anyway the quotes in there
1896 # would cause problems or look ugly.
1897 # WARNING: Use '\'' to represent an apostrophe within the trap.
1898 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1899 trap 'exit_status=$?
1900 # Save into config.log some information that might help in debugging.
1905 ## ---------------- ##
1906 ## Cache variables. ##
1907 ## ---------------- ##
1910 # The following way of writing the cache mishandles newlines in values,
1912 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1913 eval ac_val=\$$ac_var
1917 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1918 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1921 _ | IFS | as_nl) ;; #(
1922 *) $as_unset $ac_var ;;
1927 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1928 *${as_nl}ac_space=\ *)
1930 "s/'\''/'\''\\\\'\'''\''/g;
1931 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1934 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1942 ## ----------------- ##
1943 ## Output variables. ##
1944 ## ----------------- ##
1947 for ac_var in $ac_subst_vars
1949 eval ac_val=\$$ac_var
1951 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1953 echo "$ac_var='\''$ac_val'\''"
1957 if test -n "$ac_subst_files"; then
1959 ## ------------------- ##
1960 ## File substitutions. ##
1961 ## ------------------- ##
1964 for ac_var in $ac_subst_files
1966 eval ac_val=\$$ac_var
1968 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1970 echo "$ac_var='\''$ac_val'\''"
1975 if test -s confdefs.h; then
1985 test "$ac_signal" != 0 &&
1986 echo "$as_me: caught signal $ac_signal"
1987 echo "$as_me: exit $exit_status"
1989 rm -f core *.core core.conftest.* &&
1990 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1993 for ac_signal in 1 2 13 15; do
1994 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1998 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1999 rm -f -r conftest* confdefs.h
2001 # Predefined preprocessor variables.
2003 cat >>confdefs.h <<_ACEOF
2004 #define PACKAGE_NAME "$PACKAGE_NAME"
2008 cat >>confdefs.h <<_ACEOF
2009 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2013 cat >>confdefs.h <<_ACEOF
2014 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2018 cat >>confdefs.h <<_ACEOF
2019 #define PACKAGE_STRING "$PACKAGE_STRING"
2023 cat >>confdefs.h <<_ACEOF
2024 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2028 # Let the site file select an alternate cache file if it wants to.
2029 # Prefer explicitly selected file to automatically selected ones.
2030 if test -n "$CONFIG_SITE"; then
2031 set x "$CONFIG_SITE"
2032 elif test "x$prefix" != xNONE; then
2033 set x "$prefix/share/config.site" "$prefix/etc/config.site"
2035 set x "$ac_default_prefix/share/config.site" \
2036 "$ac_default_prefix/etc/config.site"
2041 if test -r "$ac_site_file"; then
2042 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2043 echo "$as_me: loading site script $ac_site_file" >&6;}
2044 sed 's/^/| /' "$ac_site_file" >&5
2049 if test -r "$cache_file"; then
2050 # Some versions of bash will fail to source /dev/null (special
2051 # files actually), so we avoid doing that.
2052 if test -f "$cache_file"; then
2053 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2054 echo "$as_me: loading cache $cache_file" >&6;}
2056 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2057 *) . "./$cache_file";;
2061 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2062 echo "$as_me: creating cache $cache_file" >&6;}
2066 gt_needs="$gt_needs "
2067 # Check that the precious variables saved in the cache have kept the same
2069 ac_cache_corrupted=false
2070 for ac_var in $ac_precious_vars; do
2071 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2072 eval ac_new_set=\$ac_env_${ac_var}_set
2073 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2074 eval ac_new_val=\$ac_env_${ac_var}_value
2075 case $ac_old_set,$ac_new_set in
2077 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2078 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2079 ac_cache_corrupted=: ;;
2081 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2082 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2083 ac_cache_corrupted=: ;;
2086 if test "x$ac_old_val" != "x$ac_new_val"; then
2087 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2088 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2089 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2090 echo "$as_me: former value: $ac_old_val" >&2;}
2091 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2092 echo "$as_me: current value: $ac_new_val" >&2;}
2093 ac_cache_corrupted=:
2096 # Pass precious variables to config.status.
2097 if test "$ac_new_set" = set; then
2099 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2100 *) ac_arg=$ac_var=$ac_new_val ;;
2102 case " $ac_configure_args " in
2103 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2104 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2108 if $ac_cache_corrupted; then
2109 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2110 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2111 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2112 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2113 { (exit 1); exit 1; }; }
2133 ac_cpp='$CPP $CPPFLAGS'
2134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2140 for ac_dir in admin "$srcdir"/admin; do
2141 if test -f "$ac_dir/install-sh"; then
2143 ac_install_sh="$ac_aux_dir/install-sh -c"
2145 elif test -f "$ac_dir/install.sh"; then
2147 ac_install_sh="$ac_aux_dir/install.sh -c"
2149 elif test -f "$ac_dir/shtool"; then
2151 ac_install_sh="$ac_aux_dir/shtool install -c"
2155 if test -z "$ac_aux_dir"; then
2156 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in admin \"$srcdir\"/admin" >&5
2157 echo "$as_me: error: cannot find install-sh or install.sh in admin \"$srcdir\"/admin" >&2;}
2158 { (exit 1); exit 1; }; }
2161 # These three variables are undocumented and unsupported,
2162 # and are intended to be withdrawn in a future Autoconf release.
2163 # They can cause serious problems if a builder's source tree is in a directory
2164 # whose full name contains unusual characters.
2165 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2166 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2167 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2173 # Make sure we can run config.sub.
2174 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2175 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2176 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2177 { (exit 1); exit 1; }; }
2179 { echo "$as_me:$LINENO: checking build system type" >&5
2180 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2181 if test "${ac_cv_build+set}" = set; then
2182 echo $ECHO_N "(cached) $ECHO_C" >&6
2184 ac_build_alias=$build_alias
2185 test "x$ac_build_alias" = x &&
2186 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2187 test "x$ac_build_alias" = x &&
2188 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2189 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2190 { (exit 1); exit 1; }; }
2191 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2192 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2193 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2194 { (exit 1); exit 1; }; }
2197 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2198 echo "${ECHO_T}$ac_cv_build" >&6; }
2199 case $ac_cv_build in
2201 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2202 echo "$as_me: error: invalid value of canonical build" >&2;}
2203 { (exit 1); exit 1; }; };;
2206 ac_save_IFS=$IFS; IFS='-'
2212 # Remember, the first character of IFS is used to create $*,
2213 # except with old shells:
2216 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2219 { echo "$as_me:$LINENO: checking host system type" >&5
2220 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2221 if test "${ac_cv_host+set}" = set; then
2222 echo $ECHO_N "(cached) $ECHO_C" >&6
2224 if test "x$host_alias" = x; then
2225 ac_cv_host=$ac_cv_build
2227 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2228 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2229 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2230 { (exit 1); exit 1; }; }
2234 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2235 echo "${ECHO_T}$ac_cv_host" >&6; }
2238 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2239 echo "$as_me: error: invalid value of canonical host" >&2;}
2240 { (exit 1); exit 1; }; };;
2243 ac_save_IFS=$IFS; IFS='-'
2249 # Remember, the first character of IFS is used to create $*,
2250 # except with old shells:
2253 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2256 { echo "$as_me:$LINENO: checking target system type" >&5
2257 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2258 if test "${ac_cv_target+set}" = set; then
2259 echo $ECHO_N "(cached) $ECHO_C" >&6
2261 if test "x$target_alias" = x; then
2262 ac_cv_target=$ac_cv_host
2264 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2265 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2266 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2267 { (exit 1); exit 1; }; }
2271 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2272 echo "${ECHO_T}$ac_cv_target" >&6; }
2273 case $ac_cv_target in
2275 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2276 echo "$as_me: error: invalid value of canonical target" >&2;}
2277 { (exit 1); exit 1; }; };;
2279 target=$ac_cv_target
2280 ac_save_IFS=$IFS; IFS='-'
2286 # Remember, the first character of IFS is used to create $*,
2287 # except with old shells:
2290 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2293 # The aliases save the names the user supplied, while $host etc.
2294 # will get canonicalized.
2295 test -n "$target_alias" &&
2296 test "$program_prefix$program_suffix$program_transform_name" = \
2298 program_prefix=${target_alias}-
2299 test "$program_prefix" != NONE &&
2300 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2301 # Use a double $ so make ignores it.
2302 test "$program_suffix" != NONE &&
2303 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2304 # Double any \ or $. echo might interpret backslashes.
2305 # By default was `s,x,x', remove it if useless.
2306 cat <<\_ACEOF >conftest.sed
2307 s/[\\$]/&&/g;s/;s,x,x,$//
2309 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2313 am__api_version="1.9"
2316 test -n "$INSTALL" && kde_save_INSTALL_given=$INSTALL
2317 test -n "$INSTALL_PROGRAM" && kde_save_INSTALL_PROGRAM_given=$INSTALL_PROGRAM
2318 test -n "$INSTALL_SCRIPT" && kde_save_INSTALL_SCRIPT_given=$INSTALL_SCRIPT
2319 # Find a good install program. We prefer a C program (faster),
2320 # so one script is as good as another. But avoid the broken or
2321 # incompatible versions:
2322 # SysV /etc/install, /usr/sbin/install
2323 # SunOS /usr/etc/install
2324 # IRIX /sbin/install
2326 # AmigaOS /C/install, which installs bootblocks on floppy discs
2327 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2328 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2329 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2330 # OS/2's system install, which has a completely different semantic
2331 # ./install, which can be erroneously created by make from ./install.sh.
2332 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2333 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2334 if test -z "$INSTALL"; then
2335 if test "${ac_cv_path_install+set}" = set; then
2336 echo $ECHO_N "(cached) $ECHO_C" >&6
2338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2342 test -z "$as_dir" && as_dir=.
2343 # Account for people who put trailing slashes in PATH elements.
2345 ./ | .// | /cC/* | \
2346 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2347 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2350 # OSF1 and SCO ODT 3.0 have their own names for install.
2351 # Don't use installbsd from OSF since it installs stuff as root
2353 for ac_prog in ginstall scoinst install; do
2354 for ac_exec_ext in '' $ac_executable_extensions; do
2355 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2356 if test $ac_prog = install &&
2357 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2358 # AIX install. It has an incompatible calling convention.
2360 elif test $ac_prog = install &&
2361 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2362 # program-specific install script used by HP pwplus--don't use.
2365 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2378 if test "${ac_cv_path_install+set}" = set; then
2379 INSTALL=$ac_cv_path_install
2381 # As a last resort, use the slow shell script. Don't cache a
2382 # value for INSTALL within a source directory, because that will
2383 # break other packages using the cache if that directory is
2384 # removed, or if the value is a relative name.
2385 INSTALL=$ac_install_sh
2388 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2389 echo "${ECHO_T}$INSTALL" >&6; }
2391 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2392 # It thinks the first close brace ends the variable substitution.
2393 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2395 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2397 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2400 if test -z "$kde_save_INSTALL_given" ; then
2401 # OK, user hasn't given any INSTALL, autoconf found one for us
2402 # now we test, if it supports the -p flag
2403 { echo "$as_me:$LINENO: checking for -p flag to install" >&5
2404 echo $ECHO_N "checking for -p flag to install... $ECHO_C" >&6; }
2405 rm -f confinst.$$.* > /dev/null 2>&1
2406 echo "Testtest" > confinst.$$.orig
2408 if ${INSTALL} -p confinst.$$.orig confinst.$$.new > /dev/null 2>&1 ; then
2409 if test -f confinst.$$.new ; then
2410 # OK, -p seems to do no harm to install
2411 INSTALL="${INSTALL} -p"
2416 { echo "$as_me:$LINENO: result: $ac_res" >&5
2417 echo "${ECHO_T}$ac_res" >&6; }
2420 if test -z "$kde_save_INSTALL_PROGRAM_given" ; then
2421 INSTALL_PROGRAM='${INSTALL} $(INSTALL_STRIP_FLAG)'
2423 if test -z "$kde_save_INSTALL_SCRIPT_given" ; then
2424 INSTALL_SCRIPT='${INSTALL}'
2427 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2428 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2431 echo timestamp > conftest.file
2432 # Do `set' in a subshell so we don't clobber the current shell's
2433 # arguments. Must try -L first in case configure is actually a
2434 # symlink; some systems play weird games with the mod time of symlinks
2435 # (eg FreeBSD returns the mod time of the symlink's containing
2438 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2439 if test "$*" = "X"; then
2441 set X `ls -t $srcdir/configure conftest.file`
2444 if test "$*" != "X $srcdir/configure conftest.file" \
2445 && test "$*" != "X conftest.file $srcdir/configure"; then
2447 # If neither matched, then we have a broken ls. This can happen
2448 # if, for instance, CONFIG_SHELL is bash and it inherits a
2449 # broken ls alias from the environment. This has actually
2450 # happened. Such a system could not be considered "sane".
2451 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2452 alias in your environment" >&5
2453 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2454 alias in your environment" >&2;}
2455 { (exit 1); exit 1; }; }
2458 test "$2" = conftest.file
2464 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2465 Check your system clock" >&5
2466 echo "$as_me: error: newly created file is older than distributed files!
2467 Check your system clock" >&2;}
2468 { (exit 1); exit 1; }; }
2470 { echo "$as_me:$LINENO: result: yes" >&5
2471 echo "${ECHO_T}yes" >&6; }
2472 # expand $ac_aux_dir to an absolute path
2473 am_aux_dir=`cd $ac_aux_dir && pwd`
2475 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2476 # Use eval to expand $SHELL
2477 if eval "$MISSING --run true"; then
2478 am_missing_run="$MISSING --run "
2481 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2482 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2485 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2486 # We used to keeping the `.' as first argument, in order to
2487 # allow $(mkdir_p) to be used without argument. As in
2488 # $(mkdir_p) $(somedir)
2489 # where $(somedir) is conditionally defined. However this is wrong
2491 # 1. if the package is installed by a user who cannot write `.'
2492 # make install will fail,
2493 # 2. the above comment should most certainly read
2494 # $(mkdir_p) $(DESTDIR)$(somedir)
2495 # so it does not work when $(somedir) is undefined and
2496 # $(DESTDIR) is not.
2497 # To support the latter case, we have to write
2498 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2499 # so the `.' trick is pointless.
2500 mkdir_p='mkdir -p --'
2502 # On NextStep and OpenStep, the `mkdir' command does not
2503 # recognize any option. It will interpret all options as
2504 # directories to create, and then abort because `.' already
2506 for d in ./-p ./--version;
2508 test -d $d && rmdir $d
2510 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2511 if test -f "$ac_aux_dir/mkinstalldirs"; then
2512 mkdir_p='$(mkinstalldirs)'
2514 mkdir_p='$(install_sh) -d'
2518 for ac_prog in gawk mawk nawk awk
2520 # Extract the first word of "$ac_prog", so it can be a program name with args.
2521 set dummy $ac_prog; ac_word=$2
2522 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2524 if test "${ac_cv_prog_AWK+set}" = set; then
2525 echo $ECHO_N "(cached) $ECHO_C" >&6
2527 if test -n "$AWK"; then
2528 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2534 test -z "$as_dir" && as_dir=.
2535 for ac_exec_ext in '' $ac_executable_extensions; do
2536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2537 ac_cv_prog_AWK="$ac_prog"
2538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2548 if test -n "$AWK"; then
2549 { echo "$as_me:$LINENO: result: $AWK" >&5
2550 echo "${ECHO_T}$AWK" >&6; }
2552 { echo "$as_me:$LINENO: result: no" >&5
2553 echo "${ECHO_T}no" >&6; }
2557 test -n "$AWK" && break
2560 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2561 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2562 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2563 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2564 echo $ECHO_N "(cached) $ECHO_C" >&6
2566 cat >conftest.make <<\_ACEOF
2569 @echo '@@@%%%=$(MAKE)=@@@%%%'
2571 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2572 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2574 eval ac_cv_prog_make_${ac_make}_set=yes;;
2576 eval ac_cv_prog_make_${ac_make}_set=no;;
2580 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2581 { echo "$as_me:$LINENO: result: yes" >&5
2582 echo "${ECHO_T}yes" >&6; }
2585 { echo "$as_me:$LINENO: result: no" >&5
2586 echo "${ECHO_T}no" >&6; }
2587 SET_MAKE="MAKE=${MAKE-make}"
2590 rm -rf .tst 2>/dev/null
2591 mkdir .tst 2>/dev/null
2592 if test -d .tst; then
2597 rmdir .tst 2>/dev/null
2599 # test to see if srcdir already configured
2600 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2601 test -f $srcdir/config.status; then
2602 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2603 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2604 { (exit 1); exit 1; }; }
2607 # test whether we have cygpath
2608 if test -z "$CYGPATH_W"; then
2609 if (cygpath --version) >/dev/null 2>/dev/null; then
2610 CYGPATH_W='cygpath -w'
2617 # Define the identity of the package.
2618 PACKAGE=skim-scim-hangul
2622 cat >>confdefs.h <<_ACEOF
2623 #define PACKAGE "$PACKAGE"
2627 cat >>confdefs.h <<_ACEOF
2628 #define VERSION "$VERSION"
2631 # Some tools Automake needs.
2633 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2636 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2639 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2642 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2645 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2647 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2649 # Installed binaries are usually stripped using `strip' when the user
2650 # run `make install-strip'. However `strip' might not be the right
2651 # tool to use in cross-compilation environments, therefore Automake
2652 # will honor the `STRIP' environment variable to overrule this program.
2653 if test "$cross_compiling" != no; then
2654 if test -n "$ac_tool_prefix"; then
2655 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2656 set dummy ${ac_tool_prefix}strip; ac_word=$2
2657 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2659 if test "${ac_cv_prog_STRIP+set}" = set; then
2660 echo $ECHO_N "(cached) $ECHO_C" >&6
2662 if test -n "$STRIP"; then
2663 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2669 test -z "$as_dir" && as_dir=.
2670 for ac_exec_ext in '' $ac_executable_extensions; do
2671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2672 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2682 STRIP=$ac_cv_prog_STRIP
2683 if test -n "$STRIP"; then
2684 { echo "$as_me:$LINENO: result: $STRIP" >&5
2685 echo "${ECHO_T}$STRIP" >&6; }
2687 { echo "$as_me:$LINENO: result: no" >&5
2688 echo "${ECHO_T}no" >&6; }
2693 if test -z "$ac_cv_prog_STRIP"; then
2695 # Extract the first word of "strip", so it can be a program name with args.
2696 set dummy strip; ac_word=$2
2697 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2699 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2700 echo $ECHO_N "(cached) $ECHO_C" >&6
2702 if test -n "$ac_ct_STRIP"; then
2703 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2709 test -z "$as_dir" && as_dir=.
2710 for ac_exec_ext in '' $ac_executable_extensions; do
2711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2712 ac_cv_prog_ac_ct_STRIP="strip"
2713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2722 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2723 if test -n "$ac_ct_STRIP"; then
2724 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2725 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2727 { echo "$as_me:$LINENO: result: no" >&5
2728 echo "${ECHO_T}no" >&6; }
2731 if test "x$ac_ct_STRIP" = x; then
2734 case $cross_compiling:$ac_tool_warned in
2736 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2737 whose name does not start with the host triplet. If you think this
2738 configuration is useful to you, please write to autoconf@gnu.org." >&5
2739 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2740 whose name does not start with the host triplet. If you think this
2741 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2742 ac_tool_warned=yes ;;
2747 STRIP="$ac_cv_prog_STRIP"
2751 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2753 # We need awk for the "check" target. The system "awk" is bad on
2755 # Always define AMTAR for backward compatibility.
2757 AMTAR=${AMTAR-"${am_missing_run}tar"}
2759 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2770 kde_default_bindirs="/usr/bin /usr/local/bin /opt/local/bin /usr/X11R6/bin /opt/kde/bin /opt/kde3/bin /usr/kde/bin /usr/local/kde/bin"
2771 test -n "$KDEDIR" && kde_default_bindirs="$KDEDIR/bin $kde_default_bindirs"
2772 if test -n "$KDEDIRS"; then
2775 for dir in $KDEDIRS; do
2776 kde_default_bindirs="$dir/bin $kde_default_bindirs "
2781 if test "x$prefix" = "xNONE"; then
2783 { echo "$as_me:$LINENO: checking for kde-config" >&5
2784 echo $ECHO_N "checking for kde-config... $ECHO_C" >&6; }
2785 if test -n "$KDECONFIG"; then
2786 kde_cv_path="$KDECONFIG";
2788 kde_cache=`echo kde-config | sed 'y%./+-%__p_%'`
2790 if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
2791 echo $ECHO_N "(cached) $ECHO_C" >&6
2798 for dir in $PATH; do
2801 if test -z "prepend"; then dirs="$kde_default_bindirs $dirs"
2802 else dirs="$dirs $kde_default_bindirs"
2806 for dir in $dirs; do
2807 if test -x "$dir/kde-config"; then
2810 evalstr="$dir/kde-config 2>&1 "
2811 if eval $evalstr; then
2812 kde_cv_path="$dir/kde-config"
2816 kde_cv_path="$dir/kde-config"
2822 eval "kde_cv_path_$kde_cache=$kde_cv_path"
2828 eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
2832 if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
2833 { echo "$as_me:$LINENO: result: not found" >&5
2834 echo "${ECHO_T}not found" >&6; }
2836 { { echo "$as_me:$LINENO: error: The important program kde-config was not found!
2837 Please check whether you installed KDE correctly.
2839 echo "$as_me: error: The important program kde-config was not found!
2840 Please check whether you installed KDE correctly.
2842 { (exit 1); exit 1; }; }
2845 { echo "$as_me:$LINENO: result: $kde_cv_path" >&5
2846 echo "${ECHO_T}$kde_cv_path" >&6; }
2847 KDECONFIG=$kde_cv_path
2852 kde_save_PATH="$PATH"
2853 PATH="$exec_prefix/bin:$prefix/bin:$PATH"
2855 { echo "$as_me:$LINENO: checking for kde-config" >&5
2856 echo $ECHO_N "checking for kde-config... $ECHO_C" >&6; }
2857 if test -n "$KDECONFIG"; then
2858 kde_cv_path="$KDECONFIG";
2860 kde_cache=`echo kde-config | sed 'y%./+-%__p_%'`
2862 if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
2863 echo $ECHO_N "(cached) $ECHO_C" >&6
2870 for dir in $PATH; do
2873 if test -z "prepend"; then dirs="$kde_default_bindirs $dirs"
2874 else dirs="$dirs $kde_default_bindirs"
2878 for dir in $dirs; do
2879 if test -x "$dir/kde-config"; then
2882 evalstr="$dir/kde-config 2>&1 "
2883 if eval $evalstr; then
2884 kde_cv_path="$dir/kde-config"
2888 kde_cv_path="$dir/kde-config"
2894 eval "kde_cv_path_$kde_cache=$kde_cv_path"
2900 eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
2904 if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
2905 { echo "$as_me:$LINENO: result: not found" >&5
2906 echo "${ECHO_T}not found" >&6; }
2908 { { echo "$as_me:$LINENO: error: The important program kde-config was not found!
2909 Please check whether you installed KDE correctly.
2911 echo "$as_me: error: The important program kde-config was not found!
2912 Please check whether you installed KDE correctly.
2914 { (exit 1); exit 1; }; }
2917 { echo "$as_me:$LINENO: result: $kde_cv_path" >&5
2918 echo "${ECHO_T}$kde_cv_path" >&6; }
2919 KDECONFIG=$kde_cv_path
2923 PATH="$kde_save_PATH"
2926 kde_libs_prefix=`$KDECONFIG --prefix`
2927 if test -z "$kde_libs_prefix" || test ! -x "$kde_libs_prefix"; then
2928 { { echo "$as_me:$LINENO: error: $KDECONFIG --prefix outputed the non existant prefix '$kde_libs_prefix' for kdelibs.
2929 This means it has been moved since you installed it.
2930 This won't work. Please recompile kdelibs for the new prefix.
2932 echo "$as_me: error: $KDECONFIG --prefix outputed the non existant prefix '$kde_libs_prefix' for kdelibs.
2933 This means it has been moved since you installed it.
2934 This won't work. Please recompile kdelibs for the new prefix.
2936 { (exit 1); exit 1; }; }
2938 kde_libs_htmldir=`$KDECONFIG --install html --expandvars`
2939 kde_libs_suffix=`$KDECONFIG --libsuffix`
2941 { echo "$as_me:$LINENO: checking where to install" >&5
2942 echo $ECHO_N "checking where to install... $ECHO_C" >&6; }
2943 if test "x$prefix" = "xNONE"; then
2944 prefix=$kde_libs_prefix
2945 { echo "$as_me:$LINENO: result: $prefix (as returned by kde-config)" >&5
2946 echo "${ECHO_T}$prefix (as returned by kde-config)" >&6; }
2948 given_prefix=$prefix
2949 { echo "$as_me:$LINENO: result: $prefix (as requested)" >&5
2950 echo "${ECHO_T}$prefix (as requested)" >&6; }
2953 # And delete superfluous '/' to make compares easier
2954 prefix=`echo "$prefix" | sed 's,//*,/,g' | sed -e 's,/$,,'`
2955 exec_prefix=`echo "$exec_prefix" | sed 's,//*,/,g' | sed -e 's,/$,,'`
2956 given_prefix=`echo "$given_prefix" | sed 's,//*,/,g' | sed -e 's,/$,,'`
2963 # Check whether --enable-fast-perl was given.
2964 if test "${enable_fast_perl+set}" = set; then
2965 enableval=$enable_fast_perl; with_fast_perl=$enableval
2973 if test -f $srcdir/configure.files ; then
2974 val=`sed -e 's%^%\$(top_srcdir)/%' $srcdir/configure.files`
2977 if test -n "$val" ; then
2979 CONF_FILES="$CONF_FILES $i"
2986 ac_config_headers="$ac_config_headers config.h"
2988 DEPDIR="${am__leading_dot}deps"
2990 ac_config_commands="$ac_config_commands depfiles"
2993 am_make=${MAKE-make}
2994 cat > confinc << 'END'
2999 # If we don't find an include directive, just comment out the code.
3000 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3001 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3005 # First try GNU make style include.
3006 echo "include confinc" > confmf
3007 # We grep out `Entering directory' and `Leaving directory'
3008 # messages which can occur if `w' ends up in MAKEFLAGS.
3009 # In particular we don't look at `^make:' because GNU make might
3010 # be invoked under some other name (usually "gmake"), in which
3011 # case it prints its new name instead of `make'.
3012 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3017 # Now try BSD make style include.
3018 if test "$am__include" = "#"; then
3019 echo '.include "confinc"' > confmf
3020 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3021 am__include=.include
3028 { echo "$as_me:$LINENO: result: $_am_result" >&5
3029 echo "${ECHO_T}$_am_result" >&6; }
3030 rm -f confinc confmf
3032 # Check whether --enable-dependency-tracking was given.
3033 if test "${enable_dependency_tracking+set}" = set; then
3034 enableval=$enable_dependency_tracking;
3037 if test "x$enable_dependency_tracking" != xno; then
3038 am_depcomp="$ac_aux_dir/depcomp"
3043 if test "x$enable_dependency_tracking" != xno; then
3056 # Check whether --enable-debug was given.
3057 if test "${enable_debug+set}" = set; then
3058 enableval=$enable_debug;
3061 kde_use_debug_code="yes"
3062 kde_use_debug_define=no
3065 kde_use_debug_code="full"
3066 kde_use_debug_define=no
3069 kde_use_debug_code="no"
3070 kde_use_debug_define=yes
3075 kde_use_debug_code="no"
3076 kde_use_debug_define=no
3081 # Check whether --enable-dummyoption was given.
3082 if test "${enable_dummyoption+set}" = set; then
3083 enableval=$enable_dummyoption;
3087 # Check whether --enable-strict was given.
3088 if test "${enable_strict+set}" = set; then
3089 enableval=$enable_strict;
3090 if test $enableval = "no"; then
3091 kde_use_strict_options="no"
3093 kde_use_strict_options="yes"
3097 kde_use_strict_options="no"
3101 # Check whether --enable-warnings was given.
3102 if test "${enable_warnings+set}" = set; then
3103 enableval=$enable_warnings;
3104 if test $enableval = "no"; then
3105 kde_use_warnings="no"
3107 kde_use_warnings="yes"
3111 kde_use_warnings="yes"
3115 if test "$kde_use_debug_code" != "no"; then
3116 kde_use_warnings=yes
3119 # Check whether --enable-profile was given.
3120 if test "${enable_profile+set}" = set; then
3121 enableval=$enable_profile; kde_use_profiling=$enableval
3123 kde_use_profiling="no"
3131 ac_cpp='$CPP $CPPFLAGS'
3132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3135 if test -n "$ac_tool_prefix"; then
3136 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3137 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3138 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3140 if test "${ac_cv_prog_CC+set}" = set; then
3141 echo $ECHO_N "(cached) $ECHO_C" >&6
3143 if test -n "$CC"; then
3144 ac_cv_prog_CC="$CC" # Let the user override the test.
3146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3150 test -z "$as_dir" && as_dir=.
3151 for ac_exec_ext in '' $ac_executable_extensions; do
3152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3153 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3164 if test -n "$CC"; then
3165 { echo "$as_me:$LINENO: result: $CC" >&5
3166 echo "${ECHO_T}$CC" >&6; }
3168 { echo "$as_me:$LINENO: result: no" >&5
3169 echo "${ECHO_T}no" >&6; }
3174 if test -z "$ac_cv_prog_CC"; then
3176 # Extract the first word of "gcc", so it can be a program name with args.
3177 set dummy gcc; ac_word=$2
3178 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3180 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3181 echo $ECHO_N "(cached) $ECHO_C" >&6
3183 if test -n "$ac_ct_CC"; then
3184 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3190 test -z "$as_dir" && as_dir=.
3191 for ac_exec_ext in '' $ac_executable_extensions; do
3192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3193 ac_cv_prog_ac_ct_CC="gcc"
3194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3203 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3204 if test -n "$ac_ct_CC"; then
3205 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3206 echo "${ECHO_T}$ac_ct_CC" >&6; }
3208 { echo "$as_me:$LINENO: result: no" >&5
3209 echo "${ECHO_T}no" >&6; }
3212 if test "x$ac_ct_CC" = x; then
3215 case $cross_compiling:$ac_tool_warned in
3217 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3218 whose name does not start with the host triplet. If you think this
3219 configuration is useful to you, please write to autoconf@gnu.org." >&5
3220 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3221 whose name does not start with the host triplet. If you think this
3222 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3223 ac_tool_warned=yes ;;
3231 if test -z "$CC"; then
3232 if test -n "$ac_tool_prefix"; then
3233 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3234 set dummy ${ac_tool_prefix}cc; ac_word=$2
3235 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3237 if test "${ac_cv_prog_CC+set}" = set; then
3238 echo $ECHO_N "(cached) $ECHO_C" >&6
3240 if test -n "$CC"; then
3241 ac_cv_prog_CC="$CC" # Let the user override the test.
3243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3247 test -z "$as_dir" && as_dir=.
3248 for ac_exec_ext in '' $ac_executable_extensions; do
3249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3250 ac_cv_prog_CC="${ac_tool_prefix}cc"
3251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3261 if test -n "$CC"; then
3262 { echo "$as_me:$LINENO: result: $CC" >&5
3263 echo "${ECHO_T}$CC" >&6; }
3265 { echo "$as_me:$LINENO: result: no" >&5
3266 echo "${ECHO_T}no" >&6; }
3272 if test -z "$CC"; then
3273 # Extract the first word of "cc", so it can be a program name with args.
3274 set dummy cc; ac_word=$2
3275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3277 if test "${ac_cv_prog_CC+set}" = set; then
3278 echo $ECHO_N "(cached) $ECHO_C" >&6
3280 if test -n "$CC"; then
3281 ac_cv_prog_CC="$CC" # Let the user override the test.
3284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3288 test -z "$as_dir" && as_dir=.
3289 for ac_exec_ext in '' $ac_executable_extensions; do
3290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3291 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3292 ac_prog_rejected=yes
3296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3303 if test $ac_prog_rejected = yes; then
3304 # We found a bogon in the path, so make sure we never use it.
3305 set dummy $ac_cv_prog_CC
3307 if test $# != 0; then
3308 # We chose a different compiler from the bogus one.
3309 # However, it has the same basename, so the bogon will be chosen
3310 # first if we set CC to just the basename; use the full file name.
3312 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3318 if test -n "$CC"; then
3319 { echo "$as_me:$LINENO: result: $CC" >&5
3320 echo "${ECHO_T}$CC" >&6; }
3322 { echo "$as_me:$LINENO: result: no" >&5
3323 echo "${ECHO_T}no" >&6; }
3328 if test -z "$CC"; then
3329 if test -n "$ac_tool_prefix"; then
3330 for ac_prog in cl.exe
3332 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3333 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3334 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3336 if test "${ac_cv_prog_CC+set}" = set; then
3337 echo $ECHO_N "(cached) $ECHO_C" >&6
3339 if test -n "$CC"; then
3340 ac_cv_prog_CC="$CC" # Let the user override the test.
3342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3346 test -z "$as_dir" && as_dir=.
3347 for ac_exec_ext in '' $ac_executable_extensions; do
3348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3349 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3360 if test -n "$CC"; then
3361 { echo "$as_me:$LINENO: result: $CC" >&5
3362 echo "${ECHO_T}$CC" >&6; }
3364 { echo "$as_me:$LINENO: result: no" >&5
3365 echo "${ECHO_T}no" >&6; }
3369 test -n "$CC" && break
3372 if test -z "$CC"; then
3374 for ac_prog in cl.exe
3376 # Extract the first word of "$ac_prog", so it can be a program name with args.
3377 set dummy $ac_prog; ac_word=$2
3378 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3380 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3381 echo $ECHO_N "(cached) $ECHO_C" >&6
3383 if test -n "$ac_ct_CC"; then
3384 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3390 test -z "$as_dir" && as_dir=.
3391 for ac_exec_ext in '' $ac_executable_extensions; do
3392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3393 ac_cv_prog_ac_ct_CC="$ac_prog"
3394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3403 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3404 if test -n "$ac_ct_CC"; then
3405 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3406 echo "${ECHO_T}$ac_ct_CC" >&6; }
3408 { echo "$as_me:$LINENO: result: no" >&5
3409 echo "${ECHO_T}no" >&6; }
3413 test -n "$ac_ct_CC" && break
3416 if test "x$ac_ct_CC" = x; then
3419 case $cross_compiling:$ac_tool_warned in
3421 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3422 whose name does not start with the host triplet. If you think this
3423 configuration is useful to you, please write to autoconf@gnu.org." >&5
3424 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3425 whose name does not start with the host triplet. If you think this
3426 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3427 ac_tool_warned=yes ;;
3436 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3437 See \`config.log' for more details." >&5
3438 echo "$as_me: error: no acceptable C compiler found in \$PATH
3439 See \`config.log' for more details." >&2;}
3440 { (exit 1); exit 1; }; }
3442 # Provide some information about the compiler.
3443 echo "$as_me:$LINENO: checking for C compiler version" >&5
3444 ac_compiler=`set X $ac_compile; echo $2`
3445 { (ac_try="$ac_compiler --version >&5"
3447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3448 *) ac_try_echo=$ac_try;;
3450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3451 (eval "$ac_compiler --version >&5") 2>&5
3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); }
3455 { (ac_try="$ac_compiler -v >&5"
3457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3458 *) ac_try_echo=$ac_try;;
3460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3461 (eval "$ac_compiler -v >&5") 2>&5
3463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464 (exit $ac_status); }
3465 { (ac_try="$ac_compiler -V >&5"
3467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3468 *) ac_try_echo=$ac_try;;
3470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3471 (eval "$ac_compiler -V >&5") 2>&5
3473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474 (exit $ac_status); }
3476 cat >conftest.$ac_ext <<_ACEOF
3479 cat confdefs.h >>conftest.$ac_ext
3480 cat >>conftest.$ac_ext <<_ACEOF
3481 /* end confdefs.h. */
3491 ac_clean_files_save=$ac_clean_files
3492 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3493 # Try to create an executable without -o first, disregard a.out.
3494 # It will help us diagnose broken compilers, and finding out an intuition
3496 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3497 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3498 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3500 # List of possible output files, starting from the most likely.
3501 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3502 # only as a last resort. b.out is created by i960 compilers.
3503 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3505 # The IRIX 6 linker writes into existing files which may not be
3506 # executable, retaining their permissions. Remove them first so a
3507 # subsequent execution test works.
3509 for ac_file in $ac_files
3512 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3513 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3518 if { (ac_try="$ac_link_default"
3520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3521 *) ac_try_echo=$ac_try;;
3523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3524 (eval "$ac_link_default") 2>&5
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); }; then
3528 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3529 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3530 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3531 # so that the user can short-circuit this test for compilers unknown to
3533 for ac_file in $ac_files ''
3535 test -f "$ac_file" || continue
3537 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3540 # We found the default executable, but exeext='' is most
3544 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3546 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3548 # We set ac_cv_exeext here because the later test for it is not
3549 # safe: cross compilers may not add the suffix if given an `-o'
3550 # argument, so we may need to know it at that point already.
3551 # Even if this section looks crufty: it has the advantage of
3558 test "$ac_cv_exeext" = no && ac_cv_exeext=
3564 { echo "$as_me:$LINENO: result: $ac_file" >&5
3565 echo "${ECHO_T}$ac_file" >&6; }
3566 if test -z "$ac_file"; then
3567 echo "$as_me: failed program was:" >&5
3568 sed 's/^/| /' conftest.$ac_ext >&5
3570 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3571 See \`config.log' for more details." >&5
3572 echo "$as_me: error: C compiler cannot create executables
3573 See \`config.log' for more details." >&2;}
3574 { (exit 77); exit 77; }; }
3577 ac_exeext=$ac_cv_exeext
3579 # Check that the compiler produces executables we can run. If not, either
3580 # the compiler is broken, or we cross compile.
3581 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3582 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3583 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3584 # If not cross compiling, check that we can run a simple program.
3585 if test "$cross_compiling" != yes; then
3586 if { ac_try='./$ac_file'
3587 { (case "(($ac_try" in
3588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3589 *) ac_try_echo=$ac_try;;
3591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3592 (eval "$ac_try") 2>&5
3594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595 (exit $ac_status); }; }; then
3598 if test "$cross_compiling" = maybe; then
3601 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3602 If you meant to cross compile, use \`--host'.
3603 See \`config.log' for more details." >&5
3604 echo "$as_me: error: cannot run C compiled programs.
3605 If you meant to cross compile, use \`--host'.
3606 See \`config.log' for more details." >&2;}
3607 { (exit 1); exit 1; }; }
3611 { echo "$as_me:$LINENO: result: yes" >&5
3612 echo "${ECHO_T}yes" >&6; }
3614 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3615 ac_clean_files=$ac_clean_files_save
3616 # Check that the compiler produces executables we can run. If not, either
3617 # the compiler is broken, or we cross compile.
3618 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3619 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3620 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3621 echo "${ECHO_T}$cross_compiling" >&6; }
3623 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3624 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3625 if { (ac_try="$ac_link"
3627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3628 *) ac_try_echo=$ac_try;;
3630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3631 (eval "$ac_link") 2>&5
3633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634 (exit $ac_status); }; then
3635 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3636 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3637 # work properly (i.e., refer to `conftest.exe'), while it won't with
3639 for ac_file in conftest.exe conftest conftest.*; do
3640 test -f "$ac_file" || continue
3642 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3643 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3649 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3650 See \`config.log' for more details." >&5
3651 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3652 See \`config.log' for more details." >&2;}
3653 { (exit 1); exit 1; }; }
3656 rm -f conftest$ac_cv_exeext
3657 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3658 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3660 rm -f conftest.$ac_ext
3661 EXEEXT=$ac_cv_exeext
3663 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3664 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3665 if test "${ac_cv_objext+set}" = set; then
3666 echo $ECHO_N "(cached) $ECHO_C" >&6
3668 cat >conftest.$ac_ext <<_ACEOF
3671 cat confdefs.h >>conftest.$ac_ext
3672 cat >>conftest.$ac_ext <<_ACEOF
3673 /* end confdefs.h. */
3683 rm -f conftest.o conftest.obj
3684 if { (ac_try="$ac_compile"
3686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3687 *) ac_try_echo=$ac_try;;
3689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3690 (eval "$ac_compile") 2>&5
3692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693 (exit $ac_status); }; then
3694 for ac_file in conftest.o conftest.obj conftest.*; do
3695 test -f "$ac_file" || continue;
3697 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3698 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3703 echo "$as_me: failed program was:" >&5
3704 sed 's/^/| /' conftest.$ac_ext >&5
3706 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3707 See \`config.log' for more details." >&5
3708 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3709 See \`config.log' for more details." >&2;}
3710 { (exit 1); exit 1; }; }
3713 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3715 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3716 echo "${ECHO_T}$ac_cv_objext" >&6; }
3717 OBJEXT=$ac_cv_objext
3719 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3720 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3721 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3722 echo $ECHO_N "(cached) $ECHO_C" >&6
3724 cat >conftest.$ac_ext <<_ACEOF
3727 cat confdefs.h >>conftest.$ac_ext
3728 cat >>conftest.$ac_ext <<_ACEOF
3729 /* end confdefs.h. */
3742 rm -f conftest.$ac_objext
3743 if { (ac_try="$ac_compile"
3745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3746 *) ac_try_echo=$ac_try;;
3748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3749 (eval "$ac_compile") 2>conftest.er1
3751 grep -v '^ *+' conftest.er1 >conftest.err
3753 cat conftest.err >&5
3754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755 (exit $ac_status); } && {
3756 test -z "$ac_c_werror_flag" ||
3757 test ! -s conftest.err
3758 } && test -s conftest.$ac_objext; then
3761 echo "$as_me: failed program was:" >&5
3762 sed 's/^/| /' conftest.$ac_ext >&5
3767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3768 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3771 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3772 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3773 GCC=`test $ac_compiler_gnu = yes && echo yes`
3774 ac_test_CFLAGS=${CFLAGS+set}
3775 ac_save_CFLAGS=$CFLAGS
3776 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3777 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3778 if test "${ac_cv_prog_cc_g+set}" = set; then
3779 echo $ECHO_N "(cached) $ECHO_C" >&6
3781 ac_save_c_werror_flag=$ac_c_werror_flag
3782 ac_c_werror_flag=yes
3785 cat >conftest.$ac_ext <<_ACEOF
3788 cat confdefs.h >>conftest.$ac_ext
3789 cat >>conftest.$ac_ext <<_ACEOF
3790 /* end confdefs.h. */
3800 rm -f conftest.$ac_objext
3801 if { (ac_try="$ac_compile"
3803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3804 *) ac_try_echo=$ac_try;;
3806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3807 (eval "$ac_compile") 2>conftest.er1
3809 grep -v '^ *+' conftest.er1 >conftest.err
3811 cat conftest.err >&5
3812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813 (exit $ac_status); } && {
3814 test -z "$ac_c_werror_flag" ||
3815 test ! -s conftest.err
3816 } && test -s conftest.$ac_objext; then
3819 echo "$as_me: failed program was:" >&5
3820 sed 's/^/| /' conftest.$ac_ext >&5
3823 cat >conftest.$ac_ext <<_ACEOF
3826 cat confdefs.h >>conftest.$ac_ext
3827 cat >>conftest.$ac_ext <<_ACEOF
3828 /* end confdefs.h. */
3838 rm -f conftest.$ac_objext
3839 if { (ac_try="$ac_compile"
3841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3842 *) ac_try_echo=$ac_try;;
3844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3845 (eval "$ac_compile") 2>conftest.er1
3847 grep -v '^ *+' conftest.er1 >conftest.err
3849 cat conftest.err >&5
3850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851 (exit $ac_status); } && {
3852 test -z "$ac_c_werror_flag" ||
3853 test ! -s conftest.err
3854 } && test -s conftest.$ac_objext; then
3857 echo "$as_me: failed program was:" >&5
3858 sed 's/^/| /' conftest.$ac_ext >&5
3860 ac_c_werror_flag=$ac_save_c_werror_flag
3862 cat >conftest.$ac_ext <<_ACEOF
3865 cat confdefs.h >>conftest.$ac_ext
3866 cat >>conftest.$ac_ext <<_ACEOF
3867 /* end confdefs.h. */
3877 rm -f conftest.$ac_objext
3878 if { (ac_try="$ac_compile"
3880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3881 *) ac_try_echo=$ac_try;;
3883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3884 (eval "$ac_compile") 2>conftest.er1
3886 grep -v '^ *+' conftest.er1 >conftest.err
3888 cat conftest.err >&5
3889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3890 (exit $ac_status); } && {
3891 test -z "$ac_c_werror_flag" ||
3892 test ! -s conftest.err
3893 } && test -s conftest.$ac_objext; then
3896 echo "$as_me: failed program was:" >&5
3897 sed 's/^/| /' conftest.$ac_ext >&5
3902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3909 ac_c_werror_flag=$ac_save_c_werror_flag
3911 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3912 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3913 if test "$ac_test_CFLAGS" = set; then
3914 CFLAGS=$ac_save_CFLAGS
3915 elif test $ac_cv_prog_cc_g = yes; then
3916 if test "$GCC" = yes; then
3922 if test "$GCC" = yes; then
3928 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3929 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3930 if test "${ac_cv_prog_cc_c89+set}" = set; then
3931 echo $ECHO_N "(cached) $ECHO_C" >&6
3933 ac_cv_prog_cc_c89=no
3935 cat >conftest.$ac_ext <<_ACEOF
3938 cat confdefs.h >>conftest.$ac_ext
3939 cat >>conftest.$ac_ext <<_ACEOF
3940 /* end confdefs.h. */
3943 #include <sys/types.h>
3944 #include <sys/stat.h>
3945 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3946 struct buf { int x; };
3947 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3948 static char *e (p, i)
3954 static char *f (char * (*g) (char **, int), char **p, ...)
3959 s = g (p, va_arg (v,int));
3964 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3965 function prototypes and stuff, but not '\xHH' hex character constants.
3966 These don't provoke an error unfortunately, instead are silently treated
3967 as 'x'. The following induces an error, until -std is added to get
3968 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3969 array size at least. It's necessary to write '\x00'==0 to get something
3970 that's true only with -std. */
3971 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3973 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3974 inside strings and character constants. */
3976 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3978 int test (int i, double x);
3979 struct s1 {int (*f) (int a);};
3980 struct s2 {int (*f) (double a);};
3981 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3987 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3992 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3993 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3995 CC="$ac_save_CC $ac_arg"
3996 rm -f conftest.$ac_objext
3997 if { (ac_try="$ac_compile"
3999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4000 *) ac_try_echo=$ac_try;;
4002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4003 (eval "$ac_compile") 2>conftest.er1
4005 grep -v '^ *+' conftest.er1 >conftest.err
4007 cat conftest.err >&5
4008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009 (exit $ac_status); } && {
4010 test -z "$ac_c_werror_flag" ||
4011 test ! -s conftest.err
4012 } && test -s conftest.$ac_objext; then
4013 ac_cv_prog_cc_c89=$ac_arg
4015 echo "$as_me: failed program was:" >&5
4016 sed 's/^/| /' conftest.$ac_ext >&5
4021 rm -f core conftest.err conftest.$ac_objext
4022 test "x$ac_cv_prog_cc_c89" != "xno" && break
4024 rm -f conftest.$ac_ext
4029 case "x$ac_cv_prog_cc_c89" in
4031 { echo "$as_me:$LINENO: result: none needed" >&5
4032 echo "${ECHO_T}none needed" >&6; } ;;
4034 { echo "$as_me:$LINENO: result: unsupported" >&5
4035 echo "${ECHO_T}unsupported" >&6; } ;;
4037 CC="$CC $ac_cv_prog_cc_c89"
4038 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4039 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4044 ac_cpp='$CPP $CPPFLAGS'
4045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4049 depcc="$CC" am_compiler_list=
4051 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4052 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4053 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4054 echo $ECHO_N "(cached) $ECHO_C" >&6
4056 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4057 # We make a subdir and do the tests there. Otherwise we can end up
4058 # making bogus files that we don't know about and never remove. For
4059 # instance it was reported that on HP-UX the gcc test will end up
4060 # making a dummy file named `D' -- because `-MD' means `put the output
4063 # Copy depcomp to subdir because otherwise we won't find it if we're
4064 # using a relative directory.
4065 cp "$am_depcomp" conftest.dir
4067 # We will build objects and dependencies in a subdirectory because
4068 # it helps to detect inapplicable dependency modes. For instance
4069 # both Tru64's cc and ICC support -MD to output dependencies as a
4070 # side effect of compilation, but ICC will put the dependencies in
4071 # the current directory while Tru64 will put them in the object
4075 am_cv_CC_dependencies_compiler_type=none
4076 if test "$am_compiler_list" = ""; then
4077 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4079 for depmode in $am_compiler_list; do
4080 # Setup a source with many dependencies, because some compilers
4081 # like to wrap large dependency lists on column 80 (with \), and
4082 # we should not choose a depcomp mode which is confused by this.
4084 # We need to recreate these files for each test, as the compiler may
4085 # overwrite some of them when testing with obscure command lines.
4086 # This happens at least with the AIX C compiler.
4088 for i in 1 2 3 4 5 6; do
4089 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4090 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4091 # Solaris 8's {/usr,}/bin/sh.
4092 touch sub/conftst$i.h
4094 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4098 # after this tag, mechanisms are not by side-effect, so they'll
4099 # only be used when explicitly requested
4100 if test "x$enable_dependency_tracking" = xyes; then
4108 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4109 # mode. It turns out that the SunPro C++ compiler does not properly
4110 # handle `-M -o', and we need to detect this.
4111 if depmode=$depmode \
4112 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4113 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4114 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4115 >/dev/null 2>conftest.err &&
4116 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4117 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4118 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4119 # icc doesn't choke on unknown options, it will just issue warnings
4120 # or remarks (even with -Werror). So we grep stderr for any message
4121 # that says an option was ignored or not supported.
4122 # When given -MP, icc 7.0 and 7.1 complain thusly:
4123 # icc: Command line warning: ignoring option '-M'; no argument required
4124 # The diagnosis changed in icc 8.0:
4125 # icc: Command line remark: option '-MP' not supported
4126 if (grep 'ignoring option' conftest.err ||
4127 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4128 am_cv_CC_dependencies_compiler_type=$depmode
4137 am_cv_CC_dependencies_compiler_type=none
4141 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4142 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4143 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4148 test "x$enable_dependency_tracking" != xno \
4149 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4151 am__fastdepCC_FALSE='#'
4153 am__fastdepCC_TRUE='#'
4154 am__fastdepCC_FALSE=
4160 ac_cpp='$CPP $CPPFLAGS'
4161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4164 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4165 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4166 # On Suns, sometimes $CPP names a directory.
4167 if test -n "$CPP" && test -d "$CPP"; then
4170 if test -z "$CPP"; then
4171 if test "${ac_cv_prog_CPP+set}" = set; then
4172 echo $ECHO_N "(cached) $ECHO_C" >&6
4174 # Double quotes because CPP needs to be expanded
4175 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4178 for ac_c_preproc_warn_flag in '' yes
4180 # Use a header file that comes with gcc, so configuring glibc
4181 # with a fresh cross-compiler works.
4182 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4183 # <limits.h> exists even on freestanding compilers.
4184 # On the NeXT, cc -E runs the code through the compiler's parser,
4185 # not just through cpp. "Syntax error" is here to catch this case.
4186 cat >conftest.$ac_ext <<_ACEOF
4189 cat confdefs.h >>conftest.$ac_ext
4190 cat >>conftest.$ac_ext <<_ACEOF
4191 /* end confdefs.h. */
4193 # include <limits.h>
4195 # include <assert.h>
4199 if { (ac_try="$ac_cpp conftest.$ac_ext"
4201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4202 *) ac_try_echo=$ac_try;;
4204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4205 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4207 grep -v '^ *+' conftest.er1 >conftest.err
4209 cat conftest.err >&5
4210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211 (exit $ac_status); } >/dev/null && {
4212 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4213 test ! -s conftest.err
4217 echo "$as_me: failed program was:" >&5
4218 sed 's/^/| /' conftest.$ac_ext >&5
4220 # Broken: fails on valid input.
4224 rm -f conftest.err conftest.$ac_ext
4226 # OK, works on sane cases. Now check whether nonexistent headers
4227 # can be detected and how.
4228 cat >conftest.$ac_ext <<_ACEOF
4231 cat confdefs.h >>conftest.$ac_ext
4232 cat >>conftest.$ac_ext <<_ACEOF
4233 /* end confdefs.h. */
4234 #include <ac_nonexistent.h>
4236 if { (ac_try="$ac_cpp conftest.$ac_ext"
4238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4239 *) ac_try_echo=$ac_try;;
4241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4242 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4244 grep -v '^ *+' conftest.er1 >conftest.err
4246 cat conftest.err >&5
4247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248 (exit $ac_status); } >/dev/null && {
4249 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4250 test ! -s conftest.err
4252 # Broken: success on invalid input.
4255 echo "$as_me: failed program was:" >&5
4256 sed 's/^/| /' conftest.$ac_ext >&5
4258 # Passes both tests.
4263 rm -f conftest.err conftest.$ac_ext
4266 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4267 rm -f conftest.err conftest.$ac_ext
4268 if $ac_preproc_ok; then
4280 { echo "$as_me:$LINENO: result: $CPP" >&5
4281 echo "${ECHO_T}$CPP" >&6; }
4283 for ac_c_preproc_warn_flag in '' yes
4285 # Use a header file that comes with gcc, so configuring glibc
4286 # with a fresh cross-compiler works.
4287 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4288 # <limits.h> exists even on freestanding compilers.
4289 # On the NeXT, cc -E runs the code through the compiler's parser,
4290 # not just through cpp. "Syntax error" is here to catch this case.
4291 cat >conftest.$ac_ext <<_ACEOF
4294 cat confdefs.h >>conftest.$ac_ext
4295 cat >>conftest.$ac_ext <<_ACEOF
4296 /* end confdefs.h. */
4298 # include <limits.h>
4300 # include <assert.h>
4304 if { (ac_try="$ac_cpp conftest.$ac_ext"
4306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4307 *) ac_try_echo=$ac_try;;
4309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4310 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4312 grep -v '^ *+' conftest.er1 >conftest.err
4314 cat conftest.err >&5
4315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316 (exit $ac_status); } >/dev/null && {
4317 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4318 test ! -s conftest.err
4322 echo "$as_me: failed program was:" >&5
4323 sed 's/^/| /' conftest.$ac_ext >&5
4325 # Broken: fails on valid input.
4329 rm -f conftest.err conftest.$ac_ext
4331 # OK, works on sane cases. Now check whether nonexistent headers
4332 # can be detected and how.
4333 cat >conftest.$ac_ext <<_ACEOF
4336 cat confdefs.h >>conftest.$ac_ext
4337 cat >>conftest.$ac_ext <<_ACEOF
4338 /* end confdefs.h. */
4339 #include <ac_nonexistent.h>
4341 if { (ac_try="$ac_cpp conftest.$ac_ext"
4343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4344 *) ac_try_echo=$ac_try;;
4346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4347 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4349 grep -v '^ *+' conftest.er1 >conftest.err
4351 cat conftest.err >&5
4352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353 (exit $ac_status); } >/dev/null && {
4354 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4355 test ! -s conftest.err
4357 # Broken: success on invalid input.
4360 echo "$as_me: failed program was:" >&5
4361 sed 's/^/| /' conftest.$ac_ext >&5
4363 # Passes both tests.
4368 rm -f conftest.err conftest.$ac_ext
4371 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4372 rm -f conftest.err conftest.$ac_ext
4373 if $ac_preproc_ok; then
4376 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4377 See \`config.log' for more details." >&5
4378 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4379 See \`config.log' for more details." >&2;}
4380 { (exit 1); exit 1; }; }
4384 ac_cpp='$CPP $CPPFLAGS'
4385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4390 if test "$GCC" = "yes"; then
4391 if test "$kde_use_debug_code" != "no"; then
4392 if test $kde_use_debug_code = "full"; then
4393 CFLAGS="-g3 -fno-inline $CFLAGS"
4395 CFLAGS="-g -O2 $CFLAGS"
4398 CFLAGS="-O2 $CFLAGS"
4402 if test "$kde_use_debug_define" = "yes"; then
4403 CFLAGS="-DNDEBUG $CFLAGS"
4408 *-*-sysv4.2uw*) CFLAGS="-D_UNIXWARE $CFLAGS";;
4409 *-*-sysv5uw7*) CFLAGS="-D_UNIXWARE7 $CFLAGS";;
4412 if test -z "$LDFLAGS" && test "$kde_use_debug_code" = "no" && test "$GCC" = "yes"; then
4416 CXXFLAGS=" $CXXFLAGS"
4419 ac_cpp='$CXXCPP $CPPFLAGS'
4420 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4421 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4422 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4423 if test -z "$CXX"; then
4424 if test -n "$CCC"; then
4427 if test -n "$ac_tool_prefix"; then
4428 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4430 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4431 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4434 if test "${ac_cv_prog_CXX+set}" = set; then
4435 echo $ECHO_N "(cached) $ECHO_C" >&6
4437 if test -n "$CXX"; then
4438 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4444 test -z "$as_dir" && as_dir=.
4445 for ac_exec_ext in '' $ac_executable_extensions; do
4446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4447 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4458 if test -n "$CXX"; then
4459 { echo "$as_me:$LINENO: result: $CXX" >&5
4460 echo "${ECHO_T}$CXX" >&6; }
4462 { echo "$as_me:$LINENO: result: no" >&5
4463 echo "${ECHO_T}no" >&6; }
4467 test -n "$CXX" && break
4470 if test -z "$CXX"; then
4472 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4474 # Extract the first word of "$ac_prog", so it can be a program name with args.
4475 set dummy $ac_prog; ac_word=$2
4476 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4478 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4479 echo $ECHO_N "(cached) $ECHO_C" >&6
4481 if test -n "$ac_ct_CXX"; then
4482 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4488 test -z "$as_dir" && as_dir=.
4489 for ac_exec_ext in '' $ac_executable_extensions; do
4490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4491 ac_cv_prog_ac_ct_CXX="$ac_prog"
4492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4501 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4502 if test -n "$ac_ct_CXX"; then
4503 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4504 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4506 { echo "$as_me:$LINENO: result: no" >&5
4507 echo "${ECHO_T}no" >&6; }
4511 test -n "$ac_ct_CXX" && break
4514 if test "x$ac_ct_CXX" = x; then
4517 case $cross_compiling:$ac_tool_warned in
4519 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4520 whose name does not start with the host triplet. If you think this
4521 configuration is useful to you, please write to autoconf@gnu.org." >&5
4522 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4523 whose name does not start with the host triplet. If you think this
4524 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4525 ac_tool_warned=yes ;;
4533 # Provide some information about the compiler.
4534 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4535 ac_compiler=`set X $ac_compile; echo $2`
4536 { (ac_try="$ac_compiler --version >&5"
4538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4539 *) ac_try_echo=$ac_try;;
4541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4542 (eval "$ac_compiler --version >&5") 2>&5
4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); }
4546 { (ac_try="$ac_compiler -v >&5"
4548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4549 *) ac_try_echo=$ac_try;;
4551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4552 (eval "$ac_compiler -v >&5") 2>&5
4554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555 (exit $ac_status); }
4556 { (ac_try="$ac_compiler -V >&5"
4558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4559 *) ac_try_echo=$ac_try;;
4561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4562 (eval "$ac_compiler -V >&5") 2>&5
4564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565 (exit $ac_status); }
4567 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4568 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4569 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4570 echo $ECHO_N "(cached) $ECHO_C" >&6
4572 cat >conftest.$ac_ext <<_ACEOF
4575 cat confdefs.h >>conftest.$ac_ext
4576 cat >>conftest.$ac_ext <<_ACEOF
4577 /* end confdefs.h. */
4590 rm -f conftest.$ac_objext
4591 if { (ac_try="$ac_compile"
4593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4594 *) ac_try_echo=$ac_try;;
4596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4597 (eval "$ac_compile") 2>conftest.er1
4599 grep -v '^ *+' conftest.er1 >conftest.err
4601 cat conftest.err >&5
4602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603 (exit $ac_status); } && {
4604 test -z "$ac_cxx_werror_flag" ||
4605 test ! -s conftest.err
4606 } && test -s conftest.$ac_objext; then
4609 echo "$as_me: failed program was:" >&5
4610 sed 's/^/| /' conftest.$ac_ext >&5
4615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4616 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4619 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4620 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4621 GXX=`test $ac_compiler_gnu = yes && echo yes`
4622 ac_test_CXXFLAGS=${CXXFLAGS+set}
4623 ac_save_CXXFLAGS=$CXXFLAGS
4624 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4625 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4626 if test "${ac_cv_prog_cxx_g+set}" = set; then
4627 echo $ECHO_N "(cached) $ECHO_C" >&6
4629 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4630 ac_cxx_werror_flag=yes
4633 cat >conftest.$ac_ext <<_ACEOF
4636 cat confdefs.h >>conftest.$ac_ext
4637 cat >>conftest.$ac_ext <<_ACEOF
4638 /* end confdefs.h. */
4648 rm -f conftest.$ac_objext
4649 if { (ac_try="$ac_compile"
4651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4652 *) ac_try_echo=$ac_try;;
4654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4655 (eval "$ac_compile") 2>conftest.er1
4657 grep -v '^ *+' conftest.er1 >conftest.err
4659 cat conftest.err >&5
4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661 (exit $ac_status); } && {
4662 test -z "$ac_cxx_werror_flag" ||
4663 test ! -s conftest.err
4664 } && test -s conftest.$ac_objext; then
4665 ac_cv_prog_cxx_g=yes
4667 echo "$as_me: failed program was:" >&5
4668 sed 's/^/| /' conftest.$ac_ext >&5
4671 cat >conftest.$ac_ext <<_ACEOF
4674 cat confdefs.h >>conftest.$ac_ext
4675 cat >>conftest.$ac_ext <<_ACEOF
4676 /* end confdefs.h. */
4686 rm -f conftest.$ac_objext
4687 if { (ac_try="$ac_compile"
4689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4690 *) ac_try_echo=$ac_try;;
4692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4693 (eval "$ac_compile") 2>conftest.er1
4695 grep -v '^ *+' conftest.er1 >conftest.err
4697 cat conftest.err >&5
4698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699 (exit $ac_status); } && {
4700 test -z "$ac_cxx_werror_flag" ||
4701 test ! -s conftest.err
4702 } && test -s conftest.$ac_objext; then
4705 echo "$as_me: failed program was:" >&5
4706 sed 's/^/| /' conftest.$ac_ext >&5
4708 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4710 cat >conftest.$ac_ext <<_ACEOF
4713 cat confdefs.h >>conftest.$ac_ext
4714 cat >>conftest.$ac_ext <<_ACEOF
4715 /* end confdefs.h. */
4725 rm -f conftest.$ac_objext
4726 if { (ac_try="$ac_compile"
4728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4729 *) ac_try_echo=$ac_try;;
4731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4732 (eval "$ac_compile") 2>conftest.er1
4734 grep -v '^ *+' conftest.er1 >conftest.err
4736 cat conftest.err >&5
4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738 (exit $ac_status); } && {
4739 test -z "$ac_cxx_werror_flag" ||
4740 test ! -s conftest.err
4741 } && test -s conftest.$ac_objext; then
4742 ac_cv_prog_cxx_g=yes
4744 echo "$as_me: failed program was:" >&5
4745 sed 's/^/| /' conftest.$ac_ext >&5
4750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4757 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4759 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4760 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4761 if test "$ac_test_CXXFLAGS" = set; then
4762 CXXFLAGS=$ac_save_CXXFLAGS
4763 elif test $ac_cv_prog_cxx_g = yes; then
4764 if test "$GXX" = yes; then
4770 if test "$GXX" = yes; then
4777 ac_cpp='$CPP $CPPFLAGS'
4778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4782 depcc="$CXX" am_compiler_list=
4784 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4785 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4786 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4787 echo $ECHO_N "(cached) $ECHO_C" >&6
4789 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4790 # We make a subdir and do the tests there. Otherwise we can end up
4791 # making bogus files that we don't know about and never remove. For
4792 # instance it was reported that on HP-UX the gcc test will end up
4793 # making a dummy file named `D' -- because `-MD' means `put the output
4796 # Copy depcomp to subdir because otherwise we won't find it if we're
4797 # using a relative directory.
4798 cp "$am_depcomp" conftest.dir
4800 # We will build objects and dependencies in a subdirectory because
4801 # it helps to detect inapplicable dependency modes. For instance
4802 # both Tru64's cc and ICC support -MD to output dependencies as a
4803 # side effect of compilation, but ICC will put the dependencies in
4804 # the current directory while Tru64 will put them in the object
4808 am_cv_CXX_dependencies_compiler_type=none
4809 if test "$am_compiler_list" = ""; then
4810 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4812 for depmode in $am_compiler_list; do
4813 # Setup a source with many dependencies, because some compilers
4814 # like to wrap large dependency lists on column 80 (with \), and
4815 # we should not choose a depcomp mode which is confused by this.
4817 # We need to recreate these files for each test, as the compiler may
4818 # overwrite some of them when testing with obscure command lines.
4819 # This happens at least with the AIX C compiler.
4821 for i in 1 2 3 4 5 6; do
4822 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4823 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4824 # Solaris 8's {/usr,}/bin/sh.
4825 touch sub/conftst$i.h
4827 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4831 # after this tag, mechanisms are not by side-effect, so they'll
4832 # only be used when explicitly requested
4833 if test "x$enable_dependency_tracking" = xyes; then
4841 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4842 # mode. It turns out that the SunPro C++ compiler does not properly
4843 # handle `-M -o', and we need to detect this.
4844 if depmode=$depmode \
4845 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4846 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4847 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4848 >/dev/null 2>conftest.err &&
4849 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4850 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4851 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4852 # icc doesn't choke on unknown options, it will just issue warnings
4853 # or remarks (even with -Werror). So we grep stderr for any message
4854 # that says an option was ignored or not supported.
4855 # When given -MP, icc 7.0 and 7.1 complain thusly:
4856 # icc: Command line warning: ignoring option '-M'; no argument required
4857 # The diagnosis changed in icc 8.0:
4858 # icc: Command line remark: option '-MP' not supported
4859 if (grep 'ignoring option' conftest.err ||
4860 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4861 am_cv_CXX_dependencies_compiler_type=$depmode
4870 am_cv_CXX_dependencies_compiler_type=none
4874 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4875 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4876 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4881 test "x$enable_dependency_tracking" != xno \
4882 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4883 am__fastdepCXX_TRUE=
4884 am__fastdepCXX_FALSE='#'
4886 am__fastdepCXX_TRUE='#'
4887 am__fastdepCXX_FALSE=
4892 if test "$GXX" = "yes" || test "$CXX" = "KCC"; then
4893 if test "$kde_use_debug_code" != "no"; then
4894 if test "$CXX" = "KCC"; then
4895 CXXFLAGS="+K0 -Wall -pedantic -W -Wpointer-arith -Wwrite-strings $CXXFLAGS"
4897 if test "$kde_use_debug_code" = "full"; then
4898 CXXFLAGS="-g3 -fno-inline $CXXFLAGS"
4900 CXXFLAGS="-g -O2 $CXXFLAGS"
4904 { echo "$as_me:$LINENO: checking whether $CXX supports -fno-builtin" >&5
4905 echo $ECHO_N "checking whether $CXX supports -fno-builtin... $ECHO_C" >&6; }
4906 kde_cache=`echo fno-builtin | sed 'y% .=/+-,%____p__%'`
4907 if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
4908 echo $ECHO_N "(cached) $ECHO_C" >&6
4914 ac_cpp='$CXXCPP $CPPFLAGS'
4915 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4916 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4917 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4919 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4923 save_CXXFLAGS="$CXXFLAGS"
4924 CXXFLAGS="$CXXFLAGS -fno-builtin"
4925 cat >conftest.$ac_ext <<_ACEOF
4928 cat confdefs.h >>conftest.$ac_ext
4929 cat >>conftest.$ac_ext <<_ACEOF
4930 /* end confdefs.h. */
4940 rm -f conftest.$ac_objext conftest$ac_exeext
4941 if { (ac_try="$ac_link"
4943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4944 *) ac_try_echo=$ac_try;;
4946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4947 (eval "$ac_link") 2>conftest.er1
4949 grep -v '^ *+' conftest.er1 >conftest.err
4951 cat conftest.err >&5
4952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953 (exit $ac_status); } && {
4954 test -z "$ac_cxx_werror_flag" ||
4955 test ! -s conftest.err
4956 } && test -s conftest$ac_exeext &&
4957 $as_test_x conftest$ac_exeext; then
4958 eval "kde_cv_prog_cxx_$kde_cache=yes"
4960 echo "$as_me: failed program was:" >&5
4961 sed 's/^/| /' conftest.$ac_ext >&5
4966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4967 conftest$ac_exeext conftest.$ac_ext
4968 CXXFLAGS="$save_CXXFLAGS"
4970 ac_cpp='$CPP $CPPFLAGS'
4971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4978 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
4979 { echo "$as_me:$LINENO: result: yes" >&5
4980 echo "${ECHO_T}yes" >&6; }
4982 CXXFLAGS="-fno-builtin $CXXFLAGS"
4984 { echo "$as_me:$LINENO: result: no" >&5
4985 echo "${ECHO_T}no" >&6; }
4992 { echo "$as_me:$LINENO: checking whether $CXX supports -Woverloaded-virtual" >&5
4993 echo $ECHO_N "checking whether $CXX supports -Woverloaded-virtual... $ECHO_C" >&6; }
4994 kde_cache=`echo Woverloaded-virtual | sed 'y% .=/+-,%____p__%'`
4995 if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
4996 echo $ECHO_N "(cached) $ECHO_C" >&6
5001 ac_cpp='$CXXCPP $CPPFLAGS'
5002 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5003 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5004 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5006 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5009 save_CXXFLAGS="$CXXFLAGS"
5010 CXXFLAGS="$CXXFLAGS -Woverloaded-virtual"
5011 cat >conftest.$ac_ext <<_ACEOF
5014 cat confdefs.h >>conftest.$ac_ext
5015 cat >>conftest.$ac_ext <<_ACEOF
5016 /* end confdefs.h. */
5026 rm -f conftest.$ac_objext conftest$ac_exeext
5027 if { (ac_try="$ac_link"
5029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5030 *) ac_try_echo=$ac_try;;
5032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5033 (eval "$ac_link") 2>conftest.er1
5035 grep -v '^ *+' conftest.er1 >conftest.err
5037 cat conftest.err >&5
5038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039 (exit $ac_status); } && {
5040 test -z "$ac_cxx_werror_flag" ||
5041 test ! -s conftest.err
5042 } && test -s conftest$ac_exeext &&
5043 $as_test_x conftest$ac_exeext; then
5044 eval "kde_cv_prog_cxx_$kde_cache=yes"
5046 echo "$as_me: failed program was:" >&5
5047 sed 's/^/| /' conftest.$ac_ext >&5
5052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5053 conftest$ac_exeext conftest.$ac_ext
5054 CXXFLAGS="$save_CXXFLAGS"
5056 ac_cpp='$CPP $CPPFLAGS'
5057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5064 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5065 { echo "$as_me:$LINENO: result: yes" >&5
5066 echo "${ECHO_T}yes" >&6; }
5068 WOVERLOADED_VIRTUAL="-Woverloaded-virtual"
5070 { echo "$as_me:$LINENO: result: no" >&5
5071 echo "${ECHO_T}no" >&6; }
5073 WOVERLOADED_VRITUAL=""
5078 if test "$CXX" = "KCC"; then
5079 CXXFLAGS="+K3 $CXXFLAGS"
5081 CXXFLAGS="-O2 $CXXFLAGS"
5086 if test "$kde_use_debug_define" = "yes"; then
5087 CXXFLAGS="-DNDEBUG -DNO_DEBUG $CXXFLAGS"
5090 if test "$kde_use_profiling" = "yes"; then
5092 { echo "$as_me:$LINENO: checking whether $CXX supports -pg" >&5
5093 echo $ECHO_N "checking whether $CXX supports -pg... $ECHO_C" >&6; }
5094 kde_cache=`echo pg | sed 'y% .=/+-,%____p__%'`
5095 if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
5096 echo $ECHO_N "(cached) $ECHO_C" >&6
5101 ac_cpp='$CXXCPP $CPPFLAGS'
5102 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5103 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5104 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5106 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5109 save_CXXFLAGS="$CXXFLAGS"
5110 CXXFLAGS="$CXXFLAGS -pg"
5111 cat >conftest.$ac_ext <<_ACEOF
5114 cat confdefs.h >>conftest.$ac_ext
5115 cat >>conftest.$ac_ext <<_ACEOF
5116 /* end confdefs.h. */
5126 rm -f conftest.$ac_objext conftest$ac_exeext
5127 if { (ac_try="$ac_link"
5129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5130 *) ac_try_echo=$ac_try;;
5132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5133 (eval "$ac_link") 2>conftest.er1
5135 grep -v '^ *+' conftest.er1 >conftest.err
5137 cat conftest.err >&5
5138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139 (exit $ac_status); } && {
5140 test -z "$ac_cxx_werror_flag" ||
5141 test ! -s conftest.err
5142 } && test -s conftest$ac_exeext &&
5143 $as_test_x conftest$ac_exeext; then
5144 eval "kde_cv_prog_cxx_$kde_cache=yes"
5146 echo "$as_me: failed program was:" >&5
5147 sed 's/^/| /' conftest.$ac_ext >&5
5152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5153 conftest$ac_exeext conftest.$ac_ext
5154 CXXFLAGS="$save_CXXFLAGS"
5156 ac_cpp='$CPP $CPPFLAGS'
5157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5164 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5165 { echo "$as_me:$LINENO: result: yes" >&5
5166 echo "${ECHO_T}yes" >&6; }
5169 CFLAGS="-pg $CFLAGS"
5170 CXXFLAGS="-pg $CXXFLAGS"
5173 { echo "$as_me:$LINENO: result: no" >&5
5174 echo "${ECHO_T}no" >&6; }
5181 if test "$kde_use_warnings" = "yes"; then
5182 if test "$GCC" = "yes"; then
5183 CXXFLAGS="-Wall -W -Wpointer-arith -Wwrite-strings $CXXFLAGS"
5186 CFLAGS="-ansi -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
5187 CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts $CXXFLAGS"
5189 { echo "$as_me:$LINENO: checking whether $CXX supports -Wmissing-format-attribute" >&5
5190 echo $ECHO_N "checking whether $CXX supports -Wmissing-format-attribute... $ECHO_C" >&6; }
5191 kde_cache=`echo Wmissing-format-attribute | sed 'y% .=/+-,%____p__%'`
5192 if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
5193 echo $ECHO_N "(cached) $ECHO_C" >&6
5198 ac_cpp='$CXXCPP $CPPFLAGS'
5199 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5200 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5201 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5203 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5206 save_CXXFLAGS="$CXXFLAGS"
5207 CXXFLAGS="$CXXFLAGS -Wmissing-format-attribute"
5208 cat >conftest.$ac_ext <<_ACEOF
5211 cat confdefs.h >>conftest.$ac_ext
5212 cat >>conftest.$ac_ext <<_ACEOF
5213 /* end confdefs.h. */
5223 rm -f conftest.$ac_objext conftest$ac_exeext
5224 if { (ac_try="$ac_link"
5226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5227 *) ac_try_echo=$ac_try;;
5229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5230 (eval "$ac_link") 2>conftest.er1
5232 grep -v '^ *+' conftest.er1 >conftest.err
5234 cat conftest.err >&5
5235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236 (exit $ac_status); } && {
5237 test -z "$ac_cxx_werror_flag" ||
5238 test ! -s conftest.err
5239 } && test -s conftest$ac_exeext &&
5240 $as_test_x conftest$ac_exeext; then
5241 eval "kde_cv_prog_cxx_$kde_cache=yes"
5243 echo "$as_me: failed program was:" >&5
5244 sed 's/^/| /' conftest.$ac_ext >&5
5249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5250 conftest$ac_exeext conftest.$ac_ext
5251 CXXFLAGS="$save_CXXFLAGS"
5253 ac_cpp='$CPP $CPPFLAGS'
5254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5261 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5262 { echo "$as_me:$LINENO: result: yes" >&5
5263 echo "${ECHO_T}yes" >&6; }
5265 CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"
5267 { echo "$as_me:$LINENO: result: no" >&5
5268 echo "${ECHO_T}no" >&6; }
5274 { echo "$as_me:$LINENO: checking whether $CC supports -Wmissing-format-attribute" >&5
5275 echo $ECHO_N "checking whether $CC supports -Wmissing-format-attribute... $ECHO_C" >&6; }
5276 kde_cache=`echo Wmissing-format-attribute | sed 'y% .=/+-,%____p__%'`
5277 if { as_var=kde_cv_prog_cc_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
5278 echo $ECHO_N "(cached) $ECHO_C" >&6
5283 ac_cpp='$CPP $CPPFLAGS'
5284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5288 save_CFLAGS="$CFLAGS"
5289 CFLAGS="$CFLAGS -Wmissing-format-attribute"
5290 cat >conftest.$ac_ext <<_ACEOF
5293 cat confdefs.h >>conftest.$ac_ext
5294 cat >>conftest.$ac_ext <<_ACEOF
5295 /* end confdefs.h. */
5305 rm -f conftest.$ac_objext conftest$ac_exeext
5306 if { (ac_try="$ac_link"
5308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5309 *) ac_try_echo=$ac_try;;
5311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5312 (eval "$ac_link") 2>conftest.er1
5314 grep -v '^ *+' conftest.er1 >conftest.err
5316 cat conftest.err >&5
5317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318 (exit $ac_status); } && {
5319 test -z "$ac_c_werror_flag" ||
5320 test ! -s conftest.err
5321 } && test -s conftest$ac_exeext &&
5322 $as_test_x conftest$ac_exeext; then
5323 eval "kde_cv_prog_cc_$kde_cache=yes"
5325 echo "$as_me: failed program was:" >&5
5326 sed 's/^/| /' conftest.$ac_ext >&5
5331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5332 conftest$ac_exeext conftest.$ac_ext
5333 CFLAGS="$save_CFLAGS"
5335 ac_cpp='$CPP $CPPFLAGS'
5336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5343 if eval "test \"`echo '$kde_cv_prog_cc_'$kde_cache`\" = yes"; then
5344 { echo "$as_me:$LINENO: result: yes" >&5
5345 echo "${ECHO_T}yes" >&6; }
5347 CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"
5349 { echo "$as_me:$LINENO: result: no" >&5
5350 echo "${ECHO_T}no" >&6; }
5358 { echo "$as_me:$LINENO: checking whether $CXX supports -Wundef" >&5
5359 echo $ECHO_N "checking whether $CXX supports -Wundef... $ECHO_C" >&6; }
5360 kde_cache=`echo Wundef | sed 'y% .=/+-,%____p__%'`
5361 if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
5362 echo $ECHO_N "(cached) $ECHO_C" >&6
5367 ac_cpp='$CXXCPP $CPPFLAGS'
5368 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5369 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5370 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5372 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5375 save_CXXFLAGS="$CXXFLAGS"
5376 CXXFLAGS="$CXXFLAGS -Wundef"
5377 cat >conftest.$ac_ext <<_ACEOF
5380 cat confdefs.h >>conftest.$ac_ext
5381 cat >>conftest.$ac_ext <<_ACEOF
5382 /* end confdefs.h. */
5392 rm -f conftest.$ac_objext conftest$ac_exeext
5393 if { (ac_try="$ac_link"
5395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5396 *) ac_try_echo=$ac_try;;
5398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5399 (eval "$ac_link") 2>conftest.er1
5401 grep -v '^ *+' conftest.er1 >conftest.err
5403 cat conftest.err >&5
5404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405 (exit $ac_status); } && {
5406 test -z "$ac_cxx_werror_flag" ||
5407 test ! -s conftest.err
5408 } && test -s conftest$ac_exeext &&
5409 $as_test_x conftest$ac_exeext; then
5410 eval "kde_cv_prog_cxx_$kde_cache=yes"
5412 echo "$as_me: failed program was:" >&5
5413 sed 's/^/| /' conftest.$ac_ext >&5
5418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5419 conftest$ac_exeext conftest.$ac_ext
5420 CXXFLAGS="$save_CXXFLAGS"
5422 ac_cpp='$CPP $CPPFLAGS'
5423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5430 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5431 { echo "$as_me:$LINENO: result: yes" >&5
5432 echo "${ECHO_T}yes" >&6; }
5434 CXXFLAGS="-Wundef $CXXFLAGS"
5436 { echo "$as_me:$LINENO: result: no" >&5
5437 echo "${ECHO_T}no" >&6; }
5443 { echo "$as_me:$LINENO: checking whether $CXX supports -Wno-long-long" >&5
5444 echo $ECHO_N "checking whether $CXX supports -Wno-long-long... $ECHO_C" >&6; }
5445 kde_cache=`echo Wno-long-long | sed 'y% .=/+-,%____p__%'`
5446 if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
5447 echo $ECHO_N "(cached) $ECHO_C" >&6
5452 ac_cpp='$CXXCPP $CPPFLAGS'
5453 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5454 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5455 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5457 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5460 save_CXXFLAGS="$CXXFLAGS"
5461 CXXFLAGS="$CXXFLAGS -Wno-long-long"
5462 cat >conftest.$ac_ext <<_ACEOF
5465 cat confdefs.h >>conftest.$ac_ext
5466 cat >>conftest.$ac_ext <<_ACEOF
5467 /* end confdefs.h. */
5477 rm -f conftest.$ac_objext conftest$ac_exeext
5478 if { (ac_try="$ac_link"
5480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5481 *) ac_try_echo=$ac_try;;
5483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5484 (eval "$ac_link") 2>conftest.er1
5486 grep -v '^ *+' conftest.er1 >conftest.err
5488 cat conftest.err >&5
5489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490 (exit $ac_status); } && {
5491 test -z "$ac_cxx_werror_flag" ||
5492 test ! -s conftest.err
5493 } && test -s conftest$ac_exeext &&
5494 $as_test_x conftest$ac_exeext; then
5495 eval "kde_cv_prog_cxx_$kde_cache=yes"
5497 echo "$as_me: failed program was:" >&5
5498 sed 's/^/| /' conftest.$ac_ext >&5
5503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5504 conftest$ac_exeext conftest.$ac_ext
5505 CXXFLAGS="$save_CXXFLAGS"
5507 ac_cpp='$CPP $CPPFLAGS'
5508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5515 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5516 { echo "$as_me:$LINENO: result: yes" >&5
5517 echo "${ECHO_T}yes" >&6; }
5519 CXXFLAGS="-Wno-long-long $CXXFLAGS"
5521 { echo "$as_me:$LINENO: result: no" >&5
5522 echo "${ECHO_T}no" >&6; }
5528 { echo "$as_me:$LINENO: checking whether $CXX supports -Wnon-virtual-dtor" >&5
5529 echo $ECHO_N "checking whether $CXX supports -Wnon-virtual-dtor... $ECHO_C" >&6; }
5530 kde_cache=`echo Wnon-virtual-dtor | sed 'y% .=/+-,%____p__%'`
5531 if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
5532 echo $ECHO_N "(cached) $ECHO_C" >&6
5537 ac_cpp='$CXXCPP $CPPFLAGS'
5538 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5539 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5540 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5542 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5545 save_CXXFLAGS="$CXXFLAGS"
5546 CXXFLAGS="$CXXFLAGS -Wnon-virtual-dtor"
5547 cat >conftest.$ac_ext <<_ACEOF
5550 cat confdefs.h >>conftest.$ac_ext
5551 cat >>conftest.$ac_ext <<_ACEOF
5552 /* end confdefs.h. */
5562 rm -f conftest.$ac_objext conftest$ac_exeext
5563 if { (ac_try="$ac_link"
5565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5566 *) ac_try_echo=$ac_try;;
5568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5569 (eval "$ac_link") 2>conftest.er1
5571 grep -v '^ *+' conftest.er1 >conftest.err
5573 cat conftest.err >&5
5574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575 (exit $ac_status); } && {
5576 test -z "$ac_cxx_werror_flag" ||
5577 test ! -s conftest.err
5578 } && test -s conftest$ac_exeext &&
5579 $as_test_x conftest$ac_exeext; then
5580 eval "kde_cv_prog_cxx_$kde_cache=yes"
5582 echo "$as_me: failed program was:" >&5
5583 sed 's/^/| /' conftest.$ac_ext >&5
5588 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5589 conftest$ac_exeext conftest.$ac_ext
5590 CXXFLAGS="$save_CXXFLAGS"
5592 ac_cpp='$CPP $CPPFLAGS'
5593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5600 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5601 { echo "$as_me:$LINENO: result: yes" >&5
5602 echo "${ECHO_T}yes" >&6; }
5604 CXXFLAGS="-Wnon-virtual-dtor $CXXFLAGS"
5606 { echo "$as_me:$LINENO: result: no" >&5
5607 echo "${ECHO_T}no" >&6; }
5615 if test "$GXX" = "yes" && test "$kde_use_strict_options" = "yes"; then
5616 CXXFLAGS="-Wcast-qual -Wshadow -Wcast-align $CXXFLAGS"
5619 # Check whether --enable-pch was given.
5620 if test "${enable_pch+set}" = set; then
5621 enableval=$enable_pch; kde_use_pch=$enableval
5627 HAVE_GCC_VISIBILITY=0
5630 if test "$GXX" = "yes"; then
5632 { echo "$as_me:$LINENO: checking whether $CXX supports -fno-exceptions" >&5
5633 echo $ECHO_N "checking whether $CXX supports -fno-exceptions... $ECHO_C" >&6; }
5634 kde_cache=`echo fno-exceptions | sed 'y% .=/+-,%____p__%'`
5635 if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
5636 echo $ECHO_N "(cached) $ECHO_C" >&6
5641 ac_cpp='$CXXCPP $CPPFLAGS'
5642 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5643 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5644 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5646 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5649 save_CXXFLAGS="$CXXFLAGS"
5650 CXXFLAGS="$CXXFLAGS -fno-exceptions"
5651 cat >conftest.$ac_ext <<_ACEOF
5654 cat confdefs.h >>conftest.$ac_ext
5655 cat >>conftest.$ac_ext <<_ACEOF
5656 /* end confdefs.h. */
5666 rm -f conftest.$ac_objext conftest$ac_exeext
5667 if { (ac_try="$ac_link"
5669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5670 *) ac_try_echo=$ac_try;;
5672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5673 (eval "$ac_link") 2>conftest.er1
5675 grep -v '^ *+' conftest.er1 >conftest.err
5677 cat conftest.err >&5
5678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679 (exit $ac_status); } && {
5680 test -z "$ac_cxx_werror_flag" ||
5681 test ! -s conftest.err
5682 } && test -s conftest$ac_exeext &&
5683 $as_test_x conftest$ac_exeext; then
5684 eval "kde_cv_prog_cxx_$kde_cache=yes"
5686 echo "$as_me: failed program was:" >&5
5687 sed 's/^/| /' conftest.$ac_ext >&5
5692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5693 conftest$ac_exeext conftest.$ac_ext
5694 CXXFLAGS="$save_CXXFLAGS"
5696 ac_cpp='$CPP $CPPFLAGS'
5697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5704 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5705 { echo "$as_me:$LINENO: result: yes" >&5
5706 echo "${ECHO_T}yes" >&6; }
5708 CXXFLAGS="$CXXFLAGS -fno-exceptions"
5710 { echo "$as_me:$LINENO: result: no" >&5
5711 echo "${ECHO_T}no" >&6; }
5717 { echo "$as_me:$LINENO: checking whether $CXX supports -fno-check-new" >&5
5718 echo $ECHO_N "checking whether $CXX supports -fno-check-new... $ECHO_C" >&6; }
5719 kde_cache=`echo fno-check-new | sed 'y% .=/+-,%____p__%'`
5720 if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
5721 echo $ECHO_N "(cached) $ECHO_C" >&6
5726 ac_cpp='$CXXCPP $CPPFLAGS'
5727 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5728 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5729 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5731 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5734 save_CXXFLAGS="$CXXFLAGS"
5735 CXXFLAGS="$CXXFLAGS -fno-check-new"
5736 cat >conftest.$ac_ext <<_ACEOF
5739 cat confdefs.h >>conftest.$ac_ext
5740 cat >>conftest.$ac_ext <<_ACEOF
5741 /* end confdefs.h. */
5751 rm -f conftest.$ac_objext conftest$ac_exeext
5752 if { (ac_try="$ac_link"
5754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5755 *) ac_try_echo=$ac_try;;
5757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5758 (eval "$ac_link") 2>conftest.er1
5760 grep -v '^ *+' conftest.er1 >conftest.err
5762 cat conftest.err >&5
5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764 (exit $ac_status); } && {
5765 test -z "$ac_cxx_werror_flag" ||
5766 test ! -s conftest.err
5767 } && test -s conftest$ac_exeext &&
5768 $as_test_x conftest$ac_exeext; then
5769 eval "kde_cv_prog_cxx_$kde_cache=yes"
5771 echo "$as_me: failed program was:" >&5
5772 sed 's/^/| /' conftest.$ac_ext >&5
5777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5778 conftest$ac_exeext conftest.$ac_ext
5779 CXXFLAGS="$save_CXXFLAGS"
5781 ac_cpp='$CPP $CPPFLAGS'
5782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5789 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5790 { echo "$as_me:$LINENO: result: yes" >&5
5791 echo "${ECHO_T}yes" >&6; }
5793 CXXFLAGS="$CXXFLAGS -fno-check-new"
5795 { echo "$as_me:$LINENO: result: no" >&5
5796 echo "${ECHO_T}no" >&6; }
5802 { echo "$as_me:$LINENO: checking whether $CXX supports -fno-common" >&5
5803 echo $ECHO_N "checking whether $CXX supports -fno-common... $ECHO_C" >&6; }
5804 kde_cache=`echo fno-common | sed 'y% .=/+-,%____p__%'`
5805 if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
5806 echo $ECHO_N "(cached) $ECHO_C" >&6
5811 ac_cpp='$CXXCPP $CPPFLAGS'
5812 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5813 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5814 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5816 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5819 save_CXXFLAGS="$CXXFLAGS"
5820 CXXFLAGS="$CXXFLAGS -fno-common"
5821 cat >conftest.$ac_ext <<_ACEOF
5824 cat confdefs.h >>conftest.$ac_ext
5825 cat >>conftest.$ac_ext <<_ACEOF
5826 /* end confdefs.h. */
5836 rm -f conftest.$ac_objext conftest$ac_exeext
5837 if { (ac_try="$ac_link"
5839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5840 *) ac_try_echo=$ac_try;;
5842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5843 (eval "$ac_link") 2>conftest.er1
5845 grep -v '^ *+' conftest.er1 >conftest.err
5847 cat conftest.err >&5
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); } && {
5850 test -z "$ac_cxx_werror_flag" ||
5851 test ! -s conftest.err
5852 } && test -s conftest$ac_exeext &&
5853 $as_test_x conftest$ac_exeext; then
5854 eval "kde_cv_prog_cxx_$kde_cache=yes"
5856 echo "$as_me: failed program was:" >&5
5857 sed 's/^/| /' conftest.$ac_ext >&5
5862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5863 conftest$ac_exeext conftest.$ac_ext
5864 CXXFLAGS="$save_CXXFLAGS"
5866 ac_cpp='$CPP $CPPFLAGS'
5867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5874 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5875 { echo "$as_me:$LINENO: result: yes" >&5
5876 echo "${ECHO_T}yes" >&6; }
5878 CXXFLAGS="$CXXFLAGS -fno-common"
5880 { echo "$as_me:$LINENO: result: no" >&5
5881 echo "${ECHO_T}no" >&6; }
5887 { echo "$as_me:$LINENO: checking whether $CXX supports -fexceptions" >&5
5888 echo $ECHO_N "checking whether $CXX supports -fexceptions... $ECHO_C" >&6; }
5889 kde_cache=`echo fexceptions | sed 'y% .=/+-,%____p__%'`
5890 if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
5891 echo $ECHO_N "(cached) $ECHO_C" >&6
5896 ac_cpp='$CXXCPP $CPPFLAGS'
5897 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5898 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5899 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5901 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5904 save_CXXFLAGS="$CXXFLAGS"
5905 CXXFLAGS="$CXXFLAGS -fexceptions"
5906 cat >conftest.$ac_ext <<_ACEOF
5909 cat confdefs.h >>conftest.$ac_ext
5910 cat >>conftest.$ac_ext <<_ACEOF
5911 /* end confdefs.h. */
5921 rm -f conftest.$ac_objext conftest$ac_exeext
5922 if { (ac_try="$ac_link"
5924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5925 *) ac_try_echo=$ac_try;;
5927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5928 (eval "$ac_link") 2>conftest.er1
5930 grep -v '^ *+' conftest.er1 >conftest.err
5932 cat conftest.err >&5
5933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934 (exit $ac_status); } && {
5935 test -z "$ac_cxx_werror_flag" ||
5936 test ! -s conftest.err
5937 } && test -s conftest$ac_exeext &&
5938 $as_test_x conftest$ac_exeext; then
5939 eval "kde_cv_prog_cxx_$kde_cache=yes"
5941 echo "$as_me: failed program was:" >&5
5942 sed 's/^/| /' conftest.$ac_ext >&5
5947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5948 conftest$ac_exeext conftest.$ac_ext
5949 CXXFLAGS="$save_CXXFLAGS"
5951 ac_cpp='$CPP $CPPFLAGS'
5952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5959 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5960 { echo "$as_me:$LINENO: result: yes" >&5
5961 echo "${ECHO_T}yes" >&6; }
5963 USE_EXCEPTIONS="-fexceptions"
5965 { echo "$as_me:$LINENO: result: no" >&5
5966 echo "${ECHO_T}no" >&6; }
5971 ENABLE_PERMISSIVE_FLAG="-fpermissive"
5973 if test "$kde_use_pch" = "yes"; then
5974 { echo "$as_me:$LINENO: checking whether gcc supports precompiling c header files" >&5
5975 echo $ECHO_N "checking whether gcc supports precompiling c header files... $ECHO_C" >&6; }
5977 if $CC -x c-header conftest.h >/dev/null 2>/dev/null; then
5978 kde_gcc_supports_pch=yes
5979 { echo "$as_me:$LINENO: result: yes" >&5
5980 echo "${ECHO_T}yes" >&6; }
5982 kde_gcc_supports_pch=no
5983 { echo "$as_me:$LINENO: result: no" >&5
5984 echo "${ECHO_T}no" >&6; }
5986 if test "$kde_gcc_supports_pch" = "yes"; then
5987 { echo "$as_me:$LINENO: checking whether gcc supports precompiling c++ header files" >&5
5988 echo $ECHO_N "checking whether gcc supports precompiling c++ header files... $ECHO_C" >&6; }
5989 if $CXX -x c++-header conftest.h >/dev/null 2>/dev/null; then
5990 kde_gcc_supports_pch=yes
5991 { echo "$as_me:$LINENO: result: yes" >&5
5992 echo "${ECHO_T}yes" >&6; }
5994 kde_gcc_supports_pch=no
5995 { echo "$as_me:$LINENO: result: no" >&5
5996 echo "${ECHO_T}no" >&6; }
5999 rm -f conftest.h conftest.h.gch
6003 if test "$kde_use_pch" = "yes" && test "$kde_gcc_supports_pch" = "yes"; then
6004 unsermake_enable_pch_TRUE=
6005 unsermake_enable_pch_FALSE='#'
6007 unsermake_enable_pch_TRUE='#'
6008 unsermake_enable_pch_FALSE=
6012 if test "$CXX" = "KCC"; then
6014 if test "$kde_use_pch" = "yes"; then
6016 { echo "$as_me:$LINENO: checking whether $CXX supports --pch" >&5
6017 echo $ECHO_N "checking whether $CXX supports --pch... $ECHO_C" >&6; }
6018 kde_cache=`echo -pch | sed 'y% .=/+-,%____p__%'`
6019 if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
6020 echo $ECHO_N "(cached) $ECHO_C" >&6
6025 ac_cpp='$CXXCPP $CPPFLAGS'
6026 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6027 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6028 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6030 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6033 save_CXXFLAGS="$CXXFLAGS"
6034 CXXFLAGS="$CXXFLAGS --pch"
6035 cat >conftest.$ac_ext <<_ACEOF
6038 cat confdefs.h >>conftest.$ac_ext
6039 cat >>conftest.$ac_ext <<_ACEOF
6040 /* end confdefs.h. */
6050 rm -f conftest.$ac_objext conftest$ac_exeext
6051 if { (ac_try="$ac_link"
6053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6054 *) ac_try_echo=$ac_try;;
6056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6057 (eval "$ac_link") 2>conftest.er1
6059 grep -v '^ *+' conftest.er1 >conftest.err
6061 cat conftest.err >&5
6062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063 (exit $ac_status); } && {
6064 test -z "$ac_cxx_werror_flag" ||
6065 test ! -s conftest.err
6066 } && test -s conftest$ac_exeext &&
6067 $as_test_x conftest$ac_exeext; then
6068 eval "kde_cv_prog_cxx_$kde_cache=yes"
6070 echo "$as_me: failed program was:" >&5
6071 sed 's/^/| /' conftest.$ac_ext >&5
6076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6077 conftest$ac_exeext conftest.$ac_ext
6078 CXXFLAGS="$save_CXXFLAGS"
6080 ac_cpp='$CPP $CPPFLAGS'
6081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6088 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
6089 { echo "$as_me:$LINENO: result: yes" >&5
6090 echo "${ECHO_T}yes" >&6; }
6092 CXXFLAGS="$CXXFLAGS --pch"
6094 { echo "$as_me:$LINENO: result: no" >&5
6095 echo "${ECHO_T}no" >&6; }
6102 { echo "$as_me:$LINENO: checking whether $CXX supports --inline_keyword_space_time=6" >&5
6103 echo $ECHO_N "checking whether $CXX supports --inline_keyword_space_time=6... $ECHO_C" >&6; }
6104 kde_cache=`echo -inline_keyword_space_time=6 | sed 'y% .=/+-,%____p__%'`
6105 if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
6106 echo $ECHO_N "(cached) $ECHO_C" >&6
6111 ac_cpp='$CXXCPP $CPPFLAGS'
6112 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6113 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6114 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6116 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6119 save_CXXFLAGS="$CXXFLAGS"
6120 CXXFLAGS="$CXXFLAGS --inline_keyword_space_time=6"
6121 cat >conftest.$ac_ext <<_ACEOF
6124 cat confdefs.h >>conftest.$ac_ext
6125 cat >>conftest.$ac_ext <<_ACEOF
6126 /* end confdefs.h. */
6136 rm -f conftest.$ac_objext conftest$ac_exeext
6137 if { (ac_try="$ac_link"
6139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6140 *) ac_try_echo=$ac_try;;
6142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6143 (eval "$ac_link") 2>conftest.er1
6145 grep -v '^ *+' conftest.er1 >conftest.err
6147 cat conftest.err >&5
6148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149 (exit $ac_status); } && {
6150 test -z "$ac_cxx_werror_flag" ||
6151 test ! -s conftest.err
6152 } && test -s conftest$ac_exeext &&
6153 $as_test_x conftest$ac_exeext; then
6154 eval "kde_cv_prog_cxx_$kde_cache=yes"
6156 echo "$as_me: failed program was:" >&5
6157 sed 's/^/| /' conftest.$ac_ext >&5
6162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6163 conftest$ac_exeext conftest.$ac_ext
6164 CXXFLAGS="$save_CXXFLAGS"
6166 ac_cpp='$CPP $CPPFLAGS'
6167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6174 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
6175 { echo "$as_me:$LINENO: result: yes" >&5
6176 echo "${ECHO_T}yes" >&6; }
6178 CXXFLAGS="$CXXFLAGS --inline_keyword_space_time=6"
6180 { echo "$as_me:$LINENO: result: no" >&5
6181 echo "${ECHO_T}no" >&6; }
6187 { echo "$as_me:$LINENO: checking whether $CXX supports --inline_auto_space_time=2" >&5
6188 echo $ECHO_N "checking whether $CXX supports --inline_auto_space_time=2... $ECHO_C" >&6; }
6189 kde_cache=`echo -inline_auto_space_time=2 | sed 'y% .=/+-,%____p__%'`
6190 if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
6191 echo $ECHO_N "(cached) $ECHO_C" >&6
6196 ac_cpp='$CXXCPP $CPPFLAGS'
6197 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6198 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6199 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6201 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6204 save_CXXFLAGS="$CXXFLAGS"
6205 CXXFLAGS="$CXXFLAGS --inline_auto_space_time=2"
6206 cat >conftest.$ac_ext <<_ACEOF
6209 cat confdefs.h >>conftest.$ac_ext
6210 cat >>conftest.$ac_ext <<_ACEOF
6211 /* end confdefs.h. */
6221 rm -f conftest.$ac_objext conftest$ac_exeext
6222 if { (ac_try="$ac_link"
6224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6225 *) ac_try_echo=$ac_try;;
6227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6228 (eval "$ac_link") 2>conftest.er1
6230 grep -v '^ *+' conftest.er1 >conftest.err
6232 cat conftest.err >&5
6233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234 (exit $ac_status); } && {
6235 test -z "$ac_cxx_werror_flag" ||
6236 test ! -s conftest.err
6237 } && test -s conftest$ac_exeext &&
6238 $as_test_x conftest$ac_exeext; then
6239 eval "kde_cv_prog_cxx_$kde_cache=yes"
6241 echo "$as_me: failed program was:" >&5
6242 sed 's/^/| /' conftest.$ac_ext >&5
6247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6248 conftest$ac_exeext conftest.$ac_ext
6249 CXXFLAGS="$save_CXXFLAGS"
6251 ac_cpp='$CPP $CPPFLAGS'
6252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6259 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
6260 { echo "$as_me:$LINENO: result: yes" >&5
6261 echo "${ECHO_T}yes" >&6; }
6263 CXXFLAGS="$CXXFLAGS --inline_auto_space_time=2"
6265 { echo "$as_me:$LINENO: result: no" >&5
6266 echo "${ECHO_T}no" >&6; }
6272 { echo "$as_me:$LINENO: checking whether $CXX supports --inline_implicit_space_time=2.0" >&5
6273 echo $ECHO_N "checking whether $CXX supports --inline_implicit_space_time=2.0... $ECHO_C" >&6; }
6274 kde_cache=`echo -inline_implicit_space_time=2.0 | sed 'y% .=/+-,%____p__%'`
6275 if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
6276 echo $ECHO_N "(cached) $ECHO_C" >&6
6281 ac_cpp='$CXXCPP $CPPFLAGS'
6282 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6283 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6284 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6286 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6289 save_CXXFLAGS="$CXXFLAGS"
6290 CXXFLAGS="$CXXFLAGS --inline_implicit_space_time=2.0"
6291 cat >conftest.$ac_ext <<_ACEOF
6294 cat confdefs.h >>conftest.$ac_ext
6295 cat >>conftest.$ac_ext <<_ACEOF
6296 /* end confdefs.h. */
6306 rm -f conftest.$ac_objext conftest$ac_exeext
6307 if { (ac_try="$ac_link"
6309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6310 *) ac_try_echo=$ac_try;;
6312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6313 (eval "$ac_link") 2>conftest.er1
6315 grep -v '^ *+' conftest.er1 >conftest.err
6317 cat conftest.err >&5
6318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319 (exit $ac_status); } && {
6320 test -z "$ac_cxx_werror_flag" ||
6321 test ! -s conftest.err
6322 } && test -s conftest$ac_exeext &&
6323 $as_test_x conftest$ac_exeext; then
6324 eval "kde_cv_prog_cxx_$kde_cache=yes"
6326 echo "$as_me: failed program was:" >&5
6327 sed 's/^/| /' conftest.$ac_ext >&5
6332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6333 conftest$ac_exeext conftest.$ac_ext
6334 CXXFLAGS="$save_CXXFLAGS"
6336 ac_cpp='$CPP $CPPFLAGS'
6337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6344 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
6345 { echo "$as_me:$LINENO: result: yes" >&5
6346 echo "${ECHO_T}yes" >&6; }
6348 CXXFLAGS="$CXXFLAGS --inline_implicit_space_time=2.0"
6350 { echo "$as_me:$LINENO: result: no" >&5
6351 echo "${ECHO_T}no" >&6; }
6357 { echo "$as_me:$LINENO: checking whether $CXX supports --inline_generated_space_time=2.0" >&5
6358 echo $ECHO_N "checking whether $CXX supports --inline_generated_space_time=2.0... $ECHO_C" >&6; }
6359 kde_cache=`echo -inline_generated_space_time=2.0 | sed 'y% .=/+-,%____p__%'`
6360 if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
6361 echo $ECHO_N "(cached) $ECHO_C" >&6
6366 ac_cpp='$CXXCPP $CPPFLAGS'
6367 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6368 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6369 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6371 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6374 save_CXXFLAGS="$CXXFLAGS"
6375 CXXFLAGS="$CXXFLAGS --inline_generated_space_time=2.0"
6376 cat >conftest.$ac_ext <<_ACEOF
6379 cat confdefs.h >>conftest.$ac_ext
6380 cat >>conftest.$ac_ext <<_ACEOF
6381 /* end confdefs.h. */
6391 rm -f conftest.$ac_objext conftest$ac_exeext
6392 if { (ac_try="$ac_link"
6394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6395 *) ac_try_echo=$ac_try;;
6397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6398 (eval "$ac_link") 2>conftest.er1
6400 grep -v '^ *+' conftest.er1 >conftest.err
6402 cat conftest.err >&5
6403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404 (exit $ac_status); } && {
6405 test -z "$ac_cxx_werror_flag" ||
6406 test ! -s conftest.err
6407 } && test -s conftest$ac_exeext &&
6408 $as_test_x conftest$ac_exeext; then
6409 eval "kde_cv_prog_cxx_$kde_cache=yes"
6411 echo "$as_me: failed program was:" >&5
6412 sed 's/^/| /' conftest.$ac_ext >&5
6417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6418 conftest$ac_exeext conftest.$ac_ext
6419 CXXFLAGS="$save_CXXFLAGS"
6421 ac_cpp='$CPP $CPPFLAGS'
6422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6429 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
6430 { echo "$as_me:$LINENO: result: yes" >&5
6431 echo "${ECHO_T}yes" >&6; }
6433 CXXFLAGS="$CXXFLAGS --inline_generated_space_time=2.0"
6435 { echo "$as_me:$LINENO: result: no" >&5
6436 echo "${ECHO_T}no" >&6; }
6442 { echo "$as_me:$LINENO: checking whether $CXX supports --one_per" >&5
6443 echo $ECHO_N "checking whether $CXX supports --one_per... $ECHO_C" >&6; }
6444 kde_cache=`echo -one_per | sed 'y% .=/+-,%____p__%'`
6445 if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
6446 echo $ECHO_N "(cached) $ECHO_C" >&6
6451 ac_cpp='$CXXCPP $CPPFLAGS'
6452 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6453 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6454 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6456 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6459 save_CXXFLAGS="$CXXFLAGS"
6460 CXXFLAGS="$CXXFLAGS --one_per"
6461 cat >conftest.$ac_ext <<_ACEOF
6464 cat confdefs.h >>conftest.$ac_ext
6465 cat >>conftest.$ac_ext <<_ACEOF
6466 /* end confdefs.h. */
6476 rm -f conftest.$ac_objext conftest$ac_exeext
6477 if { (ac_try="$ac_link"
6479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6480 *) ac_try_echo=$ac_try;;
6482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6483 (eval "$ac_link") 2>conftest.er1
6485 grep -v '^ *+' conftest.er1 >conftest.err
6487 cat conftest.err >&5
6488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489 (exit $ac_status); } && {
6490 test -z "$ac_cxx_werror_flag" ||
6491 test ! -s conftest.err
6492 } && test -s conftest$ac_exeext &&
6493 $as_test_x conftest$ac_exeext; then
6494 eval "kde_cv_prog_cxx_$kde_cache=yes"
6496 echo "$as_me: failed program was:" >&5
6497 sed 's/^/| /' conftest.$ac_ext >&5
6502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6503 conftest$ac_exeext conftest.$ac_ext
6504 CXXFLAGS="$save_CXXFLAGS"
6506 ac_cpp='$CPP $CPPFLAGS'
6507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6514 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
6515 { echo "$as_me:$LINENO: result: yes" >&5
6516 echo "${ECHO_T}yes" >&6; }
6518 CXXFLAGS="$CXXFLAGS --one_per"
6520 { echo "$as_me:$LINENO: result: no" >&5
6521 echo "${ECHO_T}no" >&6; }
6532 *-*-irix*) test "$GXX" = yes && CXXFLAGS="-D_LANGUAGE_C_PLUS_PLUS -D__LANGUAGE_C_PLUS_PLUS $CXXFLAGS" ;;
6533 *-*-sysv4.2uw*) CXXFLAGS="-D_UNIXWARE $CXXFLAGS";;
6534 *-*-sysv5uw7*) CXXFLAGS="-D_UNIXWARE7 $CXXFLAGS";;
6536 if test "$GXX" = yes; then
6537 libstdcpp=`$CXX -print-file-name=libstdc++.so`
6538 if test ! -f $libstdcpp; then
6539 { { echo "$as_me:$LINENO: error: You've compiled gcc without --enable-shared. This doesn't work with KDE. Please recompile gcc with --enable-shared to receive a libstdc++.so" >&5
6540 echo "$as_me: error: You've compiled gcc without --enable-shared. This doesn't work with KDE. Please recompile gcc with --enable-shared to receive a libstdc++.so" >&2;}
6541 { (exit 1); exit 1; }; }
6547 if test "x$kde_use_qt_emb" != "xyes"; then
6549 __forbid=" -fno-rtti -rpath "
6550 if test -n "$__val"; then
6556 *" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXX, removing it" >&5
6557 echo "$as_me: WARNING: found forbidden $i in CXX, removing it" >&2;} ;;
6558 *) # Careful to not add spaces, where there were none, because otherwise
6559 # libtool gets confused, if we change e.g. CXX
6560 if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
6568 __forbid=" -fno-rtti -rpath "
6569 if test -n "$__val"; then
6575 *" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXXFLAGS, removing it" >&5
6576 echo "$as_me: WARNING: found forbidden $i in CXXFLAGS, removing it" >&2;} ;;
6577 *) # Careful to not add spaces, where there were none, because otherwise
6578 # libtool gets confused, if we change e.g. CXX
6579 if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
6589 if test -n "$__val"; then
6595 *" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXX, removing it" >&5
6596 echo "$as_me: WARNING: found forbidden $i in CXX, removing it" >&2;} ;;
6597 *) # Careful to not add spaces, where there were none, because otherwise
6598 # libtool gets confused, if we change e.g. CXX
6599 if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
6608 if test -n "$__val"; then
6614 *" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXXFLAGS, removing it" >&5
6615 echo "$as_me: WARNING: found forbidden $i in CXXFLAGS, removing it" >&2;} ;;
6616 *) # Careful to not add spaces, where there were none, because otherwise
6617 # libtool gets confused, if we change e.g. CXX
6618 if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
6629 ac_cpp='$CXXCPP $CPPFLAGS'
6630 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6631 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6632 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6633 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6634 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6635 if test -z "$CXXCPP"; then
6636 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6637 echo $ECHO_N "(cached) $ECHO_C" >&6
6639 # Double quotes because CXXCPP needs to be expanded
6640 for CXXCPP in "$CXX -E" "/lib/cpp"
6643 for ac_cxx_preproc_warn_flag in '' yes
6645 # Use a header file that comes with gcc, so configuring glibc
6646 # with a fresh cross-compiler works.
6647 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6648 # <limits.h> exists even on freestanding compilers.
6649 # On the NeXT, cc -E runs the code through the compiler's parser,
6650 # not just through cpp. "Syntax error" is here to catch this case.
6651 cat >conftest.$ac_ext <<_ACEOF
6654 cat confdefs.h >>conftest.$ac_ext
6655 cat >>conftest.$ac_ext <<_ACEOF
6656 /* end confdefs.h. */
6658 # include <limits.h>
6660 # include <assert.h>
6664 if { (ac_try="$ac_cpp conftest.$ac_ext"
6666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6667 *) ac_try_echo=$ac_try;;
6669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6670 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6672 grep -v '^ *+' conftest.er1 >conftest.err
6674 cat conftest.err >&5
6675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676 (exit $ac_status); } >/dev/null && {
6677 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6678 test ! -s conftest.err
6682 echo "$as_me: failed program was:" >&5
6683 sed 's/^/| /' conftest.$ac_ext >&5
6685 # Broken: fails on valid input.
6689 rm -f conftest.err conftest.$ac_ext
6691 # OK, works on sane cases. Now check whether nonexistent headers
6692 # can be detected and how.
6693 cat >conftest.$ac_ext <<_ACEOF
6696 cat confdefs.h >>conftest.$ac_ext
6697 cat >>conftest.$ac_ext <<_ACEOF
6698 /* end confdefs.h. */
6699 #include <ac_nonexistent.h>
6701 if { (ac_try="$ac_cpp conftest.$ac_ext"
6703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6704 *) ac_try_echo=$ac_try;;
6706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6707 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6709 grep -v '^ *+' conftest.er1 >conftest.err
6711 cat conftest.err >&5
6712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6713 (exit $ac_status); } >/dev/null && {
6714 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6715 test ! -s conftest.err
6717 # Broken: success on invalid input.
6720 echo "$as_me: failed program was:" >&5
6721 sed 's/^/| /' conftest.$ac_ext >&5
6723 # Passes both tests.
6728 rm -f conftest.err conftest.$ac_ext
6731 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6732 rm -f conftest.err conftest.$ac_ext
6733 if $ac_preproc_ok; then
6738 ac_cv_prog_CXXCPP=$CXXCPP
6741 CXXCPP=$ac_cv_prog_CXXCPP
6743 ac_cv_prog_CXXCPP=$CXXCPP
6745 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6746 echo "${ECHO_T}$CXXCPP" >&6; }
6748 for ac_cxx_preproc_warn_flag in '' yes
6750 # Use a header file that comes with gcc, so configuring glibc
6751 # with a fresh cross-compiler works.
6752 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6753 # <limits.h> exists even on freestanding compilers.
6754 # On the NeXT, cc -E runs the code through the compiler's parser,
6755 # not just through cpp. "Syntax error" is here to catch this case.
6756 cat >conftest.$ac_ext <<_ACEOF
6759 cat confdefs.h >>conftest.$ac_ext
6760 cat >>conftest.$ac_ext <<_ACEOF
6761 /* end confdefs.h. */
6763 # include <limits.h>
6765 # include <assert.h>
6769 if { (ac_try="$ac_cpp conftest.$ac_ext"
6771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6772 *) ac_try_echo=$ac_try;;
6774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6775 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6777 grep -v '^ *+' conftest.er1 >conftest.err
6779 cat conftest.err >&5
6780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6781 (exit $ac_status); } >/dev/null && {
6782 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6783 test ! -s conftest.err
6787 echo "$as_me: failed program was:" >&5
6788 sed 's/^/| /' conftest.$ac_ext >&5
6790 # Broken: fails on valid input.
6794 rm -f conftest.err conftest.$ac_ext
6796 # OK, works on sane cases. Now check whether nonexistent headers
6797 # can be detected and how.
6798 cat >conftest.$ac_ext <<_ACEOF
6801 cat confdefs.h >>conftest.$ac_ext
6802 cat >>conftest.$ac_ext <<_ACEOF
6803 /* end confdefs.h. */
6804 #include <ac_nonexistent.h>
6806 if { (ac_try="$ac_cpp conftest.$ac_ext"
6808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6809 *) ac_try_echo=$ac_try;;
6811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6812 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6814 grep -v '^ *+' conftest.er1 >conftest.err
6816 cat conftest.err >&5
6817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6818 (exit $ac_status); } >/dev/null && {
6819 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6820 test ! -s conftest.err
6822 # Broken: success on invalid input.
6825 echo "$as_me: failed program was:" >&5
6826 sed 's/^/| /' conftest.$ac_ext >&5
6828 # Passes both tests.
6833 rm -f conftest.err conftest.$ac_ext
6836 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6837 rm -f conftest.err conftest.$ac_ext
6838 if $ac_preproc_ok; then
6841 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6842 See \`config.log' for more details." >&5
6843 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6844 See \`config.log' for more details." >&2;}
6845 { (exit 1); exit 1; }; }
6849 ac_cpp='$CPP $CPPFLAGS'
6850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6855 if test "$GCC" = yes; then
6859 { echo "$as_me:$LINENO: checking whether $CXX supports -O0" >&5
6860 echo $ECHO_N "checking whether $CXX supports -O0... $ECHO_C" >&6; }
6861 kde_cache=`echo O0 | sed 'y% .=/+-,%____p__%'`
6862 if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
6863 echo $ECHO_N "(cached) $ECHO_C" >&6
6868 ac_cpp='$CXXCPP $CPPFLAGS'
6869 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6870 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6871 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6873 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6876 save_CXXFLAGS="$CXXFLAGS"
6877 CXXFLAGS="$CXXFLAGS -O0"
6878 cat >conftest.$ac_ext <<_ACEOF
6881 cat confdefs.h >>conftest.$ac_ext
6882 cat >>conftest.$ac_ext <<_ACEOF
6883 /* end confdefs.h. */
6893 rm -f conftest.$ac_objext conftest$ac_exeext
6894 if { (ac_try="$ac_link"
6896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6897 *) ac_try_echo=$ac_try;;
6899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6900 (eval "$ac_link") 2>conftest.er1
6902 grep -v '^ *+' conftest.er1 >conftest.err
6904 cat conftest.err >&5
6905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906 (exit $ac_status); } && {
6907 test -z "$ac_cxx_werror_flag" ||
6908 test ! -s conftest.err
6909 } && test -s conftest$ac_exeext &&
6910 $as_test_x conftest$ac_exeext; then
6911 eval "kde_cv_prog_cxx_$kde_cache=yes"
6913 echo "$as_me: failed program was:" >&5
6914 sed 's/^/| /' conftest.$ac_ext >&5
6919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6920 conftest$ac_exeext conftest.$ac_ext
6921 CXXFLAGS="$save_CXXFLAGS"
6923 ac_cpp='$CPP $CPPFLAGS'
6924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6931 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
6932 { echo "$as_me:$LINENO: result: yes" >&5
6933 echo "${ECHO_T}yes" >&6; }
6937 { echo "$as_me:$LINENO: result: no" >&5
6938 echo "${ECHO_T}no" >&6; }
6944 # Check whether --enable-coverage was given.
6945 if test "${enable_coverage+set}" = set; then
6946 enableval=$enable_coverage;
6947 if test "$am_cv_CC_dependencies_compiler_type" = "gcc3"; then
6948 ac_coverage_compiler="-fprofile-arcs -ftest-coverage"
6949 ac_coverage_linker="-lgcc"
6950 elif test "$am_cv_CC_dependencies_compiler_type" = "gcc"; then
6951 ac_coverage_compiler="-fprofile-arcs -ftest-coverage"
6952 ac_coverage_linker=""
6954 { { echo "$as_me:$LINENO: error: coverage with your compiler is not supported" >&5
6955 echo "$as_me: error: coverage with your compiler is not supported" >&2;}
6956 { (exit 1); exit 1; }; }
6958 CFLAGS="$CFLAGS $ac_coverage_compiler"
6959 CXXFLAGS="$CXXFLAGS $ac_coverage_compiler"
6960 LDFLAGS="$LDFLAGS $ac_coverage_linker"
6970 # Check whether --enable-new_ldflags was given.
6971 if test "${enable_new_ldflags+set}" = set; then
6972 enableval=$enable_new_ldflags; kde_use_new_ldflags=$enableval
6974 kde_use_new_ldflags=no
6978 LDFLAGS_AS_NEEDED=""
6979 LDFLAGS_NEW_DTAGS=""
6980 if test "x$kde_use_new_ldflags" = "xyes"; then
6981 LDFLAGS_NEW_DTAGS=""
6983 { echo "$as_me:$LINENO: checking whether $CXX supports -Wl,--enable-new-dtags" >&5
6984 echo $ECHO_N "checking whether $CXX supports -Wl,--enable-new-dtags... $ECHO_C" >&6; }
6985 kde_cache=`echo Wl,--enable-new-dtags | sed 'y% .=/+-,%____p__%'`
6986 if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
6987 echo $ECHO_N "(cached) $ECHO_C" >&6
6992 ac_cpp='$CXXCPP $CPPFLAGS'
6993 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6994 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6995 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6997 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7000 save_CXXFLAGS="$CXXFLAGS"
7001 CXXFLAGS="$CXXFLAGS -Wl,--enable-new-dtags"
7002 cat >conftest.$ac_ext <<_ACEOF
7005 cat confdefs.h >>conftest.$ac_ext
7006 cat >>conftest.$ac_ext <<_ACEOF
7007 /* end confdefs.h. */
7017 rm -f conftest.$ac_objext conftest$ac_exeext
7018 if { (ac_try="$ac_link"
7020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7021 *) ac_try_echo=$ac_try;;
7023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7024 (eval "$ac_link") 2>conftest.er1
7026 grep -v '^ *+' conftest.er1 >conftest.err
7028 cat conftest.err >&5
7029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030 (exit $ac_status); } && {
7031 test -z "$ac_cxx_werror_flag" ||
7032 test ! -s conftest.err
7033 } && test -s conftest$ac_exeext &&
7034 $as_test_x conftest$ac_exeext; then
7035 eval "kde_cv_prog_cxx_$kde_cache=yes"
7037 echo "$as_me: failed program was:" >&5
7038 sed 's/^/| /' conftest.$ac_ext >&5
7043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7044 conftest$ac_exeext conftest.$ac_ext
7045 CXXFLAGS="$save_CXXFLAGS"
7047 ac_cpp='$CPP $CPPFLAGS'
7048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7055 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
7056 { echo "$as_me:$LINENO: result: yes" >&5
7057 echo "${ECHO_T}yes" >&6; }
7059 LDFLAGS_NEW_DTAGS="-Wl,--enable-new-dtags"
7061 { echo "$as_me:$LINENO: result: no" >&5
7062 echo "${ECHO_T}no" >&6; }
7069 { echo "$as_me:$LINENO: checking whether $CXX supports -Wl,--as-needed" >&5
7070 echo $ECHO_N "checking whether $CXX supports -Wl,--as-needed... $ECHO_C" >&6; }
7071 kde_cache=`echo Wl,--as-needed | sed 'y% .=/+-,%____p__%'`
7072 if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
7073 echo $ECHO_N "(cached) $ECHO_C" >&6
7078 ac_cpp='$CXXCPP $CPPFLAGS'
7079 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7080 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7081 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7083 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7086 save_CXXFLAGS="$CXXFLAGS"
7087 CXXFLAGS="$CXXFLAGS -Wl,--as-needed"
7088 cat >conftest.$ac_ext <<_ACEOF
7091 cat confdefs.h >>conftest.$ac_ext
7092 cat >>conftest.$ac_ext <<_ACEOF
7093 /* end confdefs.h. */
7103 rm -f conftest.$ac_objext conftest$ac_exeext
7104 if { (ac_try="$ac_link"
7106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7107 *) ac_try_echo=$ac_try;;
7109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7110 (eval "$ac_link") 2>conftest.er1
7112 grep -v '^ *+' conftest.er1 >conftest.err
7114 cat conftest.err >&5
7115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7116 (exit $ac_status); } && {
7117 test -z "$ac_cxx_werror_flag" ||
7118 test ! -s conftest.err
7119 } && test -s conftest$ac_exeext &&
7120 $as_test_x conftest$ac_exeext; then
7121 eval "kde_cv_prog_cxx_$kde_cache=yes"
7123 echo "$as_me: failed program was:" >&5
7124 sed 's/^/| /' conftest.$ac_ext >&5
7129 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7130 conftest$ac_exeext conftest.$ac_ext
7131 CXXFLAGS="$save_CXXFLAGS"
7133 ac_cpp='$CPP $CPPFLAGS'
7134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7141 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
7142 { echo "$as_me:$LINENO: result: yes" >&5
7143 echo "${ECHO_T}yes" >&6; }
7145 LDFLAGS_AS_NEEDED="-Wl,--as-needed"
7147 { echo "$as_me:$LINENO: result: no" >&5
7148 echo "${ECHO_T}no" >&6; }
7158 # Check whether --enable-final was given.
7159 if test "${enable_final+set}" = set; then
7160 enableval=$enable_final; kde_use_final=$enableval
7166 if test "x$kde_use_final" = "xyes"; then
7167 KDE_USE_FINAL_TRUE=""
7168 KDE_USE_FINAL_FALSE="#"
7170 KDE_USE_FINAL_TRUE="#"
7171 KDE_USE_FINAL_FALSE=""
7177 # Check whether --enable-closure was given.
7178 if test "${enable_closure+set}" = set; then
7179 enableval=$enable_closure; kde_use_closure=$enableval
7186 if test "x$kde_use_closure" = "xyes"; then
7187 KDE_USE_CLOSURE_TRUE=""
7188 KDE_USE_CLOSURE_FALSE="#"
7189 # CXXFLAGS="$CXXFLAGS $REPO"
7191 KDE_USE_CLOSURE_TRUE="#"
7192 KDE_USE_CLOSURE_FALSE=""
7197 { echo "$as_me:$LINENO: checking whether $CXX supports -Wl,--no-undefined" >&5
7198 echo $ECHO_N "checking whether $CXX supports -Wl,--no-undefined... $ECHO_C" >&6; }
7199 kde_cache=`echo Wl,--no-undefined | sed 'y% .=/+-,%____p__%'`
7200 if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
7201 echo $ECHO_N "(cached) $ECHO_C" >&6
7206 ac_cpp='$CXXCPP $CPPFLAGS'
7207 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7208 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7209 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7211 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7214 save_CXXFLAGS="$CXXFLAGS"
7215 CXXFLAGS="$CXXFLAGS -Wl,--no-undefined"
7216 cat >conftest.$ac_ext <<_ACEOF
7219 cat confdefs.h >>conftest.$ac_ext
7220 cat >>conftest.$ac_ext <<_ACEOF
7221 /* end confdefs.h. */
7231 rm -f conftest.$ac_objext conftest$ac_exeext
7232 if { (ac_try="$ac_link"
7234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7235 *) ac_try_echo=$ac_try;;
7237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7238 (eval "$ac_link") 2>conftest.er1
7240 grep -v '^ *+' conftest.er1 >conftest.err
7242 cat conftest.err >&5
7243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244 (exit $ac_status); } && {
7245 test -z "$ac_cxx_werror_flag" ||
7246 test ! -s conftest.err
7247 } && test -s conftest$ac_exeext &&
7248 $as_test_x conftest$ac_exeext; then
7249 eval "kde_cv_prog_cxx_$kde_cache=yes"
7251 echo "$as_me: failed program was:" >&5
7252 sed 's/^/| /' conftest.$ac_ext >&5
7257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7258 conftest$ac_exeext conftest.$ac_ext
7259 CXXFLAGS="$save_CXXFLAGS"
7261 ac_cpp='$CPP $CPPFLAGS'
7262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7269 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
7270 { echo "$as_me:$LINENO: result: yes" >&5
7271 echo "${ECHO_T}yes" >&6; }
7274 { echo "$as_me:$LINENO: checking whether $CXX supports -Wl,--allow-shlib-undefined" >&5
7275 echo $ECHO_N "checking whether $CXX supports -Wl,--allow-shlib-undefined... $ECHO_C" >&6; }
7276 kde_cache=`echo Wl,--allow-shlib-undefined | sed 'y% .=/+-,%____p__%'`
7277 if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
7278 echo $ECHO_N "(cached) $ECHO_C" >&6
7283 ac_cpp='$CXXCPP $CPPFLAGS'
7284 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7285 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7286 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7288 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7291 save_CXXFLAGS="$CXXFLAGS"
7292 CXXFLAGS="$CXXFLAGS -Wl,--allow-shlib-undefined"
7293 cat >conftest.$ac_ext <<_ACEOF
7296 cat confdefs.h >>conftest.$ac_ext
7297 cat >>conftest.$ac_ext <<_ACEOF
7298 /* end confdefs.h. */
7308 rm -f conftest.$ac_objext conftest$ac_exeext
7309 if { (ac_try="$ac_link"
7311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7312 *) ac_try_echo=$ac_try;;
7314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7315 (eval "$ac_link") 2>conftest.er1
7317 grep -v '^ *+' conftest.er1 >conftest.err
7319 cat conftest.err >&5
7320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321 (exit $ac_status); } && {
7322 test -z "$ac_cxx_werror_flag" ||
7323 test ! -s conftest.err
7324 } && test -s conftest$ac_exeext &&
7325 $as_test_x conftest$ac_exeext; then
7326 eval "kde_cv_prog_cxx_$kde_cache=yes"
7328 echo "$as_me: failed program was:" >&5
7329 sed 's/^/| /' conftest.$ac_ext >&5
7334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7335 conftest$ac_exeext conftest.$ac_ext
7336 CXXFLAGS="$save_CXXFLAGS"
7338 ac_cpp='$CPP $CPPFLAGS'
7339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7346 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
7347 { echo "$as_me:$LINENO: result: yes" >&5
7348 echo "${ECHO_T}yes" >&6; }
7350 KDE_NO_UNDEFINED="-Wl,--no-undefined -Wl,--allow-shlib-undefined"
7352 { echo "$as_me:$LINENO: result: no" >&5
7353 echo "${ECHO_T}no" >&6; }
7359 { echo "$as_me:$LINENO: result: no" >&5
7360 echo "${ECHO_T}no" >&6; }
7373 # Check whether --enable-nmcheck was given.
7374 if test "${enable_nmcheck+set}" = set; then
7375 enableval=$enable_nmcheck; kde_use_nmcheck=$enableval
7381 if test "$kde_use_nmcheck" = "yes"; then
7382 KDE_USE_NMCHECK_TRUE=""
7383 KDE_USE_NMCHECK_FALSE="#"
7385 KDE_USE_NMCHECK_TRUE="#"
7386 KDE_USE_NMCHECK_FALSE=""
7394 # Check whether --enable-shared was given.
7395 if test "${enable_shared+set}" = set; then
7396 enableval=$enable_shared; p=${PACKAGE-default}
7398 yes) enable_shared=yes ;;
7399 no) enable_shared=no ;;
7402 # Look at the argument we got. We use all the common list separators.
7403 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7404 for pkg in $enableval; do
7406 if test "X$pkg" = "X$p"; then
7418 # Check whether --enable-static was given.
7419 if test "${enable_static+set}" = set; then
7420 enableval=$enable_static; p=${PACKAGE-default}
7422 yes) enable_static=yes ;;
7423 no) enable_static=no ;;
7426 # Look at the argument we got. We use all the common list separators.
7427 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7428 for pkg in $enableval; do
7430 if test "X$pkg" = "X$p"; then
7445 kdelibsuff="$kde_libs_suffix"
7446 if test -z "$kdelibsuff"; then
7449 # Check whether --enable-libsuffix was given.
7450 if test "${enable_libsuffix+set}" = set; then
7451 enableval=$enable_libsuffix; kdelibsuff=$enableval
7454 # TODO: add an auto case that compiles a little C app to check
7455 # where the glibc is
7456 if test "$kdelibsuff" = "no"; then
7459 if test -z "$kdelibsuff"; then
7460 { echo "$as_me:$LINENO: result: not using lib directory suffix" >&5
7461 echo "${ECHO_T}not using lib directory suffix" >&6; }
7463 cat >>confdefs.h <<\_ACEOF
7464 #define KDELIBSUFF ""
7468 if test "$libdir" = '${exec_prefix}/lib'; then
7469 libdir="$libdir${kdelibsuff}"
7473 cat >>confdefs.h <<_ACEOF
7474 #define KDELIBSUFF "${kdelibsuff}"
7477 { echo "$as_me:$LINENO: result: using lib directory suffix $kdelibsuff" >&5
7478 echo "${ECHO_T}using lib directory suffix $kdelibsuff" >&6; }
7481 # Check whether --enable-fast-install was given.
7482 if test "${enable_fast_install+set}" = set; then
7483 enableval=$enable_fast_install; p=${PACKAGE-default}
7485 yes) enable_fast_install=yes ;;
7486 no) enable_fast_install=no ;;
7488 enable_fast_install=no
7489 # Look at the argument we got. We use all the common list separators.
7490 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7491 for pkg in $enableval; do
7493 if test "X$pkg" = "X$p"; then
7494 enable_fast_install=yes
7501 enable_fast_install=yes
7505 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
7506 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
7507 if test "${lt_cv_path_SED+set}" = set; then
7508 echo $ECHO_N "(cached) $ECHO_C" >&6
7510 # Loop through the user's path and test for sed and gsed.
7511 # Then use that list of sed's as ones to test for truncation.
7512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7516 test -z "$as_dir" && as_dir=.
7517 for lt_ac_prog in sed gsed; do
7518 for ac_exec_ext in '' $ac_executable_extensions; do
7519 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
7520 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7527 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
7528 # along with /bin/sed that truncates output.
7529 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
7530 test ! -f $lt_ac_sed && break
7531 cat /dev/null > conftest.in
7533 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
7534 # Check for GNU sed and select it if it is found.
7535 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
7536 lt_cv_path_SED=$lt_ac_sed
7540 cat conftest.in conftest.in >conftest.tmp
7541 mv conftest.tmp conftest.in
7542 cp conftest.in conftest.nl
7544 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
7545 cmp -s conftest.out conftest.nl || break
7546 # 10000 chars as input seems more than enough
7547 test $lt_ac_count -gt 10 && break
7548 lt_ac_count=`expr $lt_ac_count + 1`
7549 if test $lt_ac_count -gt $lt_ac_max; then
7550 lt_ac_max=$lt_ac_count
7551 lt_cv_path_SED=$lt_ac_sed
7559 { echo "$as_me:$LINENO: result: $SED" >&5
7560 echo "${ECHO_T}$SED" >&6; }
7562 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7563 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7564 if test "${ac_cv_path_GREP+set}" = set; then
7565 echo $ECHO_N "(cached) $ECHO_C" >&6
7567 # Extract the first word of "grep ggrep" to use in msg output
7568 if test -z "$GREP"; then
7569 set dummy grep ggrep; ac_prog_name=$2
7570 if test "${ac_cv_path_GREP+set}" = set; then
7571 echo $ECHO_N "(cached) $ECHO_C" >&6
7573 ac_path_GREP_found=false
7574 # Loop through the user's path and test for each of PROGNAME-LIST
7575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7576 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7579 test -z "$as_dir" && as_dir=.
7580 for ac_prog in grep ggrep; do
7581 for ac_exec_ext in '' $ac_executable_extensions; do
7582 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7583 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7584 # Check for GNU ac_path_GREP and select it if it is found.
7585 # Check for GNU $ac_path_GREP
7586 case `"$ac_path_GREP" --version 2>&1` in
7588 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7591 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7594 cat "conftest.in" "conftest.in" >"conftest.tmp"
7595 mv "conftest.tmp" "conftest.in"
7596 cp "conftest.in" "conftest.nl"
7597 echo 'GREP' >> "conftest.nl"
7598 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7599 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7600 ac_count=`expr $ac_count + 1`
7601 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7602 # Best one so far, save it but keep looking for a better one
7603 ac_cv_path_GREP="$ac_path_GREP"
7604 ac_path_GREP_max=$ac_count
7606 # 10*(2^10) chars as input seems more than enough
7607 test $ac_count -gt 10 && break
7609 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7613 $ac_path_GREP_found && break 3
7623 GREP="$ac_cv_path_GREP"
7624 if test -z "$GREP"; then
7625 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7626 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7627 { (exit 1); exit 1; }; }
7631 ac_cv_path_GREP=$GREP
7636 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7637 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7638 GREP="$ac_cv_path_GREP"
7641 { echo "$as_me:$LINENO: checking for egrep" >&5
7642 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7643 if test "${ac_cv_path_EGREP+set}" = set; then
7644 echo $ECHO_N "(cached) $ECHO_C" >&6
7646 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7647 then ac_cv_path_EGREP="$GREP -E"
7649 # Extract the first word of "egrep" to use in msg output
7650 if test -z "$EGREP"; then
7651 set dummy egrep; ac_prog_name=$2
7652 if test "${ac_cv_path_EGREP+set}" = set; then
7653 echo $ECHO_N "(cached) $ECHO_C" >&6
7655 ac_path_EGREP_found=false
7656 # Loop through the user's path and test for each of PROGNAME-LIST
7657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7658 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7661 test -z "$as_dir" && as_dir=.
7662 for ac_prog in egrep; do
7663 for ac_exec_ext in '' $ac_executable_extensions; do
7664 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7665 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7666 # Check for GNU ac_path_EGREP and select it if it is found.
7667 # Check for GNU $ac_path_EGREP
7668 case `"$ac_path_EGREP" --version 2>&1` in
7670 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7673 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7676 cat "conftest.in" "conftest.in" >"conftest.tmp"
7677 mv "conftest.tmp" "conftest.in"
7678 cp "conftest.in" "conftest.nl"
7679 echo 'EGREP' >> "conftest.nl"
7680 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7681 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7682 ac_count=`expr $ac_count + 1`
7683 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7684 # Best one so far, save it but keep looking for a better one
7685 ac_cv_path_EGREP="$ac_path_EGREP"
7686 ac_path_EGREP_max=$ac_count
7688 # 10*(2^10) chars as input seems more than enough
7689 test $ac_count -gt 10 && break
7691 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7695 $ac_path_EGREP_found && break 3
7705 EGREP="$ac_cv_path_EGREP"
7706 if test -z "$EGREP"; then
7707 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7708 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7709 { (exit 1); exit 1; }; }
7713 ac_cv_path_EGREP=$EGREP
7719 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7720 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7721 EGREP="$ac_cv_path_EGREP"
7725 # Check whether --with-gnu-ld was given.
7726 if test "${with_gnu_ld+set}" = set; then
7727 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7733 if test "$GCC" = yes; then
7734 # Check if gcc -print-prog-name=ld gives a path.
7735 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
7736 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
7739 # gcc leaves a trailing carriage return which upsets mingw
7740 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7742 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7745 # Accept absolute paths.
7747 re_direlt='/[^/][^/]*/\.\./'
7748 # Canonicalize the pathname of ld
7749 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
7750 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7751 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
7753 test -z "$LD" && LD="$ac_prog"
7756 # If it fails, then pretend we aren't using GCC.
7760 # If it is relative, then search for the first ld in PATH.
7764 elif test "$with_gnu_ld" = yes; then
7765 { echo "$as_me:$LINENO: checking for GNU ld" >&5
7766 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
7768 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7769 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
7771 if test "${lt_cv_path_LD+set}" = set; then
7772 echo $ECHO_N "(cached) $ECHO_C" >&6
7774 if test -z "$LD"; then
7775 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7776 for ac_dir in $PATH; do
7778 test -z "$ac_dir" && ac_dir=.
7779 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7780 lt_cv_path_LD="$ac_dir/$ac_prog"
7781 # Check to see if the program is GNU ld. I'd rather use --version,
7782 # but apparently some GNU ld's only accept -v.
7783 # Break only if it was the GNU/non-GNU ld that we prefer.
7784 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7785 *GNU* | *'with BFD'*)
7786 test "$with_gnu_ld" != no && break
7789 test "$with_gnu_ld" != yes && break
7796 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7801 if test -n "$LD"; then
7802 { echo "$as_me:$LINENO: result: $LD" >&5
7803 echo "${ECHO_T}$LD" >&6; }
7805 { echo "$as_me:$LINENO: result: no" >&5
7806 echo "${ECHO_T}no" >&6; }
7808 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7809 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7810 { (exit 1); exit 1; }; }
7811 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7812 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
7813 if test "${lt_cv_prog_gnu_ld+set}" = set; then
7814 echo $ECHO_N "(cached) $ECHO_C" >&6
7816 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7817 case `$LD -v 2>&1 </dev/null` in
7818 *GNU* | *'with BFD'*)
7819 lt_cv_prog_gnu_ld=yes
7822 lt_cv_prog_gnu_ld=no
7826 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
7827 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
7828 with_gnu_ld=$lt_cv_prog_gnu_ld
7831 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
7832 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
7833 if test "${lt_cv_ld_reload_flag+set}" = set; then
7834 echo $ECHO_N "(cached) $ECHO_C" >&6
7836 lt_cv_ld_reload_flag='-r'
7838 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
7839 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
7840 reload_flag=$lt_cv_ld_reload_flag
7841 case $reload_flag in
7843 *) reload_flag=" $reload_flag" ;;
7845 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7847 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7848 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
7849 if test "${lt_cv_path_NM+set}" = set; then
7850 echo $ECHO_N "(cached) $ECHO_C" >&6
7852 if test -n "$NM"; then
7853 # Let the user override the test.
7856 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7857 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7859 test -z "$ac_dir" && ac_dir=.
7860 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7861 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7862 # Check to see if the nm accepts a BSD-compat flag.
7863 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7864 # nm: unknown option "B" ignored
7865 # Tru64's nm complains that /dev/null is an invalid object file
7866 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7867 */dev/null* | *'Invalid file or object type'*)
7868 lt_cv_path_NM="$tmp_nm -B"
7872 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7874 lt_cv_path_NM="$tmp_nm -p"
7878 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7879 continue # so that we can try to find one that supports BSD flags
7886 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7889 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7890 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
7893 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
7894 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
7896 if test "$LN_S" = "ln -s"; then
7897 { echo "$as_me:$LINENO: result: yes" >&5
7898 echo "${ECHO_T}yes" >&6; }
7900 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7901 echo "${ECHO_T}no, using $LN_S" >&6; }
7904 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
7905 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
7906 if test "${lt_cv_deplibs_check_method+set}" = set; then
7907 echo $ECHO_N "(cached) $ECHO_C" >&6
7909 lt_cv_file_magic_cmd='$MAGIC_CMD'
7910 lt_cv_file_magic_test_file=
7911 lt_cv_deplibs_check_method='unknown'
7912 # Need to set the preceding variable on all platforms that support
7913 # interlibrary dependencies.
7914 # 'none' -- dependencies not supported.
7915 # `unknown' -- same as none, but documents that we really don't know.
7916 # 'pass_all' -- all dependencies passed with no checks.
7917 # 'test_compile' -- check by making test program.
7918 # 'file_magic [[regex]]' -- check by looking for files in library path
7919 # which responds to the $file_magic_cmd with a given extended regex.
7920 # If you have `file' or equivalent on your system and you're not sure
7921 # whether `pass_all' will *always* work, you probably want this one.
7925 lt_cv_deplibs_check_method=pass_all
7929 lt_cv_deplibs_check_method=pass_all
7933 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7934 lt_cv_file_magic_cmd='/usr/bin/file -L'
7935 lt_cv_file_magic_test_file=/shlib/libc.so
7939 lt_cv_deplibs_check_method=pass_all
7943 # win32_libid is a shell function defined in ltmain.sh
7944 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7945 lt_cv_file_magic_cmd='win32_libid'
7948 darwin* | rhapsody*)
7949 # this will be overwritten by pass_all, but leave it in just in case
7950 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
7951 lt_cv_file_magic_cmd='/usr/bin/file -L'
7953 rhapsody* | darwin1.[012])
7954 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
7957 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
7960 lt_cv_deplibs_check_method=pass_all
7964 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7967 # Not sure whether the presence of OpenBSD here was a mistake.
7968 # Let's accept both of them until this is cleared up.
7969 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
7970 lt_cv_file_magic_cmd=/usr/bin/file
7971 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7975 lt_cv_deplibs_check_method=pass_all
7980 lt_cv_deplibs_check_method=pass_all
7983 hpux10.20* | hpux11*)
7984 lt_cv_file_magic_cmd=/usr/bin/file
7987 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7988 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7991 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]'
7992 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7995 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7996 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8001 irix5* | irix6* | nonstopux*)
8003 irix5* | nonstopux*)
8004 # this will be overridden with pass_all, but let us keep it just in case
8005 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
8009 *-32|*"-32 ") libmagic=32-bit;;
8010 *-n32|*"-n32 ") libmagic=N32;;
8011 *-64|*"-64 ") libmagic=64-bit;;
8012 *) libmagic=never-match;;
8014 # this will be overridden with pass_all, but let us keep it just in case
8015 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
8018 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
8019 lt_cv_deplibs_check_method=pass_all
8022 # This must be Linux ELF.
8025 alpha* | hppa* | i*86 | ia64* | m68* | mips* | powerpc* | sparc* | s390* | sh* | x86_64* )
8026 lt_cv_deplibs_check_method=pass_all ;;
8027 # the debian people say, arm and glibc 2.3.1 works for them with pass_all
8029 lt_cv_deplibs_check_method=pass_all ;;
8031 # glibc up to 2.1.1 does not perform some relocations on ARM
8032 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
8034 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
8038 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
8039 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8041 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8046 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8047 lt_cv_file_magic_cmd=/usr/bin/file
8048 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8052 lt_cv_deplibs_check_method=unknown
8056 lt_cv_file_magic_cmd=/usr/bin/file
8057 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8058 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8059 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
8061 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
8065 osf3* | osf4* | osf5*)
8066 # this will be overridden with pass_all, but let us keep it just in case
8067 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
8068 lt_cv_file_magic_test_file=/shlib/libc.so
8069 lt_cv_deplibs_check_method=pass_all
8073 lt_cv_deplibs_check_method=pass_all
8077 lt_cv_deplibs_check_method=pass_all
8078 lt_cv_file_magic_test_file=/lib/libc.so
8081 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8082 case $host_vendor in
8084 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]'
8085 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8088 lt_cv_deplibs_check_method=pass_all
8091 lt_cv_file_magic_cmd='/bin/file'
8092 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8095 lt_cv_file_magic_cmd='/bin/file'
8096 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8097 lt_cv_file_magic_test_file=/lib/libc.so
8100 lt_cv_deplibs_check_method=pass_all
8105 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
8106 lt_cv_deplibs_check_method=pass_all
8111 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
8112 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
8113 file_magic_cmd=$lt_cv_file_magic_cmd
8114 deplibs_check_method=$lt_cv_deplibs_check_method
8115 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8118 # If no C compiler was specified, use CC.
8121 # Allow CC to be a program name with arguments.
8124 # Check whether --enable-libtool-lock was given.
8125 if test "${enable_libtool_lock+set}" = set; then
8126 enableval=$enable_libtool_lock;
8129 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8131 # Some flags need to be propagated to the compiler or linker for good
8135 # Find out which ABI we are using.
8136 echo 'int i;' > conftest.$ac_ext
8137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8138 (eval $ac_compile) 2>&5
8140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141 (exit $ac_status); }; then
8142 case `/usr/bin/file conftest.$ac_objext` in
8154 # Find out which ABI we are using.
8155 echo '#line 8155 "configure"' > conftest.$ac_ext
8156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8157 (eval $ac_compile) 2>&5
8159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8160 (exit $ac_status); }; then
8161 if test "$lt_cv_prog_gnu_ld" = yes; then
8162 case `/usr/bin/file conftest.$ac_objext` in
8164 LD="${LD-ld} -melf32bsmip"
8167 LD="${LD-ld} -melf32bmipn32"
8170 LD="${LD-ld} -melf64bmip"
8174 case `/usr/bin/file conftest.$ac_objext` in
8190 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
8191 # Find out which ABI we are using.
8192 echo 'int i;' > conftest.$ac_ext
8193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8194 (eval $ac_compile) 2>&5
8196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197 (exit $ac_status); }; then
8198 case "`/usr/bin/file conftest.o`" in
8203 LD="${LD-ld} -m elf_i386"
8206 LD="${LD-ld} -m elf32ppclinux"
8209 LD="${LD-ld} -m elf_s390"
8212 LD="${LD-ld} -m elf32_sparc"
8220 LD="${LD-ld} -m elf_x86_64"
8222 ppc*-*linux*|powerpc*-*linux*)
8223 LD="${LD-ld} -m elf64ppc"
8226 LD="${LD-ld} -m elf64_s390"
8229 LD="${LD-ld} -m elf64_sparc"
8239 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8240 SAVE_CFLAGS="$CFLAGS"
8241 CFLAGS="$CFLAGS -belf"
8242 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
8243 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
8244 if test "${lt_cv_cc_needs_belf+set}" = set; then
8245 echo $ECHO_N "(cached) $ECHO_C" >&6
8248 ac_cpp='$CPP $CPPFLAGS'
8249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8253 cat >conftest.$ac_ext <<_ACEOF
8256 cat confdefs.h >>conftest.$ac_ext
8257 cat >>conftest.$ac_ext <<_ACEOF
8258 /* end confdefs.h. */
8268 rm -f conftest.$ac_objext conftest$ac_exeext
8269 if { (ac_try="$ac_link"
8271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8272 *) ac_try_echo=$ac_try;;
8274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8275 (eval "$ac_link") 2>conftest.er1
8277 grep -v '^ *+' conftest.er1 >conftest.err
8279 cat conftest.err >&5
8280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8281 (exit $ac_status); } && {
8282 test -z "$ac_c_werror_flag" ||
8283 test ! -s conftest.err
8284 } && test -s conftest$ac_exeext &&
8285 $as_test_x conftest$ac_exeext; then
8286 lt_cv_cc_needs_belf=yes
8288 echo "$as_me: failed program was:" >&5
8289 sed 's/^/| /' conftest.$ac_ext >&5
8291 lt_cv_cc_needs_belf=no
8294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8295 conftest$ac_exeext conftest.$ac_ext
8297 ac_cpp='$CPP $CPPFLAGS'
8298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8303 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
8304 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
8305 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8306 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8307 CFLAGS="$SAVE_CFLAGS"
8313 need_locks="$enable_libtool_lock"
8317 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8318 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8319 if test "${ac_cv_header_stdc+set}" = set; then
8320 echo $ECHO_N "(cached) $ECHO_C" >&6
8322 cat >conftest.$ac_ext <<_ACEOF
8325 cat confdefs.h >>conftest.$ac_ext
8326 cat >>conftest.$ac_ext <<_ACEOF
8327 /* end confdefs.h. */
8341 rm -f conftest.$ac_objext
8342 if { (ac_try="$ac_compile"
8344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8345 *) ac_try_echo=$ac_try;;
8347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8348 (eval "$ac_compile") 2>conftest.er1
8350 grep -v '^ *+' conftest.er1 >conftest.err
8352 cat conftest.err >&5
8353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354 (exit $ac_status); } && {
8355 test -z "$ac_c_werror_flag" ||
8356 test ! -s conftest.err
8357 } && test -s conftest.$ac_objext; then
8358 ac_cv_header_stdc=yes
8360 echo "$as_me: failed program was:" >&5
8361 sed 's/^/| /' conftest.$ac_ext >&5
8363 ac_cv_header_stdc=no
8366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8368 if test $ac_cv_header_stdc = yes; then
8369 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8370 cat >conftest.$ac_ext <<_ACEOF
8373 cat confdefs.h >>conftest.$ac_ext
8374 cat >>conftest.$ac_ext <<_ACEOF
8375 /* end confdefs.h. */
8379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8380 $EGREP "memchr" >/dev/null 2>&1; then
8383 ac_cv_header_stdc=no
8389 if test $ac_cv_header_stdc = yes; then
8390 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8391 cat >conftest.$ac_ext <<_ACEOF
8394 cat confdefs.h >>conftest.$ac_ext
8395 cat >>conftest.$ac_ext <<_ACEOF
8396 /* end confdefs.h. */
8400 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8401 $EGREP "free" >/dev/null 2>&1; then
8404 ac_cv_header_stdc=no
8410 if test $ac_cv_header_stdc = yes; then
8411 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8412 if test "$cross_compiling" = yes; then
8415 cat >conftest.$ac_ext <<_ACEOF
8418 cat confdefs.h >>conftest.$ac_ext
8419 cat >>conftest.$ac_ext <<_ACEOF
8420 /* end confdefs.h. */
8423 #if ((' ' & 0x0FF) == 0x020)
8424 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8425 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8427 # define ISLOWER(c) \
8428 (('a' <= (c) && (c) <= 'i') \
8429 || ('j' <= (c) && (c) <= 'r') \
8430 || ('s' <= (c) && (c) <= 'z'))
8431 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8434 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8439 for (i = 0; i < 256; i++)
8440 if (XOR (islower (i), ISLOWER (i))
8441 || toupper (i) != TOUPPER (i))
8446 rm -f conftest$ac_exeext
8447 if { (ac_try="$ac_link"
8449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8450 *) ac_try_echo=$ac_try;;
8452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8453 (eval "$ac_link") 2>&5
8455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8457 { (case "(($ac_try" in
8458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8459 *) ac_try_echo=$ac_try;;
8461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8462 (eval "$ac_try") 2>&5
8464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465 (exit $ac_status); }; }; then
8468 echo "$as_me: program exited with status $ac_status" >&5
8469 echo "$as_me: failed program was:" >&5
8470 sed 's/^/| /' conftest.$ac_ext >&5
8473 ac_cv_header_stdc=no
8475 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8481 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8482 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8483 if test $ac_cv_header_stdc = yes; then
8485 cat >>confdefs.h <<\_ACEOF
8486 #define STDC_HEADERS 1
8491 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8501 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8502 inttypes.h stdint.h unistd.h
8504 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8505 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8506 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8507 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8508 echo $ECHO_N "(cached) $ECHO_C" >&6
8510 cat >conftest.$ac_ext <<_ACEOF
8513 cat confdefs.h >>conftest.$ac_ext
8514 cat >>conftest.$ac_ext <<_ACEOF
8515 /* end confdefs.h. */
8516 $ac_includes_default
8518 #include <$ac_header>
8520 rm -f conftest.$ac_objext
8521 if { (ac_try="$ac_compile"
8523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8524 *) ac_try_echo=$ac_try;;
8526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8527 (eval "$ac_compile") 2>conftest.er1
8529 grep -v '^ *+' conftest.er1 >conftest.err
8531 cat conftest.err >&5
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); } && {
8534 test -z "$ac_c_werror_flag" ||
8535 test ! -s conftest.err
8536 } && test -s conftest.$ac_objext; then
8537 eval "$as_ac_Header=yes"
8539 echo "$as_me: failed program was:" >&5
8540 sed 's/^/| /' conftest.$ac_ext >&5
8542 eval "$as_ac_Header=no"
8545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8547 ac_res=`eval echo '${'$as_ac_Header'}'`
8548 { echo "$as_me:$LINENO: result: $ac_res" >&5
8549 echo "${ECHO_T}$ac_res" >&6; }
8550 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8551 cat >>confdefs.h <<_ACEOF
8552 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8561 for ac_header in dlfcn.h
8563 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8564 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8565 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8566 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8567 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8568 echo $ECHO_N "(cached) $ECHO_C" >&6
8570 ac_res=`eval echo '${'$as_ac_Header'}'`
8571 { echo "$as_me:$LINENO: result: $ac_res" >&5
8572 echo "${ECHO_T}$ac_res" >&6; }
8574 # Is the header compilable?
8575 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8576 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8577 cat >conftest.$ac_ext <<_ACEOF
8580 cat confdefs.h >>conftest.$ac_ext
8581 cat >>conftest.$ac_ext <<_ACEOF
8582 /* end confdefs.h. */
8583 $ac_includes_default
8584 #include <$ac_header>
8586 rm -f conftest.$ac_objext
8587 if { (ac_try="$ac_compile"
8589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8590 *) ac_try_echo=$ac_try;;
8592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8593 (eval "$ac_compile") 2>conftest.er1
8595 grep -v '^ *+' conftest.er1 >conftest.err
8597 cat conftest.err >&5
8598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599 (exit $ac_status); } && {
8600 test -z "$ac_c_werror_flag" ||
8601 test ! -s conftest.err
8602 } && test -s conftest.$ac_objext; then
8603 ac_header_compiler=yes
8605 echo "$as_me: failed program was:" >&5
8606 sed 's/^/| /' conftest.$ac_ext >&5
8608 ac_header_compiler=no
8611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8612 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8613 echo "${ECHO_T}$ac_header_compiler" >&6; }
8615 # Is the header present?
8616 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8617 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8618 cat >conftest.$ac_ext <<_ACEOF
8621 cat confdefs.h >>conftest.$ac_ext
8622 cat >>conftest.$ac_ext <<_ACEOF
8623 /* end confdefs.h. */
8624 #include <$ac_header>
8626 if { (ac_try="$ac_cpp conftest.$ac_ext"
8628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8629 *) ac_try_echo=$ac_try;;
8631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8632 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8634 grep -v '^ *+' conftest.er1 >conftest.err
8636 cat conftest.err >&5
8637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638 (exit $ac_status); } >/dev/null && {
8639 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8640 test ! -s conftest.err
8642 ac_header_preproc=yes
8644 echo "$as_me: failed program was:" >&5
8645 sed 's/^/| /' conftest.$ac_ext >&5
8647 ac_header_preproc=no
8650 rm -f conftest.err conftest.$ac_ext
8651 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8652 echo "${ECHO_T}$ac_header_preproc" >&6; }
8654 # So? What about this header?
8655 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8657 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8658 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8659 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8660 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8661 ac_header_preproc=yes
8664 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8665 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8666 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8667 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8668 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8669 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8670 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8671 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8672 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8673 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8674 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8675 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8679 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8680 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8681 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8682 echo $ECHO_N "(cached) $ECHO_C" >&6
8684 eval "$as_ac_Header=\$ac_header_preproc"
8686 ac_res=`eval echo '${'$as_ac_Header'}'`
8687 { echo "$as_me:$LINENO: result: $ac_res" >&5
8688 echo "${ECHO_T}$ac_res" >&6; }
8691 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8692 cat >>confdefs.h <<_ACEOF
8693 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8701 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
8702 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8703 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
8704 if test -n "$ac_tool_prefix"; then
8705 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
8707 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8708 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8709 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8711 if test "${ac_cv_prog_F77+set}" = set; then
8712 echo $ECHO_N "(cached) $ECHO_C" >&6
8714 if test -n "$F77"; then
8715 ac_cv_prog_F77="$F77" # Let the user override the test.
8717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8721 test -z "$as_dir" && as_dir=.
8722 for ac_exec_ext in '' $ac_executable_extensions; do
8723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8724 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
8725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8735 if test -n "$F77"; then
8736 { echo "$as_me:$LINENO: result: $F77" >&5
8737 echo "${ECHO_T}$F77" >&6; }
8739 { echo "$as_me:$LINENO: result: no" >&5
8740 echo "${ECHO_T}no" >&6; }
8744 test -n "$F77" && break
8747 if test -z "$F77"; then
8749 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
8751 # Extract the first word of "$ac_prog", so it can be a program name with args.
8752 set dummy $ac_prog; ac_word=$2
8753 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8755 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
8756 echo $ECHO_N "(cached) $ECHO_C" >&6
8758 if test -n "$ac_ct_F77"; then
8759 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
8761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8765 test -z "$as_dir" && as_dir=.
8766 for ac_exec_ext in '' $ac_executable_extensions; do
8767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8768 ac_cv_prog_ac_ct_F77="$ac_prog"
8769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8778 ac_ct_F77=$ac_cv_prog_ac_ct_F77
8779 if test -n "$ac_ct_F77"; then
8780 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
8781 echo "${ECHO_T}$ac_ct_F77" >&6; }
8783 { echo "$as_me:$LINENO: result: no" >&5
8784 echo "${ECHO_T}no" >&6; }
8788 test -n "$ac_ct_F77" && break
8791 if test "x$ac_ct_F77" = x; then
8794 case $cross_compiling:$ac_tool_warned in
8796 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8797 whose name does not start with the host triplet. If you think this
8798 configuration is useful to you, please write to autoconf@gnu.org." >&5
8799 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8800 whose name does not start with the host triplet. If you think this
8801 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8802 ac_tool_warned=yes ;;
8809 # Provide some information about the compiler.
8810 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
8811 ac_compiler=`set X $ac_compile; echo $2`
8812 { (ac_try="$ac_compiler --version >&5"
8814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8815 *) ac_try_echo=$ac_try;;
8817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8818 (eval "$ac_compiler --version >&5") 2>&5
8820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821 (exit $ac_status); }
8822 { (ac_try="$ac_compiler -v >&5"
8824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8825 *) ac_try_echo=$ac_try;;
8827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8828 (eval "$ac_compiler -v >&5") 2>&5
8830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831 (exit $ac_status); }
8832 { (ac_try="$ac_compiler -V >&5"
8834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8835 *) ac_try_echo=$ac_try;;
8837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8838 (eval "$ac_compiler -V >&5") 2>&5
8840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8841 (exit $ac_status); }
8844 # If we don't use `.F' as extension, the preprocessor is not run on the
8845 # input file. (Note that this only needs to work for GNU compilers.)
8848 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
8849 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
8850 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
8851 echo $ECHO_N "(cached) $ECHO_C" >&6
8853 cat >conftest.$ac_ext <<_ACEOF
8861 rm -f conftest.$ac_objext
8862 if { (ac_try="$ac_compile"
8864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8865 *) ac_try_echo=$ac_try;;
8867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8868 (eval "$ac_compile") 2>conftest.er1
8870 grep -v '^ *+' conftest.er1 >conftest.err
8872 cat conftest.err >&5
8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 (exit $ac_status); } && {
8875 test -z "$ac_f77_werror_flag" ||
8876 test ! -s conftest.err
8877 } && test -s conftest.$ac_objext; then
8880 echo "$as_me: failed program was:" >&5
8881 sed 's/^/| /' conftest.$ac_ext >&5
8886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8887 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
8890 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
8891 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
8893 ac_test_FFLAGS=${FFLAGS+set}
8894 ac_save_FFLAGS=$FFLAGS
8896 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
8897 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
8898 if test "${ac_cv_prog_f77_g+set}" = set; then
8899 echo $ECHO_N "(cached) $ECHO_C" >&6
8902 cat >conftest.$ac_ext <<_ACEOF
8907 rm -f conftest.$ac_objext
8908 if { (ac_try="$ac_compile"
8910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8911 *) ac_try_echo=$ac_try;;
8913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8914 (eval "$ac_compile") 2>conftest.er1
8916 grep -v '^ *+' conftest.er1 >conftest.err
8918 cat conftest.err >&5
8919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920 (exit $ac_status); } && {
8921 test -z "$ac_f77_werror_flag" ||
8922 test ! -s conftest.err
8923 } && test -s conftest.$ac_objext; then
8924 ac_cv_prog_f77_g=yes
8926 echo "$as_me: failed program was:" >&5
8927 sed 's/^/| /' conftest.$ac_ext >&5
8932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8935 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
8936 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
8937 if test "$ac_test_FFLAGS" = set; then
8938 FFLAGS=$ac_save_FFLAGS
8939 elif test $ac_cv_prog_f77_g = yes; then
8940 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
8946 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
8953 G77=`test $ac_compiler_gnu = yes && echo yes`
8955 ac_cpp='$CPP $CPPFLAGS'
8956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8962 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
8964 # find the maximum length of command line arguments
8965 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
8966 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
8967 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
8968 echo $ECHO_N "(cached) $ECHO_C" >&6
8975 # On DJGPP, this test can blow up pretty badly due to problems in libc
8976 # (any single argument exceeding 2000 bytes causes a buffer overrun
8977 # during glob expansion). Even if it were fixed, the result of this
8978 # check would be larger than it should be.
8979 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8983 # Under GNU Hurd, this test is not required because there is
8984 # no limit to the length of command line arguments.
8985 # Libtool will interpret -1 as no limit whatsoever
8986 lt_cv_sys_max_cmd_len=-1;
8990 # On Win9x/ME, this test blows up -- it succeeds, but takes
8991 # about 5 minutes as the teststring grows exponentially.
8992 # Worse, since 9x/ME are not pre-emptively multitasking,
8993 # you end up with a "frozen" computer, even though with patience
8994 # the test eventually succeeds (with a max line length of 256k).
8995 # Instead, let's just punt: use the minimum linelength reported by
8996 # all of the supported platforms: 8192 (on NT/2K/XP).
8997 lt_cv_sys_max_cmd_len=8192;
9001 # If test is not a shell built-in, we'll probably end up computing a
9002 # maximum length that is only half of the actual maximum length, but
9004 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
9005 = "XX$testring") >/dev/null 2>&1 &&
9006 new_result=`expr "X$testring" : ".*" 2>&1` &&
9007 lt_cv_sys_max_cmd_len=$new_result &&
9008 test $i != 17 # 1/2 MB should be enough
9011 testring=$testring$testring
9014 # Add a significant safety factor because C++ compilers can tack on massive
9015 # amounts of additional arguments before passing them to the linker.
9016 # It appears as though 1/2 is a usable value.
9017 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9023 if test -n $lt_cv_sys_max_cmd_len ; then
9024 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
9025 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
9027 { echo "$as_me:$LINENO: result: none" >&5
9028 echo "${ECHO_T}none" >&6; }
9034 # Check for command to grab the raw symbol name followed by C symbol from nm.
9035 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9036 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9037 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9038 echo $ECHO_N "(cached) $ECHO_C" >&6
9041 # These are sane defaults that work on at least a few old systems.
9042 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9044 # Character class describing NM global symbol codes.
9045 symcode='[BCDEGRST]'
9047 # Regexp to match symbols that can be accessed directly from C.
9048 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9050 # Transform the above into a raw symbol and a C symbol.
9051 symxfrm='\1 \2\3 \3'
9053 # Transform an extracted symbol line into a proper C declaration
9054 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9056 # Transform an extracted symbol line into symbol name and symbol address
9057 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'"
9059 # Define system-specific variables.
9064 cygwin* | mingw* | pw32*)
9065 symcode='[ABCDGISTW]'
9067 hpux*) # Its linker distinguishes data from code symbols
9068 if test "$host_cpu" = ia64; then
9069 symcode='[ABCDEGRST]'
9071 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9072 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'"
9075 symcode='[BCDEGRST]'
9078 symcode='[BCDEGQRST]'
9088 # Handle CRLF in mingw tool chain
9092 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9096 # If we're using GNU nm, then use its standard symbol codes.
9097 case `$NM -V 2>&1` in
9098 *GNU* | *'with BFD'*)
9099 symcode='[ABCDGISTW]' ;;
9102 # Try without a prefix undercore, then with it.
9103 for ac_symprfx in "" "_"; do
9105 # Write the raw and C identifiers.
9106 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
9108 # Check to see that the pipe works correctly.
9112 cat > conftest.$ac_ext <<EOF
9117 void nm_test_func(){}
9121 int main(){nm_test_var='a';nm_test_func();return(0);}
9124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9125 (eval $ac_compile) 2>&5
9127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9128 (exit $ac_status); }; then
9129 # Now try to grab the symbols.
9131 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9132 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9135 (exit $ac_status); } && test -s "$nlist"; then
9136 # Try sorting and uniquifying the output.
9137 if sort "$nlist" | uniq > "$nlist"T; then
9138 mv -f "$nlist"T "$nlist"
9143 # Make sure that we snagged all the symbols we need.
9144 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9145 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9146 cat <<EOF > conftest.$ac_ext
9152 # Now generate the symbol file.
9153 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9155 cat <<EOF >> conftest.$ac_ext
9156 #if defined (__STDC__) && __STDC__
9157 # define lt_ptr_t void *
9159 # define lt_ptr_t char *
9163 /* The mapping between symbol names and symbols. */
9168 lt_preloaded_symbols[] =
9171 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9172 cat <<\EOF >> conftest.$ac_ext
9180 # Now try linking the two files.
9181 mv conftest.$ac_objext conftstm.$ac_objext
9182 lt_save_LIBS="$LIBS"
9183 lt_save_CFLAGS="$CFLAGS"
9184 LIBS="conftstm.$ac_objext"
9185 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9187 (eval $ac_link) 2>&5
9189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9193 LIBS="$lt_save_LIBS"
9194 CFLAGS="$lt_save_CFLAGS"
9196 echo "cannot find nm_test_func in $nlist" >&5
9199 echo "cannot find nm_test_var in $nlist" >&5
9202 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9205 echo "$progname: failed program was:" >&5
9206 cat conftest.$ac_ext >&5
9208 rm -f conftest* conftst*
9210 # Do not use the global_symbol_pipe unless it works.
9211 if test "$pipe_works" = yes; then
9214 lt_cv_sys_global_symbol_pipe=
9220 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9221 lt_cv_sys_global_symbol_to_cdecl=
9223 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9224 { echo "$as_me:$LINENO: result: failed" >&5
9225 echo "${ECHO_T}failed" >&6; }
9227 { echo "$as_me:$LINENO: result: ok" >&5
9228 echo "${ECHO_T}ok" >&6; }
9231 { echo "$as_me:$LINENO: checking for objdir" >&5
9232 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9233 if test "${lt_cv_objdir+set}" = set; then
9234 echo $ECHO_N "(cached) $ECHO_C" >&6
9236 rm -f .libs 2>/dev/null
9237 mkdir .libs 2>/dev/null
9238 if test -d .libs; then
9241 # MS-DOS does not allow filenames that begin with a dot.
9244 rmdir .libs 2>/dev/null
9246 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9247 echo "${ECHO_T}$lt_cv_objdir" >&6; }
9248 objdir=$lt_cv_objdir
9256 # AIX sometimes has problems with the GCC collect2 program. For some
9257 # reason, if we set the COLLECT_NAMES environment variable, the problems
9258 # vanish in a puff of smoke.
9259 if test "X${COLLECT_NAMES+set}" != Xset; then
9261 export COLLECT_NAMES
9266 # Sed substitution that helps us do robust quoting. It backslashifies
9267 # metacharacters that are still active within double-quoted strings.
9268 Xsed='sed -e s/^X//'
9269 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
9271 # Same as above, but do not quote variable references.
9272 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
9274 # Sed substitution to delay expansion of an escaped shell variable in a
9275 # double_quote_subst'ed string.
9276 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9278 # Sed substitution to avoid accidental globbing in evaled expressions
9279 no_glob_subst='s/\*/\\\*/g'
9285 default_ofile=libtool
9286 can_build_shared=yes
9288 # All known linkers require a `.a' archive for static linking (except M$VC,
9289 # which needs '.lib').
9291 ltmain="$ac_aux_dir/ltmain.sh"
9292 ofile="$default_ofile"
9293 with_gnu_ld="$lt_cv_prog_gnu_ld"
9295 if test -n "$ac_tool_prefix"; then
9296 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9297 set dummy ${ac_tool_prefix}ar; ac_word=$2
9298 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9300 if test "${ac_cv_prog_AR+set}" = set; then
9301 echo $ECHO_N "(cached) $ECHO_C" >&6
9303 if test -n "$AR"; then
9304 ac_cv_prog_AR="$AR" # Let the user override the test.
9306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9310 test -z "$as_dir" && as_dir=.
9311 for ac_exec_ext in '' $ac_executable_extensions; do
9312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9313 ac_cv_prog_AR="${ac_tool_prefix}ar"
9314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9324 if test -n "$AR"; then
9325 { echo "$as_me:$LINENO: result: $AR" >&5
9326 echo "${ECHO_T}$AR" >&6; }
9328 { echo "$as_me:$LINENO: result: no" >&5
9329 echo "${ECHO_T}no" >&6; }
9334 if test -z "$ac_cv_prog_AR"; then
9336 # Extract the first word of "ar", so it can be a program name with args.
9337 set dummy ar; ac_word=$2
9338 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9340 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
9341 echo $ECHO_N "(cached) $ECHO_C" >&6
9343 if test -n "$ac_ct_AR"; then
9344 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9350 test -z "$as_dir" && as_dir=.
9351 for ac_exec_ext in '' $ac_executable_extensions; do
9352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9353 ac_cv_prog_ac_ct_AR="ar"
9354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9363 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9364 if test -n "$ac_ct_AR"; then
9365 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
9366 echo "${ECHO_T}$ac_ct_AR" >&6; }
9368 { echo "$as_me:$LINENO: result: no" >&5
9369 echo "${ECHO_T}no" >&6; }
9372 if test "x$ac_ct_AR" = x; then
9375 case $cross_compiling:$ac_tool_warned in
9377 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
9378 whose name does not start with the host triplet. If you think this
9379 configuration is useful to you, please write to autoconf@gnu.org." >&5
9380 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
9381 whose name does not start with the host triplet. If you think this
9382 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
9383 ac_tool_warned=yes ;;
9391 if test -n "$ac_tool_prefix"; then
9392 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9393 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9396 if test "${ac_cv_prog_RANLIB+set}" = set; then
9397 echo $ECHO_N "(cached) $ECHO_C" >&6
9399 if test -n "$RANLIB"; then
9400 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9406 test -z "$as_dir" && as_dir=.
9407 for ac_exec_ext in '' $ac_executable_extensions; do
9408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9409 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9419 RANLIB=$ac_cv_prog_RANLIB
9420 if test -n "$RANLIB"; then
9421 { echo "$as_me:$LINENO: result: $RANLIB" >&5
9422 echo "${ECHO_T}$RANLIB" >&6; }
9424 { echo "$as_me:$LINENO: result: no" >&5
9425 echo "${ECHO_T}no" >&6; }
9430 if test -z "$ac_cv_prog_RANLIB"; then
9431 ac_ct_RANLIB=$RANLIB
9432 # Extract the first word of "ranlib", so it can be a program name with args.
9433 set dummy ranlib; ac_word=$2
9434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9436 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
9437 echo $ECHO_N "(cached) $ECHO_C" >&6
9439 if test -n "$ac_ct_RANLIB"; then
9440 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9446 test -z "$as_dir" && as_dir=.
9447 for ac_exec_ext in '' $ac_executable_extensions; do
9448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9449 ac_cv_prog_ac_ct_RANLIB="ranlib"
9450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9459 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9460 if test -n "$ac_ct_RANLIB"; then
9461 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
9462 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
9464 { echo "$as_me:$LINENO: result: no" >&5
9465 echo "${ECHO_T}no" >&6; }
9468 if test "x$ac_ct_RANLIB" = x; then
9471 case $cross_compiling:$ac_tool_warned in
9473 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
9474 whose name does not start with the host triplet. If you think this
9475 configuration is useful to you, please write to autoconf@gnu.org." >&5
9476 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
9477 whose name does not start with the host triplet. If you think this
9478 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
9479 ac_tool_warned=yes ;;
9481 RANLIB=$ac_ct_RANLIB
9484 RANLIB="$ac_cv_prog_RANLIB"
9487 if test -n "$ac_tool_prefix"; then
9488 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9489 set dummy ${ac_tool_prefix}strip; ac_word=$2
9490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9492 if test "${ac_cv_prog_STRIP+set}" = set; then
9493 echo $ECHO_N "(cached) $ECHO_C" >&6
9495 if test -n "$STRIP"; then
9496 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9502 test -z "$as_dir" && as_dir=.
9503 for ac_exec_ext in '' $ac_executable_extensions; do
9504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9505 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9515 STRIP=$ac_cv_prog_STRIP
9516 if test -n "$STRIP"; then
9517 { echo "$as_me:$LINENO: result: $STRIP" >&5
9518 echo "${ECHO_T}$STRIP" >&6; }
9520 { echo "$as_me:$LINENO: result: no" >&5
9521 echo "${ECHO_T}no" >&6; }
9526 if test -z "$ac_cv_prog_STRIP"; then
9528 # Extract the first word of "strip", so it can be a program name with args.
9529 set dummy strip; ac_word=$2
9530 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9532 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
9533 echo $ECHO_N "(cached) $ECHO_C" >&6
9535 if test -n "$ac_ct_STRIP"; then
9536 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9542 test -z "$as_dir" && as_dir=.
9543 for ac_exec_ext in '' $ac_executable_extensions; do
9544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9545 ac_cv_prog_ac_ct_STRIP="strip"
9546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9555 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9556 if test -n "$ac_ct_STRIP"; then
9557 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
9558 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
9560 { echo "$as_me:$LINENO: result: no" >&5
9561 echo "${ECHO_T}no" >&6; }
9564 if test "x$ac_ct_STRIP" = x; then
9567 case $cross_compiling:$ac_tool_warned in
9569 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
9570 whose name does not start with the host triplet. If you think this
9571 configuration is useful to you, please write to autoconf@gnu.org." >&5
9572 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
9573 whose name does not start with the host triplet. If you think this
9574 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
9575 ac_tool_warned=yes ;;
9580 STRIP="$ac_cv_prog_STRIP"
9585 old_CFLAGS="$CFLAGS"
9587 # Set sane defaults for various variables
9588 test -z "$AR" && AR=ar
9589 test -z "$AR_FLAGS" && AR_FLAGS=cru
9590 test -z "$AS" && AS=as
9591 test -z "$CC" && CC=cc
9592 test -z "$LTCC" && LTCC=$CC
9593 test -z "$DLLTOOL" && DLLTOOL=dlltool
9594 test -z "$LD" && LD=ld
9595 test -z "$LN_S" && LN_S="ln -s"
9596 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9597 test -z "$NM" && NM=nm
9598 test -z "$SED" && SED=sed
9599 test -z "$OBJDUMP" && OBJDUMP=objdump
9600 test -z "$RANLIB" && RANLIB=:
9601 test -z "$STRIP" && STRIP=:
9602 test -z "$ac_objext" && ac_objext=o
9604 # Determine commands to create old-style static archives.
9605 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
9606 old_postinstall_cmds='chmod 644 $oldlib'
9607 old_postuninstall_cmds=
9609 if test -n "$RANLIB"; then
9612 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
9615 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
9618 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9621 # Only perform the check for file, if the check method requires it
9622 case $deplibs_check_method in
9624 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9625 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9626 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
9627 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9628 echo $ECHO_N "(cached) $ECHO_C" >&6
9632 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9635 lt_save_MAGIC_CMD="$MAGIC_CMD"
9636 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9637 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9638 for ac_dir in $ac_dummy; do
9640 test -z "$ac_dir" && ac_dir=.
9641 if test -f $ac_dir/${ac_tool_prefix}file; then
9642 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9643 if test -n "$file_magic_test_file"; then
9644 case $deplibs_check_method in
9646 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
9647 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9648 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9649 $EGREP "$file_magic_regex" > /dev/null; then
9654 *** Warning: the command libtool uses to detect shared libraries,
9655 *** $file_magic_cmd, produces output that libtool cannot recognize.
9656 *** The result is that libtool may fail to recognize shared libraries
9657 *** as such. This will affect the creation of libtool libraries that
9658 *** depend on shared libraries, but programs linked with such libtool
9659 *** libraries will work regardless of this problem. Nevertheless, you
9660 *** may want to report the problem to your system manager and/or to
9661 *** bug-libtool@gnu.org
9671 MAGIC_CMD="$lt_save_MAGIC_CMD"
9676 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9677 if test -n "$MAGIC_CMD"; then
9678 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9679 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9681 { echo "$as_me:$LINENO: result: no" >&5
9682 echo "${ECHO_T}no" >&6; }
9685 if test -z "$lt_cv_path_MAGIC_CMD"; then
9686 if test -n "$ac_tool_prefix"; then
9687 { echo "$as_me:$LINENO: checking for file" >&5
9688 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
9689 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9690 echo $ECHO_N "(cached) $ECHO_C" >&6
9694 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9697 lt_save_MAGIC_CMD="$MAGIC_CMD"
9698 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9699 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9700 for ac_dir in $ac_dummy; do
9702 test -z "$ac_dir" && ac_dir=.
9703 if test -f $ac_dir/file; then
9704 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9705 if test -n "$file_magic_test_file"; then
9706 case $deplibs_check_method in
9708 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
9709 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9710 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9711 $EGREP "$file_magic_regex" > /dev/null; then
9716 *** Warning: the command libtool uses to detect shared libraries,
9717 *** $file_magic_cmd, produces output that libtool cannot recognize.
9718 *** The result is that libtool may fail to recognize shared libraries
9719 *** as such. This will affect the creation of libtool libraries that
9720 *** depend on shared libraries, but programs linked with such libtool
9721 *** libraries will work regardless of this problem. Nevertheless, you
9722 *** may want to report the problem to your system manager and/or to
9723 *** bug-libtool@gnu.org
9733 MAGIC_CMD="$lt_save_MAGIC_CMD"
9738 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9739 if test -n "$MAGIC_CMD"; then
9740 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9741 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9743 { echo "$as_me:$LINENO: result: no" >&5
9744 echo "${ECHO_T}no" >&6; }
9759 # Check whether --enable-libtool-lock was given.
9760 if test "${enable_libtool_lock+set}" = set; then
9761 enableval=$enable_libtool_lock;
9764 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9767 # Check whether --with-pic was given.
9768 if test "${with_pic+set}" = set; then
9769 withval=$with_pic; pic_mode="$withval"
9774 test -z "$pic_mode" && pic_mode=default
9776 # Use C for the default configuration in the libtool script
9780 ac_cpp='$CPP $CPPFLAGS'
9781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9786 # Source file extension for C test sources.
9789 # Object file extension for compiled C test sources.
9793 # Code to be used in simple compile tests
9794 lt_simple_compile_test_code="int some_variable = 0;\n"
9796 # Code to be used in simple link tests
9797 lt_simple_link_test_code='int main(){return(0);}\n'
9800 # If no C compiler was specified, use CC.
9803 # Allow CC to be a program name with arguments.
9808 # Check for any special shared library compilation flags.
9811 if test "$GCC" = no; then
9814 lt_prog_cc_shlib='-belf'
9818 if test -n "$lt_prog_cc_shlib"; then
9819 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
9820 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
9821 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
9823 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
9824 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
9825 lt_cv_prog_cc_can_build_shared=no
9831 # Check to make sure the static flag actually works.
9833 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
9834 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
9835 if test "${lt_prog_compiler_static_works+set}" = set; then
9836 echo $ECHO_N "(cached) $ECHO_C" >&6
9838 lt_prog_compiler_static_works=no
9839 save_LDFLAGS="$LDFLAGS"
9840 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
9841 printf "$lt_simple_link_test_code" > conftest.$ac_ext
9842 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9843 # The compiler can only warn and ignore the option if not recognized
9844 # So say no if there are warnings
9845 if test -s conftest.err; then
9846 # Append any errors to the config.log.
9847 cat conftest.err 1>&5
9849 lt_prog_compiler_static_works=yes
9853 LDFLAGS="$save_LDFLAGS"
9856 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9857 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
9859 if test x"$lt_prog_compiler_static_works" = xyes; then
9862 lt_prog_compiler_static=
9868 ## There is no encapsulation within the following macros, do not change
9869 ## the running order or otherwise move them around unless you know exactly
9870 ## what you are doing...
9872 lt_prog_compiler_no_builtin_flag=
9874 if test "$GCC" = yes; then
9875 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9878 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9879 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
9880 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9881 echo $ECHO_N "(cached) $ECHO_C" >&6
9883 lt_cv_prog_compiler_rtti_exceptions=no
9884 ac_outfile=conftest.$ac_objext
9885 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9886 lt_compiler_flag="-fno-rtti -fno-exceptions"
9887 # Insert the option either (1) after the last *FLAGS variable, or
9888 # (2) before a word containing "conftest.", or (3) at the end.
9889 # Note that $ac_compile itself does not contain backslashes and begins
9890 # with a dollar sign (not a hyphen), so the echo should work correctly.
9891 # The option is referenced via a variable to avoid confusing sed.
9892 lt_compile=`echo "$ac_compile" | $SED \
9893 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
9894 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9895 -e 's:$: $lt_compiler_flag:'`
9896 (eval echo "\"\$as_me:9896: $lt_compile\"" >&5)
9897 (eval "$lt_compile" 2>conftest.err)
9899 cat conftest.err >&5
9900 echo "$as_me:9900: \$? = $ac_status" >&5
9901 if (exit $ac_status) && test -s "$ac_outfile"; then
9902 # The compiler can only warn and ignore the option if not recognized
9903 # So say no if there are warnings
9904 if test ! -s conftest.err; then
9905 lt_cv_prog_compiler_rtti_exceptions=yes
9911 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9912 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9914 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9915 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9922 lt_prog_compiler_wl=
9923 lt_prog_compiler_pic=
9924 lt_prog_compiler_static=
9926 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9927 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
9929 if test "$GCC" = yes; then
9930 lt_prog_compiler_wl='-Wl,'
9931 lt_prog_compiler_static='-static'
9935 # All AIX code is PIC.
9936 if test "$host_cpu" = ia64; then
9937 # AIX 5 now supports IA64 processor
9938 lt_prog_compiler_static='-Bstatic'
9943 # FIXME: we need at least 68020 code to build shared libraries, but
9944 # adding the `-m68020' flag to GCC prevents building anything better,
9946 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9949 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9950 # PIC is the default for these OSes.
9953 mingw* | pw32* | os2*)
9954 # This hack is so that the source file can tell whether it is being
9955 # built for inclusion in a dll (and should export symbols for example).
9956 lt_prog_compiler_pic='-DDLL_EXPORT'
9959 darwin* | rhapsody*)
9960 # PIC is the default on this platform
9961 # Common symbols not allowed in MH_DYLIB files
9962 lt_prog_compiler_pic='-fno-common'
9966 # Just because we use GCC doesn't mean we suddenly get shared libraries
9967 # on systems that don't support them.
9968 lt_prog_compiler_can_build_shared=no
9973 if test -d /usr/nec; then
9974 lt_prog_compiler_pic=-Kconform_pic
9979 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9986 lt_prog_compiler_pic='-fPIC'
9992 lt_prog_compiler_pic='-fPIC'
9996 # PORTME Check for flag to pass linker flags through the system compiler.
9999 lt_prog_compiler_wl='-Wl,'
10000 if test "$host_cpu" = ia64; then
10001 # AIX 5 now supports IA64 processor
10002 lt_prog_compiler_static='-Bstatic'
10004 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10008 mingw* | pw32* | os2*)
10009 # This hack is so that the source file can tell whether it is being
10010 # built for inclusion in a dll (and should export symbols for example).
10011 lt_prog_compiler_pic='-DDLL_EXPORT'
10014 hpux9* | hpux10* | hpux11*)
10015 lt_prog_compiler_wl='-Wl,'
10016 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10017 # not for PA HP-UX.
10018 case "$host_cpu" in
10023 lt_prog_compiler_pic='+Z'
10026 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10027 lt_prog_compiler_static='${wl}-a ${wl}archive'
10030 irix5* | irix6* | nonstopux*)
10031 lt_prog_compiler_wl='-Wl,'
10032 # PIC (with -KPIC) is the default.
10033 lt_prog_compiler_static='-non_shared'
10037 lt_prog_compiler_pic='-KPIC'
10038 lt_prog_compiler_static='-Bstatic'
10044 lt_prog_compiler_wl='-Wl,'
10045 lt_prog_compiler_pic='-KPIC'
10046 lt_prog_compiler_static='-static'
10049 lt_prog_compiler_wl='-Wl,'
10050 # All Alpha code is PIC.
10051 lt_prog_compiler_static='-non_shared'
10056 osf3* | osf4* | osf5*)
10057 lt_prog_compiler_wl='-Wl,'
10058 # All OSF/1 code is PIC.
10059 lt_prog_compiler_static='-non_shared'
10063 lt_prog_compiler_pic='-Kpic'
10064 lt_prog_compiler_static='-dn'
10068 lt_prog_compiler_wl='-Wl,'
10069 lt_prog_compiler_pic='-KPIC'
10070 lt_prog_compiler_static='-Bstatic'
10074 lt_prog_compiler_wl='-Qoption ld '
10075 lt_prog_compiler_pic='-PIC'
10076 lt_prog_compiler_static='-Bstatic'
10079 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10080 lt_prog_compiler_wl='-Wl,'
10081 lt_prog_compiler_pic='-KPIC'
10082 lt_prog_compiler_static='-Bstatic'
10086 if test -d /usr/nec ;then
10087 lt_prog_compiler_pic='-Kconform_pic'
10088 lt_prog_compiler_static='-Bstatic'
10093 lt_prog_compiler_pic='-pic'
10094 lt_prog_compiler_static='-Bstatic'
10098 lt_prog_compiler_can_build_shared=no
10103 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
10104 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
10107 # Check to make sure the PIC flag actually works.
10109 if test -n "$lt_prog_compiler_pic"; then
10111 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10112 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
10113 if test "${lt_prog_compiler_pic_works+set}" = set; then
10114 echo $ECHO_N "(cached) $ECHO_C" >&6
10116 lt_prog_compiler_pic_works=no
10117 ac_outfile=conftest.$ac_objext
10118 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10119 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10120 # Insert the option either (1) after the last *FLAGS variable, or
10121 # (2) before a word containing "conftest.", or (3) at the end.
10122 # Note that $ac_compile itself does not contain backslashes and begins
10123 # with a dollar sign (not a hyphen), so the echo should work correctly.
10124 # The option is referenced via a variable to avoid confusing sed.
10125 lt_compile=`echo "$ac_compile" | $SED \
10126 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10127 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10128 -e 's:$: $lt_compiler_flag:'`
10129 (eval echo "\"\$as_me:10129: $lt_compile\"" >&5)
10130 (eval "$lt_compile" 2>conftest.err)
10132 cat conftest.err >&5
10133 echo "$as_me:10133: \$? = $ac_status" >&5
10134 if (exit $ac_status) && test -s "$ac_outfile"; then
10135 # The compiler can only warn and ignore the option if not recognized
10136 # So say no if there are warnings
10137 if test ! -s conftest.err; then
10138 lt_prog_compiler_pic_works=yes
10144 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
10145 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
10147 if test x"$lt_prog_compiler_pic_works" = xyes; then
10148 case $lt_prog_compiler_pic in
10150 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10153 lt_prog_compiler_pic=
10154 lt_prog_compiler_can_build_shared=no
10159 # For platforms which do not support PIC, -DPIC is meaningless:
10161 lt_prog_compiler_pic=
10164 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10168 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10169 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
10170 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10171 echo $ECHO_N "(cached) $ECHO_C" >&6
10173 lt_cv_prog_compiler_c_o=no
10174 $rm -r conftest 2>/dev/null
10178 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10180 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10181 # that will create temporary files in the current directory regardless of
10182 # the output directory. Thus, making CWD read-only will cause this test
10183 # to fail, enabling locking or at least warning the user not to do parallel
10187 lt_compiler_flag="-o out/conftest2.$ac_objext"
10188 # Insert the option either (1) after the last *FLAGS variable, or
10189 # (2) before a word containing "conftest.", or (3) at the end.
10190 # Note that $ac_compile itself does not contain backslashes and begins
10191 # with a dollar sign (not a hyphen), so the echo should work correctly.
10192 lt_compile=`echo "$ac_compile" | $SED \
10193 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10194 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10195 -e 's:$: $lt_compiler_flag:'`
10196 (eval echo "\"\$as_me:10196: $lt_compile\"" >&5)
10197 (eval "$lt_compile" 2>out/conftest.err)
10199 cat out/conftest.err >&5
10200 echo "$as_me:10200: \$? = $ac_status" >&5
10201 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10203 # The compiler can only warn and ignore the option if not recognized
10204 # So say no if there are warnings
10205 if test ! -s out/conftest.err; then
10206 lt_cv_prog_compiler_c_o=yes
10210 $rm conftest* out/*
10217 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10218 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
10221 hard_links="nottested"
10222 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10223 # do not overwrite the value of need_locks provided by the user
10224 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10225 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
10228 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10230 ln conftest.a conftest.b 2>&5 || hard_links=no
10231 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10232 { echo "$as_me:$LINENO: result: $hard_links" >&5
10233 echo "${ECHO_T}$hard_links" >&6; }
10234 if test "$hard_links" = no; then
10235 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10236 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10243 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10244 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10247 allow_undefined_flag=
10248 enable_shared_with_static_runtimes=no
10250 archive_expsym_cmds=
10251 old_archive_From_new_cmds=
10252 old_archive_from_expsyms_cmds=
10253 export_dynamic_flag_spec=
10254 whole_archive_flag_spec=
10255 thread_safe_flag_spec=
10256 hardcode_libdir_flag_spec=
10257 hardcode_libdir_flag_spec_ld=
10258 hardcode_libdir_separator=
10260 hardcode_minus_L=no
10261 hardcode_shlibpath_var=unsupported
10262 link_all_deplibs=unknown
10263 hardcode_automatic=no
10265 module_expsym_cmds=
10266 always_export_symbols=no
10267 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10268 # include_expsyms should be a list of space-separated symbols to be *always*
10269 # included in the symbol list
10271 # exclude_expsyms can be an extended regexp of symbols to exclude
10272 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10273 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10274 # as well as any symbol that contains `d'.
10275 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
10276 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10277 # platforms (ab)use it in PIC code, but their linkers get confused if
10278 # the symbol is explicitly referenced. Since portable code cannot
10279 # rely on this symbol name, it's probably fine to never include it in
10280 # preloaded symbol tables.
10281 extract_expsyms_cmds=
10284 cygwin* | mingw* | pw32*)
10285 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10286 # When not using gcc, we currently assume that we are using
10287 # Microsoft Visual C++.
10288 if test "$GCC" != yes; then
10298 if test "$with_gnu_ld" = yes; then
10299 # If archive_cmds runs LD, not CC, wlarc should be empty
10302 # See if GNU ld supports shared libraries.
10304 aix3* | aix4* | aix5*)
10305 # On AIX/PPC, the GNU linker is very broken
10306 if test "$host_cpu" != ia64; then
10310 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10311 *** to be unable to reliably create shared libraries on AIX.
10312 *** Therefore, libtool is disabling shared libraries support. If you
10313 *** really care for shared libraries, you may want to modify your PATH
10314 *** so that a non-GNU linker is found, and then restart.
10321 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)'
10322 hardcode_libdir_flag_spec='-L$libdir'
10323 hardcode_minus_L=yes
10325 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
10326 # that the semantics of dynamic libraries on AmigaOS, at least up
10327 # to version 4, is to share data among multiple programs linked
10328 # with the same dynamic library. Since this doesn't match the
10329 # behavior of shared libraries on other platforms, we can't use
10335 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10336 allow_undefined_flag=unsupported
10337 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10338 # support --undefined. This deserves some investigation. FIXME
10339 archive_cmds='$CC -nostart $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
10345 cygwin* | mingw* | pw32*)
10346 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10347 # as there is no search path for DLLs.
10348 hardcode_libdir_flag_spec='-L$libdir'
10349 allow_undefined_flag=no
10350 always_export_symbols=no
10351 enable_shared_with_static_runtimes=yes
10352 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10354 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10355 archive_cmds='$CC -shared $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10356 # If the export-symbols file already is a .def file (1st line
10357 # is EXPORTS), use it as is; otherwise, prepend...
10358 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10359 cp $export_symbols $output_objdir/$soname.def;
10361 echo EXPORTS > $output_objdir/$soname.def;
10362 cat $export_symbols >> $output_objdir/$soname.def;
10364 $CC -shared $output_objdir/$soname.def $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10371 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10372 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10375 archive_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
10376 archive_expsym_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10381 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
10385 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10386 *** create shared libraries on Solaris systems. Therefore, libtool
10387 *** is disabling shared libraries support. We urge you to upgrade GNU
10388 *** binutils to release 2.9.1 or newer. Another option is to modify
10389 *** your PATH or compiler configuration so that the native linker is
10390 *** used, and then restart.
10393 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10394 archive_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
10395 archive_expsym_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10402 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10404 hardcode_direct=yes
10405 hardcode_shlibpath_var=no
10409 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10410 archive_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
10411 archive_expsym_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10418 if test "$ld_shlibs" = yes; then
10419 runpath_var=LD_RUN_PATH
10420 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
10421 export_dynamic_flag_spec='${wl}--export-dynamic'
10422 # ancient GNU ld didn't support --whole-archive et. al.
10423 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
10424 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10426 whole_archive_flag_spec=
10430 # PORTME fill in a description of your system's linker (not GNU ld)
10433 allow_undefined_flag=unsupported
10434 always_export_symbols=yes
10435 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'
10436 # Note: this linker hardcodes the directories in LIBPATH if there
10437 # are no directories specified by -L.
10438 hardcode_minus_L=yes
10439 if test "$GCC" = yes && test -z "$link_static_flag"; then
10440 # Neither direct hardcoding nor static linking is supported with a
10442 hardcode_direct=unsupported
10447 if test "$host_cpu" = ia64; then
10448 # On IA64, the linker does run time linking by default, so we don't
10449 # have to do anything special.
10450 aix_use_runtimelinking=no
10451 exp_sym_flag='-Bexport'
10454 # If we're using GNU nm, then we don't want the "-C" option.
10455 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10456 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10457 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'
10459 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'
10462 # KDE requires run time linking. Make it the default.
10463 aix_use_runtimelinking=yes
10464 exp_sym_flag='-bexport'
10465 no_entry_flag='-bnoentry'
10468 # When large executables or shared objects are built, AIX ld can
10469 # have problems creating the table of contents. If linking a library
10470 # or program results in "error TOC overflow" add -mminimal-toc to
10471 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10472 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10475 hardcode_direct=yes
10476 hardcode_libdir_separator=':'
10477 link_all_deplibs=yes
10479 if test "$GCC" = yes; then
10480 case $host_os in aix4.012|aix4.012.*)
10481 # We only want to do this on AIX 4.2 and lower, the check
10482 # below for broken collect2 doesn't work under 4.3+
10483 collect2name=`${CC} -print-prog-name=collect2`
10484 if test -f "$collect2name" && \
10485 strings "$collect2name" | grep resolve_lib_name >/dev/null
10487 # We have reworked collect2
10488 hardcode_direct=yes
10490 # We have old collect2
10491 hardcode_direct=unsupported
10492 # It fails to find uninstalled libraries when the uninstalled
10493 # path is not listed in the libpath. Setting hardcode_minus_L
10494 # to unsupported forces relinking
10495 hardcode_minus_L=yes
10496 hardcode_libdir_flag_spec='-L$libdir'
10497 hardcode_libdir_separator=
10500 shared_flag='-shared'
10503 if test "$host_cpu" = ia64; then
10504 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10505 # chokes on -Wl,-G. The following line is correct:
10508 if test "$aix_use_runtimelinking" = yes; then
10509 shared_flag='-qmkshrobj ${wl}-G'
10511 shared_flag='-qmkshrobj'
10516 # Let the compiler handle the export list.
10517 always_export_symbols=no
10518 if test "$aix_use_runtimelinking" = yes; then
10519 # Warning - without using the other runtime loading flags (-brtl),
10520 # -berok will link without error, but may produce a broken library.
10521 allow_undefined_flag='-berok'
10522 # Determine the default libpath from the value encoded in an empty executable.
10523 cat >conftest.$ac_ext <<_ACEOF
10526 cat confdefs.h >>conftest.$ac_ext
10527 cat >>conftest.$ac_ext <<_ACEOF
10528 /* end confdefs.h. */
10538 rm -f conftest.$ac_objext conftest$ac_exeext
10539 if { (ac_try="$ac_link"
10540 case "(($ac_try" in
10541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10542 *) ac_try_echo=$ac_try;;
10544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10545 (eval "$ac_link") 2>conftest.er1
10547 grep -v '^ *+' conftest.er1 >conftest.err
10549 cat conftest.err >&5
10550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10551 (exit $ac_status); } && {
10552 test -z "$ac_c_werror_flag" ||
10553 test ! -s conftest.err
10554 } && test -s conftest$ac_exeext &&
10555 $as_test_x conftest$ac_exeext; then
10557 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10559 # Check for a 64-bit object if we didn't find anything.
10560 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10563 echo "$as_me: failed program was:" >&5
10564 sed 's/^/| /' conftest.$ac_ext >&5
10569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10570 conftest$ac_exeext conftest.$ac_ext
10571 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10573 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10574 archive_cmds="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag"
10575 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10577 if test "$host_cpu" = ia64; then
10578 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10579 allow_undefined_flag="-z nodefs"
10580 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10582 # Determine the default libpath from the value encoded in an empty executable.
10583 cat >conftest.$ac_ext <<_ACEOF
10586 cat confdefs.h >>conftest.$ac_ext
10587 cat >>conftest.$ac_ext <<_ACEOF
10588 /* end confdefs.h. */
10598 rm -f conftest.$ac_objext conftest$ac_exeext
10599 if { (ac_try="$ac_link"
10600 case "(($ac_try" in
10601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10602 *) ac_try_echo=$ac_try;;
10604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10605 (eval "$ac_link") 2>conftest.er1
10607 grep -v '^ *+' conftest.er1 >conftest.err
10609 cat conftest.err >&5
10610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611 (exit $ac_status); } && {
10612 test -z "$ac_c_werror_flag" ||
10613 test ! -s conftest.err
10614 } && test -s conftest$ac_exeext &&
10615 $as_test_x conftest$ac_exeext; then
10617 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10619 # Check for a 64-bit object if we didn't find anything.
10620 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10623 echo "$as_me: failed program was:" >&5
10624 sed 's/^/| /' conftest.$ac_ext >&5
10629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10630 conftest$ac_exeext conftest.$ac_ext
10631 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10633 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10634 # Warning - without using the other run time loading flags,
10635 # -berok will link without error, but may produce a broken library.
10636 no_undefined_flag=' ${wl}-bernotok'
10637 allow_undefined_flag=' ${wl}-berok'
10638 # -bexpall does not export symbols beginning with underscore (_)
10639 always_export_symbols=yes
10640 # Exported symbols can be pulled into shared objects from archives
10641 whole_archive_flag_spec=' '
10642 archive_cmds_need_lc=yes
10643 # This is similar to how AIX traditionally builds it's shared libraries.
10644 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10650 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)'
10651 hardcode_libdir_flag_spec='-L$libdir'
10652 hardcode_minus_L=yes
10653 # see comment about different semantics on the GNU ld section
10658 export_dynamic_flag_spec=-rdynamic
10661 cygwin* | mingw* | pw32*)
10662 # When not using gcc, we currently assume that we are using
10663 # Microsoft Visual C++.
10664 # hardcode_libdir_flag_spec is actually meaningless, as there is
10665 # no search path for DLLs.
10666 hardcode_libdir_flag_spec=' '
10667 allow_undefined_flag=no
10668 # Tell ltmain to make .lib files, not .a files.
10670 # Tell ltmain to make .dll files, not .so files.
10672 # FIXME: Setting linknames here is a bad hack.
10673 archive_cmds='$CC -o $lib $compiler_flags $libobjs `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10674 # The linker will automatically build a .lib file if we build a DLL.
10675 old_archive_From_new_cmds='true'
10676 # FIXME: Should let the user specify the lib program.
10677 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
10678 fix_srcfile_path='`cygpath -w "$srcfile"`'
10679 enable_shared_with_static_runtimes=yes
10682 darwin* | rhapsody*)
10683 if test "$GXX" = yes ; then
10684 archive_cmds_need_lc=no
10686 rhapsody* | darwin1.[012])
10687 allow_undefined_flag='-Wl,-undefined -Wl,suppress'
10690 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10691 allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
10693 case ${MACOSX_DEPLOYMENT_TARGET} in
10695 allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
10698 allow_undefined_flag='-Wl,-undefined -Wl,dynamic_lookup'
10704 lt_int_apple_cc_single_mod=no
10705 output_verbose_link_cmd='echo'
10706 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10707 lt_int_apple_cc_single_mod=yes
10709 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10710 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring'
10712 archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring'
10714 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs'
10715 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10716 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10717 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10719 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10721 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10723 hardcode_automatic=yes
10724 hardcode_shlibpath_var=unsupported
10725 whole_archive_flag_spec='-all_load $convenience'
10726 link_all_deplibs=yes
10733 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10734 hardcode_libdir_flag_spec='-L$libdir'
10735 hardcode_shlibpath_var=no
10742 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10743 # support. Future versions do this automatically, but an explicit c++rt0.o
10744 # does not break anything, and helps significantly (at the cost of a little
10747 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10748 hardcode_libdir_flag_spec='-R$libdir'
10749 hardcode_direct=yes
10750 hardcode_shlibpath_var=no
10753 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10755 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10756 hardcode_direct=yes
10757 hardcode_minus_L=yes
10758 hardcode_shlibpath_var=no
10761 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10763 archive_cmds='$CC -shared -o $lib $compiler_flags $libobjs $deplibs'
10764 hardcode_libdir_flag_spec='-R$libdir'
10765 hardcode_direct=yes
10766 hardcode_shlibpath_var=no
10770 if test "$GCC" = yes; then
10771 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $compiler_flags $libobjs $deplibs~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10773 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'
10775 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10776 hardcode_libdir_separator=:
10777 hardcode_direct=yes
10779 # hardcode_minus_L: Not really in the search PATH,
10780 # but as the default location of the library.
10781 hardcode_minus_L=yes
10782 export_dynamic_flag_spec='${wl}-E'
10786 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10787 case "$host_cpu" in
10789 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
10792 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $libobjs $deplibs'
10796 case "$host_cpu" in
10798 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
10801 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10805 if test "$with_gnu_ld" = no; then
10806 case "$host_cpu" in
10808 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10809 hardcode_libdir_flag_spec_ld='+b $libdir'
10810 hardcode_libdir_separator=:
10812 hardcode_shlibpath_var=no
10815 hardcode_libdir_flag_spec='-L$libdir'
10817 hardcode_shlibpath_var=no
10819 # hardcode_minus_L: Not really in the search PATH,
10820 # but as the default location of the library.
10821 hardcode_minus_L=yes
10824 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10825 hardcode_libdir_separator=:
10826 hardcode_direct=yes
10827 export_dynamic_flag_spec='${wl}-E'
10829 # hardcode_minus_L: Not really in the search PATH,
10830 # but as the default location of the library.
10831 hardcode_minus_L=yes
10837 irix5* | irix6* | nonstopux*)
10838 if test "$GCC" = yes; then
10839 archive_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10841 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'
10842 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10844 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10845 hardcode_libdir_separator=:
10846 link_all_deplibs=yes
10850 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10851 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10853 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10855 hardcode_libdir_flag_spec='-R$libdir'
10856 hardcode_direct=yes
10857 hardcode_shlibpath_var=no
10861 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10862 hardcode_direct=yes
10863 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10864 hardcode_libdir_separator=:
10865 hardcode_shlibpath_var=no
10869 hardcode_direct=yes
10870 hardcode_shlibpath_var=no
10871 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10872 archive_cmds='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
10873 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10874 export_dynamic_flag_spec='${wl}-E'
10877 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10878 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10879 hardcode_libdir_flag_spec='-R$libdir'
10882 archive_cmds='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
10883 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10890 hardcode_libdir_flag_spec='-L$libdir'
10891 hardcode_minus_L=yes
10892 allow_undefined_flag=unsupported
10893 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 $compiler_flags $libobjs $deplibs$output_objdir/$libname.def'
10894 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10898 if test "$GCC" = yes; then
10899 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10900 archive_cmds='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10902 allow_undefined_flag=' -expect_unresolved \*'
10903 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'
10905 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10906 hardcode_libdir_separator=:
10909 osf4* | osf5*) # as osf3* with the addition of -msym flag
10910 if test "$GCC" = yes; then
10911 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10912 archive_cmds='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${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'
10913 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10915 allow_undefined_flag=' -expect_unresolved \*'
10916 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'
10917 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10918 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
10920 # Both c and cxx compiler support -rpath directly
10921 hardcode_libdir_flag_spec='-rpath $libdir'
10923 hardcode_libdir_separator=:
10927 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10928 hardcode_shlibpath_var=no
10929 export_dynamic_flag_spec='${wl}-Bexport'
10930 runpath_var=LD_RUN_PATH
10931 hardcode_runpath_var=yes
10935 no_undefined_flag=' -z text'
10936 if test "$GCC" = yes; then
10937 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
10938 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10939 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs~$rm $lib.exp'
10941 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10942 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10943 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10945 hardcode_libdir_flag_spec='-R$libdir'
10946 hardcode_shlibpath_var=no
10948 solaris2.[0-5] | solaris2.[0-5].*) ;;
10949 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
10950 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
10952 link_all_deplibs=yes
10956 if test "x$host_vendor" = xsequent; then
10957 # Use $CC to link under sequent, because it throws in some extra .o
10958 # files that make .init and .fini sections work.
10959 archive_cmds='$CC -G ${wl}-h $soname -o $lib $compiler_flags $libobjs $deplibs'
10961 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10963 hardcode_libdir_flag_spec='-L$libdir'
10964 hardcode_direct=yes
10965 hardcode_minus_L=yes
10966 hardcode_shlibpath_var=no
10970 case $host_vendor in
10972 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10973 hardcode_direct=yes # is this really true???
10976 ## LD is ld it makes a PLAMLIB
10977 ## CC just makes a GrossModule.
10978 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10979 reload_cmds='$CC -r -o $output$reload_objs'
10983 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10984 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10987 runpath_var='LD_RUN_PATH'
10988 hardcode_shlibpath_var=no
10992 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10993 hardcode_shlibpath_var=no
10994 export_dynamic_flag_spec='-Bexport'
10998 if test -d /usr/nec; then
10999 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11000 hardcode_shlibpath_var=no
11001 runpath_var=LD_RUN_PATH
11002 hardcode_runpath_var=yes
11008 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11009 hardcode_direct=yes
11010 hardcode_minus_L=no
11011 hardcode_shlibpath_var=no
11012 hardcode_runpath_var=yes
11013 runpath_var=LD_RUN_PATH
11016 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11017 no_undefined_flag='${wl}-z ${wl}text'
11018 if test "$GCC" = yes; then
11019 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
11021 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
11023 runpath_var='LD_RUN_PATH'
11024 hardcode_shlibpath_var=no
11028 no_undefined_flag=' -z text'
11029 # $CC -shared without GNU ld will not create a library from C++
11030 # object files and a static libstdc++, better avoid it by now
11031 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11032 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11033 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
11034 hardcode_libdir_flag_spec=
11035 hardcode_shlibpath_var=no
11036 runpath_var='LD_RUN_PATH'
11040 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11041 hardcode_libdir_flag_spec='-L$libdir'
11042 hardcode_shlibpath_var=no
11051 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11052 echo "${ECHO_T}$ld_shlibs" >&6; }
11053 test "$ld_shlibs" = no && can_build_shared=no
11055 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11056 if test "$GCC" = yes; then
11057 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11061 # Do we need to explicitly link libc?
11063 case "x$archive_cmds_need_lc" in
11065 # Assume -lc should be added
11066 archive_cmds_need_lc=yes
11068 if test "$enable_shared" = yes && test "$GCC" = yes; then
11069 case $archive_cmds in
11071 # FIXME: we may have to deal with multi-command sequences.
11074 # Test whether the compiler implicitly links with -lc since on some
11075 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11076 # to ld, don't add -lc before -lgcc.
11077 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11078 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11080 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11083 (eval $ac_compile) 2>&5
11085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11086 (exit $ac_status); } 2>conftest.err; then
11089 libobjs=conftest.$ac_objext
11091 wl=$lt_prog_compiler_wl
11097 lt_save_allow_undefined_flag=$allow_undefined_flag
11098 allow_undefined_flag=
11099 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11100 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); }
11105 archive_cmds_need_lc=no
11107 archive_cmds_need_lc=yes
11109 allow_undefined_flag=$lt_save_allow_undefined_flag
11111 cat conftest.err 1>&5
11114 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11115 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
11122 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11123 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11124 library_names_spec=
11125 libname_spec='lib$name'
11129 postuninstall_cmds=
11133 shlibpath_overrides_runpath=unknown
11135 dynamic_linker="$host_os ld.so"
11136 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11137 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11138 need_lib_prefix=unknown
11139 hardcode_into_libs=no
11141 # when you set need_version to no, make sure it does not cause -set_version
11142 # flags to be left without arguments
11143 need_version=unknown
11148 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11149 shlibpath_var=LIBPATH
11151 # AIX 3 has no versioning support, so we append a major version to the name.
11152 soname_spec='${libname}${release}${shared_ext}$major'
11159 hardcode_into_libs=yes
11160 if test "$host_cpu" = ia64; then
11161 # AIX 5 supports IA64
11162 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11163 shlibpath_var=LD_LIBRARY_PATH
11165 # With GCC up to 2.95.x, collect2 would create an import file
11166 # for dependence libraries. The import file would start with
11167 # the line `#! .'. This would cause the generated library to
11168 # depend on `.', always an invalid library. This was fixed in
11169 # development snapshots of GCC prior to 3.0.
11171 aix4 | aix4.[01] | aix4.[01].*)
11172 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11174 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11177 can_build_shared=no
11181 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11182 # soname into executable. Probably we can add versioning support to
11183 # collect2, so additional links can be useful in future.
11184 if test "$aix_use_runtimelinking" = yes; then
11185 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11186 # instead of lib<name>.a to let people know that these are not
11187 # typical AIX shared libraries.
11188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11190 # We preserve .a as extension for shared libraries through AIX4.2
11191 # and later when we are not doing run time linking.
11192 library_names_spec='${libname}${release}.a $libname.a'
11193 soname_spec='${libname}${release}${shared_ext}$major'
11195 shlibpath_var=LIBPATH
11200 library_names_spec='$libname.ixlibrary $libname.a'
11201 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11202 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'
11206 library_names_spec='${libname}${shared_ext}'
11207 dynamic_linker="$host_os ld.so"
11208 shlibpath_var=LIBRARY_PATH
11214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11215 soname_spec='${libname}${release}${shared_ext}$major'
11216 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11217 shlibpath_var=LD_LIBRARY_PATH
11218 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11219 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11220 # the default ld.so.conf also contains /usr/contrib/lib and
11221 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11222 # libtool to hard-code these into programs
11225 cygwin* | mingw* | pw32*)
11226 version_type=windows
11231 case $GCC,$host_os in
11232 yes,cygwin* | yes,mingw* | yes,pw32*)
11233 library_names_spec='$libname.dll.a'
11234 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11235 postinstall_cmds='base_file=`basename \${file}`~
11236 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11237 dldir=$destdir/`dirname \$dlpath`~
11238 test -d \$dldir || mkdir -p \$dldir~
11239 $install_prog $dir/$dlname \$dldir/$dlname'
11240 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11241 dlpath=$dir/\$dldll~
11243 shlibpath_overrides_runpath=yes
11247 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11248 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11249 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11252 # MinGW DLLs use traditional 'lib' prefix
11253 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11254 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11255 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11256 # It is most probably a Windows format PATH printed by
11257 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11258 # path with ; separators, and with drive letters. We can handle the
11259 # drive letters (cygwin fileutils understands them), so leave them,
11260 # especially as we might pass files found there to a mingw objdump,
11261 # which wouldn't understand a cygwinified path. Ahh.
11262 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11264 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11268 # pw32 DLLs use 'pw' prefix rather than 'lib'
11269 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11275 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11278 dynamic_linker='Win32 ld.exe'
11279 # FIXME: first we should search . and the directory the executable is in
11283 darwin* | rhapsody*)
11284 dynamic_linker="$host_os dyld"
11285 version_type=darwin
11288 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11289 soname_spec='${libname}${release}${major}$shared_ext'
11290 shlibpath_overrides_runpath=yes
11291 shlibpath_var=DYLD_LIBRARY_PATH
11292 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11293 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11294 if test "$GCC" = yes; then
11295 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
11297 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11299 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11307 soname_spec='${libname}${release}${shared_ext}$major'
11308 shlibpath_var=LD_LIBRARY_PATH
11319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11320 soname_spec='${libname}${release}${shared_ext}$major'
11321 shlibpath_var=LD_LIBRARY_PATH
11322 shlibpath_overrides_runpath=no
11323 hardcode_into_libs=yes
11324 dynamic_linker='GNU ld.so'
11328 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11329 version_type=freebsd-$objformat
11330 case $version_type in
11332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11337 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11341 shlibpath_var=LD_LIBRARY_PATH
11344 shlibpath_overrides_runpath=yes
11346 freebsd3.01* | freebsdelf3.01*)
11347 shlibpath_overrides_runpath=yes
11348 hardcode_into_libs=yes
11351 shlibpath_overrides_runpath=no
11352 hardcode_into_libs=yes
11361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11362 soname_spec='${libname}${release}${shared_ext}$major'
11363 shlibpath_var=LD_LIBRARY_PATH
11364 hardcode_into_libs=yes
11367 hpux9* | hpux10* | hpux11*)
11368 # Give a soname corresponding to the major version so that dld.sl refuses to
11369 # link against other versions.
11373 case "$host_cpu" in
11376 hardcode_into_libs=yes
11377 dynamic_linker="$host_os dld.so"
11378 shlibpath_var=LD_LIBRARY_PATH
11379 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11381 soname_spec='${libname}${release}${shared_ext}$major'
11382 if test "X$HPUX_IA64_MODE" = X32; then
11383 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11385 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11387 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11391 hardcode_into_libs=yes
11392 dynamic_linker="$host_os dld.sl"
11393 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11394 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11396 soname_spec='${libname}${release}${shared_ext}$major'
11397 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11398 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11402 dynamic_linker="$host_os dld.sl"
11403 shlibpath_var=SHLIB_PATH
11404 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11406 soname_spec='${libname}${release}${shared_ext}$major'
11409 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11410 postinstall_cmds='chmod 555 $lib'
11413 irix5* | irix6* | nonstopux*)
11415 nonstopux*) version_type=nonstopux ;;
11417 if test "$lt_cv_prog_gnu_ld" = yes; then
11425 soname_spec='${libname}${release}${shared_ext}$major'
11426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11428 irix5* | nonstopux*)
11429 libsuff= shlibsuff=
11432 case $LD in # libtool.m4 will add one of these switches to LD
11433 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11434 libsuff= shlibsuff= libmagic=32-bit;;
11435 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11436 libsuff=32 shlibsuff=N32 libmagic=N32;;
11437 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11438 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11439 *) libsuff= shlibsuff= libmagic=never-match;;
11443 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11444 shlibpath_overrides_runpath=no
11445 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11446 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11447 hardcode_into_libs=yes
11450 # No shared lib support for Linux oldld, aout, or coff.
11451 linux*oldld* | linux*aout* | linux*coff*)
11455 # This must be Linux ELF.
11460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11461 soname_spec='${libname}${release}${shared_ext}$major'
11462 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11464 if test "x$LINUX_64_MODE" = x64; then
11465 # Some platforms are per default 64-bit, so there's no /lib64
11466 if test -d /lib64; then
11470 shlibpath_var=LD_LIBRARY_PATH
11471 shlibpath_overrides_runpath=no
11472 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
11473 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
11474 # This implies no fast_install, which is unacceptable.
11475 # Some rework will be needed to allow for fast_install
11476 # before this can be enabled.
11477 hardcode_into_libs=yes
11479 # We used to test for /lib/ld.so.1 and disable shared libraries on
11480 # powerpc, because MkLinux only supported shared libraries with the
11481 # GNU dynamic linker. Since this was broken with cross compilers,
11482 # most powerpc-linux boxes support dynamic linking these days and
11483 # people can always --disable-shared, the test was removed, and we
11484 # assume the GNU/Linux dynamic linker is in use.
11485 dynamic_linker='GNU/Linux ld.so'
11492 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11494 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11495 dynamic_linker='NetBSD (a.out) ld.so'
11497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11498 soname_spec='${libname}${release}${shared_ext}$major'
11499 dynamic_linker='NetBSD ld.elf_so'
11501 shlibpath_var=LD_LIBRARY_PATH
11502 shlibpath_overrides_runpath=yes
11503 hardcode_into_libs=yes
11508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11509 shlibpath_var=LD_LIBRARY_PATH
11510 shlibpath_overrides_runpath=yes
11517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11518 soname_spec='${libname}${release}${shared_ext}$major'
11519 shlibpath_var=LD_LIBRARY_PATH
11520 shlibpath_overrides_runpath=yes
11527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11528 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11529 shlibpath_var=LD_LIBRARY_PATH
11530 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11532 openbsd2.[89] | openbsd2.[89].*)
11533 shlibpath_overrides_runpath=no
11536 shlibpath_overrides_runpath=yes
11540 shlibpath_overrides_runpath=yes
11545 libname_spec='$name'
11548 library_names_spec='$libname${shared_ext} $libname.a'
11549 dynamic_linker='OS/2 ld.exe'
11550 shlibpath_var=LIBPATH
11553 osf3* | osf4* | osf5*)
11557 soname_spec='${libname}${release}${shared_ext}$major'
11558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11559 shlibpath_var=LD_LIBRARY_PATH
11560 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11561 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11566 soname_spec='${libname}${release}${shared_ext}$major'
11567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11568 shlibpath_var=LD_LIBRARY_PATH
11575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11576 soname_spec='${libname}${release}${shared_ext}$major'
11577 shlibpath_var=LD_LIBRARY_PATH
11578 shlibpath_overrides_runpath=yes
11579 hardcode_into_libs=yes
11580 # ldd complains unless libraries are executable
11581 postinstall_cmds='chmod +x $lib'
11586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11587 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11588 shlibpath_var=LD_LIBRARY_PATH
11589 shlibpath_overrides_runpath=yes
11590 if test "$with_gnu_ld" = yes; then
11596 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11599 soname_spec='${libname}${release}${shared_ext}$major'
11600 shlibpath_var=LD_LIBRARY_PATH
11601 case $host_vendor in
11603 shlibpath_overrides_runpath=no
11605 export_dynamic_flag_spec='${wl}-Blargedynsym'
11606 runpath_var=LD_RUN_PATH
11614 shlibpath_overrides_runpath=no
11615 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11621 if test -d /usr/nec ;then
11623 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11624 soname_spec='$libname${shared_ext}.$major'
11625 shlibpath_var=LD_LIBRARY_PATH
11631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11632 soname_spec='${libname}${release}${shared_ext}$major'
11633 shlibpath_var=LD_LIBRARY_PATH
11640 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11641 echo "${ECHO_T}$dynamic_linker" >&6; }
11642 test "$dynamic_linker" = no && can_build_shared=no
11644 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11645 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
11647 if test -n "$hardcode_libdir_flag_spec" || \
11648 test -n "$runpath_var " || \
11649 test "X$hardcode_automatic"="Xyes" ; then
11651 # We can hardcode non-existant directories.
11652 if test "$hardcode_direct" != no &&
11653 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11654 # have to relink, otherwise we might link with an installed library
11655 # when we should be linking with a yet-to-be-installed one
11656 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
11657 test "$hardcode_minus_L" != no; then
11658 # Linking always hardcodes the temporary library directory.
11659 hardcode_action=relink
11661 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11662 hardcode_action=immediate
11665 # We cannot hardcode anything, or else we can only hardcode existing
11667 hardcode_action=unsupported
11669 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
11670 echo "${ECHO_T}$hardcode_action" >&6; }
11672 if test "$hardcode_action" = relink; then
11673 # Fast installation is not supported
11674 enable_fast_install=no
11675 elif test "$shlibpath_overrides_runpath" = yes ||
11676 test "$enable_shared" = no; then
11677 # Fast installation is not necessary
11678 enable_fast_install=needless
11683 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11684 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
11685 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11686 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11687 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11688 { echo "$as_me:$LINENO: result: yes" >&5
11689 echo "${ECHO_T}yes" >&6; }
11691 # FIXME - insert some real tests, host_os isn't really good enough
11694 if test -n "$STRIP" ; then
11695 striplib="$STRIP -x"
11696 { echo "$as_me:$LINENO: result: yes" >&5
11697 echo "${ECHO_T}yes" >&6; }
11699 { echo "$as_me:$LINENO: result: no" >&5
11700 echo "${ECHO_T}no" >&6; }
11704 { echo "$as_me:$LINENO: result: no" >&5
11705 echo "${ECHO_T}no" >&6; }
11710 if test "x$enable_dlopen" != xyes; then
11711 enable_dlopen=unknown
11712 enable_dlopen_self=unknown
11713 enable_dlopen_self_static=unknown
11720 lt_cv_dlopen="load_add_on"
11722 lt_cv_dlopen_self=yes
11726 lt_cv_dlopen="LoadLibrary"
11731 lt_cv_dlopen="dlopen"
11736 # if libdl is installed we need to link against it
11737 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11738 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11739 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11740 echo $ECHO_N "(cached) $ECHO_C" >&6
11742 ac_check_lib_save_LIBS=$LIBS
11744 cat >conftest.$ac_ext <<_ACEOF
11747 cat confdefs.h >>conftest.$ac_ext
11748 cat >>conftest.$ac_ext <<_ACEOF
11749 /* end confdefs.h. */
11751 /* Override any GCC internal prototype to avoid an error.
11752 Use char because int might match the return type of a GCC
11753 builtin and then its argument prototype would still apply. */
11766 rm -f conftest.$ac_objext conftest$ac_exeext
11767 if { (ac_try="$ac_link"
11768 case "(($ac_try" in
11769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11770 *) ac_try_echo=$ac_try;;
11772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11773 (eval "$ac_link") 2>conftest.er1
11775 grep -v '^ *+' conftest.er1 >conftest.err
11777 cat conftest.err >&5
11778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779 (exit $ac_status); } && {
11780 test -z "$ac_c_werror_flag" ||
11781 test ! -s conftest.err
11782 } && test -s conftest$ac_exeext &&
11783 $as_test_x conftest$ac_exeext; then
11784 ac_cv_lib_dl_dlopen=yes
11786 echo "$as_me: failed program was:" >&5
11787 sed 's/^/| /' conftest.$ac_ext >&5
11789 ac_cv_lib_dl_dlopen=no
11792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11793 conftest$ac_exeext conftest.$ac_ext
11794 LIBS=$ac_check_lib_save_LIBS
11796 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11797 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11798 if test $ac_cv_lib_dl_dlopen = yes; then
11799 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11802 lt_cv_dlopen="dyld"
11804 lt_cv_dlopen_self=yes
11811 { echo "$as_me:$LINENO: checking for shl_load" >&5
11812 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
11813 if test "${ac_cv_func_shl_load+set}" = set; then
11814 echo $ECHO_N "(cached) $ECHO_C" >&6
11816 cat >conftest.$ac_ext <<_ACEOF
11819 cat confdefs.h >>conftest.$ac_ext
11820 cat >>conftest.$ac_ext <<_ACEOF
11821 /* end confdefs.h. */
11822 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11823 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11824 #define shl_load innocuous_shl_load
11826 /* System header to define __stub macros and hopefully few prototypes,
11827 which can conflict with char shl_load (); below.
11828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11829 <limits.h> exists even on freestanding compilers. */
11832 # include <limits.h>
11834 # include <assert.h>
11839 /* Override any GCC internal prototype to avoid an error.
11840 Use char because int might match the return type of a GCC
11841 builtin and then its argument prototype would still apply. */
11846 /* The GNU C library defines this for functions which it implements
11847 to always fail with ENOSYS. Some functions are actually named
11848 something starting with __ and the normal name is an alias. */
11849 #if defined __stub_shl_load || defined __stub___shl_load
11856 return shl_load ();
11861 rm -f conftest.$ac_objext conftest$ac_exeext
11862 if { (ac_try="$ac_link"
11863 case "(($ac_try" in
11864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11865 *) ac_try_echo=$ac_try;;
11867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11868 (eval "$ac_link") 2>conftest.er1
11870 grep -v '^ *+' conftest.er1 >conftest.err
11872 cat conftest.err >&5
11873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874 (exit $ac_status); } && {
11875 test -z "$ac_c_werror_flag" ||
11876 test ! -s conftest.err
11877 } && test -s conftest$ac_exeext &&
11878 $as_test_x conftest$ac_exeext; then
11879 ac_cv_func_shl_load=yes
11881 echo "$as_me: failed program was:" >&5
11882 sed 's/^/| /' conftest.$ac_ext >&5
11884 ac_cv_func_shl_load=no
11887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11888 conftest$ac_exeext conftest.$ac_ext
11890 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11891 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
11892 if test $ac_cv_func_shl_load = yes; then
11893 lt_cv_dlopen="shl_load"
11895 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11896 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
11897 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11898 echo $ECHO_N "(cached) $ECHO_C" >&6
11900 ac_check_lib_save_LIBS=$LIBS
11902 cat >conftest.$ac_ext <<_ACEOF
11905 cat confdefs.h >>conftest.$ac_ext
11906 cat >>conftest.$ac_ext <<_ACEOF
11907 /* end confdefs.h. */
11909 /* Override any GCC internal prototype to avoid an error.
11910 Use char because int might match the return type of a GCC
11911 builtin and then its argument prototype would still apply. */
11919 return shl_load ();
11924 rm -f conftest.$ac_objext conftest$ac_exeext
11925 if { (ac_try="$ac_link"
11926 case "(($ac_try" in
11927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11928 *) ac_try_echo=$ac_try;;
11930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11931 (eval "$ac_link") 2>conftest.er1
11933 grep -v '^ *+' conftest.er1 >conftest.err
11935 cat conftest.err >&5
11936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11937 (exit $ac_status); } && {
11938 test -z "$ac_c_werror_flag" ||
11939 test ! -s conftest.err
11940 } && test -s conftest$ac_exeext &&
11941 $as_test_x conftest$ac_exeext; then
11942 ac_cv_lib_dld_shl_load=yes
11944 echo "$as_me: failed program was:" >&5
11945 sed 's/^/| /' conftest.$ac_ext >&5
11947 ac_cv_lib_dld_shl_load=no
11950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11951 conftest$ac_exeext conftest.$ac_ext
11952 LIBS=$ac_check_lib_save_LIBS
11954 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11955 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
11956 if test $ac_cv_lib_dld_shl_load = yes; then
11957 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11959 { echo "$as_me:$LINENO: checking for dlopen" >&5
11960 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11961 if test "${ac_cv_func_dlopen+set}" = set; then
11962 echo $ECHO_N "(cached) $ECHO_C" >&6
11964 cat >conftest.$ac_ext <<_ACEOF
11967 cat confdefs.h >>conftest.$ac_ext
11968 cat >>conftest.$ac_ext <<_ACEOF
11969 /* end confdefs.h. */
11970 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11971 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11972 #define dlopen innocuous_dlopen
11974 /* System header to define __stub macros and hopefully few prototypes,
11975 which can conflict with char dlopen (); below.
11976 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11977 <limits.h> exists even on freestanding compilers. */
11980 # include <limits.h>
11982 # include <assert.h>
11987 /* Override any GCC internal prototype to avoid an error.
11988 Use char because int might match the return type of a GCC
11989 builtin and then its argument prototype would still apply. */
11994 /* The GNU C library defines this for functions which it implements
11995 to always fail with ENOSYS. Some functions are actually named
11996 something starting with __ and the normal name is an alias. */
11997 #if defined __stub_dlopen || defined __stub___dlopen
12009 rm -f conftest.$ac_objext conftest$ac_exeext
12010 if { (ac_try="$ac_link"
12011 case "(($ac_try" in
12012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12013 *) ac_try_echo=$ac_try;;
12015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12016 (eval "$ac_link") 2>conftest.er1
12018 grep -v '^ *+' conftest.er1 >conftest.err
12020 cat conftest.err >&5
12021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022 (exit $ac_status); } && {
12023 test -z "$ac_c_werror_flag" ||
12024 test ! -s conftest.err
12025 } && test -s conftest$ac_exeext &&
12026 $as_test_x conftest$ac_exeext; then
12027 ac_cv_func_dlopen=yes
12029 echo "$as_me: failed program was:" >&5
12030 sed 's/^/| /' conftest.$ac_ext >&5
12032 ac_cv_func_dlopen=no
12035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12036 conftest$ac_exeext conftest.$ac_ext
12038 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12039 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12040 if test $ac_cv_func_dlopen = yes; then
12041 lt_cv_dlopen="dlopen"
12043 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12044 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12045 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12046 echo $ECHO_N "(cached) $ECHO_C" >&6
12048 ac_check_lib_save_LIBS=$LIBS
12050 cat >conftest.$ac_ext <<_ACEOF
12053 cat confdefs.h >>conftest.$ac_ext
12054 cat >>conftest.$ac_ext <<_ACEOF
12055 /* end confdefs.h. */
12057 /* Override any GCC internal prototype to avoid an error.
12058 Use char because int might match the return type of a GCC
12059 builtin and then its argument prototype would still apply. */
12072 rm -f conftest.$ac_objext conftest$ac_exeext
12073 if { (ac_try="$ac_link"
12074 case "(($ac_try" in
12075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12076 *) ac_try_echo=$ac_try;;
12078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12079 (eval "$ac_link") 2>conftest.er1
12081 grep -v '^ *+' conftest.er1 >conftest.err
12083 cat conftest.err >&5
12084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085 (exit $ac_status); } && {
12086 test -z "$ac_c_werror_flag" ||
12087 test ! -s conftest.err
12088 } && test -s conftest$ac_exeext &&
12089 $as_test_x conftest$ac_exeext; then
12090 ac_cv_lib_dl_dlopen=yes
12092 echo "$as_me: failed program was:" >&5
12093 sed 's/^/| /' conftest.$ac_ext >&5
12095 ac_cv_lib_dl_dlopen=no
12098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12099 conftest$ac_exeext conftest.$ac_ext
12100 LIBS=$ac_check_lib_save_LIBS
12102 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12103 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12104 if test $ac_cv_lib_dl_dlopen = yes; then
12105 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12107 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12108 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12109 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12110 echo $ECHO_N "(cached) $ECHO_C" >&6
12112 ac_check_lib_save_LIBS=$LIBS
12113 LIBS="-lsvld $LIBS"
12114 cat >conftest.$ac_ext <<_ACEOF
12117 cat confdefs.h >>conftest.$ac_ext
12118 cat >>conftest.$ac_ext <<_ACEOF
12119 /* end confdefs.h. */
12121 /* Override any GCC internal prototype to avoid an error.
12122 Use char because int might match the return type of a GCC
12123 builtin and then its argument prototype would still apply. */
12136 rm -f conftest.$ac_objext conftest$ac_exeext
12137 if { (ac_try="$ac_link"
12138 case "(($ac_try" in
12139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12140 *) ac_try_echo=$ac_try;;
12142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12143 (eval "$ac_link") 2>conftest.er1
12145 grep -v '^ *+' conftest.er1 >conftest.err
12147 cat conftest.err >&5
12148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149 (exit $ac_status); } && {
12150 test -z "$ac_c_werror_flag" ||
12151 test ! -s conftest.err
12152 } && test -s conftest$ac_exeext &&
12153 $as_test_x conftest$ac_exeext; then
12154 ac_cv_lib_svld_dlopen=yes
12156 echo "$as_me: failed program was:" >&5
12157 sed 's/^/| /' conftest.$ac_ext >&5
12159 ac_cv_lib_svld_dlopen=no
12162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12163 conftest$ac_exeext conftest.$ac_ext
12164 LIBS=$ac_check_lib_save_LIBS
12166 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12167 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12168 if test $ac_cv_lib_svld_dlopen = yes; then
12169 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12171 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12172 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12173 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12174 echo $ECHO_N "(cached) $ECHO_C" >&6
12176 ac_check_lib_save_LIBS=$LIBS
12178 cat >conftest.$ac_ext <<_ACEOF
12181 cat confdefs.h >>conftest.$ac_ext
12182 cat >>conftest.$ac_ext <<_ACEOF
12183 /* end confdefs.h. */
12185 /* Override any GCC internal prototype to avoid an error.
12186 Use char because int might match the return type of a GCC
12187 builtin and then its argument prototype would still apply. */
12195 return dld_link ();
12200 rm -f conftest.$ac_objext conftest$ac_exeext
12201 if { (ac_try="$ac_link"
12202 case "(($ac_try" in
12203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12204 *) ac_try_echo=$ac_try;;
12206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12207 (eval "$ac_link") 2>conftest.er1
12209 grep -v '^ *+' conftest.er1 >conftest.err
12211 cat conftest.err >&5
12212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213 (exit $ac_status); } && {
12214 test -z "$ac_c_werror_flag" ||
12215 test ! -s conftest.err
12216 } && test -s conftest$ac_exeext &&
12217 $as_test_x conftest$ac_exeext; then
12218 ac_cv_lib_dld_dld_link=yes
12220 echo "$as_me: failed program was:" >&5
12221 sed 's/^/| /' conftest.$ac_ext >&5
12223 ac_cv_lib_dld_dld_link=no
12226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12227 conftest$ac_exeext conftest.$ac_ext
12228 LIBS=$ac_check_lib_save_LIBS
12230 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12231 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12232 if test $ac_cv_lib_dld_dld_link = yes; then
12233 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12254 if test "x$lt_cv_dlopen" != xno; then
12260 case $lt_cv_dlopen in
12262 save_CPPFLAGS="$CPPFLAGS"
12263 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12265 save_LDFLAGS="$LDFLAGS"
12266 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12269 LIBS="$lt_cv_dlopen_libs $LIBS"
12271 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12272 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12273 if test "${lt_cv_dlopen_self+set}" = set; then
12274 echo $ECHO_N "(cached) $ECHO_C" >&6
12276 if test "$cross_compiling" = yes; then :
12277 lt_cv_dlopen_self=cross
12279 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12280 lt_status=$lt_dlunknown
12281 cat > conftest.$ac_ext <<EOF
12282 #line 12282 "configure"
12283 #include "confdefs.h"
12292 # define LT_DLGLOBAL RTLD_GLOBAL
12295 # define LT_DLGLOBAL DL_GLOBAL
12297 # define LT_DLGLOBAL 0
12301 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12302 find out it does not work in some platform. */
12303 #ifndef LT_DLLAZY_OR_NOW
12305 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12308 # define LT_DLLAZY_OR_NOW DL_LAZY
12311 # define LT_DLLAZY_OR_NOW RTLD_NOW
12314 # define LT_DLLAZY_OR_NOW DL_NOW
12316 # define LT_DLLAZY_OR_NOW 0
12324 extern "C" void exit (int);
12327 void fnord() { int i=42;}
12330 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12331 int status = $lt_dlunknown;
12335 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12336 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12337 /* dlclose (self); */
12343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12344 (eval $ac_link) 2>&5
12346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12348 (./conftest; exit; ) 2>/dev/null
12350 case x$lt_status in
12351 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12352 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12353 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12356 # compilation failed
12357 lt_cv_dlopen_self=no
12364 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12365 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12367 if test "x$lt_cv_dlopen_self" = xyes; then
12368 LDFLAGS="$LDFLAGS $link_static_flag"
12369 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12370 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12371 if test "${lt_cv_dlopen_self_static+set}" = set; then
12372 echo $ECHO_N "(cached) $ECHO_C" >&6
12374 if test "$cross_compiling" = yes; then :
12375 lt_cv_dlopen_self_static=cross
12377 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12378 lt_status=$lt_dlunknown
12379 cat > conftest.$ac_ext <<EOF
12380 #line 12380 "configure"
12381 #include "confdefs.h"
12390 # define LT_DLGLOBAL RTLD_GLOBAL
12393 # define LT_DLGLOBAL DL_GLOBAL
12395 # define LT_DLGLOBAL 0
12399 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12400 find out it does not work in some platform. */
12401 #ifndef LT_DLLAZY_OR_NOW
12403 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12406 # define LT_DLLAZY_OR_NOW DL_LAZY
12409 # define LT_DLLAZY_OR_NOW RTLD_NOW
12412 # define LT_DLLAZY_OR_NOW DL_NOW
12414 # define LT_DLLAZY_OR_NOW 0
12422 extern "C" void exit (int);
12425 void fnord() { int i=42;}
12428 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12429 int status = $lt_dlunknown;
12433 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12434 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12435 /* dlclose (self); */
12441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12442 (eval $ac_link) 2>&5
12444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12446 (./conftest; exit; ) 2>/dev/null
12448 case x$lt_status in
12449 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12450 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12451 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12454 # compilation failed
12455 lt_cv_dlopen_self_static=no
12462 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12463 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12466 CPPFLAGS="$save_CPPFLAGS"
12467 LDFLAGS="$save_LDFLAGS"
12472 case $lt_cv_dlopen_self in
12473 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12474 *) enable_dlopen_self=unknown ;;
12477 case $lt_cv_dlopen_self_static in
12478 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12479 *) enable_dlopen_self_static=unknown ;;
12484 # Report which librarie types wil actually be built
12485 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12486 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12487 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
12488 echo "${ECHO_T}$can_build_shared" >&6; }
12490 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12491 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12492 test "$can_build_shared" = "no" && enable_shared=no
12494 # On AIX, shared libraries and static libraries use the same namespace, and
12495 # are all built from PIC.
12498 test "$enable_shared" = yes && enable_static=no
12499 if test -n "$RANLIB"; then
12500 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12501 postinstall_cmds='$RANLIB $lib'
12506 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12507 test "$enable_shared" = yes && enable_static=no
12510 darwin* | rhapsody*)
12511 if test "$GCC" = yes; then
12512 archive_cmds_need_lc=no
12514 rhapsody* | darwin1.[012])
12515 allow_undefined_flag='-Wl,-undefined -Wl,suppress'
12518 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12519 allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
12521 case ${MACOSX_DEPLOYMENT_TARGET} in
12523 allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
12526 allow_undefined_flag='-Wl,-undefined -Wl,dynamic_lookup'
12532 output_verbose_link_cmd='echo'
12533 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring'
12534 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs'
12535 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12536 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12537 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12539 hardcode_automatic=yes
12540 hardcode_shlibpath_var=unsupported
12541 whole_archive_flag_spec='-all_load $convenience'
12542 link_all_deplibs=yes
12548 { echo "$as_me:$LINENO: result: $enable_shared" >&5
12549 echo "${ECHO_T}$enable_shared" >&6; }
12551 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12552 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12553 # Make sure either enable_shared or enable_static is yes.
12554 test "$enable_shared" = yes || enable_static=yes
12555 { echo "$as_me:$LINENO: result: $enable_static" >&5
12556 echo "${ECHO_T}$enable_static" >&6; }
12558 # The else clause should only fire when bootstrapping the
12559 # libtool distribution, otherwise you forgot to ship ltmain.sh
12560 # with your package, and you will get complaints that there are
12561 # no rules to generate ltmain.sh.
12562 if test -f "$ltmain"; then
12563 # See if we are running on zsh, and set the options which allow our commands through
12564 # without removal of \ escapes.
12565 if test -n "${ZSH_VERSION+set}" ; then
12566 setopt NO_GLOB_SUBST
12568 # Now quote all the things that may contain metacharacters while being
12569 # careful not to overquote the AC_SUBSTed values. We take copies of the
12570 # variables and quote the copies for generation of the libtool script.
12571 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12572 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12573 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12574 deplibs_check_method reload_flag reload_cmds need_locks \
12575 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12576 lt_cv_sys_global_symbol_to_c_name_address \
12577 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12578 old_postinstall_cmds old_postuninstall_cmds \
12582 lt_prog_compiler_wl \
12583 lt_prog_compiler_pic \
12584 lt_prog_compiler_static \
12585 lt_prog_compiler_no_builtin_flag \
12586 export_dynamic_flag_spec \
12587 thread_safe_flag_spec \
12588 whole_archive_flag_spec \
12589 enable_shared_with_static_runtimes \
12591 old_archive_from_new_cmds \
12596 compiler_lib_search_path \
12598 archive_expsym_cmds \
12600 postuninstall_cmds \
12601 old_archive_from_expsyms_cmds \
12602 allow_undefined_flag \
12603 no_undefined_flag \
12604 export_symbols_cmds \
12605 hardcode_libdir_flag_spec \
12606 hardcode_libdir_flag_spec_ld \
12607 hardcode_libdir_separator \
12608 hardcode_automatic \
12610 module_expsym_cmds \
12611 lt_cv_prog_compiler_c_o \
12613 include_expsyms; do
12616 old_archive_cmds | \
12617 old_archive_from_new_cmds | \
12619 archive_expsym_cmds | \
12621 module_expsym_cmds | \
12622 old_archive_from_expsyms_cmds | \
12623 export_symbols_cmds | \
12624 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12625 postinstall_cmds | postuninstall_cmds | \
12626 old_postinstall_cmds | old_postuninstall_cmds | \
12627 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12628 # Double-quote double-evaled strings.
12629 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12632 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12638 *'\$0 --fallback-echo"')
12639 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12643 cfgfile="${ofile}T"
12644 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
12646 { echo "$as_me:$LINENO: creating $ofile" >&5
12647 echo "$as_me: creating $ofile" >&6;}
12649 cat <<__EOF__ >> "$cfgfile"
12652 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12653 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
12654 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12656 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
12657 # Free Software Foundation, Inc.
12659 # This file is part of GNU Libtool:
12660 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
12662 # This program is free software; you can redistribute it and/or modify
12663 # it under the terms of the GNU General Public License as published by
12664 # the Free Software Foundation; either version 2 of the License, or
12665 # (at your option) any later version.
12667 # This program is distributed in the hope that it will be useful, but
12668 # WITHOUT ANY WARRANTY; without even the implied warranty of
12669 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12670 # General Public License for more details.
12672 # You should have received a copy of the GNU General Public License
12673 # along with this program; if not, write to the Free Software
12674 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
12676 # As a special exception to the GNU General Public License, if you
12677 # distribute this file as part of a program that contains a
12678 # configuration script generated by Autoconf, you may include it under
12679 # the same distribution terms that you use for the rest of that program.
12681 # A sed program that does not truncate output.
12684 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12685 Xsed="$SED -e s/^X//"
12687 # The HP-UX ksh and POSIX shell print the target directory to stdout
12688 # if CDPATH is set.
12689 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
12691 # The names of the tagged configurations supported by this script.
12694 # ### BEGIN LIBTOOL CONFIG
12696 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12698 # Shell to use when invoking shell scripts.
12701 # Whether or not to build shared libraries.
12702 build_libtool_libs=$enable_shared
12704 # Whether or not to build static libraries.
12705 build_old_libs=$enable_static
12707 # Whether or not to add -lc for building shared libraries.
12708 build_libtool_need_lc=$archive_cmds_need_lc
12710 # Whether or not to disallow shared libs when runtime libs are static
12711 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12713 # Whether or not to optimize for fast installation.
12714 fast_install=$enable_fast_install
12717 host_alias=$host_alias
12720 # An echo program that does not interpret backslashes.
12725 AR_FLAGS=$lt_AR_FLAGS
12730 # A language-specific compiler.
12733 # Is the compiler the GNU C compiler?
12739 # The linker used to build libraries.
12742 # Whether we need hard or soft links.
12745 # A BSD-compatible nm program.
12748 # A symbol stripping program
12751 # Used to examine libraries when file_magic_cmd begins "file"
12752 MAGIC_CMD=$MAGIC_CMD
12754 # Used on cygwin: DLL creation program.
12757 # Used on cygwin: object dumper.
12760 # Used on cygwin: assembler.
12763 # The name of the directory that contains temporary libtool files.
12766 # How to create reloadable object files.
12767 reload_flag=$lt_reload_flag
12768 reload_cmds=$lt_reload_cmds
12770 # How to pass a linker flag through the compiler.
12771 wl=$lt_lt_prog_compiler_wl
12773 # Object file suffix (normally "o").
12774 objext="$ac_objext"
12776 # Old archive suffix (normally "a").
12779 # Shared library suffix (normally ".so").
12782 # Executable file suffix (normally "").
12785 # Additional compiler flags for building library objects.
12786 pic_flag=$lt_lt_prog_compiler_pic
12789 # What is the maximum length of a command?
12790 max_cmd_len=$lt_cv_sys_max_cmd_len
12792 # Does compiler simultaneously support -c and -o options?
12793 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12795 # Must we lock files when doing compilation ?
12796 need_locks=$lt_need_locks
12798 # Do we need the lib prefix for modules?
12799 need_lib_prefix=$need_lib_prefix
12801 # Do we need a version for libraries?
12802 need_version=$need_version
12804 # Whether dlopen is supported.
12805 dlopen_support=$enable_dlopen
12807 # Whether dlopen of programs is supported.
12808 dlopen_self=$enable_dlopen_self
12810 # Whether dlopen of statically linked programs is supported.
12811 dlopen_self_static=$enable_dlopen_self_static
12813 # Compiler flag to prevent dynamic linking.
12814 link_static_flag=$lt_lt_prog_compiler_static
12816 # Compiler flag to turn off builtin functions.
12817 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12819 # Compiler flag to allow reflexive dlopens.
12820 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12822 # Compiler flag to generate shared objects directly from archives.
12823 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12825 # Compiler flag to generate thread-safe objects.
12826 thread_safe_flag_spec=$lt_thread_safe_flag_spec
12828 # Library versioning type.
12829 version_type=$version_type
12831 # Format of library name prefix.
12832 libname_spec=$lt_libname_spec
12834 # List of archive names. First name is the real one, the rest are links.
12835 # The last name is the one that the linker finds with -lNAME.
12836 library_names_spec=$lt_library_names_spec
12838 # The coded name of the library, if different from the real name.
12839 soname_spec=$lt_soname_spec
12841 # Commands used to build and install an old-style archive.
12843 old_archive_cmds=$lt_old_archive_cmds
12844 old_postinstall_cmds=$lt_old_postinstall_cmds
12845 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12847 # Create an old-style archive from a shared archive.
12848 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12850 # Create a temporary old-style archive to link instead of a shared archive.
12851 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12853 # Commands used to build and install a shared archive.
12854 archive_cmds=$lt_archive_cmds
12855 archive_expsym_cmds=$lt_archive_expsym_cmds
12856 postinstall_cmds=$lt_postinstall_cmds
12857 postuninstall_cmds=$lt_postuninstall_cmds
12859 # Commands used to build a loadable module (assumed same as above if empty)
12860 module_cmds=$lt_module_cmds
12861 module_expsym_cmds=$lt_module_expsym_cmds
12863 # Commands to strip libraries.
12864 old_striplib=$lt_old_striplib
12865 striplib=$lt_striplib
12867 # Dependencies to place before the objects being linked to create a
12869 predep_objects=$lt_predep_objects
12871 # Dependencies to place after the objects being linked to create a
12873 postdep_objects=$lt_postdep_objects
12875 # Dependencies to place before the objects being linked to create a
12877 predeps=$lt_predeps
12879 # Dependencies to place after the objects being linked to create a
12881 postdeps=$lt_postdeps
12883 # The library search path used internally by the compiler when linking
12884 # a shared library.
12885 compiler_lib_search_path=$lt_compiler_lib_search_path
12887 # Method to check whether dependent libraries are shared objects.
12888 deplibs_check_method=$lt_deplibs_check_method
12890 # Command to use when deplibs_check_method == file_magic.
12891 file_magic_cmd=$lt_file_magic_cmd
12893 # Flag that allows shared libraries with undefined symbols to be built.
12894 allow_undefined_flag=$lt_allow_undefined_flag
12896 # Flag that forces no undefined symbols.
12897 no_undefined_flag=$lt_no_undefined_flag
12899 # Commands used to finish a libtool library installation in a directory.
12900 finish_cmds=$lt_finish_cmds
12902 # Same as above, but a single script fragment to be evaled but not shown.
12903 finish_eval=$lt_finish_eval
12905 # Take the output of nm and produce a listing of raw symbols and C names.
12906 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12908 # Transform the output of nm in a proper C declaration
12909 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12911 # Transform the output of nm in a C name address pair
12912 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12914 # This is the shared library runtime path variable.
12915 runpath_var=$runpath_var
12917 # This is the shared library path variable.
12918 shlibpath_var=$shlibpath_var
12920 # Is shlibpath searched before the hard-coded library search path?
12921 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12923 # How to hardcode a shared library path into an executable.
12924 hardcode_action=$hardcode_action
12926 # Whether we should hardcode library paths into libraries.
12927 hardcode_into_libs=$hardcode_into_libs
12929 # Flag to hardcode \$libdir into a binary during linking.
12930 # This must work even if \$libdir does not exist.
12931 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12933 # If ld is used when linking, flag to hardcode \$libdir into
12934 # a binary during linking. This must work even if \$libdir does
12936 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12938 # Whether we need a single -rpath flag with a separated argument.
12939 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12941 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12942 # resulting binary.
12943 hardcode_direct=$hardcode_direct
12945 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12946 # resulting binary.
12947 hardcode_minus_L=$hardcode_minus_L
12949 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12950 # the resulting binary.
12951 hardcode_shlibpath_var=$hardcode_shlibpath_var
12953 # Set to yes if building a shared library automatically hardcodes DIR into the library
12954 # and all subsequent libraries and executables linked against it.
12955 hardcode_automatic=$hardcode_automatic
12957 # Variables whose values should be saved in libtool wrapper scripts and
12958 # restored at relink time.
12959 variables_saved_for_relink="$variables_saved_for_relink"
12961 # Whether libtool must link a program against all its dependency libraries.
12962 link_all_deplibs=$link_all_deplibs
12964 # Compile-time system search path for libraries
12965 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12967 # Run-time system search path for libraries
12968 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12970 # Fix the shell variable \$srcfile for the compiler.
12971 fix_srcfile_path="$fix_srcfile_path"
12973 # Set to yes if exported symbols are required.
12974 always_export_symbols=$always_export_symbols
12976 # The commands to list exported symbols.
12977 export_symbols_cmds=$lt_export_symbols_cmds
12979 # The commands to extract the exported symbol list from a shared archive.
12980 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12982 # Symbols that should not be listed in the preloaded symbols.
12983 exclude_expsyms=$lt_exclude_expsyms
12985 # Symbols that must always be exported.
12986 include_expsyms=$lt_include_expsyms
12988 # ### END LIBTOOL CONFIG
12995 cat <<\EOF >> "$cfgfile"
12997 # AIX sometimes has problems with the GCC collect2 program. For some
12998 # reason, if we set the COLLECT_NAMES environment variable, the problems
12999 # vanish in a puff of smoke.
13000 if test "X${COLLECT_NAMES+set}" != Xset; then
13002 export COLLECT_NAMES
13008 # We use sed instead of cat because bash on DJGPP gets confused if
13009 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13010 # text mode, it properly converts lines to CR/LF. This bash problem
13011 # is reportedly fixed, but why not run on old versions too?
13012 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
13014 mv -f "$cfgfile" "$ofile" || \
13015 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13019 # If there is no Makefile yet, we rely on a make rule to execute
13020 # `config.status --recheck' to rerun these tests and create the
13021 # libtool script then.
13022 test -f Makefile && make "$ltmain"
13027 ac_cpp='$CPP $CPPFLAGS'
13028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13035 # Check whether --with-tags was given.
13036 if test "${with_tags+set}" = set; then
13037 withval=$with_tags; tagnames="$withval"
13041 if test -f "$ltmain" && test -n "$tagnames"; then
13042 if test ! -f "${ofile}"; then
13043 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
13044 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
13047 if test -z "$LTCC"; then
13048 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
13049 if test -z "$LTCC"; then
13050 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
13051 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
13053 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
13054 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
13058 # Extract list of available tagged configurations in $ofile.
13059 # Note that this assumes the entire list is on one line.
13060 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
13062 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13063 for tagname in $tagnames; do
13065 # Check whether tagname contains only valid characters
13066 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
13068 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
13069 echo "$as_me: error: invalid tag name: $tagname" >&2;}
13070 { (exit 1); exit 1; }; }
13074 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
13076 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
13077 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
13078 { (exit 1); exit 1; }; }
13081 # Update the list of available tags.
13082 if test -n "$tagname"; then
13083 echo appending configuration tag \"$tagname\" to $ofile
13087 if test -n "$CXX" && test "X$CXX" != "Xno"; then
13089 ac_cpp='$CXXCPP $CPPFLAGS'
13090 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13091 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13092 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13097 archive_cmds_need_lc_CXX=no
13098 allow_undefined_flag_CXX=
13099 always_export_symbols_CXX=no
13100 archive_expsym_cmds_CXX=
13101 export_dynamic_flag_spec_CXX=
13102 hardcode_direct_CXX=no
13103 hardcode_libdir_flag_spec_CXX=
13104 hardcode_libdir_flag_spec_ld_CXX=
13105 hardcode_libdir_separator_CXX=
13106 hardcode_minus_L_CXX=no
13107 hardcode_automatic_CXX=no
13109 module_expsym_cmds_CXX=
13110 link_all_deplibs_CXX=unknown
13111 old_archive_cmds_CXX=$old_archive_cmds
13112 no_undefined_flag_CXX=
13113 whole_archive_flag_spec_CXX=
13114 enable_shared_with_static_runtimes_CXX=no
13116 # Dependencies to place before and after the object being linked:
13117 predep_objects_CXX=
13118 postdep_objects_CXX=
13121 compiler_lib_search_path_CXX=
13123 # Source file extension for C++ test sources.
13126 # Object file extension for compiled C++ test sources.
13130 # Code to be used in simple compile tests
13131 lt_simple_compile_test_code="int some_variable = 0;\n"
13133 # Code to be used in simple link tests
13134 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
13136 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13138 # If no C compiler was specified, use CC.
13141 # Allow CC to be a program name with arguments.
13145 # Allow CC to be a program name with arguments.
13150 lt_save_with_gnu_ld=$with_gnu_ld
13151 lt_save_path_LD=$lt_cv_path_LD
13152 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13153 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13155 unset lt_cv_prog_gnu_ld
13157 if test -n "${lt_cv_path_LDCXX+set}"; then
13158 lt_cv_path_LD=$lt_cv_path_LDCXX
13160 unset lt_cv_path_LD
13162 test -z "${LDCXX+set}" || LD=$LDCXX
13166 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13168 # We don't want -fno-exception wen compiling C++ code, so set the
13169 # no_builtin_flag separately
13170 if test "$GXX" = yes; then
13171 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13173 lt_prog_compiler_no_builtin_flag_CXX=
13176 if test "$GXX" = yes; then
13177 # Set up default GNU C++ configuration
13180 # Check whether --with-gnu-ld was given.
13181 if test "${with_gnu_ld+set}" = set; then
13182 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13188 if test "$GCC" = yes; then
13189 # Check if gcc -print-prog-name=ld gives a path.
13190 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13191 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
13194 # gcc leaves a trailing carriage return which upsets mingw
13195 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13197 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13200 # Accept absolute paths.
13202 re_direlt='/[^/][^/]*/\.\./'
13203 # Canonicalize the pathname of ld
13204 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
13205 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13206 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
13208 test -z "$LD" && LD="$ac_prog"
13211 # If it fails, then pretend we aren't using GCC.
13215 # If it is relative, then search for the first ld in PATH.
13216 with_gnu_ld=unknown
13219 elif test "$with_gnu_ld" = yes; then
13220 { echo "$as_me:$LINENO: checking for GNU ld" >&5
13221 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
13223 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13224 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
13226 if test "${lt_cv_path_LD+set}" = set; then
13227 echo $ECHO_N "(cached) $ECHO_C" >&6
13229 if test -z "$LD"; then
13230 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13231 for ac_dir in $PATH; do
13233 test -z "$ac_dir" && ac_dir=.
13234 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13235 lt_cv_path_LD="$ac_dir/$ac_prog"
13236 # Check to see if the program is GNU ld. I'd rather use --version,
13237 # but apparently some GNU ld's only accept -v.
13238 # Break only if it was the GNU/non-GNU ld that we prefer.
13239 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13240 *GNU* | *'with BFD'*)
13241 test "$with_gnu_ld" != no && break
13244 test "$with_gnu_ld" != yes && break
13251 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13255 LD="$lt_cv_path_LD"
13256 if test -n "$LD"; then
13257 { echo "$as_me:$LINENO: result: $LD" >&5
13258 echo "${ECHO_T}$LD" >&6; }
13260 { echo "$as_me:$LINENO: result: no" >&5
13261 echo "${ECHO_T}no" >&6; }
13263 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13264 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13265 { (exit 1); exit 1; }; }
13266 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13267 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
13268 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13269 echo $ECHO_N "(cached) $ECHO_C" >&6
13271 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13272 case `$LD -v 2>&1 </dev/null` in
13273 *GNU* | *'with BFD'*)
13274 lt_cv_prog_gnu_ld=yes
13277 lt_cv_prog_gnu_ld=no
13281 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13282 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
13283 with_gnu_ld=$lt_cv_prog_gnu_ld
13287 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13288 # archiving commands below assume that GNU ld is being used.
13289 if test "$with_gnu_ld" = yes; then
13290 archive_cmds_CXX='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib'
13291 archive_expsym_cmds_CXX='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13293 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13294 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13296 # If archive_cmds runs LD, not CC, wlarc should be empty
13297 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13298 # investigate it a little bit more. (MM)
13301 # ancient GNU ld didn't support --whole-archive et. al.
13302 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
13303 grep 'no-whole-archive' > /dev/null; then
13304 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13306 whole_archive_flag_spec_CXX=
13312 # A generic and very simple default shared library creation
13313 # command for GNU C++ for the case where it uses the native
13314 # linker, instead of GNU ld. If possible, this setting should
13315 # overridden to take advantage of the native linker features on
13316 # the platform it is being used on.
13317 archive_cmds_CXX='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -o $lib'
13320 # Commands to make compiler produce verbose output that lists
13321 # what "hidden" libraries, object files and flags are used when
13322 # linking a shared library.
13323 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13331 # PORTME: fill in a description of your system's C++ link characteristics
13332 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13333 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13337 # FIXME: insert proper C++ library support
13341 if test "$host_cpu" = ia64; then
13342 # On IA64, the linker does run time linking by default, so we don't
13343 # have to do anything special.
13344 aix_use_runtimelinking=no
13345 exp_sym_flag='-Bexport'
13348 # KDE requires run time linking. Make it the default.
13349 aix_use_runtimelinking=yes
13350 exp_sym_flag='-bexport'
13351 no_entry_flag='-bnoentry'
13354 # When large executables or shared objects are built, AIX ld can
13355 # have problems creating the table of contents. If linking a library
13356 # or program results in "error TOC overflow" add -mminimal-toc to
13357 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13358 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13360 archive_cmds_CXX=''
13361 hardcode_direct_CXX=yes
13362 hardcode_libdir_separator_CXX=':'
13363 link_all_deplibs_CXX=yes
13365 if test "$GXX" = yes; then
13366 case $host_os in aix4.012|aix4.012.*)
13367 # We only want to do this on AIX 4.2 and lower, the check
13368 # below for broken collect2 doesn't work under 4.3+
13369 collect2name=`${CC} -print-prog-name=collect2`
13370 if test -f "$collect2name" && \
13371 strings "$collect2name" | grep resolve_lib_name >/dev/null
13373 # We have reworked collect2
13374 hardcode_direct_CXX=yes
13376 # We have old collect2
13377 hardcode_direct_CXX=unsupported
13378 # It fails to find uninstalled libraries when the uninstalled
13379 # path is not listed in the libpath. Setting hardcode_minus_L
13380 # to unsupported forces relinking
13381 hardcode_minus_L_CXX=yes
13382 hardcode_libdir_flag_spec_CXX='-L$libdir'
13383 hardcode_libdir_separator_CXX=
13386 shared_flag='-shared'
13389 if test "$host_cpu" = ia64; then
13390 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13391 # chokes on -Wl,-G. The following line is correct:
13394 if test "$aix_use_runtimelinking" = yes; then
13395 shared_flag='-qmkshrobj ${wl}-G'
13397 shared_flag='-qmkshrobj'
13402 # Let the compiler handle the export list.
13403 always_export_symbols_CXX=no
13404 if test "$aix_use_runtimelinking" = yes; then
13405 # Warning - without using the other runtime loading flags (-brtl),
13406 # -berok will link without error, but may produce a broken library.
13407 allow_undefined_flag_CXX='-berok'
13408 # Determine the default libpath from the value encoded in an empty executable.
13409 cat >conftest.$ac_ext <<_ACEOF
13412 cat confdefs.h >>conftest.$ac_ext
13413 cat >>conftest.$ac_ext <<_ACEOF
13414 /* end confdefs.h. */
13424 rm -f conftest.$ac_objext conftest$ac_exeext
13425 if { (ac_try="$ac_link"
13426 case "(($ac_try" in
13427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13428 *) ac_try_echo=$ac_try;;
13430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13431 (eval "$ac_link") 2>conftest.er1
13433 grep -v '^ *+' conftest.er1 >conftest.err
13435 cat conftest.err >&5
13436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437 (exit $ac_status); } && {
13438 test -z "$ac_cxx_werror_flag" ||
13439 test ! -s conftest.err
13440 } && test -s conftest$ac_exeext &&
13441 $as_test_x conftest$ac_exeext; then
13443 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13445 # Check for a 64-bit object if we didn't find anything.
13446 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13449 echo "$as_me: failed program was:" >&5
13450 sed 's/^/| /' conftest.$ac_ext >&5
13455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13456 conftest$ac_exeext conftest.$ac_ext
13457 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13459 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13461 archive_cmds_CXX="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag"
13462 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13464 if test "$host_cpu" = ia64; then
13465 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13466 allow_undefined_flag_CXX="-z nodefs"
13467 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13469 # Determine the default libpath from the value encoded in an empty executable.
13470 cat >conftest.$ac_ext <<_ACEOF
13473 cat confdefs.h >>conftest.$ac_ext
13474 cat >>conftest.$ac_ext <<_ACEOF
13475 /* end confdefs.h. */
13485 rm -f conftest.$ac_objext conftest$ac_exeext
13486 if { (ac_try="$ac_link"
13487 case "(($ac_try" in
13488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13489 *) ac_try_echo=$ac_try;;
13491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13492 (eval "$ac_link") 2>conftest.er1
13494 grep -v '^ *+' conftest.er1 >conftest.err
13496 cat conftest.err >&5
13497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498 (exit $ac_status); } && {
13499 test -z "$ac_cxx_werror_flag" ||
13500 test ! -s conftest.err
13501 } && test -s conftest$ac_exeext &&
13502 $as_test_x conftest$ac_exeext; then
13504 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13506 # Check for a 64-bit object if we didn't find anything.
13507 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13510 echo "$as_me: failed program was:" >&5
13511 sed 's/^/| /' conftest.$ac_ext >&5
13516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13517 conftest$ac_exeext conftest.$ac_ext
13518 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13520 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13521 # Warning - without using the other run time loading flags,
13522 # -berok will link without error, but may produce a broken library.
13523 no_undefined_flag_CXX=' ${wl}-bernotok'
13524 allow_undefined_flag_CXX=' ${wl}-berok'
13525 # -bexpall does not export symbols beginning with underscore (_)
13526 always_export_symbols_CXX=yes
13527 # Exported symbols can be pulled into shared objects from archives
13528 whole_archive_flag_spec_CXX=' '
13529 archive_cmds_need_lc_CXX=yes
13530 # This is similar to how AIX traditionally builds it's shared libraries.
13531 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13536 case $cc_basename in
13538 # FIXME: insert proper C++ library support
13544 cygwin* | mingw* | pw32*)
13545 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13546 # as there is no search path for DLLs.
13547 hardcode_libdir_flag_spec_CXX='-L$libdir'
13548 allow_undefined_flag_CXX=no
13549 always_export_symbols_CXX=no
13550 enable_shared_with_static_runtimes_CXX=yes
13552 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13553 archive_cmds_CXX='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13554 # If the export-symbols file already is a .def file (1st line
13555 # is EXPORTS), use it as is; otherwise, prepend...
13556 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13557 cp $export_symbols $output_objdir/$soname.def;
13559 echo EXPORTS > $output_objdir/$soname.def;
13560 cat $export_symbols >> $output_objdir/$soname.def;
13562 $CC -shared -nostdlib $output_objdir/$soname.def $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13568 darwin* | rhapsody*)
13569 if test "$GXX" = yes; then
13570 archive_cmds_need_lc_CXX=no
13572 rhapsody* | darwin1.[012])
13573 allow_undefined_flag_CXX='-Wl,-undefined -Wl,suppress'
13576 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13577 allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
13579 case ${MACOSX_DEPLOYMENT_TARGET} in
13581 allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
13584 allow_undefined_flag='-Wl,-undefined -Wl,dynamic_lookup'
13590 lt_int_apple_cc_single_mod=no
13591 output_verbose_link_cmd='echo'
13592 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13593 lt_int_apple_cc_single_mod=yes
13595 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13596 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring'
13598 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring'
13600 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs'
13602 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13603 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13604 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13606 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13608 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 $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13609 hardcode_direct_CXX=no
13610 hardcode_automatic_CXX=yes
13611 hardcode_shlibpath_var_CXX=unsupported
13612 whole_archive_flag_spec_CXX='-all_load $convenience'
13613 link_all_deplibs_CXX=yes
13620 case $cc_basename in
13622 # FIXME: insert proper C++ library support
13626 # Green Hills C++ Compiler
13627 # FIXME: insert proper C++ library support
13631 # FIXME: insert proper C++ library support
13637 # C++ shared libraries reported to be fairly broken before switch to ELF
13641 archive_cmds_need_lc_CXX=no
13644 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13651 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13652 hardcode_libdir_separator_CXX=:
13653 export_dynamic_flag_spec_CXX='${wl}-E'
13654 hardcode_direct_CXX=yes
13655 hardcode_minus_L_CXX=yes # Not in the search PATH,
13656 # but as the default
13657 # location of the library.
13659 case $cc_basename in
13661 # FIXME: insert proper C++ library support
13665 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13666 # Commands to make compiler produce verbose output that lists
13667 # what "hidden" libraries, object files and flags are used when
13668 # linking a shared library.
13670 # There doesn't appear to be a way to prevent this compiler from
13671 # explicitly linking system object files so we need to strip them
13672 # from the output so that they don't get included in the library
13674 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
13677 if test "$GXX" = yes; then
13678 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13680 # FIXME: insert proper C++ library support
13687 if test $with_gnu_ld = no; then
13688 case "$host_cpu" in
13690 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13691 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
13692 hardcode_libdir_separator_CXX=:
13695 hardcode_libdir_flag_spec_CXX='-L$libdir'
13698 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13699 hardcode_libdir_separator_CXX=:
13700 export_dynamic_flag_spec_CXX='${wl}-E'
13704 case "$host_cpu" in
13706 hardcode_direct_CXX=no
13707 hardcode_shlibpath_var_CXX=no
13710 hardcode_direct_CXX=no
13711 hardcode_shlibpath_var_CXX=no
13712 hardcode_minus_L_CXX=yes # Not in the search PATH,
13713 # but as the default
13714 # location of the library.
13717 hardcode_direct_CXX=yes
13718 hardcode_minus_L_CXX=yes # Not in the search PATH,
13719 # but as the default
13720 # location of the library.
13724 case $cc_basename in
13726 # FIXME: insert proper C++ library support
13730 case "$host_cpu" in
13732 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
13735 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects'
13738 # Commands to make compiler produce verbose output that lists
13739 # what "hidden" libraries, object files and flags are used when
13740 # linking a shared library.
13742 # There doesn't appear to be a way to prevent this compiler from
13743 # explicitly linking system object files so we need to strip them
13744 # from the output so that they don't get included in the library
13746 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'
13749 if test "$GXX" = yes; then
13750 if test $with_gnu_ld = no; then
13751 case "$host_cpu" in
13753 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
13756 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects'
13761 # FIXME: insert proper C++ library support
13768 case $cc_basename in
13771 archive_cmds_CXX='$CC -shared -all -multigot $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
13773 # Archives containing C++ object files must be created using
13774 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13775 # necessary to make sure instantiated templates are included
13777 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13780 if test "$GXX" = yes; then
13781 if test "$with_gnu_ld" = no; then
13782 archive_cmds_CXX='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
13784 archive_cmds_CXX='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
13787 link_all_deplibs_CXX=yes
13790 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13791 hardcode_libdir_separator_CXX=:
13794 case $cc_basename in
13796 # Kuck and Associates, Inc. (KAI) C++ Compiler
13798 # KCC will only create a shared library if the output file
13799 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13800 # to its proper name (with version) after linking.
13801 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 $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib; mv \$templib $lib'
13802 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 $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
13803 # Commands to make compiler produce verbose output that lists
13804 # what "hidden" libraries, object files and flags are used when
13805 # linking a shared library.
13807 # There doesn't appear to be a way to prevent this compiler from
13808 # explicitly linking system object files so we need to strip them
13809 # from the output so that they don't get included in the library
13811 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'
13813 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13814 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13816 # Archives containing C++ object files must be created using
13817 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13818 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13823 archive_cmds_need_lc_CXX=no
13824 archive_cmds_CXX='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib'
13825 archive_expsym_cmds_CXX='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13826 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13827 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13828 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13832 archive_cmds_CXX='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib'
13833 archive_expsym_cmds_CXX='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13835 runpath_var=LD_RUN_PATH
13836 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13837 hardcode_libdir_separator_CXX=:
13839 # Commands to make compiler produce verbose output that lists
13840 # what "hidden" libraries, object files and flags are used when
13841 # linking a shared library.
13843 # There doesn't appear to be a way to prevent this compiler from
13844 # explicitly linking system object files so we need to strip them
13845 # from the output so that they don't get included in the library
13847 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'
13852 # FIXME: insert proper C++ library support
13856 # FIXME: insert proper C++ library support
13860 case $cc_basename in
13862 # FIXME: insert proper C++ library support
13866 # FIXME: insert proper C++ library support
13872 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13873 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13875 hardcode_libdir_flag_spec_CXX='-R$libdir'
13876 hardcode_direct_CXX=yes
13877 hardcode_shlibpath_var_CXX=no
13879 # Workaround some broken pre-1.5 toolchains
13880 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13883 case $cc_basename in
13885 # Kuck and Associates, Inc. (KAI) C++ Compiler
13887 # KCC will only create a shared library if the output file
13888 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13889 # to its proper name (with version) after linking.
13890 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 $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib; mv \$templib $lib'
13892 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13893 hardcode_libdir_separator_CXX=:
13895 # Archives containing C++ object files must be created using
13896 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13897 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13901 # Rational C++ 2.4.1
13902 # FIXME: insert proper C++ library support
13906 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13907 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
13909 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13910 hardcode_libdir_separator_CXX=:
13912 # Commands to make compiler produce verbose output that lists
13913 # what "hidden" libraries, object files and flags are used when
13914 # linking a shared library.
13916 # There doesn't appear to be a way to prevent this compiler from
13917 # explicitly linking system object files so we need to strip them
13918 # from the output so that they don't get included in the library
13920 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'
13923 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13924 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13925 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
13927 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13928 hardcode_libdir_separator_CXX=:
13930 # Commands to make compiler produce verbose output that lists
13931 # what "hidden" libraries, object files and flags are used when
13932 # linking a shared library.
13933 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13936 # FIXME: insert proper C++ library support
13943 case $cc_basename in
13945 # Kuck and Associates, Inc. (KAI) C++ Compiler
13947 # KCC will only create a shared library if the output file
13948 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13949 # to its proper name (with version) after linking.
13950 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 $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib; mv \$templib $lib'
13952 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13953 hardcode_libdir_separator_CXX=:
13955 # Archives containing C++ object files must be created using
13956 # the KAI C++ compiler.
13957 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13960 # Rational C++ 2.4.1
13961 # FIXME: insert proper C++ library support
13965 allow_undefined_flag_CXX=' -expect_unresolved \*'
13966 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
13967 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13968 echo "-hidden">> $lib.exp~
13969 $CC -shared$allow_undefined_flag $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
13972 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13973 hardcode_libdir_separator_CXX=:
13975 # Commands to make compiler produce verbose output that lists
13976 # what "hidden" libraries, object files and flags are used when
13977 # linking a shared library.
13979 # There doesn't appear to be a way to prevent this compiler from
13980 # explicitly linking system object files so we need to strip them
13981 # from the output so that they don't get included in the library
13983 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'
13986 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13987 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13988 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
13990 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13991 hardcode_libdir_separator_CXX=:
13993 # Commands to make compiler produce verbose output that lists
13994 # what "hidden" libraries, object files and flags are used when
13995 # linking a shared library.
13996 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13999 # FIXME: insert proper C++ library support
14006 # FIXME: insert proper C++ library support
14010 archive_cmds_need_lc_CXX=no
14011 case $cc_basename in
14013 # FIXME: insert proper C++ library support
14017 # FIXME: insert proper C++ library support
14023 case $cc_basename in
14026 # FIXME: insert proper C++ library support
14031 # FIXME: insert proper C++ library support
14035 # FIXME: insert proper C++ library support
14041 case $cc_basename in
14043 # Sun C++ 4.2, 5.x and Centerline C++
14044 no_undefined_flag_CXX=' -zdefs'
14045 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects'
14046 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14047 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~$rm $lib.exp'
14049 hardcode_libdir_flag_spec_CXX='-R$libdir'
14050 hardcode_shlibpath_var_CXX=no
14052 solaris2.0-5 | solaris2.0-5.*) ;;
14054 # The C++ compiler is used as linker so we must use $wl
14055 # flag to pass the commands to the underlying system
14057 # Supported since Solaris 2.6 (maybe 2.5.1?)
14058 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14061 link_all_deplibs_CXX=yes
14063 # Commands to make compiler produce verbose output that lists
14064 # what "hidden" libraries, object files and flags are used when
14065 # linking a shared library.
14067 # There doesn't appear to be a way to prevent this compiler from
14068 # explicitly linking system object files so we need to strip them
14069 # from the output so that they don't get included in the library
14071 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
14073 # Archives containing C++ object files must be created using
14074 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14075 # necessary to make sure instantiated templates are included
14077 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14080 # Green Hills C++ Compiler
14081 archive_cmds_CXX='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-h $wl$soname -o $lib'
14083 # The C++ compiler must be used to create the archive.
14084 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14087 # GNU C++ compiler with Solaris linker
14088 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14089 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14090 if $CC --version | grep -v '^2\.7' > /dev/null; then
14091 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-h $wl$soname -o $lib'
14092 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14093 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~$rm $lib.exp'
14095 # Commands to make compiler produce verbose output that lists
14096 # what "hidden" libraries, object files and flags are used when
14097 # linking a shared library.
14098 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
14100 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14102 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-h $wl$soname -o $lib'
14103 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14104 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~$rm $lib.exp'
14106 # Commands to make compiler produce verbose output that lists
14107 # what "hidden" libraries, object files and flags are used when
14108 # linking a shared library.
14109 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
14112 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14117 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14118 archive_cmds_need_lc_CXX=no
14121 case $cc_basename in
14123 # NonStop-UX NCC 3.20
14124 # FIXME: insert proper C++ library support
14128 # FIXME: insert proper C++ library support
14134 # FIXME: insert proper C++ library support
14138 # FIXME: insert proper C++ library support
14142 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14143 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14144 test "$ld_shlibs_CXX" = no && can_build_shared=no
14150 ## There is no encapsulation within the following macros, do not change
14151 ## the running order or otherwise move them around unless you know exactly
14152 ## what you are doing...
14154 cat > conftest.$ac_ext <<EOF
14158 Foo (void) { a = 0; }
14164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14165 (eval $ac_compile) 2>&5
14167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168 (exit $ac_status); }; then
14169 # Parse the compiler output and extract the necessary
14170 # objects, libraries and library flags.
14172 # Sentinel used to keep track of whether or not we are before
14173 # the conftest object file.
14174 pre_test_object_deps_done=no
14176 # The `*' in the case matches for architectures that use `case' in
14177 # $output_verbose_cmd can trigger glob expansion during the loop
14178 # eval without this substitution.
14179 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
14181 for p in `eval $output_verbose_link_cmd`; do
14185 # Some compilers place space between "-{L,R}" and the path.
14186 # Remove the space.
14187 if test $p = "-L" \
14188 || test $p = "-R"; then
14195 if test "$pre_test_object_deps_done" = no; then
14198 # Internal compiler library paths should come after those
14199 # provided the user. The postdeps already come after the
14200 # user supplied libs so there is no need to process them.
14201 if test -z "$compiler_lib_search_path_CXX"; then
14202 compiler_lib_search_path_CXX="${prev}${p}"
14204 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14207 # The "-l" case would never come before the object being
14208 # linked, so don't bother handling this case.
14211 if test -z "$postdeps_CXX"; then
14212 postdeps_CXX="${prev}${p}"
14214 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14219 *.$objext|*.$libext)
14220 # This assumes that the test object file only shows up
14221 # once in the compiler output.
14222 if test "$p" = "conftest.$objext"; then
14223 pre_test_object_deps_done=yes
14227 if test "$pre_test_object_deps_done" = no; then
14228 if test -z "$predep_objects_CXX"; then
14229 predep_objects_CXX="$p"
14231 predep_objects_CXX="$predep_objects_CXX $p"
14234 if test -z "$postdep_objects_CXX"; then
14235 postdep_objects_CXX="$p"
14237 postdep_objects_CXX="$postdep_objects_CXX $p"
14242 *) ;; # Ignore the rest.
14250 echo "libtool.m4: error: problem compiling CXX test program"
14253 $rm -f confest.$objext
14255 case " $postdeps_CXX " in
14256 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14259 lt_prog_compiler_wl_CXX=
14260 lt_prog_compiler_pic_CXX=
14261 lt_prog_compiler_static_CXX=
14263 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14264 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14266 # C++ specific cases for pic, static, wl, etc.
14267 if test "$GXX" = yes; then
14268 lt_prog_compiler_wl_CXX='-Wl,'
14269 lt_prog_compiler_static_CXX='-static'
14273 # All AIX code is PIC.
14274 if test "$host_cpu" = ia64; then
14275 # AIX 5 now supports IA64 processor
14276 lt_prog_compiler_static_CXX='-Bstatic'
14280 # FIXME: we need at least 68020 code to build shared libraries, but
14281 # adding the `-m68020' flag to GCC prevents building anything better,
14283 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14285 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14286 # PIC is the default for these OSes.
14288 mingw* | os2* | pw32*)
14289 # This hack is so that the source file can tell whether it is being
14290 # built for inclusion in a dll (and should export symbols for example).
14291 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14293 darwin* | rhapsody*)
14294 # PIC is the default on this platform
14295 # Common symbols not allowed in MH_DYLIB files
14296 lt_prog_compiler_pic_CXX='-fno-common'
14299 # DJGPP does not support shared libraries at all
14300 lt_prog_compiler_pic_CXX=
14303 if test -d /usr/nec; then
14304 lt_prog_compiler_pic_CXX=-Kconform_pic
14308 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14309 # not for PA HP-UX.
14310 case "$host_cpu" in
14314 lt_prog_compiler_pic_CXX='-fPIC'
14319 lt_prog_compiler_pic_CXX='-fPIC'
14325 # All AIX code is PIC.
14326 if test "$host_cpu" = ia64; then
14327 # AIX 5 now supports IA64 processor
14328 lt_prog_compiler_static_CXX='-Bstatic'
14330 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14334 case $cc_basename in
14336 # Green Hills C++ Compiler
14337 # _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"
14342 case $cc_basename in
14344 lt_prog_compiler_pic_CXX='-KPIC'
14347 # Green Hills C++ Compiler
14348 lt_prog_compiler_pic_CXX='-pic'
14355 # FreeBSD uses GNU C++
14357 hpux9* | hpux10* | hpux11*)
14358 case $cc_basename in
14360 lt_prog_compiler_wl_CXX='-Wl,'
14361 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
14362 if test "$host_cpu" != ia64; then
14363 lt_prog_compiler_pic_CXX='+Z'
14367 lt_prog_compiler_wl_CXX='-Wl,'
14368 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
14369 case "$host_cpu" in
14374 lt_prog_compiler_pic_CXX='+Z'
14382 irix5* | irix6* | nonstopux*)
14383 case $cc_basename in
14385 lt_prog_compiler_wl_CXX='-Wl,'
14386 lt_prog_compiler_static_CXX='-non_shared'
14387 # CC pic flag -KPIC is the default.
14394 case $cc_basename in
14397 lt_prog_compiler_wl_CXX='--backend -Wl,'
14398 lt_prog_compiler_pic_CXX='-fPIC'
14402 lt_prog_compiler_wl_CXX='-Wl,'
14403 lt_prog_compiler_pic_CXX='-KPIC'
14404 lt_prog_compiler_static_CXX='-static'
14408 # Make sure the PIC flag is empty. It appears that all Alpha
14409 # Linux and Compaq Tru64 Unix objects are PIC.
14410 lt_prog_compiler_pic_CXX=
14411 lt_prog_compiler_static_CXX='-non_shared'
14422 case $cc_basename in
14424 lt_prog_compiler_pic_CXX='-W c,exportall'
14432 osf3* | osf4* | osf5*)
14433 case $cc_basename in
14435 lt_prog_compiler_wl_CXX='--backend -Wl,'
14438 # Rational C++ 2.4.1
14439 lt_prog_compiler_pic_CXX='-pic'
14442 # Digital/Compaq C++
14443 lt_prog_compiler_wl_CXX='-Wl,'
14444 # Make sure the PIC flag is empty. It appears that all Alpha
14445 # Linux and Compaq Tru64 Unix objects are PIC.
14446 lt_prog_compiler_pic_CXX=
14447 lt_prog_compiler_static_CXX='-non_shared'
14456 case $cc_basename in
14458 lt_prog_compiler_pic_CXX='-fPIC'
14465 case $cc_basename in
14467 # Sun C++ 4.2, 5.x and Centerline C++
14468 lt_prog_compiler_pic_CXX='-KPIC'
14469 lt_prog_compiler_static_CXX='-Bstatic'
14470 lt_prog_compiler_wl_CXX='-Qoption ld '
14473 # Green Hills C++ Compiler
14474 lt_prog_compiler_pic_CXX='-PIC'
14481 case $cc_basename in
14484 lt_prog_compiler_pic_CXX='-pic'
14485 lt_prog_compiler_static_CXX='-Bstatic'
14489 lt_prog_compiler_pic_CXX='-pic'
14496 case $cc_basename in
14498 # NonStop-UX NCC 3.20
14499 lt_prog_compiler_pic_CXX='-KPIC'
14510 lt_prog_compiler_can_build_shared_CXX=no
14515 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14516 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14519 # Check to make sure the PIC flag actually works.
14521 if test -n "$lt_prog_compiler_pic_CXX"; then
14523 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14524 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14525 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
14526 echo $ECHO_N "(cached) $ECHO_C" >&6
14528 lt_prog_compiler_pic_works_CXX=no
14529 ac_outfile=conftest.$ac_objext
14530 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14531 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14532 # Insert the option either (1) after the last *FLAGS variable, or
14533 # (2) before a word containing "conftest.", or (3) at the end.
14534 # Note that $ac_compile itself does not contain backslashes and begins
14535 # with a dollar sign (not a hyphen), so the echo should work correctly.
14536 # The option is referenced via a variable to avoid confusing sed.
14537 lt_compile=`echo "$ac_compile" | $SED \
14538 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14539 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14540 -e 's:$: $lt_compiler_flag:'`
14541 (eval echo "\"\$as_me:14541: $lt_compile\"" >&5)
14542 (eval "$lt_compile" 2>conftest.err)
14544 cat conftest.err >&5
14545 echo "$as_me:14545: \$? = $ac_status" >&5
14546 if (exit $ac_status) && test -s "$ac_outfile"; then
14547 # The compiler can only warn and ignore the option if not recognized
14548 # So say no if there are warnings
14549 if test ! -s conftest.err; then
14550 lt_prog_compiler_pic_works_CXX=yes
14556 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
14557 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
14559 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
14560 case $lt_prog_compiler_pic_CXX in
14562 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14565 lt_prog_compiler_pic_CXX=
14566 lt_prog_compiler_can_build_shared_CXX=no
14571 # For platforms which do not support PIC, -DPIC is meaningless:
14573 lt_prog_compiler_pic_CXX=
14576 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14580 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14581 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14582 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14583 echo $ECHO_N "(cached) $ECHO_C" >&6
14585 lt_cv_prog_compiler_c_o_CXX=no
14586 $rm -r conftest 2>/dev/null
14590 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14592 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
14593 # that will create temporary files in the current directory regardless of
14594 # the output directory. Thus, making CWD read-only will cause this test
14595 # to fail, enabling locking or at least warning the user not to do parallel
14599 lt_compiler_flag="-o out/conftest2.$ac_objext"
14600 # Insert the option either (1) after the last *FLAGS variable, or
14601 # (2) before a word containing "conftest.", or (3) at the end.
14602 # Note that $ac_compile itself does not contain backslashes and begins
14603 # with a dollar sign (not a hyphen), so the echo should work correctly.
14604 lt_compile=`echo "$ac_compile" | $SED \
14605 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14606 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14607 -e 's:$: $lt_compiler_flag:'`
14608 (eval echo "\"\$as_me:14608: $lt_compile\"" >&5)
14609 (eval "$lt_compile" 2>out/conftest.err)
14611 cat out/conftest.err >&5
14612 echo "$as_me:14612: \$? = $ac_status" >&5
14613 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14615 # The compiler can only warn and ignore the option if not recognized
14616 # So say no if there are warnings
14617 if test ! -s out/conftest.err; then
14618 lt_cv_prog_compiler_c_o_CXX=yes
14622 $rm conftest* out/*
14629 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14630 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14633 hard_links="nottested"
14634 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14635 # do not overwrite the value of need_locks provided by the user
14636 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14637 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14640 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14642 ln conftest.a conftest.b 2>&5 || hard_links=no
14643 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14644 { echo "$as_me:$LINENO: result: $hard_links" >&5
14645 echo "${ECHO_T}$hard_links" >&6; }
14646 if test "$hard_links" = no; then
14647 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14648 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14655 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14656 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14658 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14661 # If we're using GNU nm, then we don't want the "-C" option.
14662 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14663 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14664 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'
14666 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'
14670 export_symbols_cmds_CXX="$ltdll_cmds"
14673 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14676 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14680 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14681 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14682 test "$ld_shlibs_CXX" = no && can_build_shared=no
14684 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14685 if test "$GCC" = yes; then
14686 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14690 # Do we need to explicitly link libc?
14692 case "x$archive_cmds_need_lc_CXX" in
14694 # Assume -lc should be added
14695 archive_cmds_need_lc_CXX=yes
14697 if test "$enable_shared" = yes && test "$GCC" = yes; then
14698 case $archive_cmds_CXX in
14700 # FIXME: we may have to deal with multi-command sequences.
14703 # Test whether the compiler implicitly links with -lc since on some
14704 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14705 # to ld, don't add -lc before -lgcc.
14706 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14707 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14709 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14712 (eval $ac_compile) 2>&5
14714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715 (exit $ac_status); } 2>conftest.err; then
14718 libobjs=conftest.$ac_objext
14720 wl=$lt_prog_compiler_wl_CXX
14726 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14727 allow_undefined_flag_CXX=
14728 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14729 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14732 (exit $ac_status); }
14734 archive_cmds_need_lc_CXX=no
14736 archive_cmds_need_lc_CXX=yes
14738 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14740 cat conftest.err 1>&5
14743 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14744 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14751 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14752 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14753 library_names_spec=
14754 libname_spec='lib$name'
14758 postuninstall_cmds=
14762 shlibpath_overrides_runpath=unknown
14764 dynamic_linker="$host_os ld.so"
14765 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14766 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14767 need_lib_prefix=unknown
14768 hardcode_into_libs=no
14770 # when you set need_version to no, make sure it does not cause -set_version
14771 # flags to be left without arguments
14772 need_version=unknown
14777 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14778 shlibpath_var=LIBPATH
14780 # AIX 3 has no versioning support, so we append a major version to the name.
14781 soname_spec='${libname}${release}${shared_ext}$major'
14788 hardcode_into_libs=yes
14789 if test "$host_cpu" = ia64; then
14790 # AIX 5 supports IA64
14791 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14792 shlibpath_var=LD_LIBRARY_PATH
14794 # With GCC up to 2.95.x, collect2 would create an import file
14795 # for dependence libraries. The import file would start with
14796 # the line `#! .'. This would cause the generated library to
14797 # depend on `.', always an invalid library. This was fixed in
14798 # development snapshots of GCC prior to 3.0.
14800 aix4 | aix4.[01] | aix4.[01].*)
14801 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14803 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14806 can_build_shared=no
14810 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14811 # soname into executable. Probably we can add versioning support to
14812 # collect2, so additional links can be useful in future.
14813 if test "$aix_use_runtimelinking" = yes; then
14814 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14815 # instead of lib<name>.a to let people know that these are not
14816 # typical AIX shared libraries.
14817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14819 # We preserve .a as extension for shared libraries through AIX4.2
14820 # and later when we are not doing run time linking.
14821 library_names_spec='${libname}${release}.a $libname.a'
14822 soname_spec='${libname}${release}${shared_ext}$major'
14824 shlibpath_var=LIBPATH
14829 library_names_spec='$libname.ixlibrary $libname.a'
14830 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14831 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'
14835 library_names_spec='${libname}${shared_ext}'
14836 dynamic_linker="$host_os ld.so"
14837 shlibpath_var=LIBRARY_PATH
14843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14844 soname_spec='${libname}${release}${shared_ext}$major'
14845 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14846 shlibpath_var=LD_LIBRARY_PATH
14847 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14848 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14849 # the default ld.so.conf also contains /usr/contrib/lib and
14850 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14851 # libtool to hard-code these into programs
14854 cygwin* | mingw* | pw32*)
14855 version_type=windows
14860 case $GCC,$host_os in
14861 yes,cygwin* | yes,mingw* | yes,pw32*)
14862 library_names_spec='$libname.dll.a'
14863 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14864 postinstall_cmds='base_file=`basename \${file}`~
14865 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14866 dldir=$destdir/`dirname \$dlpath`~
14867 test -d \$dldir || mkdir -p \$dldir~
14868 $install_prog $dir/$dlname \$dldir/$dlname'
14869 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14870 dlpath=$dir/\$dldll~
14872 shlibpath_overrides_runpath=yes
14876 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14877 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14878 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14881 # MinGW DLLs use traditional 'lib' prefix
14882 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14883 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14884 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14885 # It is most probably a Windows format PATH printed by
14886 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14887 # path with ; separators, and with drive letters. We can handle the
14888 # drive letters (cygwin fileutils understands them), so leave them,
14889 # especially as we might pass files found there to a mingw objdump,
14890 # which wouldn't understand a cygwinified path. Ahh.
14891 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14893 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14897 # pw32 DLLs use 'pw' prefix rather than 'lib'
14898 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14904 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14907 dynamic_linker='Win32 ld.exe'
14908 # FIXME: first we should search . and the directory the executable is in
14912 darwin* | rhapsody*)
14913 dynamic_linker="$host_os dyld"
14914 version_type=darwin
14917 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14918 soname_spec='${libname}${release}${major}$shared_ext'
14919 shlibpath_overrides_runpath=yes
14920 shlibpath_var=DYLD_LIBRARY_PATH
14921 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14922 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14923 if test "$GCC" = yes; then
14924 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14926 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14928 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14936 soname_spec='${libname}${release}${shared_ext}$major'
14937 shlibpath_var=LD_LIBRARY_PATH
14948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14949 soname_spec='${libname}${release}${shared_ext}$major'
14950 shlibpath_var=LD_LIBRARY_PATH
14951 shlibpath_overrides_runpath=no
14952 hardcode_into_libs=yes
14953 dynamic_linker='GNU ld.so'
14957 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14958 version_type=freebsd-$objformat
14959 case $version_type in
14961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14966 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14970 shlibpath_var=LD_LIBRARY_PATH
14973 shlibpath_overrides_runpath=yes
14975 freebsd3.01* | freebsdelf3.01*)
14976 shlibpath_overrides_runpath=yes
14977 hardcode_into_libs=yes
14980 shlibpath_overrides_runpath=no
14981 hardcode_into_libs=yes
14990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14991 soname_spec='${libname}${release}${shared_ext}$major'
14992 shlibpath_var=LD_LIBRARY_PATH
14993 hardcode_into_libs=yes
14996 hpux9* | hpux10* | hpux11*)
14997 # Give a soname corresponding to the major version so that dld.sl refuses to
14998 # link against other versions.
15002 case "$host_cpu" in
15005 hardcode_into_libs=yes
15006 dynamic_linker="$host_os dld.so"
15007 shlibpath_var=LD_LIBRARY_PATH
15008 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15010 soname_spec='${libname}${release}${shared_ext}$major'
15011 if test "X$HPUX_IA64_MODE" = X32; then
15012 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15014 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15016 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15020 hardcode_into_libs=yes
15021 dynamic_linker="$host_os dld.sl"
15022 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15023 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15025 soname_spec='${libname}${release}${shared_ext}$major'
15026 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15027 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15031 dynamic_linker="$host_os dld.sl"
15032 shlibpath_var=SHLIB_PATH
15033 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15035 soname_spec='${libname}${release}${shared_ext}$major'
15038 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15039 postinstall_cmds='chmod 555 $lib'
15042 irix5* | irix6* | nonstopux*)
15044 nonstopux*) version_type=nonstopux ;;
15046 if test "$lt_cv_prog_gnu_ld" = yes; then
15054 soname_spec='${libname}${release}${shared_ext}$major'
15055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15057 irix5* | nonstopux*)
15058 libsuff= shlibsuff=
15061 case $LD in # libtool.m4 will add one of these switches to LD
15062 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15063 libsuff= shlibsuff= libmagic=32-bit;;
15064 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15065 libsuff=32 shlibsuff=N32 libmagic=N32;;
15066 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15067 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15068 *) libsuff= shlibsuff= libmagic=never-match;;
15072 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15073 shlibpath_overrides_runpath=no
15074 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15075 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15076 hardcode_into_libs=yes
15079 # No shared lib support for Linux oldld, aout, or coff.
15080 linux*oldld* | linux*aout* | linux*coff*)
15084 # This must be Linux ELF.
15089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15090 soname_spec='${libname}${release}${shared_ext}$major'
15091 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15093 if test "x$LINUX_64_MODE" = x64; then
15094 # Some platforms are per default 64-bit, so there's no /lib64
15095 if test -d /lib64; then
15099 shlibpath_var=LD_LIBRARY_PATH
15100 shlibpath_overrides_runpath=no
15101 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
15102 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15103 # This implies no fast_install, which is unacceptable.
15104 # Some rework will be needed to allow for fast_install
15105 # before this can be enabled.
15106 hardcode_into_libs=yes
15108 # We used to test for /lib/ld.so.1 and disable shared libraries on
15109 # powerpc, because MkLinux only supported shared libraries with the
15110 # GNU dynamic linker. Since this was broken with cross compilers,
15111 # most powerpc-linux boxes support dynamic linking these days and
15112 # people can always --disable-shared, the test was removed, and we
15113 # assume the GNU/Linux dynamic linker is in use.
15114 dynamic_linker='GNU/Linux ld.so'
15121 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15123 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15124 dynamic_linker='NetBSD (a.out) ld.so'
15126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
15127 soname_spec='${libname}${release}${shared_ext}$major'
15128 dynamic_linker='NetBSD ld.elf_so'
15130 shlibpath_var=LD_LIBRARY_PATH
15131 shlibpath_overrides_runpath=yes
15132 hardcode_into_libs=yes
15137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15138 shlibpath_var=LD_LIBRARY_PATH
15139 shlibpath_overrides_runpath=yes
15146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15147 soname_spec='${libname}${release}${shared_ext}$major'
15148 shlibpath_var=LD_LIBRARY_PATH
15149 shlibpath_overrides_runpath=yes
15156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15157 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15158 shlibpath_var=LD_LIBRARY_PATH
15159 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15161 openbsd2.[89] | openbsd2.[89].*)
15162 shlibpath_overrides_runpath=no
15165 shlibpath_overrides_runpath=yes
15169 shlibpath_overrides_runpath=yes
15174 libname_spec='$name'
15177 library_names_spec='$libname${shared_ext} $libname.a'
15178 dynamic_linker='OS/2 ld.exe'
15179 shlibpath_var=LIBPATH
15182 osf3* | osf4* | osf5*)
15186 soname_spec='${libname}${release}${shared_ext}$major'
15187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15188 shlibpath_var=LD_LIBRARY_PATH
15189 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15190 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15195 soname_spec='${libname}${release}${shared_ext}$major'
15196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15197 shlibpath_var=LD_LIBRARY_PATH
15204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15205 soname_spec='${libname}${release}${shared_ext}$major'
15206 shlibpath_var=LD_LIBRARY_PATH
15207 shlibpath_overrides_runpath=yes
15208 hardcode_into_libs=yes
15209 # ldd complains unless libraries are executable
15210 postinstall_cmds='chmod +x $lib'
15215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15216 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15217 shlibpath_var=LD_LIBRARY_PATH
15218 shlibpath_overrides_runpath=yes
15219 if test "$with_gnu_ld" = yes; then
15225 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15228 soname_spec='${libname}${release}${shared_ext}$major'
15229 shlibpath_var=LD_LIBRARY_PATH
15230 case $host_vendor in
15232 shlibpath_overrides_runpath=no
15234 export_dynamic_flag_spec='${wl}-Blargedynsym'
15235 runpath_var=LD_RUN_PATH
15243 shlibpath_overrides_runpath=no
15244 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15250 if test -d /usr/nec ;then
15252 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15253 soname_spec='$libname${shared_ext}.$major'
15254 shlibpath_var=LD_LIBRARY_PATH
15260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15261 soname_spec='${libname}${release}${shared_ext}$major'
15262 shlibpath_var=LD_LIBRARY_PATH
15269 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15270 echo "${ECHO_T}$dynamic_linker" >&6; }
15271 test "$dynamic_linker" = no && can_build_shared=no
15273 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15274 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15275 hardcode_action_CXX=
15276 if test -n "$hardcode_libdir_flag_spec_CXX" || \
15277 test -n "$runpath_var CXX" || \
15278 test "X$hardcode_automatic_CXX"="Xyes" ; then
15280 # We can hardcode non-existant directories.
15281 if test "$hardcode_direct_CXX" != no &&
15282 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15283 # have to relink, otherwise we might link with an installed library
15284 # when we should be linking with a yet-to-be-installed one
15285 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15286 test "$hardcode_minus_L_CXX" != no; then
15287 # Linking always hardcodes the temporary library directory.
15288 hardcode_action_CXX=relink
15290 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15291 hardcode_action_CXX=immediate
15294 # We cannot hardcode anything, or else we can only hardcode existing
15296 hardcode_action_CXX=unsupported
15298 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15299 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15301 if test "$hardcode_action_CXX" = relink; then
15302 # Fast installation is not supported
15303 enable_fast_install=no
15304 elif test "$shlibpath_overrides_runpath" = yes ||
15305 test "$enable_shared" = no; then
15306 # Fast installation is not necessary
15307 enable_fast_install=needless
15312 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15313 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
15314 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15315 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15316 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15317 { echo "$as_me:$LINENO: result: yes" >&5
15318 echo "${ECHO_T}yes" >&6; }
15320 # FIXME - insert some real tests, host_os isn't really good enough
15323 if test -n "$STRIP" ; then
15324 striplib="$STRIP -x"
15325 { echo "$as_me:$LINENO: result: yes" >&5
15326 echo "${ECHO_T}yes" >&6; }
15328 { echo "$as_me:$LINENO: result: no" >&5
15329 echo "${ECHO_T}no" >&6; }
15333 { echo "$as_me:$LINENO: result: no" >&5
15334 echo "${ECHO_T}no" >&6; }
15339 if test "x$enable_dlopen" != xyes; then
15340 enable_dlopen=unknown
15341 enable_dlopen_self=unknown
15342 enable_dlopen_self_static=unknown
15349 lt_cv_dlopen="load_add_on"
15351 lt_cv_dlopen_self=yes
15355 lt_cv_dlopen="LoadLibrary"
15360 lt_cv_dlopen="dlopen"
15365 # if libdl is installed we need to link against it
15366 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15367 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
15368 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15369 echo $ECHO_N "(cached) $ECHO_C" >&6
15371 ac_check_lib_save_LIBS=$LIBS
15373 cat >conftest.$ac_ext <<_ACEOF
15376 cat confdefs.h >>conftest.$ac_ext
15377 cat >>conftest.$ac_ext <<_ACEOF
15378 /* end confdefs.h. */
15380 /* Override any GCC internal prototype to avoid an error.
15381 Use char because int might match the return type of a GCC
15382 builtin and then its argument prototype would still apply. */
15395 rm -f conftest.$ac_objext conftest$ac_exeext
15396 if { (ac_try="$ac_link"
15397 case "(($ac_try" in
15398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15399 *) ac_try_echo=$ac_try;;
15401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15402 (eval "$ac_link") 2>conftest.er1
15404 grep -v '^ *+' conftest.er1 >conftest.err
15406 cat conftest.err >&5
15407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15408 (exit $ac_status); } && {
15409 test -z "$ac_cxx_werror_flag" ||
15410 test ! -s conftest.err
15411 } && test -s conftest$ac_exeext &&
15412 $as_test_x conftest$ac_exeext; then
15413 ac_cv_lib_dl_dlopen=yes
15415 echo "$as_me: failed program was:" >&5
15416 sed 's/^/| /' conftest.$ac_ext >&5
15418 ac_cv_lib_dl_dlopen=no
15421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15422 conftest$ac_exeext conftest.$ac_ext
15423 LIBS=$ac_check_lib_save_LIBS
15425 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15426 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
15427 if test $ac_cv_lib_dl_dlopen = yes; then
15428 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15431 lt_cv_dlopen="dyld"
15433 lt_cv_dlopen_self=yes
15440 { echo "$as_me:$LINENO: checking for shl_load" >&5
15441 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
15442 if test "${ac_cv_func_shl_load+set}" = set; then
15443 echo $ECHO_N "(cached) $ECHO_C" >&6
15445 cat >conftest.$ac_ext <<_ACEOF
15448 cat confdefs.h >>conftest.$ac_ext
15449 cat >>conftest.$ac_ext <<_ACEOF
15450 /* end confdefs.h. */
15451 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
15452 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15453 #define shl_load innocuous_shl_load
15455 /* System header to define __stub macros and hopefully few prototypes,
15456 which can conflict with char shl_load (); below.
15457 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15458 <limits.h> exists even on freestanding compilers. */
15461 # include <limits.h>
15463 # include <assert.h>
15468 /* Override any GCC internal prototype to avoid an error.
15469 Use char because int might match the return type of a GCC
15470 builtin and then its argument prototype would still apply. */
15475 /* The GNU C library defines this for functions which it implements
15476 to always fail with ENOSYS. Some functions are actually named
15477 something starting with __ and the normal name is an alias. */
15478 #if defined __stub_shl_load || defined __stub___shl_load
15485 return shl_load ();
15490 rm -f conftest.$ac_objext conftest$ac_exeext
15491 if { (ac_try="$ac_link"
15492 case "(($ac_try" in
15493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15494 *) ac_try_echo=$ac_try;;
15496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15497 (eval "$ac_link") 2>conftest.er1
15499 grep -v '^ *+' conftest.er1 >conftest.err
15501 cat conftest.err >&5
15502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503 (exit $ac_status); } && {
15504 test -z "$ac_cxx_werror_flag" ||
15505 test ! -s conftest.err
15506 } && test -s conftest$ac_exeext &&
15507 $as_test_x conftest$ac_exeext; then
15508 ac_cv_func_shl_load=yes
15510 echo "$as_me: failed program was:" >&5
15511 sed 's/^/| /' conftest.$ac_ext >&5
15513 ac_cv_func_shl_load=no
15516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15517 conftest$ac_exeext conftest.$ac_ext
15519 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
15520 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
15521 if test $ac_cv_func_shl_load = yes; then
15522 lt_cv_dlopen="shl_load"
15524 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
15525 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
15526 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
15527 echo $ECHO_N "(cached) $ECHO_C" >&6
15529 ac_check_lib_save_LIBS=$LIBS
15531 cat >conftest.$ac_ext <<_ACEOF
15534 cat confdefs.h >>conftest.$ac_ext
15535 cat >>conftest.$ac_ext <<_ACEOF
15536 /* end confdefs.h. */
15538 /* Override any GCC internal prototype to avoid an error.
15539 Use char because int might match the return type of a GCC
15540 builtin and then its argument prototype would still apply. */
15548 return shl_load ();
15553 rm -f conftest.$ac_objext conftest$ac_exeext
15554 if { (ac_try="$ac_link"
15555 case "(($ac_try" in
15556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15557 *) ac_try_echo=$ac_try;;
15559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15560 (eval "$ac_link") 2>conftest.er1
15562 grep -v '^ *+' conftest.er1 >conftest.err
15564 cat conftest.err >&5
15565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15566 (exit $ac_status); } && {
15567 test -z "$ac_cxx_werror_flag" ||
15568 test ! -s conftest.err
15569 } && test -s conftest$ac_exeext &&
15570 $as_test_x conftest$ac_exeext; then
15571 ac_cv_lib_dld_shl_load=yes
15573 echo "$as_me: failed program was:" >&5
15574 sed 's/^/| /' conftest.$ac_ext >&5
15576 ac_cv_lib_dld_shl_load=no
15579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15580 conftest$ac_exeext conftest.$ac_ext
15581 LIBS=$ac_check_lib_save_LIBS
15583 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
15584 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
15585 if test $ac_cv_lib_dld_shl_load = yes; then
15586 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
15588 { echo "$as_me:$LINENO: checking for dlopen" >&5
15589 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
15590 if test "${ac_cv_func_dlopen+set}" = set; then
15591 echo $ECHO_N "(cached) $ECHO_C" >&6
15593 cat >conftest.$ac_ext <<_ACEOF
15596 cat confdefs.h >>conftest.$ac_ext
15597 cat >>conftest.$ac_ext <<_ACEOF
15598 /* end confdefs.h. */
15599 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
15600 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15601 #define dlopen innocuous_dlopen
15603 /* System header to define __stub macros and hopefully few prototypes,
15604 which can conflict with char dlopen (); below.
15605 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15606 <limits.h> exists even on freestanding compilers. */
15609 # include <limits.h>
15611 # include <assert.h>
15616 /* Override any GCC internal prototype to avoid an error.
15617 Use char because int might match the return type of a GCC
15618 builtin and then its argument prototype would still apply. */
15623 /* The GNU C library defines this for functions which it implements
15624 to always fail with ENOSYS. Some functions are actually named
15625 something starting with __ and the normal name is an alias. */
15626 #if defined __stub_dlopen || defined __stub___dlopen
15638 rm -f conftest.$ac_objext conftest$ac_exeext
15639 if { (ac_try="$ac_link"
15640 case "(($ac_try" in
15641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15642 *) ac_try_echo=$ac_try;;
15644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15645 (eval "$ac_link") 2>conftest.er1
15647 grep -v '^ *+' conftest.er1 >conftest.err
15649 cat conftest.err >&5
15650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15651 (exit $ac_status); } && {
15652 test -z "$ac_cxx_werror_flag" ||
15653 test ! -s conftest.err
15654 } && test -s conftest$ac_exeext &&
15655 $as_test_x conftest$ac_exeext; then
15656 ac_cv_func_dlopen=yes
15658 echo "$as_me: failed program was:" >&5
15659 sed 's/^/| /' conftest.$ac_ext >&5
15661 ac_cv_func_dlopen=no
15664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15665 conftest$ac_exeext conftest.$ac_ext
15667 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
15668 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
15669 if test $ac_cv_func_dlopen = yes; then
15670 lt_cv_dlopen="dlopen"
15672 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15673 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
15674 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15675 echo $ECHO_N "(cached) $ECHO_C" >&6
15677 ac_check_lib_save_LIBS=$LIBS
15679 cat >conftest.$ac_ext <<_ACEOF
15682 cat confdefs.h >>conftest.$ac_ext
15683 cat >>conftest.$ac_ext <<_ACEOF
15684 /* end confdefs.h. */
15686 /* Override any GCC internal prototype to avoid an error.
15687 Use char because int might match the return type of a GCC
15688 builtin and then its argument prototype would still apply. */
15701 rm -f conftest.$ac_objext conftest$ac_exeext
15702 if { (ac_try="$ac_link"
15703 case "(($ac_try" in
15704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15705 *) ac_try_echo=$ac_try;;
15707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15708 (eval "$ac_link") 2>conftest.er1
15710 grep -v '^ *+' conftest.er1 >conftest.err
15712 cat conftest.err >&5
15713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15714 (exit $ac_status); } && {
15715 test -z "$ac_cxx_werror_flag" ||
15716 test ! -s conftest.err
15717 } && test -s conftest$ac_exeext &&
15718 $as_test_x conftest$ac_exeext; then
15719 ac_cv_lib_dl_dlopen=yes
15721 echo "$as_me: failed program was:" >&5
15722 sed 's/^/| /' conftest.$ac_ext >&5
15724 ac_cv_lib_dl_dlopen=no
15727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15728 conftest$ac_exeext conftest.$ac_ext
15729 LIBS=$ac_check_lib_save_LIBS
15731 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15732 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
15733 if test $ac_cv_lib_dl_dlopen = yes; then
15734 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15736 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
15737 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
15738 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
15739 echo $ECHO_N "(cached) $ECHO_C" >&6
15741 ac_check_lib_save_LIBS=$LIBS
15742 LIBS="-lsvld $LIBS"
15743 cat >conftest.$ac_ext <<_ACEOF
15746 cat confdefs.h >>conftest.$ac_ext
15747 cat >>conftest.$ac_ext <<_ACEOF
15748 /* end confdefs.h. */
15750 /* Override any GCC internal prototype to avoid an error.
15751 Use char because int might match the return type of a GCC
15752 builtin and then its argument prototype would still apply. */
15765 rm -f conftest.$ac_objext conftest$ac_exeext
15766 if { (ac_try="$ac_link"
15767 case "(($ac_try" in
15768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15769 *) ac_try_echo=$ac_try;;
15771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15772 (eval "$ac_link") 2>conftest.er1
15774 grep -v '^ *+' conftest.er1 >conftest.err
15776 cat conftest.err >&5
15777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778 (exit $ac_status); } && {
15779 test -z "$ac_cxx_werror_flag" ||
15780 test ! -s conftest.err
15781 } && test -s conftest$ac_exeext &&
15782 $as_test_x conftest$ac_exeext; then
15783 ac_cv_lib_svld_dlopen=yes
15785 echo "$as_me: failed program was:" >&5
15786 sed 's/^/| /' conftest.$ac_ext >&5
15788 ac_cv_lib_svld_dlopen=no
15791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15792 conftest$ac_exeext conftest.$ac_ext
15793 LIBS=$ac_check_lib_save_LIBS
15795 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
15796 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
15797 if test $ac_cv_lib_svld_dlopen = yes; then
15798 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15800 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
15801 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
15802 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
15803 echo $ECHO_N "(cached) $ECHO_C" >&6
15805 ac_check_lib_save_LIBS=$LIBS
15807 cat >conftest.$ac_ext <<_ACEOF
15810 cat confdefs.h >>conftest.$ac_ext
15811 cat >>conftest.$ac_ext <<_ACEOF
15812 /* end confdefs.h. */
15814 /* Override any GCC internal prototype to avoid an error.
15815 Use char because int might match the return type of a GCC
15816 builtin and then its argument prototype would still apply. */
15824 return dld_link ();
15829 rm -f conftest.$ac_objext conftest$ac_exeext
15830 if { (ac_try="$ac_link"
15831 case "(($ac_try" in
15832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15833 *) ac_try_echo=$ac_try;;
15835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15836 (eval "$ac_link") 2>conftest.er1
15838 grep -v '^ *+' conftest.er1 >conftest.err
15840 cat conftest.err >&5
15841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15842 (exit $ac_status); } && {
15843 test -z "$ac_cxx_werror_flag" ||
15844 test ! -s conftest.err
15845 } && test -s conftest$ac_exeext &&
15846 $as_test_x conftest$ac_exeext; then
15847 ac_cv_lib_dld_dld_link=yes
15849 echo "$as_me: failed program was:" >&5
15850 sed 's/^/| /' conftest.$ac_ext >&5
15852 ac_cv_lib_dld_dld_link=no
15855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15856 conftest$ac_exeext conftest.$ac_ext
15857 LIBS=$ac_check_lib_save_LIBS
15859 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
15860 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
15861 if test $ac_cv_lib_dld_dld_link = yes; then
15862 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
15883 if test "x$lt_cv_dlopen" != xno; then
15889 case $lt_cv_dlopen in
15891 save_CPPFLAGS="$CPPFLAGS"
15892 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15894 save_LDFLAGS="$LDFLAGS"
15895 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15898 LIBS="$lt_cv_dlopen_libs $LIBS"
15900 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
15901 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
15902 if test "${lt_cv_dlopen_self+set}" = set; then
15903 echo $ECHO_N "(cached) $ECHO_C" >&6
15905 if test "$cross_compiling" = yes; then :
15906 lt_cv_dlopen_self=cross
15908 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15909 lt_status=$lt_dlunknown
15910 cat > conftest.$ac_ext <<EOF
15911 #line 15911 "configure"
15912 #include "confdefs.h"
15921 # define LT_DLGLOBAL RTLD_GLOBAL
15924 # define LT_DLGLOBAL DL_GLOBAL
15926 # define LT_DLGLOBAL 0
15930 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15931 find out it does not work in some platform. */
15932 #ifndef LT_DLLAZY_OR_NOW
15934 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15937 # define LT_DLLAZY_OR_NOW DL_LAZY
15940 # define LT_DLLAZY_OR_NOW RTLD_NOW
15943 # define LT_DLLAZY_OR_NOW DL_NOW
15945 # define LT_DLLAZY_OR_NOW 0
15953 extern "C" void exit (int);
15956 void fnord() { int i=42;}
15959 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15960 int status = $lt_dlunknown;
15964 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15965 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15966 /* dlclose (self); */
15972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15973 (eval $ac_link) 2>&5
15975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15976 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
15977 (./conftest; exit; ) 2>/dev/null
15979 case x$lt_status in
15980 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15981 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15982 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
15985 # compilation failed
15986 lt_cv_dlopen_self=no
15993 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
15994 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
15996 if test "x$lt_cv_dlopen_self" = xyes; then
15997 LDFLAGS="$LDFLAGS $link_static_flag"
15998 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
15999 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
16000 if test "${lt_cv_dlopen_self_static+set}" = set; then
16001 echo $ECHO_N "(cached) $ECHO_C" >&6
16003 if test "$cross_compiling" = yes; then :
16004 lt_cv_dlopen_self_static=cross
16006 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16007 lt_status=$lt_dlunknown
16008 cat > conftest.$ac_ext <<EOF
16009 #line 16009 "configure"
16010 #include "confdefs.h"
16019 # define LT_DLGLOBAL RTLD_GLOBAL
16022 # define LT_DLGLOBAL DL_GLOBAL
16024 # define LT_DLGLOBAL 0
16028 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16029 find out it does not work in some platform. */
16030 #ifndef LT_DLLAZY_OR_NOW
16032 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16035 # define LT_DLLAZY_OR_NOW DL_LAZY
16038 # define LT_DLLAZY_OR_NOW RTLD_NOW
16041 # define LT_DLLAZY_OR_NOW DL_NOW
16043 # define LT_DLLAZY_OR_NOW 0
16051 extern "C" void exit (int);
16054 void fnord() { int i=42;}
16057 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16058 int status = $lt_dlunknown;
16062 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16063 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16064 /* dlclose (self); */
16070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16071 (eval $ac_link) 2>&5
16073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16074 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16075 (./conftest; exit; ) 2>/dev/null
16077 case x$lt_status in
16078 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16079 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16080 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
16083 # compilation failed
16084 lt_cv_dlopen_self_static=no
16091 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
16092 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
16095 CPPFLAGS="$save_CPPFLAGS"
16096 LDFLAGS="$save_LDFLAGS"
16101 case $lt_cv_dlopen_self in
16102 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16103 *) enable_dlopen_self=unknown ;;
16106 case $lt_cv_dlopen_self_static in
16107 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16108 *) enable_dlopen_self_static=unknown ;;
16113 # The else clause should only fire when bootstrapping the
16114 # libtool distribution, otherwise you forgot to ship ltmain.sh
16115 # with your package, and you will get complaints that there are
16116 # no rules to generate ltmain.sh.
16117 if test -f "$ltmain"; then
16118 # See if we are running on zsh, and set the options which allow our commands through
16119 # without removal of \ escapes.
16120 if test -n "${ZSH_VERSION+set}" ; then
16121 setopt NO_GLOB_SUBST
16123 # Now quote all the things that may contain metacharacters while being
16124 # careful not to overquote the AC_SUBSTed values. We take copies of the
16125 # variables and quote the copies for generation of the libtool script.
16126 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
16127 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16128 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16129 deplibs_check_method reload_flag reload_cmds need_locks \
16130 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16131 lt_cv_sys_global_symbol_to_c_name_address \
16132 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16133 old_postinstall_cmds old_postuninstall_cmds \
16137 lt_prog_compiler_wl_CXX \
16138 lt_prog_compiler_pic_CXX \
16139 lt_prog_compiler_static_CXX \
16140 lt_prog_compiler_no_builtin_flag_CXX \
16141 export_dynamic_flag_spec_CXX \
16142 thread_safe_flag_spec_CXX \
16143 whole_archive_flag_spec_CXX \
16144 enable_shared_with_static_runtimes_CXX \
16145 old_archive_cmds_CXX \
16146 old_archive_from_new_cmds_CXX \
16147 predep_objects_CXX \
16148 postdep_objects_CXX \
16151 compiler_lib_search_path_CXX \
16153 archive_expsym_cmds_CXX \
16154 postinstall_cmds_CXX \
16155 postuninstall_cmds_CXX \
16156 old_archive_from_expsyms_cmds_CXX \
16157 allow_undefined_flag_CXX \
16158 no_undefined_flag_CXX \
16159 export_symbols_cmds_CXX \
16160 hardcode_libdir_flag_spec_CXX \
16161 hardcode_libdir_flag_spec_ld_CXX \
16162 hardcode_libdir_separator_CXX \
16163 hardcode_automatic_CXX \
16165 module_expsym_cmds_CXX \
16166 lt_cv_prog_compiler_c_o_CXX \
16167 exclude_expsyms_CXX \
16168 include_expsyms_CXX; do
16171 old_archive_cmds_CXX | \
16172 old_archive_from_new_cmds_CXX | \
16173 archive_cmds_CXX | \
16174 archive_expsym_cmds_CXX | \
16175 module_cmds_CXX | \
16176 module_expsym_cmds_CXX | \
16177 old_archive_from_expsyms_cmds_CXX | \
16178 export_symbols_cmds_CXX | \
16179 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16180 postinstall_cmds | postuninstall_cmds | \
16181 old_postinstall_cmds | old_postuninstall_cmds | \
16182 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16183 # Double-quote double-evaled strings.
16184 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16187 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16193 *'\$0 --fallback-echo"')
16194 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16200 cat <<__EOF__ >> "$cfgfile"
16201 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16203 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16205 # Shell to use when invoking shell scripts.
16208 # Whether or not to build shared libraries.
16209 build_libtool_libs=$enable_shared
16211 # Whether or not to build static libraries.
16212 build_old_libs=$enable_static
16214 # Whether or not to add -lc for building shared libraries.
16215 build_libtool_need_lc=$archive_cmds_need_lc_CXX
16217 # Whether or not to disallow shared libs when runtime libs are static
16218 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
16220 # Whether or not to optimize for fast installation.
16221 fast_install=$enable_fast_install
16224 host_alias=$host_alias
16227 # An echo program that does not interpret backslashes.
16232 AR_FLAGS=$lt_AR_FLAGS
16237 # A language-specific compiler.
16238 CC=$lt_compiler_CXX
16240 # Is the compiler the GNU C compiler?
16246 # The linker used to build libraries.
16249 # Whether we need hard or soft links.
16252 # A BSD-compatible nm program.
16255 # A symbol stripping program
16258 # Used to examine libraries when file_magic_cmd begins "file"
16259 MAGIC_CMD=$MAGIC_CMD
16261 # Used on cygwin: DLL creation program.
16264 # Used on cygwin: object dumper.
16267 # Used on cygwin: assembler.
16270 # The name of the directory that contains temporary libtool files.
16273 # How to create reloadable object files.
16274 reload_flag=$lt_reload_flag
16275 reload_cmds=$lt_reload_cmds
16277 # How to pass a linker flag through the compiler.
16278 wl=$lt_lt_prog_compiler_wl_CXX
16280 # Object file suffix (normally "o").
16281 objext="$ac_objext"
16283 # Old archive suffix (normally "a").
16286 # Shared library suffix (normally ".so").
16289 # Executable file suffix (normally "").
16292 # Additional compiler flags for building library objects.
16293 pic_flag=$lt_lt_prog_compiler_pic_CXX
16296 # What is the maximum length of a command?
16297 max_cmd_len=$lt_cv_sys_max_cmd_len
16299 # Does compiler simultaneously support -c and -o options?
16300 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
16302 # Must we lock files when doing compilation ?
16303 need_locks=$lt_need_locks
16305 # Do we need the lib prefix for modules?
16306 need_lib_prefix=$need_lib_prefix
16308 # Do we need a version for libraries?
16309 need_version=$need_version
16311 # Whether dlopen is supported.
16312 dlopen_support=$enable_dlopen
16314 # Whether dlopen of programs is supported.
16315 dlopen_self=$enable_dlopen_self
16317 # Whether dlopen of statically linked programs is supported.
16318 dlopen_self_static=$enable_dlopen_self_static
16320 # Compiler flag to prevent dynamic linking.
16321 link_static_flag=$lt_lt_prog_compiler_static_CXX
16323 # Compiler flag to turn off builtin functions.
16324 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
16326 # Compiler flag to allow reflexive dlopens.
16327 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
16329 # Compiler flag to generate shared objects directly from archives.
16330 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
16332 # Compiler flag to generate thread-safe objects.
16333 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
16335 # Library versioning type.
16336 version_type=$version_type
16338 # Format of library name prefix.
16339 libname_spec=$lt_libname_spec
16341 # List of archive names. First name is the real one, the rest are links.
16342 # The last name is the one that the linker finds with -lNAME.
16343 library_names_spec=$lt_library_names_spec
16345 # The coded name of the library, if different from the real name.
16346 soname_spec=$lt_soname_spec
16348 # Commands used to build and install an old-style archive.
16350 old_archive_cmds=$lt_old_archive_cmds_CXX
16351 old_postinstall_cmds=$lt_old_postinstall_cmds
16352 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16354 # Create an old-style archive from a shared archive.
16355 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
16357 # Create a temporary old-style archive to link instead of a shared archive.
16358 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
16360 # Commands used to build and install a shared archive.
16361 archive_cmds=$lt_archive_cmds_CXX
16362 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
16363 postinstall_cmds=$lt_postinstall_cmds
16364 postuninstall_cmds=$lt_postuninstall_cmds
16366 # Commands used to build a loadable module (assumed same as above if empty)
16367 module_cmds=$lt_module_cmds_CXX
16368 module_expsym_cmds=$lt_module_expsym_cmds_CXX
16370 # Commands to strip libraries.
16371 old_striplib=$lt_old_striplib
16372 striplib=$lt_striplib
16374 # Dependencies to place before the objects being linked to create a
16376 predep_objects=$lt_predep_objects_CXX
16378 # Dependencies to place after the objects being linked to create a
16380 postdep_objects=$lt_postdep_objects_CXX
16382 # Dependencies to place before the objects being linked to create a
16384 predeps=$lt_predeps_CXX
16386 # Dependencies to place after the objects being linked to create a
16388 postdeps=$lt_postdeps_CXX
16390 # The library search path used internally by the compiler when linking
16391 # a shared library.
16392 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
16394 # Method to check whether dependent libraries are shared objects.
16395 deplibs_check_method=$lt_deplibs_check_method
16397 # Command to use when deplibs_check_method == file_magic.
16398 file_magic_cmd=$lt_file_magic_cmd
16400 # Flag that allows shared libraries with undefined symbols to be built.
16401 allow_undefined_flag=$lt_allow_undefined_flag_CXX
16403 # Flag that forces no undefined symbols.
16404 no_undefined_flag=$lt_no_undefined_flag_CXX
16406 # Commands used to finish a libtool library installation in a directory.
16407 finish_cmds=$lt_finish_cmds
16409 # Same as above, but a single script fragment to be evaled but not shown.
16410 finish_eval=$lt_finish_eval
16412 # Take the output of nm and produce a listing of raw symbols and C names.
16413 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16415 # Transform the output of nm in a proper C declaration
16416 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16418 # Transform the output of nm in a C name address pair
16419 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16421 # This is the shared library runtime path variable.
16422 runpath_var=$runpath_var
16424 # This is the shared library path variable.
16425 shlibpath_var=$shlibpath_var
16427 # Is shlibpath searched before the hard-coded library search path?
16428 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16430 # How to hardcode a shared library path into an executable.
16431 hardcode_action=$hardcode_action_CXX
16433 # Whether we should hardcode library paths into libraries.
16434 hardcode_into_libs=$hardcode_into_libs
16436 # Flag to hardcode \$libdir into a binary during linking.
16437 # This must work even if \$libdir does not exist.
16438 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
16440 # If ld is used when linking, flag to hardcode \$libdir into
16441 # a binary during linking. This must work even if \$libdir does
16443 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
16445 # Whether we need a single -rpath flag with a separated argument.
16446 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
16448 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16449 # resulting binary.
16450 hardcode_direct=$hardcode_direct_CXX
16452 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16453 # resulting binary.
16454 hardcode_minus_L=$hardcode_minus_L_CXX
16456 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16457 # the resulting binary.
16458 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
16460 # Set to yes if building a shared library automatically hardcodes DIR into the library
16461 # and all subsequent libraries and executables linked against it.
16462 hardcode_automatic=$hardcode_automatic_CXX
16464 # Variables whose values should be saved in libtool wrapper scripts and
16465 # restored at relink time.
16466 variables_saved_for_relink="$variables_saved_for_relink"
16468 # Whether libtool must link a program against all its dependency libraries.
16469 link_all_deplibs=$link_all_deplibs_CXX
16471 # Compile-time system search path for libraries
16472 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16474 # Run-time system search path for libraries
16475 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16477 # Fix the shell variable \$srcfile for the compiler.
16478 fix_srcfile_path="$fix_srcfile_path_CXX"
16480 # Set to yes if exported symbols are required.
16481 always_export_symbols=$always_export_symbols_CXX
16483 # The commands to list exported symbols.
16484 export_symbols_cmds=$lt_export_symbols_cmds_CXX
16486 # The commands to extract the exported symbol list from a shared archive.
16487 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16489 # Symbols that should not be listed in the preloaded symbols.
16490 exclude_expsyms=$lt_exclude_expsyms_CXX
16492 # Symbols that must always be exported.
16493 include_expsyms=$lt_include_expsyms_CXX
16495 # ### END LIBTOOL TAG CONFIG: $tagname
16501 # If there is no Makefile yet, we rely on a make rule to execute
16502 # `config.status --recheck' to rerun these tests and create the
16503 # libtool script then.
16504 test -f Makefile && make "$ltmain"
16509 ac_cpp='$CPP $CPPFLAGS'
16510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16518 with_gnu_ldcxx=$with_gnu_ld
16519 with_gnu_ld=$lt_save_with_gnu_ld
16520 lt_cv_path_LDCXX=$lt_cv_path_LD
16521 lt_cv_path_LD=$lt_save_path_LD
16522 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16523 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16531 if test -n "$F77" && test "X$F77" != "Xno"; then
16534 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
16535 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16536 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
16539 archive_cmds_need_lc_F77=no
16540 allow_undefined_flag_F77=
16541 always_export_symbols_F77=no
16542 archive_expsym_cmds_F77=
16543 export_dynamic_flag_spec_F77=
16544 hardcode_direct_F77=no
16545 hardcode_libdir_flag_spec_F77=
16546 hardcode_libdir_flag_spec_ld_F77=
16547 hardcode_libdir_separator_F77=
16548 hardcode_minus_L_F77=no
16549 hardcode_automatic_F77=no
16551 module_expsym_cmds_F77=
16552 link_all_deplibs_F77=unknown
16553 old_archive_cmds_F77=$old_archive_cmds
16554 no_undefined_flag_F77=
16555 whole_archive_flag_spec_F77=
16556 enable_shared_with_static_runtimes_F77=no
16558 # Source file extension for f77 test sources.
16561 # Object file extension for compiled f77 test sources.
16565 # Code to be used in simple compile tests
16566 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
16568 # Code to be used in simple link tests
16569 lt_simple_link_test_code=" program t\n end\n"
16571 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16573 # If no C compiler was specified, use CC.
16576 # Allow CC to be a program name with arguments.
16580 # Allow CC to be a program name with arguments.
16585 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
16587 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
16588 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
16589 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
16590 echo "${ECHO_T}$can_build_shared" >&6; }
16592 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
16593 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
16594 test "$can_build_shared" = "no" && enable_shared=no
16596 # On AIX, shared libraries and static libraries use the same namespace, and
16597 # are all built from PIC.
16600 test "$enable_shared" = yes && enable_static=no
16601 if test -n "$RANLIB"; then
16602 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16603 postinstall_cmds='$RANLIB $lib'
16607 test "$enable_shared" = yes && enable_static=no
16610 { echo "$as_me:$LINENO: result: $enable_shared" >&5
16611 echo "${ECHO_T}$enable_shared" >&6; }
16613 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
16614 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
16615 # Make sure either enable_shared or enable_static is yes.
16616 test "$enable_shared" = yes || enable_static=yes
16617 { echo "$as_me:$LINENO: result: $enable_static" >&5
16618 echo "${ECHO_T}$enable_static" >&6; }
16620 test "$ld_shlibs_F77" = no && can_build_shared=no
16625 lt_prog_compiler_wl_F77=
16626 lt_prog_compiler_pic_F77=
16627 lt_prog_compiler_static_F77=
16629 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16630 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16632 if test "$GCC" = yes; then
16633 lt_prog_compiler_wl_F77='-Wl,'
16634 lt_prog_compiler_static_F77='-static'
16638 # All AIX code is PIC.
16639 if test "$host_cpu" = ia64; then
16640 # AIX 5 now supports IA64 processor
16641 lt_prog_compiler_static_F77='-Bstatic'
16646 # FIXME: we need at least 68020 code to build shared libraries, but
16647 # adding the `-m68020' flag to GCC prevents building anything better,
16649 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
16652 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16653 # PIC is the default for these OSes.
16656 mingw* | pw32* | os2*)
16657 # This hack is so that the source file can tell whether it is being
16658 # built for inclusion in a dll (and should export symbols for example).
16659 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
16662 darwin* | rhapsody*)
16663 # PIC is the default on this platform
16664 # Common symbols not allowed in MH_DYLIB files
16665 lt_prog_compiler_pic_F77='-fno-common'
16669 # Just because we use GCC doesn't mean we suddenly get shared libraries
16670 # on systems that don't support them.
16671 lt_prog_compiler_can_build_shared_F77=no
16676 if test -d /usr/nec; then
16677 lt_prog_compiler_pic_F77=-Kconform_pic
16682 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16683 # not for PA HP-UX.
16684 case "$host_cpu" in
16689 lt_prog_compiler_pic_F77='-fPIC'
16695 lt_prog_compiler_pic_F77='-fPIC'
16699 # PORTME Check for flag to pass linker flags through the system compiler.
16702 lt_prog_compiler_wl_F77='-Wl,'
16703 if test "$host_cpu" = ia64; then
16704 # AIX 5 now supports IA64 processor
16705 lt_prog_compiler_static_F77='-Bstatic'
16707 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
16711 mingw* | pw32* | os2*)
16712 # This hack is so that the source file can tell whether it is being
16713 # built for inclusion in a dll (and should export symbols for example).
16714 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
16717 hpux9* | hpux10* | hpux11*)
16718 lt_prog_compiler_wl_F77='-Wl,'
16719 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16720 # not for PA HP-UX.
16721 case "$host_cpu" in
16726 lt_prog_compiler_pic_F77='+Z'
16729 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16730 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
16733 irix5* | irix6* | nonstopux*)
16734 lt_prog_compiler_wl_F77='-Wl,'
16735 # PIC (with -KPIC) is the default.
16736 lt_prog_compiler_static_F77='-non_shared'
16740 lt_prog_compiler_pic_F77='-KPIC'
16741 lt_prog_compiler_static_F77='-Bstatic'
16747 lt_prog_compiler_wl_F77='-Wl,'
16748 lt_prog_compiler_pic_F77='-KPIC'
16749 lt_prog_compiler_static_F77='-static'
16752 lt_prog_compiler_wl_F77='-Wl,'
16753 # All Alpha code is PIC.
16754 lt_prog_compiler_static_F77='-non_shared'
16759 osf3* | osf4* | osf5*)
16760 lt_prog_compiler_wl_F77='-Wl,'
16761 # All OSF/1 code is PIC.
16762 lt_prog_compiler_static_F77='-non_shared'
16766 lt_prog_compiler_pic_F77='-Kpic'
16767 lt_prog_compiler_static_F77='-dn'
16771 lt_prog_compiler_wl_F77='-Wl,'
16772 lt_prog_compiler_pic_F77='-KPIC'
16773 lt_prog_compiler_static_F77='-Bstatic'
16777 lt_prog_compiler_wl_F77='-Qoption ld '
16778 lt_prog_compiler_pic_F77='-PIC'
16779 lt_prog_compiler_static_F77='-Bstatic'
16782 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16783 lt_prog_compiler_wl_F77='-Wl,'
16784 lt_prog_compiler_pic_F77='-KPIC'
16785 lt_prog_compiler_static_F77='-Bstatic'
16789 if test -d /usr/nec ;then
16790 lt_prog_compiler_pic_F77='-Kconform_pic'
16791 lt_prog_compiler_static_F77='-Bstatic'
16796 lt_prog_compiler_pic_F77='-pic'
16797 lt_prog_compiler_static_F77='-Bstatic'
16801 lt_prog_compiler_can_build_shared_F77=no
16806 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
16807 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
16810 # Check to make sure the PIC flag actually works.
16812 if test -n "$lt_prog_compiler_pic_F77"; then
16814 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
16815 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
16816 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
16817 echo $ECHO_N "(cached) $ECHO_C" >&6
16819 lt_prog_compiler_pic_works_F77=no
16820 ac_outfile=conftest.$ac_objext
16821 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16822 lt_compiler_flag="$lt_prog_compiler_pic_F77"
16823 # Insert the option either (1) after the last *FLAGS variable, or
16824 # (2) before a word containing "conftest.", or (3) at the end.
16825 # Note that $ac_compile itself does not contain backslashes and begins
16826 # with a dollar sign (not a hyphen), so the echo should work correctly.
16827 # The option is referenced via a variable to avoid confusing sed.
16828 lt_compile=`echo "$ac_compile" | $SED \
16829 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16830 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16831 -e 's:$: $lt_compiler_flag:'`
16832 (eval echo "\"\$as_me:16832: $lt_compile\"" >&5)
16833 (eval "$lt_compile" 2>conftest.err)
16835 cat conftest.err >&5
16836 echo "$as_me:16836: \$? = $ac_status" >&5
16837 if (exit $ac_status) && test -s "$ac_outfile"; then
16838 # The compiler can only warn and ignore the option if not recognized
16839 # So say no if there are warnings
16840 if test ! -s conftest.err; then
16841 lt_prog_compiler_pic_works_F77=yes
16847 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
16848 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
16850 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
16851 case $lt_prog_compiler_pic_F77 in
16853 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
16856 lt_prog_compiler_pic_F77=
16857 lt_prog_compiler_can_build_shared_F77=no
16862 # For platforms which do not support PIC, -DPIC is meaningless:
16864 lt_prog_compiler_pic_F77=
16867 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
16871 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16872 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16873 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
16874 echo $ECHO_N "(cached) $ECHO_C" >&6
16876 lt_cv_prog_compiler_c_o_F77=no
16877 $rm -r conftest 2>/dev/null
16881 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16883 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
16884 # that will create temporary files in the current directory regardless of
16885 # the output directory. Thus, making CWD read-only will cause this test
16886 # to fail, enabling locking or at least warning the user not to do parallel
16890 lt_compiler_flag="-o out/conftest2.$ac_objext"
16891 # Insert the option either (1) after the last *FLAGS variable, or
16892 # (2) before a word containing "conftest.", or (3) at the end.
16893 # Note that $ac_compile itself does not contain backslashes and begins
16894 # with a dollar sign (not a hyphen), so the echo should work correctly.
16895 lt_compile=`echo "$ac_compile" | $SED \
16896 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16897 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16898 -e 's:$: $lt_compiler_flag:'`
16899 (eval echo "\"\$as_me:16899: $lt_compile\"" >&5)
16900 (eval "$lt_compile" 2>out/conftest.err)
16902 cat out/conftest.err >&5
16903 echo "$as_me:16903: \$? = $ac_status" >&5
16904 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16906 # The compiler can only warn and ignore the option if not recognized
16907 # So say no if there are warnings
16908 if test ! -s out/conftest.err; then
16909 lt_cv_prog_compiler_c_o_F77=yes
16913 $rm conftest* out/*
16920 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
16921 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
16924 hard_links="nottested"
16925 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
16926 # do not overwrite the value of need_locks provided by the user
16927 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16928 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16931 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16933 ln conftest.a conftest.b 2>&5 || hard_links=no
16934 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16935 { echo "$as_me:$LINENO: result: $hard_links" >&5
16936 echo "${ECHO_T}$hard_links" >&6; }
16937 if test "$hard_links" = no; then
16938 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16939 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16946 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16947 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16950 allow_undefined_flag_F77=
16951 enable_shared_with_static_runtimes_F77=no
16953 archive_expsym_cmds_F77=
16954 old_archive_From_new_cmds_F77=
16955 old_archive_from_expsyms_cmds_F77=
16956 export_dynamic_flag_spec_F77=
16957 whole_archive_flag_spec_F77=
16958 thread_safe_flag_spec_F77=
16959 hardcode_libdir_flag_spec_F77=
16960 hardcode_libdir_flag_spec_ld_F77=
16961 hardcode_libdir_separator_F77=
16962 hardcode_direct_F77=no
16963 hardcode_minus_L_F77=no
16964 hardcode_shlibpath_var_F77=unsupported
16965 link_all_deplibs_F77=unknown
16966 hardcode_automatic_F77=no
16968 module_expsym_cmds_F77=
16969 always_export_symbols_F77=no
16970 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16971 # include_expsyms should be a list of space-separated symbols to be *always*
16972 # included in the symbol list
16973 include_expsyms_F77=
16974 # exclude_expsyms can be an extended regexp of symbols to exclude
16975 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16976 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16977 # as well as any symbol that contains `d'.
16978 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
16979 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16980 # platforms (ab)use it in PIC code, but their linkers get confused if
16981 # the symbol is explicitly referenced. Since portable code cannot
16982 # rely on this symbol name, it's probably fine to never include it in
16983 # preloaded symbol tables.
16984 extract_expsyms_cmds=
16987 cygwin* | mingw* | pw32*)
16988 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16989 # When not using gcc, we currently assume that we are using
16990 # Microsoft Visual C++.
16991 if test "$GCC" != yes; then
17001 if test "$with_gnu_ld" = yes; then
17002 # If archive_cmds runs LD, not CC, wlarc should be empty
17005 # See if GNU ld supports shared libraries.
17007 aix3* | aix4* | aix5*)
17008 # On AIX/PPC, the GNU linker is very broken
17009 if test "$host_cpu" != ia64; then
17013 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17014 *** to be unable to reliably create shared libraries on AIX.
17015 *** Therefore, libtool is disabling shared libraries support. If you
17016 *** really care for shared libraries, you may want to modify your PATH
17017 *** so that a non-GNU linker is found, and then restart.
17024 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)'
17025 hardcode_libdir_flag_spec_F77='-L$libdir'
17026 hardcode_minus_L_F77=yes
17028 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17029 # that the semantics of dynamic libraries on AmigaOS, at least up
17030 # to version 4, is to share data among multiple programs linked
17031 # with the same dynamic library. Since this doesn't match the
17032 # behavior of shared libraries on other platforms, we can't use
17038 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17039 allow_undefined_flag_F77=unsupported
17040 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17041 # support --undefined. This deserves some investigation. FIXME
17042 archive_cmds_F77='$CC -nostart $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
17048 cygwin* | mingw* | pw32*)
17049 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
17050 # as there is no search path for DLLs.
17051 hardcode_libdir_flag_spec_F77='-L$libdir'
17052 allow_undefined_flag_F77=no
17053 always_export_symbols_F77=no
17054 enable_shared_with_static_runtimes_F77=yes
17055 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17057 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17058 archive_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17059 # If the export-symbols file already is a .def file (1st line
17060 # is EXPORTS), use it as is; otherwise, prepend...
17061 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17062 cp $export_symbols $output_objdir/$soname.def;
17064 echo EXPORTS > $output_objdir/$soname.def;
17065 cat $export_symbols >> $output_objdir/$soname.def;
17067 $CC -shared $output_objdir/$soname.def $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17074 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17075 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17078 archive_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
17079 archive_expsym_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17084 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17088 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17089 *** create shared libraries on Solaris systems. Therefore, libtool
17090 *** is disabling shared libraries support. We urge you to upgrade GNU
17091 *** binutils to release 2.9.1 or newer. Another option is to modify
17092 *** your PATH or compiler configuration so that the native linker is
17093 *** used, and then restart.
17096 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17097 archive_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
17098 archive_expsym_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17105 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17107 hardcode_direct_F77=yes
17108 hardcode_shlibpath_var_F77=no
17112 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17113 archive_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
17114 archive_expsym_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17121 if test "$ld_shlibs_F77" = yes; then
17122 runpath_var=LD_RUN_PATH
17123 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
17124 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
17125 # ancient GNU ld didn't support --whole-archive et. al.
17126 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17127 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17129 whole_archive_flag_spec_F77=
17133 # PORTME fill in a description of your system's linker (not GNU ld)
17136 allow_undefined_flag_F77=unsupported
17137 always_export_symbols_F77=yes
17138 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'
17139 # Note: this linker hardcodes the directories in LIBPATH if there
17140 # are no directories specified by -L.
17141 hardcode_minus_L_F77=yes
17142 if test "$GCC" = yes && test -z "$link_static_flag"; then
17143 # Neither direct hardcoding nor static linking is supported with a
17145 hardcode_direct_F77=unsupported
17150 if test "$host_cpu" = ia64; then
17151 # On IA64, the linker does run time linking by default, so we don't
17152 # have to do anything special.
17153 aix_use_runtimelinking=no
17154 exp_sym_flag='-Bexport'
17157 # If we're using GNU nm, then we don't want the "-C" option.
17158 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17159 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17160 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'
17162 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'
17165 # KDE requires run time linking. Make it the default.
17166 aix_use_runtimelinking=yes
17167 exp_sym_flag='-bexport'
17168 no_entry_flag='-bnoentry'
17171 # When large executables or shared objects are built, AIX ld can
17172 # have problems creating the table of contents. If linking a library
17173 # or program results in "error TOC overflow" add -mminimal-toc to
17174 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17175 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17177 archive_cmds_F77=''
17178 hardcode_direct_F77=yes
17179 hardcode_libdir_separator_F77=':'
17180 link_all_deplibs_F77=yes
17182 if test "$GCC" = yes; then
17183 case $host_os in aix4.012|aix4.012.*)
17184 # We only want to do this on AIX 4.2 and lower, the check
17185 # below for broken collect2 doesn't work under 4.3+
17186 collect2name=`${CC} -print-prog-name=collect2`
17187 if test -f "$collect2name" && \
17188 strings "$collect2name" | grep resolve_lib_name >/dev/null
17190 # We have reworked collect2
17191 hardcode_direct_F77=yes
17193 # We have old collect2
17194 hardcode_direct_F77=unsupported
17195 # It fails to find uninstalled libraries when the uninstalled
17196 # path is not listed in the libpath. Setting hardcode_minus_L
17197 # to unsupported forces relinking
17198 hardcode_minus_L_F77=yes
17199 hardcode_libdir_flag_spec_F77='-L$libdir'
17200 hardcode_libdir_separator_F77=
17203 shared_flag='-shared'
17206 if test "$host_cpu" = ia64; then
17207 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17208 # chokes on -Wl,-G. The following line is correct:
17211 if test "$aix_use_runtimelinking" = yes; then
17212 shared_flag='-qmkshrobj ${wl}-G'
17214 shared_flag='-qmkshrobj'
17219 # Let the compiler handle the export list.
17220 always_export_symbols_F77=no
17221 if test "$aix_use_runtimelinking" = yes; then
17222 # Warning - without using the other runtime loading flags (-brtl),
17223 # -berok will link without error, but may produce a broken library.
17224 allow_undefined_flag_F77='-berok'
17225 # Determine the default libpath from the value encoded in an empty executable.
17226 cat >conftest.$ac_ext <<_ACEOF
17231 rm -f conftest.$ac_objext conftest$ac_exeext
17232 if { (ac_try="$ac_link"
17233 case "(($ac_try" in
17234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17235 *) ac_try_echo=$ac_try;;
17237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17238 (eval "$ac_link") 2>conftest.er1
17240 grep -v '^ *+' conftest.er1 >conftest.err
17242 cat conftest.err >&5
17243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17244 (exit $ac_status); } && {
17245 test -z "$ac_f77_werror_flag" ||
17246 test ! -s conftest.err
17247 } && test -s conftest$ac_exeext &&
17248 $as_test_x conftest$ac_exeext; then
17250 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17252 # Check for a 64-bit object if we didn't find anything.
17253 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17256 echo "$as_me: failed program was:" >&5
17257 sed 's/^/| /' conftest.$ac_ext >&5
17262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17263 conftest$ac_exeext conftest.$ac_ext
17264 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17266 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
17267 archive_cmds_F77="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag"
17268 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17270 if test "$host_cpu" = ia64; then
17271 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
17272 allow_undefined_flag_F77="-z nodefs"
17273 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
17275 # Determine the default libpath from the value encoded in an empty executable.
17276 cat >conftest.$ac_ext <<_ACEOF
17281 rm -f conftest.$ac_objext conftest$ac_exeext
17282 if { (ac_try="$ac_link"
17283 case "(($ac_try" in
17284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17285 *) ac_try_echo=$ac_try;;
17287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17288 (eval "$ac_link") 2>conftest.er1
17290 grep -v '^ *+' conftest.er1 >conftest.err
17292 cat conftest.err >&5
17293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17294 (exit $ac_status); } && {
17295 test -z "$ac_f77_werror_flag" ||
17296 test ! -s conftest.err
17297 } && test -s conftest$ac_exeext &&
17298 $as_test_x conftest$ac_exeext; then
17300 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17302 # Check for a 64-bit object if we didn't find anything.
17303 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17306 echo "$as_me: failed program was:" >&5
17307 sed 's/^/| /' conftest.$ac_ext >&5
17312 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17313 conftest$ac_exeext conftest.$ac_ext
17314 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17316 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
17317 # Warning - without using the other run time loading flags,
17318 # -berok will link without error, but may produce a broken library.
17319 no_undefined_flag_F77=' ${wl}-bernotok'
17320 allow_undefined_flag_F77=' ${wl}-berok'
17321 # -bexpall does not export symbols beginning with underscore (_)
17322 always_export_symbols_F77=yes
17323 # Exported symbols can be pulled into shared objects from archives
17324 whole_archive_flag_spec_F77=' '
17325 archive_cmds_need_lc_F77=yes
17326 # This is similar to how AIX traditionally builds it's shared libraries.
17327 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17333 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)'
17334 hardcode_libdir_flag_spec_F77='-L$libdir'
17335 hardcode_minus_L_F77=yes
17336 # see comment about different semantics on the GNU ld section
17341 export_dynamic_flag_spec_F77=-rdynamic
17344 cygwin* | mingw* | pw32*)
17345 # When not using gcc, we currently assume that we are using
17346 # Microsoft Visual C++.
17347 # hardcode_libdir_flag_spec is actually meaningless, as there is
17348 # no search path for DLLs.
17349 hardcode_libdir_flag_spec_F77=' '
17350 allow_undefined_flag_F77=no
17351 # Tell ltmain to make .lib files, not .a files.
17353 # Tell ltmain to make .dll files, not .so files.
17355 # FIXME: Setting linknames here is a bad hack.
17356 archive_cmds_F77='$CC -o $lib $compiler_flags $libobjs `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17357 # The linker will automatically build a .lib file if we build a DLL.
17358 old_archive_From_new_cmds_F77='true'
17359 # FIXME: Should let the user specify the lib program.
17360 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
17361 fix_srcfile_path='`cygpath -w "$srcfile"`'
17362 enable_shared_with_static_runtimes_F77=yes
17365 darwin* | rhapsody*)
17366 if test "$GXX" = yes ; then
17367 archive_cmds_need_lc_F77=no
17369 rhapsody* | darwin1.[012])
17370 allow_undefined_flag_F77='-Wl,-undefined -Wl,suppress'
17373 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17374 allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
17376 case ${MACOSX_DEPLOYMENT_TARGET} in
17378 allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
17381 allow_undefined_flag='-Wl,-undefined -Wl,dynamic_lookup'
17387 lt_int_apple_cc_single_mod=no
17388 output_verbose_link_cmd='echo'
17389 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
17390 lt_int_apple_cc_single_mod=yes
17392 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17393 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring'
17395 archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring'
17397 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs'
17398 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17399 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17400 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17402 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17404 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 $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17405 hardcode_direct_F77=no
17406 hardcode_automatic_F77=yes
17407 hardcode_shlibpath_var_F77=unsupported
17408 whole_archive_flag_spec_F77='-all_load $convenience'
17409 link_all_deplibs_F77=yes
17416 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17417 hardcode_libdir_flag_spec_F77='-L$libdir'
17418 hardcode_shlibpath_var_F77=no
17425 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17426 # support. Future versions do this automatically, but an explicit c++rt0.o
17427 # does not break anything, and helps significantly (at the cost of a little
17430 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17431 hardcode_libdir_flag_spec_F77='-R$libdir'
17432 hardcode_direct_F77=yes
17433 hardcode_shlibpath_var_F77=no
17436 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17438 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17439 hardcode_direct_F77=yes
17440 hardcode_minus_L_F77=yes
17441 hardcode_shlibpath_var_F77=no
17444 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17446 archive_cmds_F77='$CC -shared -o $lib $compiler_flags $libobjs $deplibs'
17447 hardcode_libdir_flag_spec_F77='-R$libdir'
17448 hardcode_direct_F77=yes
17449 hardcode_shlibpath_var_F77=no
17453 if test "$GCC" = yes; then
17454 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $compiler_flags $libobjs $deplibs~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17456 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'
17458 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17459 hardcode_libdir_separator_F77=:
17460 hardcode_direct_F77=yes
17462 # hardcode_minus_L: Not really in the search PATH,
17463 # but as the default location of the library.
17464 hardcode_minus_L_F77=yes
17465 export_dynamic_flag_spec_F77='${wl}-E'
17469 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17470 case "$host_cpu" in
17472 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
17475 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $libobjs $deplibs'
17479 case "$host_cpu" in
17481 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17484 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17488 if test "$with_gnu_ld" = no; then
17489 case "$host_cpu" in
17491 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17492 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
17493 hardcode_libdir_separator_F77=:
17494 hardcode_direct_F77=no
17495 hardcode_shlibpath_var_F77=no
17498 hardcode_libdir_flag_spec_F77='-L$libdir'
17499 hardcode_direct_F77=no
17500 hardcode_shlibpath_var_F77=no
17502 # hardcode_minus_L: Not really in the search PATH,
17503 # but as the default location of the library.
17504 hardcode_minus_L_F77=yes
17507 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17508 hardcode_libdir_separator_F77=:
17509 hardcode_direct_F77=yes
17510 export_dynamic_flag_spec_F77='${wl}-E'
17512 # hardcode_minus_L: Not really in the search PATH,
17513 # but as the default location of the library.
17514 hardcode_minus_L_F77=yes
17520 irix5* | irix6* | nonstopux*)
17521 if test "$GCC" = yes; then
17522 archive_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17524 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'
17525 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
17527 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17528 hardcode_libdir_separator_F77=:
17529 link_all_deplibs_F77=yes
17533 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17534 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17536 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17538 hardcode_libdir_flag_spec_F77='-R$libdir'
17539 hardcode_direct_F77=yes
17540 hardcode_shlibpath_var_F77=no
17544 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17545 hardcode_direct_F77=yes
17546 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17547 hardcode_libdir_separator_F77=:
17548 hardcode_shlibpath_var_F77=no
17552 hardcode_direct_F77=yes
17553 hardcode_shlibpath_var_F77=no
17554 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17555 archive_cmds_F77='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
17556 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17557 export_dynamic_flag_spec_F77='${wl}-E'
17560 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17561 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17562 hardcode_libdir_flag_spec_F77='-R$libdir'
17565 archive_cmds_F77='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
17566 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17573 hardcode_libdir_flag_spec_F77='-L$libdir'
17574 hardcode_minus_L_F77=yes
17575 allow_undefined_flag_F77=unsupported
17576 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 $compiler_flags $libobjs $deplibs$output_objdir/$libname.def'
17577 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17581 if test "$GCC" = yes; then
17582 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
17583 archive_cmds_F77='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17585 allow_undefined_flag_F77=' -expect_unresolved \*'
17586 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'
17588 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17589 hardcode_libdir_separator_F77=:
17592 osf4* | osf5*) # as osf3* with the addition of -msym flag
17593 if test "$GCC" = yes; then
17594 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
17595 archive_cmds_F77='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${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'
17596 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17598 allow_undefined_flag_F77=' -expect_unresolved \*'
17599 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'
17600 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~
17601 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
17603 # Both c and cxx compiler support -rpath directly
17604 hardcode_libdir_flag_spec_F77='-rpath $libdir'
17606 hardcode_libdir_separator_F77=:
17610 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17611 hardcode_shlibpath_var_F77=no
17612 export_dynamic_flag_spec_F77='${wl}-Bexport'
17613 runpath_var=LD_RUN_PATH
17614 hardcode_runpath_var=yes
17618 no_undefined_flag_F77=' -z text'
17619 if test "$GCC" = yes; then
17620 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
17621 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17622 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs~$rm $lib.exp'
17624 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17625 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17626 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17628 hardcode_libdir_flag_spec_F77='-R$libdir'
17629 hardcode_shlibpath_var_F77=no
17631 solaris2.[0-5] | solaris2.[0-5].*) ;;
17632 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
17633 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
17635 link_all_deplibs_F77=yes
17639 if test "x$host_vendor" = xsequent; then
17640 # Use $CC to link under sequent, because it throws in some extra .o
17641 # files that make .init and .fini sections work.
17642 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $compiler_flags $libobjs $deplibs'
17644 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17646 hardcode_libdir_flag_spec_F77='-L$libdir'
17647 hardcode_direct_F77=yes
17648 hardcode_minus_L_F77=yes
17649 hardcode_shlibpath_var_F77=no
17653 case $host_vendor in
17655 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17656 hardcode_direct_F77=yes # is this really true???
17659 ## LD is ld it makes a PLAMLIB
17660 ## CC just makes a GrossModule.
17661 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17662 reload_cmds_F77='$CC -r -o $output$reload_objs'
17663 hardcode_direct_F77=no
17666 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17667 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
17670 runpath_var='LD_RUN_PATH'
17671 hardcode_shlibpath_var_F77=no
17675 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17676 hardcode_shlibpath_var_F77=no
17677 export_dynamic_flag_spec_F77='-Bexport'
17681 if test -d /usr/nec; then
17682 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17683 hardcode_shlibpath_var_F77=no
17684 runpath_var=LD_RUN_PATH
17685 hardcode_runpath_var=yes
17691 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17692 hardcode_direct_F77=yes
17693 hardcode_minus_L_F77=no
17694 hardcode_shlibpath_var_F77=no
17695 hardcode_runpath_var=yes
17696 runpath_var=LD_RUN_PATH
17699 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17700 no_undefined_flag_F77='${wl}-z ${wl}text'
17701 if test "$GCC" = yes; then
17702 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
17704 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
17706 runpath_var='LD_RUN_PATH'
17707 hardcode_shlibpath_var_F77=no
17711 no_undefined_flag_F77=' -z text'
17712 # $CC -shared without GNU ld will not create a library from C++
17713 # object files and a static libstdc++, better avoid it by now
17714 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17715 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17716 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17717 hardcode_libdir_flag_spec_F77=
17718 hardcode_shlibpath_var_F77=no
17719 runpath_var='LD_RUN_PATH'
17723 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17724 hardcode_libdir_flag_spec_F77='-L$libdir'
17725 hardcode_shlibpath_var_F77=no
17734 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
17735 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
17736 test "$ld_shlibs_F77" = no && can_build_shared=no
17738 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17739 if test "$GCC" = yes; then
17740 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17744 # Do we need to explicitly link libc?
17746 case "x$archive_cmds_need_lc_F77" in
17748 # Assume -lc should be added
17749 archive_cmds_need_lc_F77=yes
17751 if test "$enable_shared" = yes && test "$GCC" = yes; then
17752 case $archive_cmds_F77 in
17754 # FIXME: we may have to deal with multi-command sequences.
17757 # Test whether the compiler implicitly links with -lc since on some
17758 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17759 # to ld, don't add -lc before -lgcc.
17760 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17761 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17763 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17766 (eval $ac_compile) 2>&5
17768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769 (exit $ac_status); } 2>conftest.err; then
17772 libobjs=conftest.$ac_objext
17774 wl=$lt_prog_compiler_wl_F77
17780 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
17781 allow_undefined_flag_F77=
17782 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17783 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17786 (exit $ac_status); }
17788 archive_cmds_need_lc_F77=no
17790 archive_cmds_need_lc_F77=yes
17792 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
17794 cat conftest.err 1>&5
17797 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
17798 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
17805 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17806 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17807 library_names_spec=
17808 libname_spec='lib$name'
17812 postuninstall_cmds=
17816 shlibpath_overrides_runpath=unknown
17818 dynamic_linker="$host_os ld.so"
17819 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17820 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17821 need_lib_prefix=unknown
17822 hardcode_into_libs=no
17824 # when you set need_version to no, make sure it does not cause -set_version
17825 # flags to be left without arguments
17826 need_version=unknown
17831 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17832 shlibpath_var=LIBPATH
17834 # AIX 3 has no versioning support, so we append a major version to the name.
17835 soname_spec='${libname}${release}${shared_ext}$major'
17842 hardcode_into_libs=yes
17843 if test "$host_cpu" = ia64; then
17844 # AIX 5 supports IA64
17845 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17846 shlibpath_var=LD_LIBRARY_PATH
17848 # With GCC up to 2.95.x, collect2 would create an import file
17849 # for dependence libraries. The import file would start with
17850 # the line `#! .'. This would cause the generated library to
17851 # depend on `.', always an invalid library. This was fixed in
17852 # development snapshots of GCC prior to 3.0.
17854 aix4 | aix4.[01] | aix4.[01].*)
17855 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17857 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17860 can_build_shared=no
17864 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17865 # soname into executable. Probably we can add versioning support to
17866 # collect2, so additional links can be useful in future.
17867 if test "$aix_use_runtimelinking" = yes; then
17868 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17869 # instead of lib<name>.a to let people know that these are not
17870 # typical AIX shared libraries.
17871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17873 # We preserve .a as extension for shared libraries through AIX4.2
17874 # and later when we are not doing run time linking.
17875 library_names_spec='${libname}${release}.a $libname.a'
17876 soname_spec='${libname}${release}${shared_ext}$major'
17878 shlibpath_var=LIBPATH
17883 library_names_spec='$libname.ixlibrary $libname.a'
17884 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17885 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'
17889 library_names_spec='${libname}${shared_ext}'
17890 dynamic_linker="$host_os ld.so"
17891 shlibpath_var=LIBRARY_PATH
17897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17898 soname_spec='${libname}${release}${shared_ext}$major'
17899 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17900 shlibpath_var=LD_LIBRARY_PATH
17901 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17902 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17903 # the default ld.so.conf also contains /usr/contrib/lib and
17904 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17905 # libtool to hard-code these into programs
17908 cygwin* | mingw* | pw32*)
17909 version_type=windows
17914 case $GCC,$host_os in
17915 yes,cygwin* | yes,mingw* | yes,pw32*)
17916 library_names_spec='$libname.dll.a'
17917 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17918 postinstall_cmds='base_file=`basename \${file}`~
17919 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17920 dldir=$destdir/`dirname \$dlpath`~
17921 test -d \$dldir || mkdir -p \$dldir~
17922 $install_prog $dir/$dlname \$dldir/$dlname'
17923 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17924 dlpath=$dir/\$dldll~
17926 shlibpath_overrides_runpath=yes
17930 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17931 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17932 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17935 # MinGW DLLs use traditional 'lib' prefix
17936 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17937 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17938 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17939 # It is most probably a Windows format PATH printed by
17940 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17941 # path with ; separators, and with drive letters. We can handle the
17942 # drive letters (cygwin fileutils understands them), so leave them,
17943 # especially as we might pass files found there to a mingw objdump,
17944 # which wouldn't understand a cygwinified path. Ahh.
17945 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17947 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17951 # pw32 DLLs use 'pw' prefix rather than 'lib'
17952 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17958 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17961 dynamic_linker='Win32 ld.exe'
17962 # FIXME: first we should search . and the directory the executable is in
17966 darwin* | rhapsody*)
17967 dynamic_linker="$host_os dyld"
17968 version_type=darwin
17971 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17972 soname_spec='${libname}${release}${major}$shared_ext'
17973 shlibpath_overrides_runpath=yes
17974 shlibpath_var=DYLD_LIBRARY_PATH
17975 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
17976 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17977 if test "$GCC" = yes; then
17978 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17980 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17982 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17990 soname_spec='${libname}${release}${shared_ext}$major'
17991 shlibpath_var=LD_LIBRARY_PATH
18002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18003 soname_spec='${libname}${release}${shared_ext}$major'
18004 shlibpath_var=LD_LIBRARY_PATH
18005 shlibpath_overrides_runpath=no
18006 hardcode_into_libs=yes
18007 dynamic_linker='GNU ld.so'
18011 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18012 version_type=freebsd-$objformat
18013 case $version_type in
18015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18020 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18024 shlibpath_var=LD_LIBRARY_PATH
18027 shlibpath_overrides_runpath=yes
18029 freebsd3.01* | freebsdelf3.01*)
18030 shlibpath_overrides_runpath=yes
18031 hardcode_into_libs=yes
18034 shlibpath_overrides_runpath=no
18035 hardcode_into_libs=yes
18044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18045 soname_spec='${libname}${release}${shared_ext}$major'
18046 shlibpath_var=LD_LIBRARY_PATH
18047 hardcode_into_libs=yes
18050 hpux9* | hpux10* | hpux11*)
18051 # Give a soname corresponding to the major version so that dld.sl refuses to
18052 # link against other versions.
18056 case "$host_cpu" in
18059 hardcode_into_libs=yes
18060 dynamic_linker="$host_os dld.so"
18061 shlibpath_var=LD_LIBRARY_PATH
18062 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18064 soname_spec='${libname}${release}${shared_ext}$major'
18065 if test "X$HPUX_IA64_MODE" = X32; then
18066 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18068 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18070 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18074 hardcode_into_libs=yes
18075 dynamic_linker="$host_os dld.sl"
18076 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18077 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18079 soname_spec='${libname}${release}${shared_ext}$major'
18080 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18081 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18085 dynamic_linker="$host_os dld.sl"
18086 shlibpath_var=SHLIB_PATH
18087 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18089 soname_spec='${libname}${release}${shared_ext}$major'
18092 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18093 postinstall_cmds='chmod 555 $lib'
18096 irix5* | irix6* | nonstopux*)
18098 nonstopux*) version_type=nonstopux ;;
18100 if test "$lt_cv_prog_gnu_ld" = yes; then
18108 soname_spec='${libname}${release}${shared_ext}$major'
18109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18111 irix5* | nonstopux*)
18112 libsuff= shlibsuff=
18115 case $LD in # libtool.m4 will add one of these switches to LD
18116 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18117 libsuff= shlibsuff= libmagic=32-bit;;
18118 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18119 libsuff=32 shlibsuff=N32 libmagic=N32;;
18120 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18121 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18122 *) libsuff= shlibsuff= libmagic=never-match;;
18126 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18127 shlibpath_overrides_runpath=no
18128 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18129 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18130 hardcode_into_libs=yes
18133 # No shared lib support for Linux oldld, aout, or coff.
18134 linux*oldld* | linux*aout* | linux*coff*)
18138 # This must be Linux ELF.
18143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18144 soname_spec='${libname}${release}${shared_ext}$major'
18145 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18147 if test "x$LINUX_64_MODE" = x64; then
18148 # Some platforms are per default 64-bit, so there's no /lib64
18149 if test -d /lib64; then
18153 shlibpath_var=LD_LIBRARY_PATH
18154 shlibpath_overrides_runpath=no
18155 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
18156 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18157 # This implies no fast_install, which is unacceptable.
18158 # Some rework will be needed to allow for fast_install
18159 # before this can be enabled.
18160 hardcode_into_libs=yes
18162 # We used to test for /lib/ld.so.1 and disable shared libraries on
18163 # powerpc, because MkLinux only supported shared libraries with the
18164 # GNU dynamic linker. Since this was broken with cross compilers,
18165 # most powerpc-linux boxes support dynamic linking these days and
18166 # people can always --disable-shared, the test was removed, and we
18167 # assume the GNU/Linux dynamic linker is in use.
18168 dynamic_linker='GNU/Linux ld.so'
18175 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18177 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18178 dynamic_linker='NetBSD (a.out) ld.so'
18180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
18181 soname_spec='${libname}${release}${shared_ext}$major'
18182 dynamic_linker='NetBSD ld.elf_so'
18184 shlibpath_var=LD_LIBRARY_PATH
18185 shlibpath_overrides_runpath=yes
18186 hardcode_into_libs=yes
18191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18192 shlibpath_var=LD_LIBRARY_PATH
18193 shlibpath_overrides_runpath=yes
18200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18201 soname_spec='${libname}${release}${shared_ext}$major'
18202 shlibpath_var=LD_LIBRARY_PATH
18203 shlibpath_overrides_runpath=yes
18210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18211 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18212 shlibpath_var=LD_LIBRARY_PATH
18213 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18215 openbsd2.[89] | openbsd2.[89].*)
18216 shlibpath_overrides_runpath=no
18219 shlibpath_overrides_runpath=yes
18223 shlibpath_overrides_runpath=yes
18228 libname_spec='$name'
18231 library_names_spec='$libname${shared_ext} $libname.a'
18232 dynamic_linker='OS/2 ld.exe'
18233 shlibpath_var=LIBPATH
18236 osf3* | osf4* | osf5*)
18240 soname_spec='${libname}${release}${shared_ext}$major'
18241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18242 shlibpath_var=LD_LIBRARY_PATH
18243 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18244 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18249 soname_spec='${libname}${release}${shared_ext}$major'
18250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18251 shlibpath_var=LD_LIBRARY_PATH
18258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18259 soname_spec='${libname}${release}${shared_ext}$major'
18260 shlibpath_var=LD_LIBRARY_PATH
18261 shlibpath_overrides_runpath=yes
18262 hardcode_into_libs=yes
18263 # ldd complains unless libraries are executable
18264 postinstall_cmds='chmod +x $lib'
18269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18270 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18271 shlibpath_var=LD_LIBRARY_PATH
18272 shlibpath_overrides_runpath=yes
18273 if test "$with_gnu_ld" = yes; then
18279 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18282 soname_spec='${libname}${release}${shared_ext}$major'
18283 shlibpath_var=LD_LIBRARY_PATH
18284 case $host_vendor in
18286 shlibpath_overrides_runpath=no
18288 export_dynamic_flag_spec='${wl}-Blargedynsym'
18289 runpath_var=LD_RUN_PATH
18297 shlibpath_overrides_runpath=no
18298 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18304 if test -d /usr/nec ;then
18306 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18307 soname_spec='$libname${shared_ext}.$major'
18308 shlibpath_var=LD_LIBRARY_PATH
18314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18315 soname_spec='${libname}${release}${shared_ext}$major'
18316 shlibpath_var=LD_LIBRARY_PATH
18323 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18324 echo "${ECHO_T}$dynamic_linker" >&6; }
18325 test "$dynamic_linker" = no && can_build_shared=no
18327 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18328 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18329 hardcode_action_F77=
18330 if test -n "$hardcode_libdir_flag_spec_F77" || \
18331 test -n "$runpath_var F77" || \
18332 test "X$hardcode_automatic_F77"="Xyes" ; then
18334 # We can hardcode non-existant directories.
18335 if test "$hardcode_direct_F77" != no &&
18336 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18337 # have to relink, otherwise we might link with an installed library
18338 # when we should be linking with a yet-to-be-installed one
18339 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
18340 test "$hardcode_minus_L_F77" != no; then
18341 # Linking always hardcodes the temporary library directory.
18342 hardcode_action_F77=relink
18344 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18345 hardcode_action_F77=immediate
18348 # We cannot hardcode anything, or else we can only hardcode existing
18350 hardcode_action_F77=unsupported
18352 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
18353 echo "${ECHO_T}$hardcode_action_F77" >&6; }
18355 if test "$hardcode_action_F77" = relink; then
18356 # Fast installation is not supported
18357 enable_fast_install=no
18358 elif test "$shlibpath_overrides_runpath" = yes ||
18359 test "$enable_shared" = no; then
18360 # Fast installation is not necessary
18361 enable_fast_install=needless
18366 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18367 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
18368 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18369 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18370 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18371 { echo "$as_me:$LINENO: result: yes" >&5
18372 echo "${ECHO_T}yes" >&6; }
18374 # FIXME - insert some real tests, host_os isn't really good enough
18377 if test -n "$STRIP" ; then
18378 striplib="$STRIP -x"
18379 { echo "$as_me:$LINENO: result: yes" >&5
18380 echo "${ECHO_T}yes" >&6; }
18382 { echo "$as_me:$LINENO: result: no" >&5
18383 echo "${ECHO_T}no" >&6; }
18387 { echo "$as_me:$LINENO: result: no" >&5
18388 echo "${ECHO_T}no" >&6; }
18395 # The else clause should only fire when bootstrapping the
18396 # libtool distribution, otherwise you forgot to ship ltmain.sh
18397 # with your package, and you will get complaints that there are
18398 # no rules to generate ltmain.sh.
18399 if test -f "$ltmain"; then
18400 # See if we are running on zsh, and set the options which allow our commands through
18401 # without removal of \ escapes.
18402 if test -n "${ZSH_VERSION+set}" ; then
18403 setopt NO_GLOB_SUBST
18405 # Now quote all the things that may contain metacharacters while being
18406 # careful not to overquote the AC_SUBSTed values. We take copies of the
18407 # variables and quote the copies for generation of the libtool script.
18408 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18409 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18410 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18411 deplibs_check_method reload_flag reload_cmds need_locks \
18412 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18413 lt_cv_sys_global_symbol_to_c_name_address \
18414 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18415 old_postinstall_cmds old_postuninstall_cmds \
18419 lt_prog_compiler_wl_F77 \
18420 lt_prog_compiler_pic_F77 \
18421 lt_prog_compiler_static_F77 \
18422 lt_prog_compiler_no_builtin_flag_F77 \
18423 export_dynamic_flag_spec_F77 \
18424 thread_safe_flag_spec_F77 \
18425 whole_archive_flag_spec_F77 \
18426 enable_shared_with_static_runtimes_F77 \
18427 old_archive_cmds_F77 \
18428 old_archive_from_new_cmds_F77 \
18429 predep_objects_F77 \
18430 postdep_objects_F77 \
18433 compiler_lib_search_path_F77 \
18435 archive_expsym_cmds_F77 \
18436 postinstall_cmds_F77 \
18437 postuninstall_cmds_F77 \
18438 old_archive_from_expsyms_cmds_F77 \
18439 allow_undefined_flag_F77 \
18440 no_undefined_flag_F77 \
18441 export_symbols_cmds_F77 \
18442 hardcode_libdir_flag_spec_F77 \
18443 hardcode_libdir_flag_spec_ld_F77 \
18444 hardcode_libdir_separator_F77 \
18445 hardcode_automatic_F77 \
18447 module_expsym_cmds_F77 \
18448 lt_cv_prog_compiler_c_o_F77 \
18449 exclude_expsyms_F77 \
18450 include_expsyms_F77; do
18453 old_archive_cmds_F77 | \
18454 old_archive_from_new_cmds_F77 | \
18455 archive_cmds_F77 | \
18456 archive_expsym_cmds_F77 | \
18457 module_cmds_F77 | \
18458 module_expsym_cmds_F77 | \
18459 old_archive_from_expsyms_cmds_F77 | \
18460 export_symbols_cmds_F77 | \
18461 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18462 postinstall_cmds | postuninstall_cmds | \
18463 old_postinstall_cmds | old_postuninstall_cmds | \
18464 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18465 # Double-quote double-evaled strings.
18466 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18469 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18475 *'\$0 --fallback-echo"')
18476 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18482 cat <<__EOF__ >> "$cfgfile"
18483 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18485 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18487 # Shell to use when invoking shell scripts.
18490 # Whether or not to build shared libraries.
18491 build_libtool_libs=$enable_shared
18493 # Whether or not to build static libraries.
18494 build_old_libs=$enable_static
18496 # Whether or not to add -lc for building shared libraries.
18497 build_libtool_need_lc=$archive_cmds_need_lc_F77
18499 # Whether or not to disallow shared libs when runtime libs are static
18500 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
18502 # Whether or not to optimize for fast installation.
18503 fast_install=$enable_fast_install
18506 host_alias=$host_alias
18509 # An echo program that does not interpret backslashes.
18514 AR_FLAGS=$lt_AR_FLAGS
18519 # A language-specific compiler.
18520 CC=$lt_compiler_F77
18522 # Is the compiler the GNU C compiler?
18528 # The linker used to build libraries.
18531 # Whether we need hard or soft links.
18534 # A BSD-compatible nm program.
18537 # A symbol stripping program
18540 # Used to examine libraries when file_magic_cmd begins "file"
18541 MAGIC_CMD=$MAGIC_CMD
18543 # Used on cygwin: DLL creation program.
18546 # Used on cygwin: object dumper.
18549 # Used on cygwin: assembler.
18552 # The name of the directory that contains temporary libtool files.
18555 # How to create reloadable object files.
18556 reload_flag=$lt_reload_flag
18557 reload_cmds=$lt_reload_cmds
18559 # How to pass a linker flag through the compiler.
18560 wl=$lt_lt_prog_compiler_wl_F77
18562 # Object file suffix (normally "o").
18563 objext="$ac_objext"
18565 # Old archive suffix (normally "a").
18568 # Shared library suffix (normally ".so").
18571 # Executable file suffix (normally "").
18574 # Additional compiler flags for building library objects.
18575 pic_flag=$lt_lt_prog_compiler_pic_F77
18578 # What is the maximum length of a command?
18579 max_cmd_len=$lt_cv_sys_max_cmd_len
18581 # Does compiler simultaneously support -c and -o options?
18582 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
18584 # Must we lock files when doing compilation ?
18585 need_locks=$lt_need_locks
18587 # Do we need the lib prefix for modules?
18588 need_lib_prefix=$need_lib_prefix
18590 # Do we need a version for libraries?
18591 need_version=$need_version
18593 # Whether dlopen is supported.
18594 dlopen_support=$enable_dlopen
18596 # Whether dlopen of programs is supported.
18597 dlopen_self=$enable_dlopen_self
18599 # Whether dlopen of statically linked programs is supported.
18600 dlopen_self_static=$enable_dlopen_self_static
18602 # Compiler flag to prevent dynamic linking.
18603 link_static_flag=$lt_lt_prog_compiler_static_F77
18605 # Compiler flag to turn off builtin functions.
18606 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
18608 # Compiler flag to allow reflexive dlopens.
18609 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
18611 # Compiler flag to generate shared objects directly from archives.
18612 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
18614 # Compiler flag to generate thread-safe objects.
18615 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
18617 # Library versioning type.
18618 version_type=$version_type
18620 # Format of library name prefix.
18621 libname_spec=$lt_libname_spec
18623 # List of archive names. First name is the real one, the rest are links.
18624 # The last name is the one that the linker finds with -lNAME.
18625 library_names_spec=$lt_library_names_spec
18627 # The coded name of the library, if different from the real name.
18628 soname_spec=$lt_soname_spec
18630 # Commands used to build and install an old-style archive.
18632 old_archive_cmds=$lt_old_archive_cmds_F77
18633 old_postinstall_cmds=$lt_old_postinstall_cmds
18634 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18636 # Create an old-style archive from a shared archive.
18637 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
18639 # Create a temporary old-style archive to link instead of a shared archive.
18640 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
18642 # Commands used to build and install a shared archive.
18643 archive_cmds=$lt_archive_cmds_F77
18644 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
18645 postinstall_cmds=$lt_postinstall_cmds
18646 postuninstall_cmds=$lt_postuninstall_cmds
18648 # Commands used to build a loadable module (assumed same as above if empty)
18649 module_cmds=$lt_module_cmds_F77
18650 module_expsym_cmds=$lt_module_expsym_cmds_F77
18652 # Commands to strip libraries.
18653 old_striplib=$lt_old_striplib
18654 striplib=$lt_striplib
18656 # Dependencies to place before the objects being linked to create a
18658 predep_objects=$lt_predep_objects_F77
18660 # Dependencies to place after the objects being linked to create a
18662 postdep_objects=$lt_postdep_objects_F77
18664 # Dependencies to place before the objects being linked to create a
18666 predeps=$lt_predeps_F77
18668 # Dependencies to place after the objects being linked to create a
18670 postdeps=$lt_postdeps_F77
18672 # The library search path used internally by the compiler when linking
18673 # a shared library.
18674 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
18676 # Method to check whether dependent libraries are shared objects.
18677 deplibs_check_method=$lt_deplibs_check_method
18679 # Command to use when deplibs_check_method == file_magic.
18680 file_magic_cmd=$lt_file_magic_cmd
18682 # Flag that allows shared libraries with undefined symbols to be built.
18683 allow_undefined_flag=$lt_allow_undefined_flag_F77
18685 # Flag that forces no undefined symbols.
18686 no_undefined_flag=$lt_no_undefined_flag_F77
18688 # Commands used to finish a libtool library installation in a directory.
18689 finish_cmds=$lt_finish_cmds
18691 # Same as above, but a single script fragment to be evaled but not shown.
18692 finish_eval=$lt_finish_eval
18694 # Take the output of nm and produce a listing of raw symbols and C names.
18695 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18697 # Transform the output of nm in a proper C declaration
18698 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18700 # Transform the output of nm in a C name address pair
18701 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18703 # This is the shared library runtime path variable.
18704 runpath_var=$runpath_var
18706 # This is the shared library path variable.
18707 shlibpath_var=$shlibpath_var
18709 # Is shlibpath searched before the hard-coded library search path?
18710 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18712 # How to hardcode a shared library path into an executable.
18713 hardcode_action=$hardcode_action_F77
18715 # Whether we should hardcode library paths into libraries.
18716 hardcode_into_libs=$hardcode_into_libs
18718 # Flag to hardcode \$libdir into a binary during linking.
18719 # This must work even if \$libdir does not exist.
18720 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
18722 # If ld is used when linking, flag to hardcode \$libdir into
18723 # a binary during linking. This must work even if \$libdir does
18725 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
18727 # Whether we need a single -rpath flag with a separated argument.
18728 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
18730 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18731 # resulting binary.
18732 hardcode_direct=$hardcode_direct_F77
18734 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18735 # resulting binary.
18736 hardcode_minus_L=$hardcode_minus_L_F77
18738 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18739 # the resulting binary.
18740 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
18742 # Set to yes if building a shared library automatically hardcodes DIR into the library
18743 # and all subsequent libraries and executables linked against it.
18744 hardcode_automatic=$hardcode_automatic_F77
18746 # Variables whose values should be saved in libtool wrapper scripts and
18747 # restored at relink time.
18748 variables_saved_for_relink="$variables_saved_for_relink"
18750 # Whether libtool must link a program against all its dependency libraries.
18751 link_all_deplibs=$link_all_deplibs_F77
18753 # Compile-time system search path for libraries
18754 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18756 # Run-time system search path for libraries
18757 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18759 # Fix the shell variable \$srcfile for the compiler.
18760 fix_srcfile_path="$fix_srcfile_path_F77"
18762 # Set to yes if exported symbols are required.
18763 always_export_symbols=$always_export_symbols_F77
18765 # The commands to list exported symbols.
18766 export_symbols_cmds=$lt_export_symbols_cmds_F77
18768 # The commands to extract the exported symbol list from a shared archive.
18769 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18771 # Symbols that should not be listed in the preloaded symbols.
18772 exclude_expsyms=$lt_exclude_expsyms_F77
18774 # Symbols that must always be exported.
18775 include_expsyms=$lt_include_expsyms_F77
18777 # ### END LIBTOOL TAG CONFIG: $tagname
18783 # If there is no Makefile yet, we rely on a make rule to execute
18784 # `config.status --recheck' to rerun these tests and create the
18785 # libtool script then.
18786 test -f Makefile && make "$ltmain"
18791 ac_cpp='$CPP $CPPFLAGS'
18792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18804 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
18807 # Source file extension for Java test sources.
18810 # Object file extension for compiled Java test sources.
18814 # Code to be used in simple compile tests
18815 lt_simple_compile_test_code="class foo {}\n"
18817 # Code to be used in simple link tests
18818 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
18820 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18822 # If no C compiler was specified, use CC.
18825 # Allow CC to be a program name with arguments.
18829 # Allow CC to be a program name with arguments.
18835 # GCJ did not exist at the time GCC didn't implicitly link libc in.
18836 archive_cmds_need_lc_GCJ=no
18839 ## There is no encapsulation within the following macros, do not change
18840 ## the running order or otherwise move them around unless you know exactly
18841 ## what you are doing...
18843 lt_prog_compiler_no_builtin_flag_GCJ=
18845 if test "$GCC" = yes; then
18846 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
18849 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18850 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
18851 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
18852 echo $ECHO_N "(cached) $ECHO_C" >&6
18854 lt_cv_prog_compiler_rtti_exceptions=no
18855 ac_outfile=conftest.$ac_objext
18856 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18857 lt_compiler_flag="-fno-rtti -fno-exceptions"
18858 # Insert the option either (1) after the last *FLAGS variable, or
18859 # (2) before a word containing "conftest.", or (3) at the end.
18860 # Note that $ac_compile itself does not contain backslashes and begins
18861 # with a dollar sign (not a hyphen), so the echo should work correctly.
18862 # The option is referenced via a variable to avoid confusing sed.
18863 lt_compile=`echo "$ac_compile" | $SED \
18864 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18865 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18866 -e 's:$: $lt_compiler_flag:'`
18867 (eval echo "\"\$as_me:18867: $lt_compile\"" >&5)
18868 (eval "$lt_compile" 2>conftest.err)
18870 cat conftest.err >&5
18871 echo "$as_me:18871: \$? = $ac_status" >&5
18872 if (exit $ac_status) && test -s "$ac_outfile"; then
18873 # The compiler can only warn and ignore the option if not recognized
18874 # So say no if there are warnings
18875 if test ! -s conftest.err; then
18876 lt_cv_prog_compiler_rtti_exceptions=yes
18882 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18883 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
18885 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18886 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18893 lt_prog_compiler_wl_GCJ=
18894 lt_prog_compiler_pic_GCJ=
18895 lt_prog_compiler_static_GCJ=
18897 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18898 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
18900 if test "$GCC" = yes; then
18901 lt_prog_compiler_wl_GCJ='-Wl,'
18902 lt_prog_compiler_static_GCJ='-static'
18906 # All AIX code is PIC.
18907 if test "$host_cpu" = ia64; then
18908 # AIX 5 now supports IA64 processor
18909 lt_prog_compiler_static_GCJ='-Bstatic'
18914 # FIXME: we need at least 68020 code to build shared libraries, but
18915 # adding the `-m68020' flag to GCC prevents building anything better,
18917 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18920 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18921 # PIC is the default for these OSes.
18924 mingw* | pw32* | os2*)
18925 # This hack is so that the source file can tell whether it is being
18926 # built for inclusion in a dll (and should export symbols for example).
18927 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18930 darwin* | rhapsody*)
18931 # PIC is the default on this platform
18932 # Common symbols not allowed in MH_DYLIB files
18933 lt_prog_compiler_pic_GCJ='-fno-common'
18937 # Just because we use GCC doesn't mean we suddenly get shared libraries
18938 # on systems that don't support them.
18939 lt_prog_compiler_can_build_shared_GCJ=no
18944 if test -d /usr/nec; then
18945 lt_prog_compiler_pic_GCJ=-Kconform_pic
18950 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18951 # not for PA HP-UX.
18952 case "$host_cpu" in
18957 lt_prog_compiler_pic_GCJ='-fPIC'
18963 lt_prog_compiler_pic_GCJ='-fPIC'
18967 # PORTME Check for flag to pass linker flags through the system compiler.
18970 lt_prog_compiler_wl_GCJ='-Wl,'
18971 if test "$host_cpu" = ia64; then
18972 # AIX 5 now supports IA64 processor
18973 lt_prog_compiler_static_GCJ='-Bstatic'
18975 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18979 mingw* | pw32* | os2*)
18980 # This hack is so that the source file can tell whether it is being
18981 # built for inclusion in a dll (and should export symbols for example).
18982 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18985 hpux9* | hpux10* | hpux11*)
18986 lt_prog_compiler_wl_GCJ='-Wl,'
18987 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18988 # not for PA HP-UX.
18989 case "$host_cpu" in
18994 lt_prog_compiler_pic_GCJ='+Z'
18997 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18998 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
19001 irix5* | irix6* | nonstopux*)
19002 lt_prog_compiler_wl_GCJ='-Wl,'
19003 # PIC (with -KPIC) is the default.
19004 lt_prog_compiler_static_GCJ='-non_shared'
19008 lt_prog_compiler_pic_GCJ='-KPIC'
19009 lt_prog_compiler_static_GCJ='-Bstatic'
19015 lt_prog_compiler_wl_GCJ='-Wl,'
19016 lt_prog_compiler_pic_GCJ='-KPIC'
19017 lt_prog_compiler_static_GCJ='-static'
19020 lt_prog_compiler_wl_GCJ='-Wl,'
19021 # All Alpha code is PIC.
19022 lt_prog_compiler_static_GCJ='-non_shared'
19027 osf3* | osf4* | osf5*)
19028 lt_prog_compiler_wl_GCJ='-Wl,'
19029 # All OSF/1 code is PIC.
19030 lt_prog_compiler_static_GCJ='-non_shared'
19034 lt_prog_compiler_pic_GCJ='-Kpic'
19035 lt_prog_compiler_static_GCJ='-dn'
19039 lt_prog_compiler_wl_GCJ='-Wl,'
19040 lt_prog_compiler_pic_GCJ='-KPIC'
19041 lt_prog_compiler_static_GCJ='-Bstatic'
19045 lt_prog_compiler_wl_GCJ='-Qoption ld '
19046 lt_prog_compiler_pic_GCJ='-PIC'
19047 lt_prog_compiler_static_GCJ='-Bstatic'
19050 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19051 lt_prog_compiler_wl_GCJ='-Wl,'
19052 lt_prog_compiler_pic_GCJ='-KPIC'
19053 lt_prog_compiler_static_GCJ='-Bstatic'
19057 if test -d /usr/nec ;then
19058 lt_prog_compiler_pic_GCJ='-Kconform_pic'
19059 lt_prog_compiler_static_GCJ='-Bstatic'
19064 lt_prog_compiler_pic_GCJ='-pic'
19065 lt_prog_compiler_static_GCJ='-Bstatic'
19069 lt_prog_compiler_can_build_shared_GCJ=no
19074 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
19075 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
19078 # Check to make sure the PIC flag actually works.
19080 if test -n "$lt_prog_compiler_pic_GCJ"; then
19082 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
19083 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
19084 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
19085 echo $ECHO_N "(cached) $ECHO_C" >&6
19087 lt_prog_compiler_pic_works_GCJ=no
19088 ac_outfile=conftest.$ac_objext
19089 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19090 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
19091 # Insert the option either (1) after the last *FLAGS variable, or
19092 # (2) before a word containing "conftest.", or (3) at the end.
19093 # Note that $ac_compile itself does not contain backslashes and begins
19094 # with a dollar sign (not a hyphen), so the echo should work correctly.
19095 # The option is referenced via a variable to avoid confusing sed.
19096 lt_compile=`echo "$ac_compile" | $SED \
19097 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19098 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19099 -e 's:$: $lt_compiler_flag:'`
19100 (eval echo "\"\$as_me:19100: $lt_compile\"" >&5)
19101 (eval "$lt_compile" 2>conftest.err)
19103 cat conftest.err >&5
19104 echo "$as_me:19104: \$? = $ac_status" >&5
19105 if (exit $ac_status) && test -s "$ac_outfile"; then
19106 # The compiler can only warn and ignore the option if not recognized
19107 # So say no if there are warnings
19108 if test ! -s conftest.err; then
19109 lt_prog_compiler_pic_works_GCJ=yes
19115 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
19116 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
19118 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
19119 case $lt_prog_compiler_pic_GCJ in
19121 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
19124 lt_prog_compiler_pic_GCJ=
19125 lt_prog_compiler_can_build_shared_GCJ=no
19130 # For platforms which do not support PIC, -DPIC is meaningless:
19132 lt_prog_compiler_pic_GCJ=
19135 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
19139 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19140 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19141 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
19142 echo $ECHO_N "(cached) $ECHO_C" >&6
19144 lt_cv_prog_compiler_c_o_GCJ=no
19145 $rm -r conftest 2>/dev/null
19149 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19151 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
19152 # that will create temporary files in the current directory regardless of
19153 # the output directory. Thus, making CWD read-only will cause this test
19154 # to fail, enabling locking or at least warning the user not to do parallel
19158 lt_compiler_flag="-o out/conftest2.$ac_objext"
19159 # Insert the option either (1) after the last *FLAGS variable, or
19160 # (2) before a word containing "conftest.", or (3) at the end.
19161 # Note that $ac_compile itself does not contain backslashes and begins
19162 # with a dollar sign (not a hyphen), so the echo should work correctly.
19163 lt_compile=`echo "$ac_compile" | $SED \
19164 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19165 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19166 -e 's:$: $lt_compiler_flag:'`
19167 (eval echo "\"\$as_me:19167: $lt_compile\"" >&5)
19168 (eval "$lt_compile" 2>out/conftest.err)
19170 cat out/conftest.err >&5
19171 echo "$as_me:19171: \$? = $ac_status" >&5
19172 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19174 # The compiler can only warn and ignore the option if not recognized
19175 # So say no if there are warnings
19176 if test ! -s out/conftest.err; then
19177 lt_cv_prog_compiler_c_o_GCJ=yes
19181 $rm conftest* out/*
19188 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
19189 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
19192 hard_links="nottested"
19193 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
19194 # do not overwrite the value of need_locks provided by the user
19195 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19196 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19199 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19201 ln conftest.a conftest.b 2>&5 || hard_links=no
19202 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19203 { echo "$as_me:$LINENO: result: $hard_links" >&5
19204 echo "${ECHO_T}$hard_links" >&6; }
19205 if test "$hard_links" = no; then
19206 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19207 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19214 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19215 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19218 allow_undefined_flag_GCJ=
19219 enable_shared_with_static_runtimes_GCJ=no
19221 archive_expsym_cmds_GCJ=
19222 old_archive_From_new_cmds_GCJ=
19223 old_archive_from_expsyms_cmds_GCJ=
19224 export_dynamic_flag_spec_GCJ=
19225 whole_archive_flag_spec_GCJ=
19226 thread_safe_flag_spec_GCJ=
19227 hardcode_libdir_flag_spec_GCJ=
19228 hardcode_libdir_flag_spec_ld_GCJ=
19229 hardcode_libdir_separator_GCJ=
19230 hardcode_direct_GCJ=no
19231 hardcode_minus_L_GCJ=no
19232 hardcode_shlibpath_var_GCJ=unsupported
19233 link_all_deplibs_GCJ=unknown
19234 hardcode_automatic_GCJ=no
19236 module_expsym_cmds_GCJ=
19237 always_export_symbols_GCJ=no
19238 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19239 # include_expsyms should be a list of space-separated symbols to be *always*
19240 # included in the symbol list
19241 include_expsyms_GCJ=
19242 # exclude_expsyms can be an extended regexp of symbols to exclude
19243 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19244 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19245 # as well as any symbol that contains `d'.
19246 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
19247 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19248 # platforms (ab)use it in PIC code, but their linkers get confused if
19249 # the symbol is explicitly referenced. Since portable code cannot
19250 # rely on this symbol name, it's probably fine to never include it in
19251 # preloaded symbol tables.
19252 extract_expsyms_cmds=
19255 cygwin* | mingw* | pw32*)
19256 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19257 # When not using gcc, we currently assume that we are using
19258 # Microsoft Visual C++.
19259 if test "$GCC" != yes; then
19269 if test "$with_gnu_ld" = yes; then
19270 # If archive_cmds runs LD, not CC, wlarc should be empty
19273 # See if GNU ld supports shared libraries.
19275 aix3* | aix4* | aix5*)
19276 # On AIX/PPC, the GNU linker is very broken
19277 if test "$host_cpu" != ia64; then
19281 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19282 *** to be unable to reliably create shared libraries on AIX.
19283 *** Therefore, libtool is disabling shared libraries support. If you
19284 *** really care for shared libraries, you may want to modify your PATH
19285 *** so that a non-GNU linker is found, and then restart.
19292 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)'
19293 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19294 hardcode_minus_L_GCJ=yes
19296 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19297 # that the semantics of dynamic libraries on AmigaOS, at least up
19298 # to version 4, is to share data among multiple programs linked
19299 # with the same dynamic library. Since this doesn't match the
19300 # behavior of shared libraries on other platforms, we can't use
19306 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19307 allow_undefined_flag_GCJ=unsupported
19308 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19309 # support --undefined. This deserves some investigation. FIXME
19310 archive_cmds_GCJ='$CC -nostart $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
19316 cygwin* | mingw* | pw32*)
19317 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
19318 # as there is no search path for DLLs.
19319 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19320 allow_undefined_flag_GCJ=no
19321 always_export_symbols_GCJ=no
19322 enable_shared_with_static_runtimes_GCJ=yes
19323 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19325 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19326 archive_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19327 # If the export-symbols file already is a .def file (1st line
19328 # is EXPORTS), use it as is; otherwise, prepend...
19329 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19330 cp $export_symbols $output_objdir/$soname.def;
19332 echo EXPORTS > $output_objdir/$soname.def;
19333 cat $export_symbols >> $output_objdir/$soname.def;
19335 $CC -shared $output_objdir/$soname.def $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19342 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19343 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19346 archive_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
19347 archive_expsym_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19352 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19356 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19357 *** create shared libraries on Solaris systems. Therefore, libtool
19358 *** is disabling shared libraries support. We urge you to upgrade GNU
19359 *** binutils to release 2.9.1 or newer. Another option is to modify
19360 *** your PATH or compiler configuration so that the native linker is
19361 *** used, and then restart.
19364 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19365 archive_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
19366 archive_expsym_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19373 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19375 hardcode_direct_GCJ=yes
19376 hardcode_shlibpath_var_GCJ=no
19380 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19381 archive_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
19382 archive_expsym_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19389 if test "$ld_shlibs_GCJ" = yes; then
19390 runpath_var=LD_RUN_PATH
19391 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
19392 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
19393 # ancient GNU ld didn't support --whole-archive et. al.
19394 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19395 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19397 whole_archive_flag_spec_GCJ=
19401 # PORTME fill in a description of your system's linker (not GNU ld)
19404 allow_undefined_flag_GCJ=unsupported
19405 always_export_symbols_GCJ=yes
19406 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'
19407 # Note: this linker hardcodes the directories in LIBPATH if there
19408 # are no directories specified by -L.
19409 hardcode_minus_L_GCJ=yes
19410 if test "$GCC" = yes && test -z "$link_static_flag"; then
19411 # Neither direct hardcoding nor static linking is supported with a
19413 hardcode_direct_GCJ=unsupported
19418 if test "$host_cpu" = ia64; then
19419 # On IA64, the linker does run time linking by default, so we don't
19420 # have to do anything special.
19421 aix_use_runtimelinking=no
19422 exp_sym_flag='-Bexport'
19425 # If we're using GNU nm, then we don't want the "-C" option.
19426 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19427 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19428 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'
19430 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'
19433 # KDE requires run time linking. Make it the default.
19434 aix_use_runtimelinking=yes
19435 exp_sym_flag='-bexport'
19436 no_entry_flag='-bnoentry'
19439 # When large executables or shared objects are built, AIX ld can
19440 # have problems creating the table of contents. If linking a library
19441 # or program results in "error TOC overflow" add -mminimal-toc to
19442 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19443 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19445 archive_cmds_GCJ=''
19446 hardcode_direct_GCJ=yes
19447 hardcode_libdir_separator_GCJ=':'
19448 link_all_deplibs_GCJ=yes
19450 if test "$GCC" = yes; then
19451 case $host_os in aix4.012|aix4.012.*)
19452 # We only want to do this on AIX 4.2 and lower, the check
19453 # below for broken collect2 doesn't work under 4.3+
19454 collect2name=`${CC} -print-prog-name=collect2`
19455 if test -f "$collect2name" && \
19456 strings "$collect2name" | grep resolve_lib_name >/dev/null
19458 # We have reworked collect2
19459 hardcode_direct_GCJ=yes
19461 # We have old collect2
19462 hardcode_direct_GCJ=unsupported
19463 # It fails to find uninstalled libraries when the uninstalled
19464 # path is not listed in the libpath. Setting hardcode_minus_L
19465 # to unsupported forces relinking
19466 hardcode_minus_L_GCJ=yes
19467 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19468 hardcode_libdir_separator_GCJ=
19471 shared_flag='-shared'
19474 if test "$host_cpu" = ia64; then
19475 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19476 # chokes on -Wl,-G. The following line is correct:
19479 if test "$aix_use_runtimelinking" = yes; then
19480 shared_flag='-qmkshrobj ${wl}-G'
19482 shared_flag='-qmkshrobj'
19487 # Let the compiler handle the export list.
19488 always_export_symbols_GCJ=no
19489 if test "$aix_use_runtimelinking" = yes; then
19490 # Warning - without using the other runtime loading flags (-brtl),
19491 # -berok will link without error, but may produce a broken library.
19492 allow_undefined_flag_GCJ='-berok'
19493 # Determine the default libpath from the value encoded in an empty executable.
19494 cat >conftest.$ac_ext <<_ACEOF
19497 cat confdefs.h >>conftest.$ac_ext
19498 cat >>conftest.$ac_ext <<_ACEOF
19499 /* end confdefs.h. */
19509 rm -f conftest.$ac_objext conftest$ac_exeext
19510 if { (ac_try="$ac_link"
19511 case "(($ac_try" in
19512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19513 *) ac_try_echo=$ac_try;;
19515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19516 (eval "$ac_link") 2>conftest.er1
19518 grep -v '^ *+' conftest.er1 >conftest.err
19520 cat conftest.err >&5
19521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19522 (exit $ac_status); } && {
19523 test -z "$ac_c_werror_flag" ||
19524 test ! -s conftest.err
19525 } && test -s conftest$ac_exeext &&
19526 $as_test_x conftest$ac_exeext; then
19528 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19530 # Check for a 64-bit object if we didn't find anything.
19531 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19534 echo "$as_me: failed program was:" >&5
19535 sed 's/^/| /' conftest.$ac_ext >&5
19540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19541 conftest$ac_exeext conftest.$ac_ext
19542 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19544 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19545 archive_cmds_GCJ="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag"
19546 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
19548 if test "$host_cpu" = ia64; then
19549 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
19550 allow_undefined_flag_GCJ="-z nodefs"
19551 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
19553 # Determine the default libpath from the value encoded in an empty executable.
19554 cat >conftest.$ac_ext <<_ACEOF
19557 cat confdefs.h >>conftest.$ac_ext
19558 cat >>conftest.$ac_ext <<_ACEOF
19559 /* end confdefs.h. */
19569 rm -f conftest.$ac_objext conftest$ac_exeext
19570 if { (ac_try="$ac_link"
19571 case "(($ac_try" in
19572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19573 *) ac_try_echo=$ac_try;;
19575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19576 (eval "$ac_link") 2>conftest.er1
19578 grep -v '^ *+' conftest.er1 >conftest.err
19580 cat conftest.err >&5
19581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582 (exit $ac_status); } && {
19583 test -z "$ac_c_werror_flag" ||
19584 test ! -s conftest.err
19585 } && test -s conftest$ac_exeext &&
19586 $as_test_x conftest$ac_exeext; then
19588 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19590 # Check for a 64-bit object if we didn't find anything.
19591 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19594 echo "$as_me: failed program was:" >&5
19595 sed 's/^/| /' conftest.$ac_ext >&5
19600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19601 conftest$ac_exeext conftest.$ac_ext
19602 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19604 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19605 # Warning - without using the other run time loading flags,
19606 # -berok will link without error, but may produce a broken library.
19607 no_undefined_flag_GCJ=' ${wl}-bernotok'
19608 allow_undefined_flag_GCJ=' ${wl}-berok'
19609 # -bexpall does not export symbols beginning with underscore (_)
19610 always_export_symbols_GCJ=yes
19611 # Exported symbols can be pulled into shared objects from archives
19612 whole_archive_flag_spec_GCJ=' '
19613 archive_cmds_need_lc_GCJ=yes
19614 # This is similar to how AIX traditionally builds it's shared libraries.
19615 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
19621 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)'
19622 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19623 hardcode_minus_L_GCJ=yes
19624 # see comment about different semantics on the GNU ld section
19629 export_dynamic_flag_spec_GCJ=-rdynamic
19632 cygwin* | mingw* | pw32*)
19633 # When not using gcc, we currently assume that we are using
19634 # Microsoft Visual C++.
19635 # hardcode_libdir_flag_spec is actually meaningless, as there is
19636 # no search path for DLLs.
19637 hardcode_libdir_flag_spec_GCJ=' '
19638 allow_undefined_flag_GCJ=no
19639 # Tell ltmain to make .lib files, not .a files.
19641 # Tell ltmain to make .dll files, not .so files.
19643 # FIXME: Setting linknames here is a bad hack.
19644 archive_cmds_GCJ='$CC -o $lib $compiler_flags $libobjs `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19645 # The linker will automatically build a .lib file if we build a DLL.
19646 old_archive_From_new_cmds_GCJ='true'
19647 # FIXME: Should let the user specify the lib program.
19648 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
19649 fix_srcfile_path='`cygpath -w "$srcfile"`'
19650 enable_shared_with_static_runtimes_GCJ=yes
19653 darwin* | rhapsody*)
19654 if test "$GXX" = yes ; then
19655 archive_cmds_need_lc_GCJ=no
19657 rhapsody* | darwin1.[012])
19658 allow_undefined_flag_GCJ='-Wl,-undefined -Wl,suppress'
19661 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19662 allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
19664 case ${MACOSX_DEPLOYMENT_TARGET} in
19666 allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
19669 allow_undefined_flag='-Wl,-undefined -Wl,dynamic_lookup'
19675 lt_int_apple_cc_single_mod=no
19676 output_verbose_link_cmd='echo'
19677 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
19678 lt_int_apple_cc_single_mod=yes
19680 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19681 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring'
19683 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring'
19685 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs'
19686 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19687 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19688 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19690 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19692 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 $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19693 hardcode_direct_GCJ=no
19694 hardcode_automatic_GCJ=yes
19695 hardcode_shlibpath_var_GCJ=unsupported
19696 whole_archive_flag_spec_GCJ='-all_load $convenience'
19697 link_all_deplibs_GCJ=yes
19704 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19705 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19706 hardcode_shlibpath_var_GCJ=no
19713 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19714 # support. Future versions do this automatically, but an explicit c++rt0.o
19715 # does not break anything, and helps significantly (at the cost of a little
19718 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19719 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19720 hardcode_direct_GCJ=yes
19721 hardcode_shlibpath_var_GCJ=no
19724 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19726 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19727 hardcode_direct_GCJ=yes
19728 hardcode_minus_L_GCJ=yes
19729 hardcode_shlibpath_var_GCJ=no
19732 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19734 archive_cmds_GCJ='$CC -shared -o $lib $compiler_flags $libobjs $deplibs'
19735 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19736 hardcode_direct_GCJ=yes
19737 hardcode_shlibpath_var_GCJ=no
19741 if test "$GCC" = yes; then
19742 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $compiler_flags $libobjs $deplibs~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
19744 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'
19746 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19747 hardcode_libdir_separator_GCJ=:
19748 hardcode_direct_GCJ=yes
19750 # hardcode_minus_L: Not really in the search PATH,
19751 # but as the default location of the library.
19752 hardcode_minus_L_GCJ=yes
19753 export_dynamic_flag_spec_GCJ='${wl}-E'
19757 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19758 case "$host_cpu" in
19760 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
19763 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $libobjs $deplibs'
19767 case "$host_cpu" in
19769 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19772 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19776 if test "$with_gnu_ld" = no; then
19777 case "$host_cpu" in
19779 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19780 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19781 hardcode_libdir_separator_GCJ=:
19782 hardcode_direct_GCJ=no
19783 hardcode_shlibpath_var_GCJ=no
19786 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19787 hardcode_direct_GCJ=no
19788 hardcode_shlibpath_var_GCJ=no
19790 # hardcode_minus_L: Not really in the search PATH,
19791 # but as the default location of the library.
19792 hardcode_minus_L_GCJ=yes
19795 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19796 hardcode_libdir_separator_GCJ=:
19797 hardcode_direct_GCJ=yes
19798 export_dynamic_flag_spec_GCJ='${wl}-E'
19800 # hardcode_minus_L: Not really in the search PATH,
19801 # but as the default location of the library.
19802 hardcode_minus_L_GCJ=yes
19808 irix5* | irix6* | nonstopux*)
19809 if test "$GCC" = yes; then
19810 archive_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19812 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'
19813 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19815 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19816 hardcode_libdir_separator_GCJ=:
19817 link_all_deplibs_GCJ=yes
19821 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19822 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19824 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19826 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19827 hardcode_direct_GCJ=yes
19828 hardcode_shlibpath_var_GCJ=no
19832 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19833 hardcode_direct_GCJ=yes
19834 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19835 hardcode_libdir_separator_GCJ=:
19836 hardcode_shlibpath_var_GCJ=no
19840 hardcode_direct_GCJ=yes
19841 hardcode_shlibpath_var_GCJ=no
19842 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19843 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
19844 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19845 export_dynamic_flag_spec_GCJ='${wl}-E'
19848 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19849 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19850 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19853 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
19854 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19861 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19862 hardcode_minus_L_GCJ=yes
19863 allow_undefined_flag_GCJ=unsupported
19864 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 $compiler_flags $libobjs $deplibs$output_objdir/$libname.def'
19865 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19869 if test "$GCC" = yes; then
19870 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19871 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19873 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19874 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'
19876 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19877 hardcode_libdir_separator_GCJ=:
19880 osf4* | osf5*) # as osf3* with the addition of -msym flag
19881 if test "$GCC" = yes; then
19882 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19883 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${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'
19884 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19886 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19887 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'
19888 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~
19889 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
19891 # Both c and cxx compiler support -rpath directly
19892 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19894 hardcode_libdir_separator_GCJ=:
19898 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19899 hardcode_shlibpath_var_GCJ=no
19900 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19901 runpath_var=LD_RUN_PATH
19902 hardcode_runpath_var=yes
19906 no_undefined_flag_GCJ=' -z text'
19907 if test "$GCC" = yes; then
19908 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
19909 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19910 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs~$rm $lib.exp'
19912 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19913 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19914 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19916 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19917 hardcode_shlibpath_var_GCJ=no
19919 solaris2.[0-5] | solaris2.[0-5].*) ;;
19920 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19921 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
19923 link_all_deplibs_GCJ=yes
19927 if test "x$host_vendor" = xsequent; then
19928 # Use $CC to link under sequent, because it throws in some extra .o
19929 # files that make .init and .fini sections work.
19930 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $compiler_flags $libobjs $deplibs'
19932 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19934 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19935 hardcode_direct_GCJ=yes
19936 hardcode_minus_L_GCJ=yes
19937 hardcode_shlibpath_var_GCJ=no
19941 case $host_vendor in
19943 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19944 hardcode_direct_GCJ=yes # is this really true???
19947 ## LD is ld it makes a PLAMLIB
19948 ## CC just makes a GrossModule.
19949 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19950 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19951 hardcode_direct_GCJ=no
19954 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19955 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19958 runpath_var='LD_RUN_PATH'
19959 hardcode_shlibpath_var_GCJ=no
19963 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19964 hardcode_shlibpath_var_GCJ=no
19965 export_dynamic_flag_spec_GCJ='-Bexport'
19969 if test -d /usr/nec; then
19970 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19971 hardcode_shlibpath_var_GCJ=no
19972 runpath_var=LD_RUN_PATH
19973 hardcode_runpath_var=yes
19979 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19980 hardcode_direct_GCJ=yes
19981 hardcode_minus_L_GCJ=no
19982 hardcode_shlibpath_var_GCJ=no
19983 hardcode_runpath_var=yes
19984 runpath_var=LD_RUN_PATH
19987 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
19988 no_undefined_flag_GCJ='${wl}-z ${wl}text'
19989 if test "$GCC" = yes; then
19990 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
19992 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
19994 runpath_var='LD_RUN_PATH'
19995 hardcode_shlibpath_var_GCJ=no
19999 no_undefined_flag_GCJ=' -z text'
20000 # $CC -shared without GNU ld will not create a library from C++
20001 # object files and a static libstdc++, better avoid it by now
20002 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20003 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20004 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20005 hardcode_libdir_flag_spec_GCJ=
20006 hardcode_shlibpath_var_GCJ=no
20007 runpath_var='LD_RUN_PATH'
20011 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20012 hardcode_libdir_flag_spec_GCJ='-L$libdir'
20013 hardcode_shlibpath_var_GCJ=no
20022 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
20023 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
20024 test "$ld_shlibs_GCJ" = no && can_build_shared=no
20026 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20027 if test "$GCC" = yes; then
20028 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20032 # Do we need to explicitly link libc?
20034 case "x$archive_cmds_need_lc_GCJ" in
20036 # Assume -lc should be added
20037 archive_cmds_need_lc_GCJ=yes
20039 if test "$enable_shared" = yes && test "$GCC" = yes; then
20040 case $archive_cmds_GCJ in
20042 # FIXME: we may have to deal with multi-command sequences.
20045 # Test whether the compiler implicitly links with -lc since on some
20046 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20047 # to ld, don't add -lc before -lgcc.
20048 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20049 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20051 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20054 (eval $ac_compile) 2>&5
20056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20057 (exit $ac_status); } 2>conftest.err; then
20060 libobjs=conftest.$ac_objext
20062 wl=$lt_prog_compiler_wl_GCJ
20068 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
20069 allow_undefined_flag_GCJ=
20070 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20071 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20074 (exit $ac_status); }
20076 archive_cmds_need_lc_GCJ=no
20078 archive_cmds_need_lc_GCJ=yes
20080 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
20082 cat conftest.err 1>&5
20085 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
20086 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
20093 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20094 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20095 library_names_spec=
20096 libname_spec='lib$name'
20100 postuninstall_cmds=
20104 shlibpath_overrides_runpath=unknown
20106 dynamic_linker="$host_os ld.so"
20107 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20108 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20109 need_lib_prefix=unknown
20110 hardcode_into_libs=no
20112 # when you set need_version to no, make sure it does not cause -set_version
20113 # flags to be left without arguments
20114 need_version=unknown
20119 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20120 shlibpath_var=LIBPATH
20122 # AIX 3 has no versioning support, so we append a major version to the name.
20123 soname_spec='${libname}${release}${shared_ext}$major'
20130 hardcode_into_libs=yes
20131 if test "$host_cpu" = ia64; then
20132 # AIX 5 supports IA64
20133 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20134 shlibpath_var=LD_LIBRARY_PATH
20136 # With GCC up to 2.95.x, collect2 would create an import file
20137 # for dependence libraries. The import file would start with
20138 # the line `#! .'. This would cause the generated library to
20139 # depend on `.', always an invalid library. This was fixed in
20140 # development snapshots of GCC prior to 3.0.
20142 aix4 | aix4.[01] | aix4.[01].*)
20143 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20145 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20148 can_build_shared=no
20152 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20153 # soname into executable. Probably we can add versioning support to
20154 # collect2, so additional links can be useful in future.
20155 if test "$aix_use_runtimelinking" = yes; then
20156 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20157 # instead of lib<name>.a to let people know that these are not
20158 # typical AIX shared libraries.
20159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20161 # We preserve .a as extension for shared libraries through AIX4.2
20162 # and later when we are not doing run time linking.
20163 library_names_spec='${libname}${release}.a $libname.a'
20164 soname_spec='${libname}${release}${shared_ext}$major'
20166 shlibpath_var=LIBPATH
20171 library_names_spec='$libname.ixlibrary $libname.a'
20172 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20173 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'
20177 library_names_spec='${libname}${shared_ext}'
20178 dynamic_linker="$host_os ld.so"
20179 shlibpath_var=LIBRARY_PATH
20185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20186 soname_spec='${libname}${release}${shared_ext}$major'
20187 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20188 shlibpath_var=LD_LIBRARY_PATH
20189 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20190 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20191 # the default ld.so.conf also contains /usr/contrib/lib and
20192 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20193 # libtool to hard-code these into programs
20196 cygwin* | mingw* | pw32*)
20197 version_type=windows
20202 case $GCC,$host_os in
20203 yes,cygwin* | yes,mingw* | yes,pw32*)
20204 library_names_spec='$libname.dll.a'
20205 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20206 postinstall_cmds='base_file=`basename \${file}`~
20207 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20208 dldir=$destdir/`dirname \$dlpath`~
20209 test -d \$dldir || mkdir -p \$dldir~
20210 $install_prog $dir/$dlname \$dldir/$dlname'
20211 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20212 dlpath=$dir/\$dldll~
20214 shlibpath_overrides_runpath=yes
20218 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20219 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20220 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20223 # MinGW DLLs use traditional 'lib' prefix
20224 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20225 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20226 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20227 # It is most probably a Windows format PATH printed by
20228 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20229 # path with ; separators, and with drive letters. We can handle the
20230 # drive letters (cygwin fileutils understands them), so leave them,
20231 # especially as we might pass files found there to a mingw objdump,
20232 # which wouldn't understand a cygwinified path. Ahh.
20233 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20235 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20239 # pw32 DLLs use 'pw' prefix rather than 'lib'
20240 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20246 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20249 dynamic_linker='Win32 ld.exe'
20250 # FIXME: first we should search . and the directory the executable is in
20254 darwin* | rhapsody*)
20255 dynamic_linker="$host_os dyld"
20256 version_type=darwin
20259 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20260 soname_spec='${libname}${release}${major}$shared_ext'
20261 shlibpath_overrides_runpath=yes
20262 shlibpath_var=DYLD_LIBRARY_PATH
20263 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
20264 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20265 if test "$GCC" = yes; then
20266 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
20268 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20270 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20278 soname_spec='${libname}${release}${shared_ext}$major'
20279 shlibpath_var=LD_LIBRARY_PATH
20290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20291 soname_spec='${libname}${release}${shared_ext}$major'
20292 shlibpath_var=LD_LIBRARY_PATH
20293 shlibpath_overrides_runpath=no
20294 hardcode_into_libs=yes
20295 dynamic_linker='GNU ld.so'
20299 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20300 version_type=freebsd-$objformat
20301 case $version_type in
20303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20308 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20312 shlibpath_var=LD_LIBRARY_PATH
20315 shlibpath_overrides_runpath=yes
20317 freebsd3.01* | freebsdelf3.01*)
20318 shlibpath_overrides_runpath=yes
20319 hardcode_into_libs=yes
20322 shlibpath_overrides_runpath=no
20323 hardcode_into_libs=yes
20332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20333 soname_spec='${libname}${release}${shared_ext}$major'
20334 shlibpath_var=LD_LIBRARY_PATH
20335 hardcode_into_libs=yes
20338 hpux9* | hpux10* | hpux11*)
20339 # Give a soname corresponding to the major version so that dld.sl refuses to
20340 # link against other versions.
20344 case "$host_cpu" in
20347 hardcode_into_libs=yes
20348 dynamic_linker="$host_os dld.so"
20349 shlibpath_var=LD_LIBRARY_PATH
20350 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20352 soname_spec='${libname}${release}${shared_ext}$major'
20353 if test "X$HPUX_IA64_MODE" = X32; then
20354 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20356 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20358 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20362 hardcode_into_libs=yes
20363 dynamic_linker="$host_os dld.sl"
20364 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20365 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20367 soname_spec='${libname}${release}${shared_ext}$major'
20368 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20369 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20373 dynamic_linker="$host_os dld.sl"
20374 shlibpath_var=SHLIB_PATH
20375 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20377 soname_spec='${libname}${release}${shared_ext}$major'
20380 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20381 postinstall_cmds='chmod 555 $lib'
20384 irix5* | irix6* | nonstopux*)
20386 nonstopux*) version_type=nonstopux ;;
20388 if test "$lt_cv_prog_gnu_ld" = yes; then
20396 soname_spec='${libname}${release}${shared_ext}$major'
20397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20399 irix5* | nonstopux*)
20400 libsuff= shlibsuff=
20403 case $LD in # libtool.m4 will add one of these switches to LD
20404 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20405 libsuff= shlibsuff= libmagic=32-bit;;
20406 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20407 libsuff=32 shlibsuff=N32 libmagic=N32;;
20408 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20409 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20410 *) libsuff= shlibsuff= libmagic=never-match;;
20414 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20415 shlibpath_overrides_runpath=no
20416 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20417 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20418 hardcode_into_libs=yes
20421 # No shared lib support for Linux oldld, aout, or coff.
20422 linux*oldld* | linux*aout* | linux*coff*)
20426 # This must be Linux ELF.
20431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20432 soname_spec='${libname}${release}${shared_ext}$major'
20433 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20435 if test "x$LINUX_64_MODE" = x64; then
20436 # Some platforms are per default 64-bit, so there's no /lib64
20437 if test -d /lib64; then
20441 shlibpath_var=LD_LIBRARY_PATH
20442 shlibpath_overrides_runpath=no
20443 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
20444 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
20445 # This implies no fast_install, which is unacceptable.
20446 # Some rework will be needed to allow for fast_install
20447 # before this can be enabled.
20448 hardcode_into_libs=yes
20450 # We used to test for /lib/ld.so.1 and disable shared libraries on
20451 # powerpc, because MkLinux only supported shared libraries with the
20452 # GNU dynamic linker. Since this was broken with cross compilers,
20453 # most powerpc-linux boxes support dynamic linking these days and
20454 # people can always --disable-shared, the test was removed, and we
20455 # assume the GNU/Linux dynamic linker is in use.
20456 dynamic_linker='GNU/Linux ld.so'
20463 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20465 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20466 dynamic_linker='NetBSD (a.out) ld.so'
20468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
20469 soname_spec='${libname}${release}${shared_ext}$major'
20470 dynamic_linker='NetBSD ld.elf_so'
20472 shlibpath_var=LD_LIBRARY_PATH
20473 shlibpath_overrides_runpath=yes
20474 hardcode_into_libs=yes
20479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20480 shlibpath_var=LD_LIBRARY_PATH
20481 shlibpath_overrides_runpath=yes
20488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20489 soname_spec='${libname}${release}${shared_ext}$major'
20490 shlibpath_var=LD_LIBRARY_PATH
20491 shlibpath_overrides_runpath=yes
20498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20499 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20500 shlibpath_var=LD_LIBRARY_PATH
20501 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20503 openbsd2.[89] | openbsd2.[89].*)
20504 shlibpath_overrides_runpath=no
20507 shlibpath_overrides_runpath=yes
20511 shlibpath_overrides_runpath=yes
20516 libname_spec='$name'
20519 library_names_spec='$libname${shared_ext} $libname.a'
20520 dynamic_linker='OS/2 ld.exe'
20521 shlibpath_var=LIBPATH
20524 osf3* | osf4* | osf5*)
20528 soname_spec='${libname}${release}${shared_ext}$major'
20529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20530 shlibpath_var=LD_LIBRARY_PATH
20531 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20532 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20537 soname_spec='${libname}${release}${shared_ext}$major'
20538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20539 shlibpath_var=LD_LIBRARY_PATH
20546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20547 soname_spec='${libname}${release}${shared_ext}$major'
20548 shlibpath_var=LD_LIBRARY_PATH
20549 shlibpath_overrides_runpath=yes
20550 hardcode_into_libs=yes
20551 # ldd complains unless libraries are executable
20552 postinstall_cmds='chmod +x $lib'
20557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20558 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20559 shlibpath_var=LD_LIBRARY_PATH
20560 shlibpath_overrides_runpath=yes
20561 if test "$with_gnu_ld" = yes; then
20567 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20570 soname_spec='${libname}${release}${shared_ext}$major'
20571 shlibpath_var=LD_LIBRARY_PATH
20572 case $host_vendor in
20574 shlibpath_overrides_runpath=no
20576 export_dynamic_flag_spec='${wl}-Blargedynsym'
20577 runpath_var=LD_RUN_PATH
20585 shlibpath_overrides_runpath=no
20586 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20592 if test -d /usr/nec ;then
20594 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20595 soname_spec='$libname${shared_ext}.$major'
20596 shlibpath_var=LD_LIBRARY_PATH
20602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20603 soname_spec='${libname}${release}${shared_ext}$major'
20604 shlibpath_var=LD_LIBRARY_PATH
20611 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20612 echo "${ECHO_T}$dynamic_linker" >&6; }
20613 test "$dynamic_linker" = no && can_build_shared=no
20615 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20616 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20617 hardcode_action_GCJ=
20618 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20619 test -n "$runpath_var GCJ" || \
20620 test "X$hardcode_automatic_GCJ"="Xyes" ; then
20622 # We can hardcode non-existant directories.
20623 if test "$hardcode_direct_GCJ" != no &&
20624 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20625 # have to relink, otherwise we might link with an installed library
20626 # when we should be linking with a yet-to-be-installed one
20627 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20628 test "$hardcode_minus_L_GCJ" != no; then
20629 # Linking always hardcodes the temporary library directory.
20630 hardcode_action_GCJ=relink
20632 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20633 hardcode_action_GCJ=immediate
20636 # We cannot hardcode anything, or else we can only hardcode existing
20638 hardcode_action_GCJ=unsupported
20640 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20641 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
20643 if test "$hardcode_action_GCJ" = relink; then
20644 # Fast installation is not supported
20645 enable_fast_install=no
20646 elif test "$shlibpath_overrides_runpath" = yes ||
20647 test "$enable_shared" = no; then
20648 # Fast installation is not necessary
20649 enable_fast_install=needless
20654 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20655 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
20656 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20657 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20658 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20659 { echo "$as_me:$LINENO: result: yes" >&5
20660 echo "${ECHO_T}yes" >&6; }
20662 # FIXME - insert some real tests, host_os isn't really good enough
20665 if test -n "$STRIP" ; then
20666 striplib="$STRIP -x"
20667 { echo "$as_me:$LINENO: result: yes" >&5
20668 echo "${ECHO_T}yes" >&6; }
20670 { echo "$as_me:$LINENO: result: no" >&5
20671 echo "${ECHO_T}no" >&6; }
20675 { echo "$as_me:$LINENO: result: no" >&5
20676 echo "${ECHO_T}no" >&6; }
20681 if test "x$enable_dlopen" != xyes; then
20682 enable_dlopen=unknown
20683 enable_dlopen_self=unknown
20684 enable_dlopen_self_static=unknown
20691 lt_cv_dlopen="load_add_on"
20693 lt_cv_dlopen_self=yes
20697 lt_cv_dlopen="LoadLibrary"
20702 lt_cv_dlopen="dlopen"
20707 # if libdl is installed we need to link against it
20708 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20709 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
20710 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20711 echo $ECHO_N "(cached) $ECHO_C" >&6
20713 ac_check_lib_save_LIBS=$LIBS
20715 cat >conftest.$ac_ext <<_ACEOF
20718 cat confdefs.h >>conftest.$ac_ext
20719 cat >>conftest.$ac_ext <<_ACEOF
20720 /* end confdefs.h. */
20722 /* Override any GCC internal prototype to avoid an error.
20723 Use char because int might match the return type of a GCC
20724 builtin and then its argument prototype would still apply. */
20737 rm -f conftest.$ac_objext conftest$ac_exeext
20738 if { (ac_try="$ac_link"
20739 case "(($ac_try" in
20740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20741 *) ac_try_echo=$ac_try;;
20743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20744 (eval "$ac_link") 2>conftest.er1
20746 grep -v '^ *+' conftest.er1 >conftest.err
20748 cat conftest.err >&5
20749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20750 (exit $ac_status); } && {
20751 test -z "$ac_c_werror_flag" ||
20752 test ! -s conftest.err
20753 } && test -s conftest$ac_exeext &&
20754 $as_test_x conftest$ac_exeext; then
20755 ac_cv_lib_dl_dlopen=yes
20757 echo "$as_me: failed program was:" >&5
20758 sed 's/^/| /' conftest.$ac_ext >&5
20760 ac_cv_lib_dl_dlopen=no
20763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20764 conftest$ac_exeext conftest.$ac_ext
20765 LIBS=$ac_check_lib_save_LIBS
20767 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20768 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
20769 if test $ac_cv_lib_dl_dlopen = yes; then
20770 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20773 lt_cv_dlopen="dyld"
20775 lt_cv_dlopen_self=yes
20782 { echo "$as_me:$LINENO: checking for shl_load" >&5
20783 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
20784 if test "${ac_cv_func_shl_load+set}" = set; then
20785 echo $ECHO_N "(cached) $ECHO_C" >&6
20787 cat >conftest.$ac_ext <<_ACEOF
20790 cat confdefs.h >>conftest.$ac_ext
20791 cat >>conftest.$ac_ext <<_ACEOF
20792 /* end confdefs.h. */
20793 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
20794 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20795 #define shl_load innocuous_shl_load
20797 /* System header to define __stub macros and hopefully few prototypes,
20798 which can conflict with char shl_load (); below.
20799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20800 <limits.h> exists even on freestanding compilers. */
20803 # include <limits.h>
20805 # include <assert.h>
20810 /* Override any GCC internal prototype to avoid an error.
20811 Use char because int might match the return type of a GCC
20812 builtin and then its argument prototype would still apply. */
20817 /* The GNU C library defines this for functions which it implements
20818 to always fail with ENOSYS. Some functions are actually named
20819 something starting with __ and the normal name is an alias. */
20820 #if defined __stub_shl_load || defined __stub___shl_load
20827 return shl_load ();
20832 rm -f conftest.$ac_objext conftest$ac_exeext
20833 if { (ac_try="$ac_link"
20834 case "(($ac_try" in
20835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20836 *) ac_try_echo=$ac_try;;
20838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20839 (eval "$ac_link") 2>conftest.er1
20841 grep -v '^ *+' conftest.er1 >conftest.err
20843 cat conftest.err >&5
20844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20845 (exit $ac_status); } && {
20846 test -z "$ac_c_werror_flag" ||
20847 test ! -s conftest.err
20848 } && test -s conftest$ac_exeext &&
20849 $as_test_x conftest$ac_exeext; then
20850 ac_cv_func_shl_load=yes
20852 echo "$as_me: failed program was:" >&5
20853 sed 's/^/| /' conftest.$ac_ext >&5
20855 ac_cv_func_shl_load=no
20858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20859 conftest$ac_exeext conftest.$ac_ext
20861 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
20862 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
20863 if test $ac_cv_func_shl_load = yes; then
20864 lt_cv_dlopen="shl_load"
20866 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
20867 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
20868 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20869 echo $ECHO_N "(cached) $ECHO_C" >&6
20871 ac_check_lib_save_LIBS=$LIBS
20873 cat >conftest.$ac_ext <<_ACEOF
20876 cat confdefs.h >>conftest.$ac_ext
20877 cat >>conftest.$ac_ext <<_ACEOF
20878 /* end confdefs.h. */
20880 /* Override any GCC internal prototype to avoid an error.
20881 Use char because int might match the return type of a GCC
20882 builtin and then its argument prototype would still apply. */
20890 return shl_load ();
20895 rm -f conftest.$ac_objext conftest$ac_exeext
20896 if { (ac_try="$ac_link"
20897 case "(($ac_try" in
20898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20899 *) ac_try_echo=$ac_try;;
20901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20902 (eval "$ac_link") 2>conftest.er1
20904 grep -v '^ *+' conftest.er1 >conftest.err
20906 cat conftest.err >&5
20907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20908 (exit $ac_status); } && {
20909 test -z "$ac_c_werror_flag" ||
20910 test ! -s conftest.err
20911 } && test -s conftest$ac_exeext &&
20912 $as_test_x conftest$ac_exeext; then
20913 ac_cv_lib_dld_shl_load=yes
20915 echo "$as_me: failed program was:" >&5
20916 sed 's/^/| /' conftest.$ac_ext >&5
20918 ac_cv_lib_dld_shl_load=no
20921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20922 conftest$ac_exeext conftest.$ac_ext
20923 LIBS=$ac_check_lib_save_LIBS
20925 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
20926 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
20927 if test $ac_cv_lib_dld_shl_load = yes; then
20928 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
20930 { echo "$as_me:$LINENO: checking for dlopen" >&5
20931 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
20932 if test "${ac_cv_func_dlopen+set}" = set; then
20933 echo $ECHO_N "(cached) $ECHO_C" >&6
20935 cat >conftest.$ac_ext <<_ACEOF
20938 cat confdefs.h >>conftest.$ac_ext
20939 cat >>conftest.$ac_ext <<_ACEOF
20940 /* end confdefs.h. */
20941 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
20942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20943 #define dlopen innocuous_dlopen
20945 /* System header to define __stub macros and hopefully few prototypes,
20946 which can conflict with char dlopen (); below.
20947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20948 <limits.h> exists even on freestanding compilers. */
20951 # include <limits.h>
20953 # include <assert.h>
20958 /* Override any GCC internal prototype to avoid an error.
20959 Use char because int might match the return type of a GCC
20960 builtin and then its argument prototype would still apply. */
20965 /* The GNU C library defines this for functions which it implements
20966 to always fail with ENOSYS. Some functions are actually named
20967 something starting with __ and the normal name is an alias. */
20968 #if defined __stub_dlopen || defined __stub___dlopen
20980 rm -f conftest.$ac_objext conftest$ac_exeext
20981 if { (ac_try="$ac_link"
20982 case "(($ac_try" in
20983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20984 *) ac_try_echo=$ac_try;;
20986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20987 (eval "$ac_link") 2>conftest.er1
20989 grep -v '^ *+' conftest.er1 >conftest.err
20991 cat conftest.err >&5
20992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20993 (exit $ac_status); } && {
20994 test -z "$ac_c_werror_flag" ||
20995 test ! -s conftest.err
20996 } && test -s conftest$ac_exeext &&
20997 $as_test_x conftest$ac_exeext; then
20998 ac_cv_func_dlopen=yes
21000 echo "$as_me: failed program was:" >&5
21001 sed 's/^/| /' conftest.$ac_ext >&5
21003 ac_cv_func_dlopen=no
21006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21007 conftest$ac_exeext conftest.$ac_ext
21009 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
21010 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
21011 if test $ac_cv_func_dlopen = yes; then
21012 lt_cv_dlopen="dlopen"
21014 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
21015 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
21016 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
21017 echo $ECHO_N "(cached) $ECHO_C" >&6
21019 ac_check_lib_save_LIBS=$LIBS
21021 cat >conftest.$ac_ext <<_ACEOF
21024 cat confdefs.h >>conftest.$ac_ext
21025 cat >>conftest.$ac_ext <<_ACEOF
21026 /* end confdefs.h. */
21028 /* Override any GCC internal prototype to avoid an error.
21029 Use char because int might match the return type of a GCC
21030 builtin and then its argument prototype would still apply. */
21043 rm -f conftest.$ac_objext conftest$ac_exeext
21044 if { (ac_try="$ac_link"
21045 case "(($ac_try" in
21046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21047 *) ac_try_echo=$ac_try;;
21049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21050 (eval "$ac_link") 2>conftest.er1
21052 grep -v '^ *+' conftest.er1 >conftest.err
21054 cat conftest.err >&5
21055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21056 (exit $ac_status); } && {
21057 test -z "$ac_c_werror_flag" ||
21058 test ! -s conftest.err
21059 } && test -s conftest$ac_exeext &&
21060 $as_test_x conftest$ac_exeext; then
21061 ac_cv_lib_dl_dlopen=yes
21063 echo "$as_me: failed program was:" >&5
21064 sed 's/^/| /' conftest.$ac_ext >&5
21066 ac_cv_lib_dl_dlopen=no
21069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21070 conftest$ac_exeext conftest.$ac_ext
21071 LIBS=$ac_check_lib_save_LIBS
21073 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
21074 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
21075 if test $ac_cv_lib_dl_dlopen = yes; then
21076 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
21078 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
21079 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
21080 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
21081 echo $ECHO_N "(cached) $ECHO_C" >&6
21083 ac_check_lib_save_LIBS=$LIBS
21084 LIBS="-lsvld $LIBS"
21085 cat >conftest.$ac_ext <<_ACEOF
21088 cat confdefs.h >>conftest.$ac_ext
21089 cat >>conftest.$ac_ext <<_ACEOF
21090 /* end confdefs.h. */
21092 /* Override any GCC internal prototype to avoid an error.
21093 Use char because int might match the return type of a GCC
21094 builtin and then its argument prototype would still apply. */
21107 rm -f conftest.$ac_objext conftest$ac_exeext
21108 if { (ac_try="$ac_link"
21109 case "(($ac_try" in
21110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21111 *) ac_try_echo=$ac_try;;
21113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21114 (eval "$ac_link") 2>conftest.er1
21116 grep -v '^ *+' conftest.er1 >conftest.err
21118 cat conftest.err >&5
21119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21120 (exit $ac_status); } && {
21121 test -z "$ac_c_werror_flag" ||
21122 test ! -s conftest.err
21123 } && test -s conftest$ac_exeext &&
21124 $as_test_x conftest$ac_exeext; then
21125 ac_cv_lib_svld_dlopen=yes
21127 echo "$as_me: failed program was:" >&5
21128 sed 's/^/| /' conftest.$ac_ext >&5
21130 ac_cv_lib_svld_dlopen=no
21133 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21134 conftest$ac_exeext conftest.$ac_ext
21135 LIBS=$ac_check_lib_save_LIBS
21137 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
21138 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
21139 if test $ac_cv_lib_svld_dlopen = yes; then
21140 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
21142 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
21143 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
21144 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
21145 echo $ECHO_N "(cached) $ECHO_C" >&6
21147 ac_check_lib_save_LIBS=$LIBS
21149 cat >conftest.$ac_ext <<_ACEOF
21152 cat confdefs.h >>conftest.$ac_ext
21153 cat >>conftest.$ac_ext <<_ACEOF
21154 /* end confdefs.h. */
21156 /* Override any GCC internal prototype to avoid an error.
21157 Use char because int might match the return type of a GCC
21158 builtin and then its argument prototype would still apply. */
21166 return dld_link ();
21171 rm -f conftest.$ac_objext conftest$ac_exeext
21172 if { (ac_try="$ac_link"
21173 case "(($ac_try" in
21174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21175 *) ac_try_echo=$ac_try;;
21177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21178 (eval "$ac_link") 2>conftest.er1
21180 grep -v '^ *+' conftest.er1 >conftest.err
21182 cat conftest.err >&5
21183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21184 (exit $ac_status); } && {
21185 test -z "$ac_c_werror_flag" ||
21186 test ! -s conftest.err
21187 } && test -s conftest$ac_exeext &&
21188 $as_test_x conftest$ac_exeext; then
21189 ac_cv_lib_dld_dld_link=yes
21191 echo "$as_me: failed program was:" >&5
21192 sed 's/^/| /' conftest.$ac_ext >&5
21194 ac_cv_lib_dld_dld_link=no
21197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21198 conftest$ac_exeext conftest.$ac_ext
21199 LIBS=$ac_check_lib_save_LIBS
21201 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
21202 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
21203 if test $ac_cv_lib_dld_dld_link = yes; then
21204 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
21225 if test "x$lt_cv_dlopen" != xno; then
21231 case $lt_cv_dlopen in
21233 save_CPPFLAGS="$CPPFLAGS"
21234 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
21236 save_LDFLAGS="$LDFLAGS"
21237 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
21240 LIBS="$lt_cv_dlopen_libs $LIBS"
21242 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
21243 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
21244 if test "${lt_cv_dlopen_self+set}" = set; then
21245 echo $ECHO_N "(cached) $ECHO_C" >&6
21247 if test "$cross_compiling" = yes; then :
21248 lt_cv_dlopen_self=cross
21250 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21251 lt_status=$lt_dlunknown
21252 cat > conftest.$ac_ext <<EOF
21253 #line 21253 "configure"
21254 #include "confdefs.h"
21263 # define LT_DLGLOBAL RTLD_GLOBAL
21266 # define LT_DLGLOBAL DL_GLOBAL
21268 # define LT_DLGLOBAL 0
21272 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21273 find out it does not work in some platform. */
21274 #ifndef LT_DLLAZY_OR_NOW
21276 # define LT_DLLAZY_OR_NOW RTLD_LAZY
21279 # define LT_DLLAZY_OR_NOW DL_LAZY
21282 # define LT_DLLAZY_OR_NOW RTLD_NOW
21285 # define LT_DLLAZY_OR_NOW DL_NOW
21287 # define LT_DLLAZY_OR_NOW 0
21295 extern "C" void exit (int);
21298 void fnord() { int i=42;}
21301 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21302 int status = $lt_dlunknown;
21306 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
21307 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21308 /* dlclose (self); */
21314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21315 (eval $ac_link) 2>&5
21317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
21319 (./conftest; exit; ) 2>/dev/null
21321 case x$lt_status in
21322 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
21323 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
21324 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
21327 # compilation failed
21328 lt_cv_dlopen_self=no
21335 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
21336 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
21338 if test "x$lt_cv_dlopen_self" = xyes; then
21339 LDFLAGS="$LDFLAGS $link_static_flag"
21340 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
21341 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
21342 if test "${lt_cv_dlopen_self_static+set}" = set; then
21343 echo $ECHO_N "(cached) $ECHO_C" >&6
21345 if test "$cross_compiling" = yes; then :
21346 lt_cv_dlopen_self_static=cross
21348 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21349 lt_status=$lt_dlunknown
21350 cat > conftest.$ac_ext <<EOF
21351 #line 21351 "configure"
21352 #include "confdefs.h"
21361 # define LT_DLGLOBAL RTLD_GLOBAL
21364 # define LT_DLGLOBAL DL_GLOBAL
21366 # define LT_DLGLOBAL 0
21370 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21371 find out it does not work in some platform. */
21372 #ifndef LT_DLLAZY_OR_NOW
21374 # define LT_DLLAZY_OR_NOW RTLD_LAZY
21377 # define LT_DLLAZY_OR_NOW DL_LAZY
21380 # define LT_DLLAZY_OR_NOW RTLD_NOW
21383 # define LT_DLLAZY_OR_NOW DL_NOW
21385 # define LT_DLLAZY_OR_NOW 0
21393 extern "C" void exit (int);
21396 void fnord() { int i=42;}
21399 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21400 int status = $lt_dlunknown;
21404 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
21405 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21406 /* dlclose (self); */
21412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21413 (eval $ac_link) 2>&5
21415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21416 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
21417 (./conftest; exit; ) 2>/dev/null
21419 case x$lt_status in
21420 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
21421 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
21422 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
21425 # compilation failed
21426 lt_cv_dlopen_self_static=no
21433 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
21434 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
21437 CPPFLAGS="$save_CPPFLAGS"
21438 LDFLAGS="$save_LDFLAGS"
21443 case $lt_cv_dlopen_self in
21444 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
21445 *) enable_dlopen_self=unknown ;;
21448 case $lt_cv_dlopen_self_static in
21449 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
21450 *) enable_dlopen_self_static=unknown ;;
21455 # The else clause should only fire when bootstrapping the
21456 # libtool distribution, otherwise you forgot to ship ltmain.sh
21457 # with your package, and you will get complaints that there are
21458 # no rules to generate ltmain.sh.
21459 if test -f "$ltmain"; then
21460 # See if we are running on zsh, and set the options which allow our commands through
21461 # without removal of \ escapes.
21462 if test -n "${ZSH_VERSION+set}" ; then
21463 setopt NO_GLOB_SUBST
21465 # Now quote all the things that may contain metacharacters while being
21466 # careful not to overquote the AC_SUBSTed values. We take copies of the
21467 # variables and quote the copies for generation of the libtool script.
21468 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
21469 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21470 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21471 deplibs_check_method reload_flag reload_cmds need_locks \
21472 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21473 lt_cv_sys_global_symbol_to_c_name_address \
21474 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21475 old_postinstall_cmds old_postuninstall_cmds \
21479 lt_prog_compiler_wl_GCJ \
21480 lt_prog_compiler_pic_GCJ \
21481 lt_prog_compiler_static_GCJ \
21482 lt_prog_compiler_no_builtin_flag_GCJ \
21483 export_dynamic_flag_spec_GCJ \
21484 thread_safe_flag_spec_GCJ \
21485 whole_archive_flag_spec_GCJ \
21486 enable_shared_with_static_runtimes_GCJ \
21487 old_archive_cmds_GCJ \
21488 old_archive_from_new_cmds_GCJ \
21489 predep_objects_GCJ \
21490 postdep_objects_GCJ \
21493 compiler_lib_search_path_GCJ \
21495 archive_expsym_cmds_GCJ \
21496 postinstall_cmds_GCJ \
21497 postuninstall_cmds_GCJ \
21498 old_archive_from_expsyms_cmds_GCJ \
21499 allow_undefined_flag_GCJ \
21500 no_undefined_flag_GCJ \
21501 export_symbols_cmds_GCJ \
21502 hardcode_libdir_flag_spec_GCJ \
21503 hardcode_libdir_flag_spec_ld_GCJ \
21504 hardcode_libdir_separator_GCJ \
21505 hardcode_automatic_GCJ \
21507 module_expsym_cmds_GCJ \
21508 lt_cv_prog_compiler_c_o_GCJ \
21509 exclude_expsyms_GCJ \
21510 include_expsyms_GCJ; do
21513 old_archive_cmds_GCJ | \
21514 old_archive_from_new_cmds_GCJ | \
21515 archive_cmds_GCJ | \
21516 archive_expsym_cmds_GCJ | \
21517 module_cmds_GCJ | \
21518 module_expsym_cmds_GCJ | \
21519 old_archive_from_expsyms_cmds_GCJ | \
21520 export_symbols_cmds_GCJ | \
21521 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21522 postinstall_cmds | postuninstall_cmds | \
21523 old_postinstall_cmds | old_postuninstall_cmds | \
21524 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21525 # Double-quote double-evaled strings.
21526 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21529 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21535 *'\$0 --fallback-echo"')
21536 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21542 cat <<__EOF__ >> "$cfgfile"
21543 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21545 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21547 # Shell to use when invoking shell scripts.
21550 # Whether or not to build shared libraries.
21551 build_libtool_libs=$enable_shared
21553 # Whether or not to build static libraries.
21554 build_old_libs=$enable_static
21556 # Whether or not to add -lc for building shared libraries.
21557 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
21559 # Whether or not to disallow shared libs when runtime libs are static
21560 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
21562 # Whether or not to optimize for fast installation.
21563 fast_install=$enable_fast_install
21566 host_alias=$host_alias
21569 # An echo program that does not interpret backslashes.
21574 AR_FLAGS=$lt_AR_FLAGS
21579 # A language-specific compiler.
21580 CC=$lt_compiler_GCJ
21582 # Is the compiler the GNU C compiler?
21588 # The linker used to build libraries.
21591 # Whether we need hard or soft links.
21594 # A BSD-compatible nm program.
21597 # A symbol stripping program
21600 # Used to examine libraries when file_magic_cmd begins "file"
21601 MAGIC_CMD=$MAGIC_CMD
21603 # Used on cygwin: DLL creation program.
21606 # Used on cygwin: object dumper.
21609 # Used on cygwin: assembler.
21612 # The name of the directory that contains temporary libtool files.
21615 # How to create reloadable object files.
21616 reload_flag=$lt_reload_flag
21617 reload_cmds=$lt_reload_cmds
21619 # How to pass a linker flag through the compiler.
21620 wl=$lt_lt_prog_compiler_wl_GCJ
21622 # Object file suffix (normally "o").
21623 objext="$ac_objext"
21625 # Old archive suffix (normally "a").
21628 # Shared library suffix (normally ".so").
21631 # Executable file suffix (normally "").
21634 # Additional compiler flags for building library objects.
21635 pic_flag=$lt_lt_prog_compiler_pic_GCJ
21638 # What is the maximum length of a command?
21639 max_cmd_len=$lt_cv_sys_max_cmd_len
21641 # Does compiler simultaneously support -c and -o options?
21642 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
21644 # Must we lock files when doing compilation ?
21645 need_locks=$lt_need_locks
21647 # Do we need the lib prefix for modules?
21648 need_lib_prefix=$need_lib_prefix
21650 # Do we need a version for libraries?
21651 need_version=$need_version
21653 # Whether dlopen is supported.
21654 dlopen_support=$enable_dlopen
21656 # Whether dlopen of programs is supported.
21657 dlopen_self=$enable_dlopen_self
21659 # Whether dlopen of statically linked programs is supported.
21660 dlopen_self_static=$enable_dlopen_self_static
21662 # Compiler flag to prevent dynamic linking.
21663 link_static_flag=$lt_lt_prog_compiler_static_GCJ
21665 # Compiler flag to turn off builtin functions.
21666 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
21668 # Compiler flag to allow reflexive dlopens.
21669 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
21671 # Compiler flag to generate shared objects directly from archives.
21672 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
21674 # Compiler flag to generate thread-safe objects.
21675 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
21677 # Library versioning type.
21678 version_type=$version_type
21680 # Format of library name prefix.
21681 libname_spec=$lt_libname_spec
21683 # List of archive names. First name is the real one, the rest are links.
21684 # The last name is the one that the linker finds with -lNAME.
21685 library_names_spec=$lt_library_names_spec
21687 # The coded name of the library, if different from the real name.
21688 soname_spec=$lt_soname_spec
21690 # Commands used to build and install an old-style archive.
21692 old_archive_cmds=$lt_old_archive_cmds_GCJ
21693 old_postinstall_cmds=$lt_old_postinstall_cmds
21694 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21696 # Create an old-style archive from a shared archive.
21697 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
21699 # Create a temporary old-style archive to link instead of a shared archive.
21700 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
21702 # Commands used to build and install a shared archive.
21703 archive_cmds=$lt_archive_cmds_GCJ
21704 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
21705 postinstall_cmds=$lt_postinstall_cmds
21706 postuninstall_cmds=$lt_postuninstall_cmds
21708 # Commands used to build a loadable module (assumed same as above if empty)
21709 module_cmds=$lt_module_cmds_GCJ
21710 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
21712 # Commands to strip libraries.
21713 old_striplib=$lt_old_striplib
21714 striplib=$lt_striplib
21716 # Dependencies to place before the objects being linked to create a
21718 predep_objects=$lt_predep_objects_GCJ
21720 # Dependencies to place after the objects being linked to create a
21722 postdep_objects=$lt_postdep_objects_GCJ
21724 # Dependencies to place before the objects being linked to create a
21726 predeps=$lt_predeps_GCJ
21728 # Dependencies to place after the objects being linked to create a
21730 postdeps=$lt_postdeps_GCJ
21732 # The library search path used internally by the compiler when linking
21733 # a shared library.
21734 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
21736 # Method to check whether dependent libraries are shared objects.
21737 deplibs_check_method=$lt_deplibs_check_method
21739 # Command to use when deplibs_check_method == file_magic.
21740 file_magic_cmd=$lt_file_magic_cmd
21742 # Flag that allows shared libraries with undefined symbols to be built.
21743 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
21745 # Flag that forces no undefined symbols.
21746 no_undefined_flag=$lt_no_undefined_flag_GCJ
21748 # Commands used to finish a libtool library installation in a directory.
21749 finish_cmds=$lt_finish_cmds
21751 # Same as above, but a single script fragment to be evaled but not shown.
21752 finish_eval=$lt_finish_eval
21754 # Take the output of nm and produce a listing of raw symbols and C names.
21755 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21757 # Transform the output of nm in a proper C declaration
21758 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21760 # Transform the output of nm in a C name address pair
21761 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21763 # This is the shared library runtime path variable.
21764 runpath_var=$runpath_var
21766 # This is the shared library path variable.
21767 shlibpath_var=$shlibpath_var
21769 # Is shlibpath searched before the hard-coded library search path?
21770 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21772 # How to hardcode a shared library path into an executable.
21773 hardcode_action=$hardcode_action_GCJ
21775 # Whether we should hardcode library paths into libraries.
21776 hardcode_into_libs=$hardcode_into_libs
21778 # Flag to hardcode \$libdir into a binary during linking.
21779 # This must work even if \$libdir does not exist.
21780 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
21782 # If ld is used when linking, flag to hardcode \$libdir into
21783 # a binary during linking. This must work even if \$libdir does
21785 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
21787 # Whether we need a single -rpath flag with a separated argument.
21788 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
21790 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21791 # resulting binary.
21792 hardcode_direct=$hardcode_direct_GCJ
21794 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21795 # resulting binary.
21796 hardcode_minus_L=$hardcode_minus_L_GCJ
21798 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21799 # the resulting binary.
21800 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
21802 # Set to yes if building a shared library automatically hardcodes DIR into the library
21803 # and all subsequent libraries and executables linked against it.
21804 hardcode_automatic=$hardcode_automatic_GCJ
21806 # Variables whose values should be saved in libtool wrapper scripts and
21807 # restored at relink time.
21808 variables_saved_for_relink="$variables_saved_for_relink"
21810 # Whether libtool must link a program against all its dependency libraries.
21811 link_all_deplibs=$link_all_deplibs_GCJ
21813 # Compile-time system search path for libraries
21814 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21816 # Run-time system search path for libraries
21817 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21819 # Fix the shell variable \$srcfile for the compiler.
21820 fix_srcfile_path="$fix_srcfile_path_GCJ"
21822 # Set to yes if exported symbols are required.
21823 always_export_symbols=$always_export_symbols_GCJ
21825 # The commands to list exported symbols.
21826 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
21828 # The commands to extract the exported symbol list from a shared archive.
21829 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21831 # Symbols that should not be listed in the preloaded symbols.
21832 exclude_expsyms=$lt_exclude_expsyms_GCJ
21834 # Symbols that must always be exported.
21835 include_expsyms=$lt_include_expsyms_GCJ
21837 # ### END LIBTOOL TAG CONFIG: $tagname
21843 # If there is no Makefile yet, we rely on a make rule to execute
21844 # `config.status --recheck' to rerun these tests and create the
21845 # libtool script then.
21846 test -f Makefile && make "$ltmain"
21851 ac_cpp='$CPP $CPPFLAGS'
21852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21866 # Source file extension for RC test sources.
21869 # Object file extension for compiled RC test sources.
21873 # Code to be used in simple compile tests
21874 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
21876 # Code to be used in simple link tests
21877 lt_simple_link_test_code="$lt_simple_compile_test_code"
21879 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21881 # If no C compiler was specified, use CC.
21884 # Allow CC to be a program name with arguments.
21888 # Allow CC to be a program name with arguments.
21893 lt_cv_prog_compiler_c_o_RC=yes
21895 # The else clause should only fire when bootstrapping the
21896 # libtool distribution, otherwise you forgot to ship ltmain.sh
21897 # with your package, and you will get complaints that there are
21898 # no rules to generate ltmain.sh.
21899 if test -f "$ltmain"; then
21900 # See if we are running on zsh, and set the options which allow our commands through
21901 # without removal of \ escapes.
21902 if test -n "${ZSH_VERSION+set}" ; then
21903 setopt NO_GLOB_SUBST
21905 # Now quote all the things that may contain metacharacters while being
21906 # careful not to overquote the AC_SUBSTed values. We take copies of the
21907 # variables and quote the copies for generation of the libtool script.
21908 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
21909 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21910 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21911 deplibs_check_method reload_flag reload_cmds need_locks \
21912 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21913 lt_cv_sys_global_symbol_to_c_name_address \
21914 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21915 old_postinstall_cmds old_postuninstall_cmds \
21919 lt_prog_compiler_wl_RC \
21920 lt_prog_compiler_pic_RC \
21921 lt_prog_compiler_static_RC \
21922 lt_prog_compiler_no_builtin_flag_RC \
21923 export_dynamic_flag_spec_RC \
21924 thread_safe_flag_spec_RC \
21925 whole_archive_flag_spec_RC \
21926 enable_shared_with_static_runtimes_RC \
21927 old_archive_cmds_RC \
21928 old_archive_from_new_cmds_RC \
21929 predep_objects_RC \
21930 postdep_objects_RC \
21933 compiler_lib_search_path_RC \
21935 archive_expsym_cmds_RC \
21936 postinstall_cmds_RC \
21937 postuninstall_cmds_RC \
21938 old_archive_from_expsyms_cmds_RC \
21939 allow_undefined_flag_RC \
21940 no_undefined_flag_RC \
21941 export_symbols_cmds_RC \
21942 hardcode_libdir_flag_spec_RC \
21943 hardcode_libdir_flag_spec_ld_RC \
21944 hardcode_libdir_separator_RC \
21945 hardcode_automatic_RC \
21947 module_expsym_cmds_RC \
21948 lt_cv_prog_compiler_c_o_RC \
21949 exclude_expsyms_RC \
21950 include_expsyms_RC; do
21953 old_archive_cmds_RC | \
21954 old_archive_from_new_cmds_RC | \
21955 archive_cmds_RC | \
21956 archive_expsym_cmds_RC | \
21958 module_expsym_cmds_RC | \
21959 old_archive_from_expsyms_cmds_RC | \
21960 export_symbols_cmds_RC | \
21961 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21962 postinstall_cmds | postuninstall_cmds | \
21963 old_postinstall_cmds | old_postuninstall_cmds | \
21964 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21965 # Double-quote double-evaled strings.
21966 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21969 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21975 *'\$0 --fallback-echo"')
21976 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21982 cat <<__EOF__ >> "$cfgfile"
21983 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21985 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21987 # Shell to use when invoking shell scripts.
21990 # Whether or not to build shared libraries.
21991 build_libtool_libs=$enable_shared
21993 # Whether or not to build static libraries.
21994 build_old_libs=$enable_static
21996 # Whether or not to add -lc for building shared libraries.
21997 build_libtool_need_lc=$archive_cmds_need_lc_RC
21999 # Whether or not to disallow shared libs when runtime libs are static
22000 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
22002 # Whether or not to optimize for fast installation.
22003 fast_install=$enable_fast_install
22006 host_alias=$host_alias
22009 # An echo program that does not interpret backslashes.
22014 AR_FLAGS=$lt_AR_FLAGS
22019 # A language-specific compiler.
22022 # Is the compiler the GNU C compiler?
22028 # The linker used to build libraries.
22031 # Whether we need hard or soft links.
22034 # A BSD-compatible nm program.
22037 # A symbol stripping program
22040 # Used to examine libraries when file_magic_cmd begins "file"
22041 MAGIC_CMD=$MAGIC_CMD
22043 # Used on cygwin: DLL creation program.
22046 # Used on cygwin: object dumper.
22049 # Used on cygwin: assembler.
22052 # The name of the directory that contains temporary libtool files.
22055 # How to create reloadable object files.
22056 reload_flag=$lt_reload_flag
22057 reload_cmds=$lt_reload_cmds
22059 # How to pass a linker flag through the compiler.
22060 wl=$lt_lt_prog_compiler_wl_RC
22062 # Object file suffix (normally "o").
22063 objext="$ac_objext"
22065 # Old archive suffix (normally "a").
22068 # Shared library suffix (normally ".so").
22071 # Executable file suffix (normally "").
22074 # Additional compiler flags for building library objects.
22075 pic_flag=$lt_lt_prog_compiler_pic_RC
22078 # What is the maximum length of a command?
22079 max_cmd_len=$lt_cv_sys_max_cmd_len
22081 # Does compiler simultaneously support -c and -o options?
22082 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
22084 # Must we lock files when doing compilation ?
22085 need_locks=$lt_need_locks
22087 # Do we need the lib prefix for modules?
22088 need_lib_prefix=$need_lib_prefix
22090 # Do we need a version for libraries?
22091 need_version=$need_version
22093 # Whether dlopen is supported.
22094 dlopen_support=$enable_dlopen
22096 # Whether dlopen of programs is supported.
22097 dlopen_self=$enable_dlopen_self
22099 # Whether dlopen of statically linked programs is supported.
22100 dlopen_self_static=$enable_dlopen_self_static
22102 # Compiler flag to prevent dynamic linking.
22103 link_static_flag=$lt_lt_prog_compiler_static_RC
22105 # Compiler flag to turn off builtin functions.
22106 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
22108 # Compiler flag to allow reflexive dlopens.
22109 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
22111 # Compiler flag to generate shared objects directly from archives.
22112 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
22114 # Compiler flag to generate thread-safe objects.
22115 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
22117 # Library versioning type.
22118 version_type=$version_type
22120 # Format of library name prefix.
22121 libname_spec=$lt_libname_spec
22123 # List of archive names. First name is the real one, the rest are links.
22124 # The last name is the one that the linker finds with -lNAME.
22125 library_names_spec=$lt_library_names_spec
22127 # The coded name of the library, if different from the real name.
22128 soname_spec=$lt_soname_spec
22130 # Commands used to build and install an old-style archive.
22132 old_archive_cmds=$lt_old_archive_cmds_RC
22133 old_postinstall_cmds=$lt_old_postinstall_cmds
22134 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22136 # Create an old-style archive from a shared archive.
22137 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
22139 # Create a temporary old-style archive to link instead of a shared archive.
22140 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
22142 # Commands used to build and install a shared archive.
22143 archive_cmds=$lt_archive_cmds_RC
22144 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
22145 postinstall_cmds=$lt_postinstall_cmds
22146 postuninstall_cmds=$lt_postuninstall_cmds
22148 # Commands used to build a loadable module (assumed same as above if empty)
22149 module_cmds=$lt_module_cmds_RC
22150 module_expsym_cmds=$lt_module_expsym_cmds_RC
22152 # Commands to strip libraries.
22153 old_striplib=$lt_old_striplib
22154 striplib=$lt_striplib
22156 # Dependencies to place before the objects being linked to create a
22158 predep_objects=$lt_predep_objects_RC
22160 # Dependencies to place after the objects being linked to create a
22162 postdep_objects=$lt_postdep_objects_RC
22164 # Dependencies to place before the objects being linked to create a
22166 predeps=$lt_predeps_RC
22168 # Dependencies to place after the objects being linked to create a
22170 postdeps=$lt_postdeps_RC
22172 # The library search path used internally by the compiler when linking
22173 # a shared library.
22174 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
22176 # Method to check whether dependent libraries are shared objects.
22177 deplibs_check_method=$lt_deplibs_check_method
22179 # Command to use when deplibs_check_method == file_magic.
22180 file_magic_cmd=$lt_file_magic_cmd
22182 # Flag that allows shared libraries with undefined symbols to be built.
22183 allow_undefined_flag=$lt_allow_undefined_flag_RC
22185 # Flag that forces no undefined symbols.
22186 no_undefined_flag=$lt_no_undefined_flag_RC
22188 # Commands used to finish a libtool library installation in a directory.
22189 finish_cmds=$lt_finish_cmds
22191 # Same as above, but a single script fragment to be evaled but not shown.
22192 finish_eval=$lt_finish_eval
22194 # Take the output of nm and produce a listing of raw symbols and C names.
22195 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22197 # Transform the output of nm in a proper C declaration
22198 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22200 # Transform the output of nm in a C name address pair
22201 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22203 # This is the shared library runtime path variable.
22204 runpath_var=$runpath_var
22206 # This is the shared library path variable.
22207 shlibpath_var=$shlibpath_var
22209 # Is shlibpath searched before the hard-coded library search path?
22210 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22212 # How to hardcode a shared library path into an executable.
22213 hardcode_action=$hardcode_action_RC
22215 # Whether we should hardcode library paths into libraries.
22216 hardcode_into_libs=$hardcode_into_libs
22218 # Flag to hardcode \$libdir into a binary during linking.
22219 # This must work even if \$libdir does not exist.
22220 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
22222 # If ld is used when linking, flag to hardcode \$libdir into
22223 # a binary during linking. This must work even if \$libdir does
22225 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
22227 # Whether we need a single -rpath flag with a separated argument.
22228 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
22230 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22231 # resulting binary.
22232 hardcode_direct=$hardcode_direct_RC
22234 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22235 # resulting binary.
22236 hardcode_minus_L=$hardcode_minus_L_RC
22238 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22239 # the resulting binary.
22240 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
22242 # Set to yes if building a shared library automatically hardcodes DIR into the library
22243 # and all subsequent libraries and executables linked against it.
22244 hardcode_automatic=$hardcode_automatic_RC
22246 # Variables whose values should be saved in libtool wrapper scripts and
22247 # restored at relink time.
22248 variables_saved_for_relink="$variables_saved_for_relink"
22250 # Whether libtool must link a program against all its dependency libraries.
22251 link_all_deplibs=$link_all_deplibs_RC
22253 # Compile-time system search path for libraries
22254 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22256 # Run-time system search path for libraries
22257 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22259 # Fix the shell variable \$srcfile for the compiler.
22260 fix_srcfile_path="$fix_srcfile_path_RC"
22262 # Set to yes if exported symbols are required.
22263 always_export_symbols=$always_export_symbols_RC
22265 # The commands to list exported symbols.
22266 export_symbols_cmds=$lt_export_symbols_cmds_RC
22268 # The commands to extract the exported symbol list from a shared archive.
22269 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22271 # Symbols that should not be listed in the preloaded symbols.
22272 exclude_expsyms=$lt_exclude_expsyms_RC
22274 # Symbols that must always be exported.
22275 include_expsyms=$lt_include_expsyms_RC
22277 # ### END LIBTOOL TAG CONFIG: $tagname
22283 # If there is no Makefile yet, we rely on a make rule to execute
22284 # `config.status --recheck' to rerun these tests and create the
22285 # libtool script then.
22286 test -f Makefile && make "$ltmain"
22291 ac_cpp='$CPP $CPPFLAGS'
22292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22301 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
22302 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
22303 { (exit 1); exit 1; }; }
22307 # Append the new tag name to the list of available tags.
22308 if test -n "$tagname" ; then
22309 available_tags="$available_tags $tagname"
22315 # Now substitute the updated list of available tags.
22316 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
22317 mv "${ofile}T" "$ofile"
22321 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
22322 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
22323 { (exit 1); exit 1; }; }
22329 # This can be used to rebuild libtool when needed
22330 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
22332 # Always use our own libtool.
22333 LIBTOOL='$(SHELL) $(top_builddir)/libtool --silent'
22335 # Prevent multiple expansion
22370 LIBTOOL_SHELL="/bin/sh ./libtool"
22371 # LIBTOOL="$LIBTOOL --silent"
22372 KDE_PLUGIN="-avoid-version -module -no-undefined \$(KDE_NO_UNDEFINED) \$(KDE_RPATH) \$(KDE_MT_LDFLAGS)"
22375 # we patch configure quite some so we better keep that consistent for incremental runs
22376 AUTOCONF='$(SHELL) $(top_srcdir)/admin/cvs.sh configure || touch configure'
22382 # Extract the first word of "msgfmt", so it can be a program name with args.
22383 set dummy msgfmt; ac_word=$2
22384 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22386 if test "${ac_cv_path_MSGFMT+set}" = set; then
22387 echo $ECHO_N "(cached) $ECHO_C" >&6
22391 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
22394 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
22395 for ac_dir in $PATH; do
22396 test -z "$ac_dir" && ac_dir=.
22397 if test -f $ac_dir/$ac_word; then
22398 if test -n "`$ac_dir/$ac_word --version 2>&1 | grep 'GNU gettext'`"; then
22399 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
22405 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
22409 MSGFMT="$ac_cv_path_MSGFMT"
22410 if test -n "$MSGFMT"; then
22411 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
22412 echo "${ECHO_T}$MSGFMT" >&6; }
22414 { echo "$as_me:$LINENO: result: no" >&5
22415 echo "${ECHO_T}no" >&6; }
22418 # Extract the first word of "gmsgfmt", so it can be a program name with args.
22419 set dummy gmsgfmt; ac_word=$2
22420 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22422 if test "${ac_cv_path_GMSGFMT+set}" = set; then
22423 echo $ECHO_N "(cached) $ECHO_C" >&6
22427 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
22430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22431 for as_dir in $PATH
22434 test -z "$as_dir" && as_dir=.
22435 for ac_exec_ext in '' $ac_executable_extensions; do
22436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22437 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
22438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22445 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
22449 GMSGFMT=$ac_cv_path_GMSGFMT
22450 if test -n "$GMSGFMT"; then
22451 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
22452 echo "${ECHO_T}$GMSGFMT" >&6; }
22454 { echo "$as_me:$LINENO: result: no" >&5
22455 echo "${ECHO_T}no" >&6; }
22460 if test -z "`$GMSGFMT --version 2>&1 | grep 'GNU gettext'`"; then
22461 { echo "$as_me:$LINENO: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
22462 echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6; }
22469 # Extract the first word of "xgettext", so it can be a program name with args.
22470 set dummy xgettext; ac_word=$2
22471 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22473 if test "${ac_cv_path_XGETTEXT+set}" = set; then
22474 echo $ECHO_N "(cached) $ECHO_C" >&6
22476 case "$XGETTEXT" in
22478 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
22481 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
22482 for ac_dir in $PATH; do
22483 test -z "$ac_dir" && ac_dir=.
22484 if test -f $ac_dir/$ac_word; then
22485 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
22486 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
22492 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
22496 XGETTEXT="$ac_cv_path_XGETTEXT"
22497 if test -n "$XGETTEXT"; then
22498 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
22499 echo "${ECHO_T}$XGETTEXT" >&6; }
22501 { echo "$as_me:$LINENO: result: no" >&5
22502 echo "${ECHO_T}no" >&6; }
22506 if test "$XGETTEXT" != ":"; then
22507 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
22510 { echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
22511 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6; }
22520 if test -z "$REQUIRED_KDE_VERSION"; then
22521 # Current default Qt version: 3.3
22525 kde_qtsubver=`echo "$REQUIRED_KDE_VERSION" | sed -e 's#[0-9][0-9]*\.\([0-9][0-9]*\).*#\1#'`
22526 # following is the check if subversion isnt found in passed argument
22527 if test "$kde_qtsubver" = "$REQUIRED_KDE_VERSION"; then
22530 kde_qtver=`echo "$REQUIRED_KDE_VERSION" | sed -e 's#^\([0-9][0-9]*\)\..*#\1#'`
22531 if test "$kde_qtver" = "1"; then
22536 if test -z ""; then
22537 if test "$kde_qtver" = "2"; then
22538 if test $kde_qtsubver -gt 0; then
22539 kde_qt_minversion=">= Qt 2.2.2"
22541 kde_qt_minversion=">= Qt 2.0.2"
22544 if test "$kde_qtver" = "3"; then
22545 if test $kde_qtsubver -gt 0; then
22546 if test $kde_qtsubver -gt 1; then
22547 if test $kde_qtsubver -gt 2; then
22548 kde_qt_minversion=">= Qt 3.3"
22550 kde_qt_minversion=">= Qt 3.2"
22553 kde_qt_minversion=">= Qt 3.1 (20021021)"
22556 kde_qt_minversion=">= Qt 3.0"
22559 if test "$kde_qtver" = "1"; then
22560 kde_qt_minversion=">= 1.42 and < 2.0"
22563 kde_qt_minversion=""
22566 if test -z ""; then
22567 if test $kde_qtver = 3; then
22568 if test $kde_qtsubver -gt 0; then
22569 kde_qt_verstring="QT_VERSION >= 0x03@VER@00 && QT_VERSION < 0x040000"
22570 qtsubver=`echo "00$kde_qtsubver" | sed -e 's,.*\(..\)$,\1,'`
22571 kde_qt_verstring=`echo $kde_qt_verstring | sed -e "s,@VER@,$qtsubver,"`
22573 kde_qt_verstring="QT_VERSION >= 300 && QT_VERSION < 0x040000"
22576 if test $kde_qtver = 2; then
22577 if test $kde_qtsubver -gt 0; then
22578 kde_qt_verstring="QT_VERSION >= 222"
22580 kde_qt_verstring="QT_VERSION >= 200"
22583 if test $kde_qtver = 1; then
22584 kde_qt_verstring="QT_VERSION >= 142 && QT_VERSION < 200"
22587 kde_qt_verstring=""
22590 if test $kde_qtver = 3; then
22591 kde_qt_dirs="$QTDIR /usr/lib/qt3 /usr/lib/qt /usr/share/qt3"
22593 if test $kde_qtver = 2; then
22594 kde_qt_dirs="$QTDIR /usr/lib/qt2 /usr/lib/qt"
22596 if test $kde_qtver = 1; then
22597 kde_qt_dirs="$QTDIR /usr/lib/qt"
22603 ac_cpp='$CXXCPP $CPPFLAGS'
22604 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22605 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22606 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22608 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22611 ac_save_CXXFLAGS="$CXXFLAGS"
22612 CXXFLAGS="`echo $CXXFLAGS | sed s/-fno-exceptions//`"
22614 { echo "$as_me:$LINENO: checking if C++ programs can be compiled" >&5
22615 echo $ECHO_N "checking if C++ programs can be compiled... $ECHO_C" >&6; }
22616 if test "${kde_cv_stl_works+set}" = set; then
22617 echo $ECHO_N "(cached) $ECHO_C" >&6
22620 cat >conftest.$ac_ext <<_ACEOF
22623 cat confdefs.h >>conftest.$ac_ext
22624 cat >>conftest.$ac_ext <<_ACEOF
22625 /* end confdefs.h. */
22628 using namespace std;
22634 string astring="Hallo Welt.";
22635 astring.erase(0, 6); // now astring is "Welt"
22642 rm -f conftest.$ac_objext
22643 if { (ac_try="$ac_compile"
22644 case "(($ac_try" in
22645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22646 *) ac_try_echo=$ac_try;;
22648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22649 (eval "$ac_compile") 2>conftest.er1
22651 grep -v '^ *+' conftest.er1 >conftest.err
22653 cat conftest.err >&5
22654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22655 (exit $ac_status); } && {
22656 test -z "$ac_cxx_werror_flag" ||
22657 test ! -s conftest.err
22658 } && test -s conftest.$ac_objext; then
22659 kde_cv_stl_works=yes
22661 echo "$as_me: failed program was:" >&5
22662 sed 's/^/| /' conftest.$ac_ext >&5
22664 kde_cv_stl_works=no
22667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22672 { echo "$as_me:$LINENO: result: $kde_cv_stl_works" >&5
22673 echo "${ECHO_T}$kde_cv_stl_works" >&6; }
22675 if test "$kde_cv_stl_works" = "yes"; then
22678 cat >>confdefs.h <<_ACEOF
22679 #define HAVE_SGI_STL 1
22683 { { echo "$as_me:$LINENO: error: Your Installation isn't able to compile simple C++ programs.
22684 Check config.log for details - if you're using a Linux distribution you might miss
22685 a package named similar to libstdc++-dev." >&5
22686 echo "$as_me: error: Your Installation isn't able to compile simple C++ programs.
22687 Check config.log for details - if you're using a Linux distribution you might miss
22688 a package named similar to libstdc++-dev." >&2;}
22689 { (exit 1); exit 1; }; }
22692 CXXFLAGS="$ac_save_CXXFLAGS"
22694 ac_cpp='$CPP $CPPFLAGS'
22695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22702 { echo "$as_me:$LINENO: checking for strlcat" >&5
22703 echo $ECHO_N "checking for strlcat... $ECHO_C" >&6; }
22704 if test "${kde_cv_func_strlcat+set}" = set; then
22705 echo $ECHO_N "(cached) $ECHO_C" >&6
22710 ac_cpp='$CXXCPP $CPPFLAGS'
22711 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22712 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22713 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22715 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22718 save_CXXFLAGS="$CXXFLAGS"
22719 kde_safe_LIBS="$LIBS"
22720 LIBS="$LIBS $X_EXTRA_LIBS"
22721 if test "$GXX" = "yes"; then
22722 CXXFLAGS="$CXXFLAGS -pedantic-errors"
22724 cat >conftest.$ac_ext <<_ACEOF
22727 cat confdefs.h >>conftest.$ac_ext
22728 cat >>conftest.$ac_ext <<_ACEOF
22729 /* end confdefs.h. */
22732 #include <string.h>
22741 strlcat(buf, "KDE function test", sizeof(buf));
22748 rm -f conftest.$ac_objext
22749 if { (ac_try="$ac_compile"
22750 case "(($ac_try" in
22751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22752 *) ac_try_echo=$ac_try;;
22754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22755 (eval "$ac_compile") 2>conftest.er1
22757 grep -v '^ *+' conftest.er1 >conftest.err
22759 cat conftest.err >&5
22760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22761 (exit $ac_status); } && {
22762 test -z "$ac_cxx_werror_flag" ||
22763 test ! -s conftest.err
22764 } && test -s conftest.$ac_objext; then
22765 kde_cv_func_strlcat=yes
22767 echo "$as_me: failed program was:" >&5
22768 sed 's/^/| /' conftest.$ac_ext >&5
22770 kde_cv_func_strlcat=no
22773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22774 CXXFLAGS="$save_CXXFLAGS"
22775 LIBS="$kde_safe_LIBS"
22777 ac_cpp='$CPP $CPPFLAGS'
22778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22786 { echo "$as_me:$LINENO: result: $kde_cv_func_strlcat" >&5
22787 echo "${ECHO_T}$kde_cv_func_strlcat" >&6; }
22789 { echo "$as_me:$LINENO: checking if strlcat needs custom prototype" >&5
22790 echo $ECHO_N "checking if strlcat needs custom prototype... $ECHO_C" >&6; }
22791 if test "${kde_cv_proto_strlcat+set}" = set; then
22792 echo $ECHO_N "(cached) $ECHO_C" >&6
22795 if test "x$kde_cv_func_strlcat" = xyes; then
22796 kde_cv_proto_strlcat=no
22799 setenv|unsetenv|usleep|random|srandom|seteuid|mkstemps|mkstemp|revoke|vsnprintf|strlcpy|strlcat)
22800 kde_cv_proto_strlcat="yes - in libkdefakes"
22803 kde_cv_proto_strlcat=unknown
22808 if test "x$kde_cv_proto_strlcat" = xunknown; then
22812 ac_cpp='$CXXCPP $CPPFLAGS'
22813 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22814 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22815 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22817 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22820 kde_safe_libs=$LIBS
22821 LIBS="$LIBS $X_EXTRA_LIBS"
22822 cat >conftest.$ac_ext <<_ACEOF
22825 cat confdefs.h >>conftest.$ac_ext
22826 cat >>conftest.$ac_ext <<_ACEOF
22827 /* end confdefs.h. */
22830 #include <string.h>
22833 extern "C" unsigned long strlcat(char*, const char*, unsigned long);
22841 strlcat(buf, "KDE function test", sizeof(buf));
22848 rm -f conftest.$ac_objext conftest$ac_exeext
22849 if { (ac_try="$ac_link"
22850 case "(($ac_try" in
22851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22852 *) ac_try_echo=$ac_try;;
22854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22855 (eval "$ac_link") 2>conftest.er1
22857 grep -v '^ *+' conftest.er1 >conftest.err
22859 cat conftest.err >&5
22860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22861 (exit $ac_status); } && {
22862 test -z "$ac_cxx_werror_flag" ||
22863 test ! -s conftest.err
22864 } && test -s conftest$ac_exeext &&
22865 $as_test_x conftest$ac_exeext; then
22866 kde_cv_func_strlcat=yes
22867 kde_cv_proto_strlcat=yes
22869 echo "$as_me: failed program was:" >&5
22870 sed 's/^/| /' conftest.$ac_ext >&5
22872 kde_cv_proto_strlcat="strlcat unavailable"
22876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22877 conftest$ac_exeext conftest.$ac_ext
22878 LIBS=$kde_safe_libs
22880 ac_cpp='$CPP $CPPFLAGS'
22881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22889 { echo "$as_me:$LINENO: result: $kde_cv_proto_strlcat" >&5
22890 echo "${ECHO_T}$kde_cv_proto_strlcat" >&6; }
22892 if test "x$kde_cv_func_strlcat" = xyes; then
22894 cat >>confdefs.h <<\_ACEOF
22895 #define HAVE_STRLCAT 1
22900 if test "x$kde_cv_proto_strlcat" = xno; then
22902 cat >>confdefs.h <<\_ACEOF
22903 #define HAVE_STRLCAT_PROTO 1
22914 { echo "$as_me:$LINENO: checking for strlcpy" >&5
22915 echo $ECHO_N "checking for strlcpy... $ECHO_C" >&6; }
22916 if test "${kde_cv_func_strlcpy+set}" = set; then
22917 echo $ECHO_N "(cached) $ECHO_C" >&6
22922 ac_cpp='$CXXCPP $CPPFLAGS'
22923 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22924 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22925 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22927 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22930 save_CXXFLAGS="$CXXFLAGS"
22931 kde_safe_LIBS="$LIBS"
22932 LIBS="$LIBS $X_EXTRA_LIBS"
22933 if test "$GXX" = "yes"; then
22934 CXXFLAGS="$CXXFLAGS -pedantic-errors"
22936 cat >conftest.$ac_ext <<_ACEOF
22939 cat confdefs.h >>conftest.$ac_ext
22940 cat >>conftest.$ac_ext <<_ACEOF
22941 /* end confdefs.h. */
22944 #include <string.h>
22952 strlcpy(buf, "KDE function test", sizeof(buf));
22959 rm -f conftest.$ac_objext
22960 if { (ac_try="$ac_compile"
22961 case "(($ac_try" in
22962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22963 *) ac_try_echo=$ac_try;;
22965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22966 (eval "$ac_compile") 2>conftest.er1
22968 grep -v '^ *+' conftest.er1 >conftest.err
22970 cat conftest.err >&5
22971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22972 (exit $ac_status); } && {
22973 test -z "$ac_cxx_werror_flag" ||
22974 test ! -s conftest.err
22975 } && test -s conftest.$ac_objext; then
22976 kde_cv_func_strlcpy=yes
22978 echo "$as_me: failed program was:" >&5
22979 sed 's/^/| /' conftest.$ac_ext >&5
22981 kde_cv_func_strlcpy=no
22984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22985 CXXFLAGS="$save_CXXFLAGS"
22986 LIBS="$kde_safe_LIBS"
22988 ac_cpp='$CPP $CPPFLAGS'
22989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22997 { echo "$as_me:$LINENO: result: $kde_cv_func_strlcpy" >&5
22998 echo "${ECHO_T}$kde_cv_func_strlcpy" >&6; }
23000 { echo "$as_me:$LINENO: checking if strlcpy needs custom prototype" >&5
23001 echo $ECHO_N "checking if strlcpy needs custom prototype... $ECHO_C" >&6; }
23002 if test "${kde_cv_proto_strlcpy+set}" = set; then
23003 echo $ECHO_N "(cached) $ECHO_C" >&6
23006 if test "x$kde_cv_func_strlcpy" = xyes; then
23007 kde_cv_proto_strlcpy=no
23010 setenv|unsetenv|usleep|random|srandom|seteuid|mkstemps|mkstemp|revoke|vsnprintf|strlcpy|strlcat)
23011 kde_cv_proto_strlcpy="yes - in libkdefakes"
23014 kde_cv_proto_strlcpy=unknown
23019 if test "x$kde_cv_proto_strlcpy" = xunknown; then
23023 ac_cpp='$CXXCPP $CPPFLAGS'
23024 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23025 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23026 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23028 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
23031 kde_safe_libs=$LIBS
23032 LIBS="$LIBS $X_EXTRA_LIBS"
23033 cat >conftest.$ac_ext <<_ACEOF
23036 cat confdefs.h >>conftest.$ac_ext
23037 cat >>conftest.$ac_ext <<_ACEOF
23038 /* end confdefs.h. */
23041 #include <string.h>
23044 extern "C" unsigned long strlcpy(char*, const char*, unsigned long);
23051 strlcpy(buf, "KDE function test", sizeof(buf));
23058 rm -f conftest.$ac_objext conftest$ac_exeext
23059 if { (ac_try="$ac_link"
23060 case "(($ac_try" in
23061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23062 *) ac_try_echo=$ac_try;;
23064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23065 (eval "$ac_link") 2>conftest.er1
23067 grep -v '^ *+' conftest.er1 >conftest.err
23069 cat conftest.err >&5
23070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23071 (exit $ac_status); } && {
23072 test -z "$ac_cxx_werror_flag" ||
23073 test ! -s conftest.err
23074 } && test -s conftest$ac_exeext &&
23075 $as_test_x conftest$ac_exeext; then
23076 kde_cv_func_strlcpy=yes
23077 kde_cv_proto_strlcpy=yes
23079 echo "$as_me: failed program was:" >&5
23080 sed 's/^/| /' conftest.$ac_ext >&5
23082 kde_cv_proto_strlcpy="strlcpy unavailable"
23086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23087 conftest$ac_exeext conftest.$ac_ext
23088 LIBS=$kde_safe_libs
23090 ac_cpp='$CPP $CPPFLAGS'
23091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23099 { echo "$as_me:$LINENO: result: $kde_cv_proto_strlcpy" >&5
23100 echo "${ECHO_T}$kde_cv_proto_strlcpy" >&6; }
23102 if test "x$kde_cv_func_strlcpy" = xyes; then
23104 cat >>confdefs.h <<\_ACEOF
23105 #define HAVE_STRLCPY 1
23110 if test "x$kde_cv_proto_strlcpy" = xno; then
23112 cat >>confdefs.h <<\_ACEOF
23113 #define HAVE_STRLCPY_PROTO 1
23123 { echo "$as_me:$LINENO: checking for main in -lutil" >&5
23124 echo $ECHO_N "checking for main in -lutil... $ECHO_C" >&6; }
23125 if test "${ac_cv_lib_util_main+set}" = set; then
23126 echo $ECHO_N "(cached) $ECHO_C" >&6
23128 ac_check_lib_save_LIBS=$LIBS
23129 LIBS="-lutil $LIBS"
23130 cat >conftest.$ac_ext <<_ACEOF
23133 cat confdefs.h >>conftest.$ac_ext
23134 cat >>conftest.$ac_ext <<_ACEOF
23135 /* end confdefs.h. */
23146 rm -f conftest.$ac_objext conftest$ac_exeext
23147 if { (ac_try="$ac_link"
23148 case "(($ac_try" in
23149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23150 *) ac_try_echo=$ac_try;;
23152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23153 (eval "$ac_link") 2>conftest.er1
23155 grep -v '^ *+' conftest.er1 >conftest.err
23157 cat conftest.err >&5
23158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23159 (exit $ac_status); } && {
23160 test -z "$ac_c_werror_flag" ||
23161 test ! -s conftest.err
23162 } && test -s conftest$ac_exeext &&
23163 $as_test_x conftest$ac_exeext; then
23164 ac_cv_lib_util_main=yes
23166 echo "$as_me: failed program was:" >&5
23167 sed 's/^/| /' conftest.$ac_ext >&5
23169 ac_cv_lib_util_main=no
23172 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23173 conftest$ac_exeext conftest.$ac_ext
23174 LIBS=$ac_check_lib_save_LIBS
23176 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_main" >&5
23177 echo "${ECHO_T}$ac_cv_lib_util_main" >&6; }
23178 if test $ac_cv_lib_util_main = yes; then
23182 { echo "$as_me:$LINENO: checking for main in -lcompat" >&5
23183 echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6; }
23184 if test "${ac_cv_lib_compat_main+set}" = set; then
23185 echo $ECHO_N "(cached) $ECHO_C" >&6
23187 ac_check_lib_save_LIBS=$LIBS
23188 LIBS="-lcompat $LIBS"
23189 cat >conftest.$ac_ext <<_ACEOF
23192 cat confdefs.h >>conftest.$ac_ext
23193 cat >>conftest.$ac_ext <<_ACEOF
23194 /* end confdefs.h. */
23205 rm -f conftest.$ac_objext conftest$ac_exeext
23206 if { (ac_try="$ac_link"
23207 case "(($ac_try" in
23208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23209 *) ac_try_echo=$ac_try;;
23211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23212 (eval "$ac_link") 2>conftest.er1
23214 grep -v '^ *+' conftest.er1 >conftest.err
23216 cat conftest.err >&5
23217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23218 (exit $ac_status); } && {
23219 test -z "$ac_c_werror_flag" ||
23220 test ! -s conftest.err
23221 } && test -s conftest$ac_exeext &&
23222 $as_test_x conftest$ac_exeext; then
23223 ac_cv_lib_compat_main=yes
23225 echo "$as_me: failed program was:" >&5
23226 sed 's/^/| /' conftest.$ac_ext >&5
23228 ac_cv_lib_compat_main=no
23231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23232 conftest$ac_exeext conftest.$ac_ext
23233 LIBS=$ac_check_lib_save_LIBS
23235 { echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
23236 echo "${ECHO_T}$ac_cv_lib_compat_main" >&6; }
23237 if test $ac_cv_lib_compat_main = yes; then
23238 LIBCOMPAT="-lcompat"
23242 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
23243 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
23244 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
23245 echo $ECHO_N "(cached) $ECHO_C" >&6
23247 ac_check_lib_save_LIBS=$LIBS
23248 LIBS="-lcrypt $LIBS"
23249 cat >conftest.$ac_ext <<_ACEOF
23252 cat confdefs.h >>conftest.$ac_ext
23253 cat >>conftest.$ac_ext <<_ACEOF
23254 /* end confdefs.h. */
23256 /* Override any GCC internal prototype to avoid an error.
23257 Use char because int might match the return type of a GCC
23258 builtin and then its argument prototype would still apply. */
23271 rm -f conftest.$ac_objext conftest$ac_exeext
23272 if { (ac_try="$ac_link"
23273 case "(($ac_try" in
23274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23275 *) ac_try_echo=$ac_try;;
23277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23278 (eval "$ac_link") 2>conftest.er1
23280 grep -v '^ *+' conftest.er1 >conftest.err
23282 cat conftest.err >&5
23283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23284 (exit $ac_status); } && {
23285 test -z "$ac_c_werror_flag" ||
23286 test ! -s conftest.err
23287 } && test -s conftest$ac_exeext &&
23288 $as_test_x conftest$ac_exeext; then
23289 ac_cv_lib_crypt_crypt=yes
23291 echo "$as_me: failed program was:" >&5
23292 sed 's/^/| /' conftest.$ac_ext >&5
23294 ac_cv_lib_crypt_crypt=no
23297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23298 conftest$ac_exeext conftest.$ac_ext
23299 LIBS=$ac_check_lib_save_LIBS
23301 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
23302 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
23303 if test $ac_cv_lib_crypt_crypt = yes; then
23304 LIBCRYPT="-lcrypt"; kde_have_crypt=yes
23306 { echo "$as_me:$LINENO: checking for crypt in -lc" >&5
23307 echo $ECHO_N "checking for crypt in -lc... $ECHO_C" >&6; }
23308 if test "${ac_cv_lib_c_crypt+set}" = set; then
23309 echo $ECHO_N "(cached) $ECHO_C" >&6
23311 ac_check_lib_save_LIBS=$LIBS
23313 cat >conftest.$ac_ext <<_ACEOF
23316 cat confdefs.h >>conftest.$ac_ext
23317 cat >>conftest.$ac_ext <<_ACEOF
23318 /* end confdefs.h. */
23320 /* Override any GCC internal prototype to avoid an error.
23321 Use char because int might match the return type of a GCC
23322 builtin and then its argument prototype would still apply. */
23335 rm -f conftest.$ac_objext conftest$ac_exeext
23336 if { (ac_try="$ac_link"
23337 case "(($ac_try" in
23338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23339 *) ac_try_echo=$ac_try;;
23341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23342 (eval "$ac_link") 2>conftest.er1
23344 grep -v '^ *+' conftest.er1 >conftest.err
23346 cat conftest.err >&5
23347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23348 (exit $ac_status); } && {
23349 test -z "$ac_c_werror_flag" ||
23350 test ! -s conftest.err
23351 } && test -s conftest$ac_exeext &&
23352 $as_test_x conftest$ac_exeext; then
23353 ac_cv_lib_c_crypt=yes
23355 echo "$as_me: failed program was:" >&5
23356 sed 's/^/| /' conftest.$ac_ext >&5
23358 ac_cv_lib_c_crypt=no
23361 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23362 conftest$ac_exeext conftest.$ac_ext
23363 LIBS=$ac_check_lib_save_LIBS
23365 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_crypt" >&5
23366 echo "${ECHO_T}$ac_cv_lib_c_crypt" >&6; }
23367 if test $ac_cv_lib_c_crypt = yes; then
23371 { echo "$as_me:$LINENO: WARNING: you have no crypt in either libcrypt or libc.
23372 You should install libcrypt from another source or configure with PAM
23374 echo "$as_me: WARNING: you have no crypt in either libcrypt or libc.
23375 You should install libcrypt from another source or configure with PAM
23384 if test $kde_have_crypt = yes; then
23386 cat >>confdefs.h <<_ACEOF
23387 #define HAVE_CRYPT 1
23392 { echo "$as_me:$LINENO: checking for socklen_t" >&5
23393 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
23394 if test "${kde_cv_socklen_t+set}" = set; then
23395 echo $ECHO_N "(cached) $ECHO_C" >&6
23399 ac_cpp='$CXXCPP $CPPFLAGS'
23400 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23401 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23402 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23404 kde_cv_socklen_t=no
23405 cat >conftest.$ac_ext <<_ACEOF
23408 cat confdefs.h >>conftest.$ac_ext
23409 cat >>conftest.$ac_ext <<_ACEOF
23410 /* end confdefs.h. */
23412 #include <sys/types.h>
23413 #include <sys/socket.h>
23420 getpeername(0,0,&len);
23426 rm -f conftest.$ac_objext
23427 if { (ac_try="$ac_compile"
23428 case "(($ac_try" in
23429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23430 *) ac_try_echo=$ac_try;;
23432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23433 (eval "$ac_compile") 2>conftest.er1
23435 grep -v '^ *+' conftest.er1 >conftest.err
23437 cat conftest.err >&5
23438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23439 (exit $ac_status); } && {
23440 test -z "$ac_cxx_werror_flag" ||
23441 test ! -s conftest.err
23442 } && test -s conftest.$ac_objext; then
23444 kde_cv_socklen_t=yes
23445 kde_cv_socklen_t_equiv=socklen_t
23448 echo "$as_me: failed program was:" >&5
23449 sed 's/^/| /' conftest.$ac_ext >&5
23454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23456 ac_cpp='$CPP $CPPFLAGS'
23457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23464 { echo "$as_me:$LINENO: result: $kde_cv_socklen_t" >&5
23465 echo "${ECHO_T}$kde_cv_socklen_t" >&6; }
23466 if test $kde_cv_socklen_t = no; then
23467 { echo "$as_me:$LINENO: checking for socklen_t equivalent for socket functions" >&5
23468 echo $ECHO_N "checking for socklen_t equivalent for socket functions... $ECHO_C" >&6; }
23469 if test "${kde_cv_socklen_t_equiv+set}" = set; then
23470 echo $ECHO_N "(cached) $ECHO_C" >&6
23473 kde_cv_socklen_t_equiv=int
23475 ac_cpp='$CXXCPP $CPPFLAGS'
23476 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23477 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23478 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23480 for t in int size_t unsigned long "unsigned long"; do
23481 cat >conftest.$ac_ext <<_ACEOF
23484 cat confdefs.h >>conftest.$ac_ext
23485 cat >>conftest.$ac_ext <<_ACEOF
23486 /* end confdefs.h. */
23488 #include <sys/types.h>
23489 #include <sys/socket.h>
23496 getpeername(0,0,&len);
23502 rm -f conftest.$ac_objext
23503 if { (ac_try="$ac_compile"
23504 case "(($ac_try" in
23505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23506 *) ac_try_echo=$ac_try;;
23508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23509 (eval "$ac_compile") 2>conftest.er1
23511 grep -v '^ *+' conftest.er1 >conftest.err
23513 cat conftest.err >&5
23514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23515 (exit $ac_status); } && {
23516 test -z "$ac_cxx_werror_flag" ||
23517 test ! -s conftest.err
23518 } && test -s conftest.$ac_objext; then
23520 kde_cv_socklen_t_equiv="$t"
23524 echo "$as_me: failed program was:" >&5
23525 sed 's/^/| /' conftest.$ac_ext >&5
23530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23533 ac_cpp='$CPP $CPPFLAGS'
23534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23541 { echo "$as_me:$LINENO: result: $kde_cv_socklen_t_equiv" >&5
23542 echo "${ECHO_T}$kde_cv_socklen_t_equiv" >&6; }
23545 cat >>confdefs.h <<_ACEOF
23546 #define kde_socklen_t $kde_cv_socklen_t_equiv
23550 cat >>confdefs.h <<_ACEOF
23551 #define ksize_t $kde_cv_socklen_t_equiv
23555 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
23556 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
23557 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
23558 echo $ECHO_N "(cached) $ECHO_C" >&6
23560 ac_check_lib_save_LIBS=$LIBS
23561 LIBS="-ldnet $LIBS"
23562 cat >conftest.$ac_ext <<_ACEOF
23565 cat confdefs.h >>conftest.$ac_ext
23566 cat >>conftest.$ac_ext <<_ACEOF
23567 /* end confdefs.h. */
23569 /* Override any GCC internal prototype to avoid an error.
23570 Use char because int might match the return type of a GCC
23571 builtin and then its argument prototype would still apply. */
23579 return dnet_ntoa ();
23584 rm -f conftest.$ac_objext conftest$ac_exeext
23585 if { (ac_try="$ac_link"
23586 case "(($ac_try" in
23587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23588 *) ac_try_echo=$ac_try;;
23590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23591 (eval "$ac_link") 2>conftest.er1
23593 grep -v '^ *+' conftest.er1 >conftest.err
23595 cat conftest.err >&5
23596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23597 (exit $ac_status); } && {
23598 test -z "$ac_c_werror_flag" ||
23599 test ! -s conftest.err
23600 } && test -s conftest$ac_exeext &&
23601 $as_test_x conftest$ac_exeext; then
23602 ac_cv_lib_dnet_dnet_ntoa=yes
23604 echo "$as_me: failed program was:" >&5
23605 sed 's/^/| /' conftest.$ac_ext >&5
23607 ac_cv_lib_dnet_dnet_ntoa=no
23610 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23611 conftest$ac_exeext conftest.$ac_ext
23612 LIBS=$ac_check_lib_save_LIBS
23614 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
23615 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
23616 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
23617 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
23620 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
23621 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
23622 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
23623 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
23624 echo $ECHO_N "(cached) $ECHO_C" >&6
23626 ac_check_lib_save_LIBS=$LIBS
23627 LIBS="-ldnet_stub $LIBS"
23628 cat >conftest.$ac_ext <<_ACEOF
23631 cat confdefs.h >>conftest.$ac_ext
23632 cat >>conftest.$ac_ext <<_ACEOF
23633 /* end confdefs.h. */
23635 /* Override any GCC internal prototype to avoid an error.
23636 Use char because int might match the return type of a GCC
23637 builtin and then its argument prototype would still apply. */
23645 return dnet_ntoa ();
23650 rm -f conftest.$ac_objext conftest$ac_exeext
23651 if { (ac_try="$ac_link"
23652 case "(($ac_try" in
23653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23654 *) ac_try_echo=$ac_try;;
23656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23657 (eval "$ac_link") 2>conftest.er1
23659 grep -v '^ *+' conftest.er1 >conftest.err
23661 cat conftest.err >&5
23662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23663 (exit $ac_status); } && {
23664 test -z "$ac_c_werror_flag" ||
23665 test ! -s conftest.err
23666 } && test -s conftest$ac_exeext &&
23667 $as_test_x conftest$ac_exeext; then
23668 ac_cv_lib_dnet_stub_dnet_ntoa=yes
23670 echo "$as_me: failed program was:" >&5
23671 sed 's/^/| /' conftest.$ac_ext >&5
23673 ac_cv_lib_dnet_stub_dnet_ntoa=no
23676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23677 conftest$ac_exeext conftest.$ac_ext
23678 LIBS=$ac_check_lib_save_LIBS
23680 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
23681 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
23682 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
23683 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
23687 { echo "$as_me:$LINENO: checking for inet_ntoa" >&5
23688 echo $ECHO_N "checking for inet_ntoa... $ECHO_C" >&6; }
23689 if test "${ac_cv_func_inet_ntoa+set}" = set; then
23690 echo $ECHO_N "(cached) $ECHO_C" >&6
23692 cat >conftest.$ac_ext <<_ACEOF
23695 cat confdefs.h >>conftest.$ac_ext
23696 cat >>conftest.$ac_ext <<_ACEOF
23697 /* end confdefs.h. */
23698 /* Define inet_ntoa to an innocuous variant, in case <limits.h> declares inet_ntoa.
23699 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23700 #define inet_ntoa innocuous_inet_ntoa
23702 /* System header to define __stub macros and hopefully few prototypes,
23703 which can conflict with char inet_ntoa (); below.
23704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23705 <limits.h> exists even on freestanding compilers. */
23708 # include <limits.h>
23710 # include <assert.h>
23715 /* Override any GCC internal prototype to avoid an error.
23716 Use char because int might match the return type of a GCC
23717 builtin and then its argument prototype would still apply. */
23722 /* The GNU C library defines this for functions which it implements
23723 to always fail with ENOSYS. Some functions are actually named
23724 something starting with __ and the normal name is an alias. */
23725 #if defined __stub_inet_ntoa || defined __stub___inet_ntoa
23732 return inet_ntoa ();
23737 rm -f conftest.$ac_objext conftest$ac_exeext
23738 if { (ac_try="$ac_link"
23739 case "(($ac_try" in
23740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23741 *) ac_try_echo=$ac_try;;
23743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23744 (eval "$ac_link") 2>conftest.er1
23746 grep -v '^ *+' conftest.er1 >conftest.err
23748 cat conftest.err >&5
23749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23750 (exit $ac_status); } && {
23751 test -z "$ac_c_werror_flag" ||
23752 test ! -s conftest.err
23753 } && test -s conftest$ac_exeext &&
23754 $as_test_x conftest$ac_exeext; then
23755 ac_cv_func_inet_ntoa=yes
23757 echo "$as_me: failed program was:" >&5
23758 sed 's/^/| /' conftest.$ac_ext >&5
23760 ac_cv_func_inet_ntoa=no
23763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23764 conftest$ac_exeext conftest.$ac_ext
23766 { echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntoa" >&5
23767 echo "${ECHO_T}$ac_cv_func_inet_ntoa" >&6; }
23769 if test $ac_cv_func_inet_ntoa = no; then
23770 { echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
23771 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6; }
23772 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
23773 echo $ECHO_N "(cached) $ECHO_C" >&6
23775 ac_check_lib_save_LIBS=$LIBS
23777 cat >conftest.$ac_ext <<_ACEOF
23780 cat confdefs.h >>conftest.$ac_ext
23781 cat >>conftest.$ac_ext <<_ACEOF
23782 /* end confdefs.h. */
23784 /* Override any GCC internal prototype to avoid an error.
23785 Use char because int might match the return type of a GCC
23786 builtin and then its argument prototype would still apply. */
23794 return inet_ntoa ();
23799 rm -f conftest.$ac_objext conftest$ac_exeext
23800 if { (ac_try="$ac_link"
23801 case "(($ac_try" in
23802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23803 *) ac_try_echo=$ac_try;;
23805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23806 (eval "$ac_link") 2>conftest.er1
23808 grep -v '^ *+' conftest.er1 >conftest.err
23810 cat conftest.err >&5
23811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23812 (exit $ac_status); } && {
23813 test -z "$ac_c_werror_flag" ||
23814 test ! -s conftest.err
23815 } && test -s conftest$ac_exeext &&
23816 $as_test_x conftest$ac_exeext; then
23817 ac_cv_lib_nsl_inet_ntoa=yes
23819 echo "$as_me: failed program was:" >&5
23820 sed 's/^/| /' conftest.$ac_ext >&5
23822 ac_cv_lib_nsl_inet_ntoa=no
23825 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23826 conftest$ac_exeext conftest.$ac_ext
23827 LIBS=$ac_check_lib_save_LIBS
23829 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
23830 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6; }
23831 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
23832 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
23836 { echo "$as_me:$LINENO: checking for connect" >&5
23837 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
23838 if test "${ac_cv_func_connect+set}" = set; then
23839 echo $ECHO_N "(cached) $ECHO_C" >&6
23841 cat >conftest.$ac_ext <<_ACEOF
23844 cat confdefs.h >>conftest.$ac_ext
23845 cat >>conftest.$ac_ext <<_ACEOF
23846 /* end confdefs.h. */
23847 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
23848 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23849 #define connect innocuous_connect
23851 /* System header to define __stub macros and hopefully few prototypes,
23852 which can conflict with char connect (); below.
23853 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23854 <limits.h> exists even on freestanding compilers. */
23857 # include <limits.h>
23859 # include <assert.h>
23864 /* Override any GCC internal prototype to avoid an error.
23865 Use char because int might match the return type of a GCC
23866 builtin and then its argument prototype would still apply. */
23871 /* The GNU C library defines this for functions which it implements
23872 to always fail with ENOSYS. Some functions are actually named
23873 something starting with __ and the normal name is an alias. */
23874 #if defined __stub_connect || defined __stub___connect
23886 rm -f conftest.$ac_objext conftest$ac_exeext
23887 if { (ac_try="$ac_link"
23888 case "(($ac_try" in
23889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23890 *) ac_try_echo=$ac_try;;
23892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23893 (eval "$ac_link") 2>conftest.er1
23895 grep -v '^ *+' conftest.er1 >conftest.err
23897 cat conftest.err >&5
23898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23899 (exit $ac_status); } && {
23900 test -z "$ac_c_werror_flag" ||
23901 test ! -s conftest.err
23902 } && test -s conftest$ac_exeext &&
23903 $as_test_x conftest$ac_exeext; then
23904 ac_cv_func_connect=yes
23906 echo "$as_me: failed program was:" >&5
23907 sed 's/^/| /' conftest.$ac_ext >&5
23909 ac_cv_func_connect=no
23912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23913 conftest$ac_exeext conftest.$ac_ext
23915 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
23916 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
23918 if test $ac_cv_func_connect = no; then
23919 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
23920 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
23921 if test "${ac_cv_lib_socket_connect+set}" = set; then
23922 echo $ECHO_N "(cached) $ECHO_C" >&6
23924 ac_check_lib_save_LIBS=$LIBS
23925 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
23926 cat >conftest.$ac_ext <<_ACEOF
23929 cat confdefs.h >>conftest.$ac_ext
23930 cat >>conftest.$ac_ext <<_ACEOF
23931 /* end confdefs.h. */
23933 /* Override any GCC internal prototype to avoid an error.
23934 Use char because int might match the return type of a GCC
23935 builtin and then its argument prototype would still apply. */
23948 rm -f conftest.$ac_objext conftest$ac_exeext
23949 if { (ac_try="$ac_link"
23950 case "(($ac_try" in
23951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23952 *) ac_try_echo=$ac_try;;
23954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23955 (eval "$ac_link") 2>conftest.er1
23957 grep -v '^ *+' conftest.er1 >conftest.err
23959 cat conftest.err >&5
23960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23961 (exit $ac_status); } && {
23962 test -z "$ac_c_werror_flag" ||
23963 test ! -s conftest.err
23964 } && test -s conftest$ac_exeext &&
23965 $as_test_x conftest$ac_exeext; then
23966 ac_cv_lib_socket_connect=yes
23968 echo "$as_me: failed program was:" >&5
23969 sed 's/^/| /' conftest.$ac_ext >&5
23971 ac_cv_lib_socket_connect=no
23974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23975 conftest$ac_exeext conftest.$ac_ext
23976 LIBS=$ac_check_lib_save_LIBS
23978 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
23979 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
23980 if test $ac_cv_lib_socket_connect = yes; then
23981 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
23986 { echo "$as_me:$LINENO: checking for remove" >&5
23987 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
23988 if test "${ac_cv_func_remove+set}" = set; then
23989 echo $ECHO_N "(cached) $ECHO_C" >&6
23991 cat >conftest.$ac_ext <<_ACEOF
23994 cat confdefs.h >>conftest.$ac_ext
23995 cat >>conftest.$ac_ext <<_ACEOF
23996 /* end confdefs.h. */
23997 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
23998 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23999 #define remove innocuous_remove
24001 /* System header to define __stub macros and hopefully few prototypes,
24002 which can conflict with char remove (); below.
24003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24004 <limits.h> exists even on freestanding compilers. */
24007 # include <limits.h>
24009 # include <assert.h>
24014 /* Override any GCC internal prototype to avoid an error.
24015 Use char because int might match the return type of a GCC
24016 builtin and then its argument prototype would still apply. */
24021 /* The GNU C library defines this for functions which it implements
24022 to always fail with ENOSYS. Some functions are actually named
24023 something starting with __ and the normal name is an alias. */
24024 #if defined __stub_remove || defined __stub___remove
24036 rm -f conftest.$ac_objext conftest$ac_exeext
24037 if { (ac_try="$ac_link"
24038 case "(($ac_try" in
24039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24040 *) ac_try_echo=$ac_try;;
24042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24043 (eval "$ac_link") 2>conftest.er1
24045 grep -v '^ *+' conftest.er1 >conftest.err
24047 cat conftest.err >&5
24048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24049 (exit $ac_status); } && {
24050 test -z "$ac_c_werror_flag" ||
24051 test ! -s conftest.err
24052 } && test -s conftest$ac_exeext &&
24053 $as_test_x conftest$ac_exeext; then
24054 ac_cv_func_remove=yes
24056 echo "$as_me: failed program was:" >&5
24057 sed 's/^/| /' conftest.$ac_ext >&5
24059 ac_cv_func_remove=no
24062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24063 conftest$ac_exeext conftest.$ac_ext
24065 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
24066 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
24068 if test $ac_cv_func_remove = no; then
24069 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
24070 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
24071 if test "${ac_cv_lib_posix_remove+set}" = set; then
24072 echo $ECHO_N "(cached) $ECHO_C" >&6
24074 ac_check_lib_save_LIBS=$LIBS
24075 LIBS="-lposix $LIBS"
24076 cat >conftest.$ac_ext <<_ACEOF
24079 cat confdefs.h >>conftest.$ac_ext
24080 cat >>conftest.$ac_ext <<_ACEOF
24081 /* end confdefs.h. */
24083 /* Override any GCC internal prototype to avoid an error.
24084 Use char because int might match the return type of a GCC
24085 builtin and then its argument prototype would still apply. */
24098 rm -f conftest.$ac_objext conftest$ac_exeext
24099 if { (ac_try="$ac_link"
24100 case "(($ac_try" in
24101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24102 *) ac_try_echo=$ac_try;;
24104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24105 (eval "$ac_link") 2>conftest.er1
24107 grep -v '^ *+' conftest.er1 >conftest.err
24109 cat conftest.err >&5
24110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24111 (exit $ac_status); } && {
24112 test -z "$ac_c_werror_flag" ||
24113 test ! -s conftest.err
24114 } && test -s conftest$ac_exeext &&
24115 $as_test_x conftest$ac_exeext; then
24116 ac_cv_lib_posix_remove=yes
24118 echo "$as_me: failed program was:" >&5
24119 sed 's/^/| /' conftest.$ac_ext >&5
24121 ac_cv_lib_posix_remove=no
24124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24125 conftest$ac_exeext conftest.$ac_ext
24126 LIBS=$ac_check_lib_save_LIBS
24128 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
24129 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
24130 if test $ac_cv_lib_posix_remove = yes; then
24131 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24136 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
24137 { echo "$as_me:$LINENO: checking for shmat" >&5
24138 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
24139 if test "${ac_cv_func_shmat+set}" = set; then
24140 echo $ECHO_N "(cached) $ECHO_C" >&6
24142 cat >conftest.$ac_ext <<_ACEOF
24145 cat confdefs.h >>conftest.$ac_ext
24146 cat >>conftest.$ac_ext <<_ACEOF
24147 /* end confdefs.h. */
24148 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
24149 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24150 #define shmat innocuous_shmat
24152 /* System header to define __stub macros and hopefully few prototypes,
24153 which can conflict with char shmat (); below.
24154 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24155 <limits.h> exists even on freestanding compilers. */
24158 # include <limits.h>
24160 # include <assert.h>
24165 /* Override any GCC internal prototype to avoid an error.
24166 Use char because int might match the return type of a GCC
24167 builtin and then its argument prototype would still apply. */
24172 /* The GNU C library defines this for functions which it implements
24173 to always fail with ENOSYS. Some functions are actually named
24174 something starting with __ and the normal name is an alias. */
24175 #if defined __stub_shmat || defined __stub___shmat
24187 rm -f conftest.$ac_objext conftest$ac_exeext
24188 if { (ac_try="$ac_link"
24189 case "(($ac_try" in
24190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24191 *) ac_try_echo=$ac_try;;
24193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24194 (eval "$ac_link") 2>conftest.er1
24196 grep -v '^ *+' conftest.er1 >conftest.err
24198 cat conftest.err >&5
24199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24200 (exit $ac_status); } && {
24201 test -z "$ac_c_werror_flag" ||
24202 test ! -s conftest.err
24203 } && test -s conftest$ac_exeext &&
24204 $as_test_x conftest$ac_exeext; then
24205 ac_cv_func_shmat=yes
24207 echo "$as_me: failed program was:" >&5
24208 sed 's/^/| /' conftest.$ac_ext >&5
24210 ac_cv_func_shmat=no
24213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24214 conftest$ac_exeext conftest.$ac_ext
24216 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
24217 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
24218 if test $ac_cv_func_shmat = yes; then
24221 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
24222 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
24223 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
24224 echo $ECHO_N "(cached) $ECHO_C" >&6
24226 ac_check_lib_save_LIBS=$LIBS
24228 cat >conftest.$ac_ext <<_ACEOF
24231 cat confdefs.h >>conftest.$ac_ext
24232 cat >>conftest.$ac_ext <<_ACEOF
24233 /* end confdefs.h. */
24235 /* Override any GCC internal prototype to avoid an error.
24236 Use char because int might match the return type of a GCC
24237 builtin and then its argument prototype would still apply. */
24250 rm -f conftest.$ac_objext conftest$ac_exeext
24251 if { (ac_try="$ac_link"
24252 case "(($ac_try" in
24253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24254 *) ac_try_echo=$ac_try;;
24256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24257 (eval "$ac_link") 2>conftest.er1
24259 grep -v '^ *+' conftest.er1 >conftest.err
24261 cat conftest.err >&5
24262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24263 (exit $ac_status); } && {
24264 test -z "$ac_c_werror_flag" ||
24265 test ! -s conftest.err
24266 } && test -s conftest$ac_exeext &&
24267 $as_test_x conftest$ac_exeext; then
24268 ac_cv_lib_ipc_shmat=yes
24270 echo "$as_me: failed program was:" >&5
24271 sed 's/^/| /' conftest.$ac_ext >&5
24273 ac_cv_lib_ipc_shmat=no
24276 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24277 conftest$ac_exeext conftest.$ac_ext
24278 LIBS=$ac_check_lib_save_LIBS
24280 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
24281 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
24282 if test $ac_cv_lib_ipc_shmat = yes; then
24283 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
24289 # more headers that need to be explicitly included on darwin
24292 for ac_header in sys/types.h stdint.h
24294 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24296 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24298 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24299 echo $ECHO_N "(cached) $ECHO_C" >&6
24301 ac_res=`eval echo '${'$as_ac_Header'}'`
24302 { echo "$as_me:$LINENO: result: $ac_res" >&5
24303 echo "${ECHO_T}$ac_res" >&6; }
24305 # Is the header compilable?
24306 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24307 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24308 cat >conftest.$ac_ext <<_ACEOF
24311 cat confdefs.h >>conftest.$ac_ext
24312 cat >>conftest.$ac_ext <<_ACEOF
24313 /* end confdefs.h. */
24314 $ac_includes_default
24315 #include <$ac_header>
24317 rm -f conftest.$ac_objext
24318 if { (ac_try="$ac_compile"
24319 case "(($ac_try" in
24320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24321 *) ac_try_echo=$ac_try;;
24323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24324 (eval "$ac_compile") 2>conftest.er1
24326 grep -v '^ *+' conftest.er1 >conftest.err
24328 cat conftest.err >&5
24329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24330 (exit $ac_status); } && {
24331 test -z "$ac_c_werror_flag" ||
24332 test ! -s conftest.err
24333 } && test -s conftest.$ac_objext; then
24334 ac_header_compiler=yes
24336 echo "$as_me: failed program was:" >&5
24337 sed 's/^/| /' conftest.$ac_ext >&5
24339 ac_header_compiler=no
24342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24343 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24344 echo "${ECHO_T}$ac_header_compiler" >&6; }
24346 # Is the header present?
24347 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24348 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24349 cat >conftest.$ac_ext <<_ACEOF
24352 cat confdefs.h >>conftest.$ac_ext
24353 cat >>conftest.$ac_ext <<_ACEOF
24354 /* end confdefs.h. */
24355 #include <$ac_header>
24357 if { (ac_try="$ac_cpp conftest.$ac_ext"
24358 case "(($ac_try" in
24359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24360 *) ac_try_echo=$ac_try;;
24362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24363 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24365 grep -v '^ *+' conftest.er1 >conftest.err
24367 cat conftest.err >&5
24368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24369 (exit $ac_status); } >/dev/null && {
24370 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24371 test ! -s conftest.err
24373 ac_header_preproc=yes
24375 echo "$as_me: failed program was:" >&5
24376 sed 's/^/| /' conftest.$ac_ext >&5
24378 ac_header_preproc=no
24381 rm -f conftest.err conftest.$ac_ext
24382 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24383 echo "${ECHO_T}$ac_header_preproc" >&6; }
24385 # So? What about this header?
24386 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24388 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24389 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24390 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24391 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24392 ac_header_preproc=yes
24395 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24396 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24397 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24398 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24399 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24400 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24401 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24402 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24403 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24404 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24405 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24406 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24410 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24412 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24413 echo $ECHO_N "(cached) $ECHO_C" >&6
24415 eval "$as_ac_Header=\$ac_header_preproc"
24417 ac_res=`eval echo '${'$as_ac_Header'}'`
24418 { echo "$as_me:$LINENO: result: $ac_res" >&5
24419 echo "${ECHO_T}$ac_res" >&6; }
24422 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24423 cat >>confdefs.h <<_ACEOF
24424 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24432 # sys/bitypes.h is needed for uint32_t and friends on Tru64
24434 for ac_header in sys/bitypes.h
24436 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24437 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24438 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24440 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24441 echo $ECHO_N "(cached) $ECHO_C" >&6
24443 ac_res=`eval echo '${'$as_ac_Header'}'`
24444 { echo "$as_me:$LINENO: result: $ac_res" >&5
24445 echo "${ECHO_T}$ac_res" >&6; }
24447 # Is the header compilable?
24448 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24449 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24450 cat >conftest.$ac_ext <<_ACEOF
24453 cat confdefs.h >>conftest.$ac_ext
24454 cat >>conftest.$ac_ext <<_ACEOF
24455 /* end confdefs.h. */
24456 $ac_includes_default
24457 #include <$ac_header>
24459 rm -f conftest.$ac_objext
24460 if { (ac_try="$ac_compile"
24461 case "(($ac_try" in
24462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24463 *) ac_try_echo=$ac_try;;
24465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24466 (eval "$ac_compile") 2>conftest.er1
24468 grep -v '^ *+' conftest.er1 >conftest.err
24470 cat conftest.err >&5
24471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24472 (exit $ac_status); } && {
24473 test -z "$ac_c_werror_flag" ||
24474 test ! -s conftest.err
24475 } && test -s conftest.$ac_objext; then
24476 ac_header_compiler=yes
24478 echo "$as_me: failed program was:" >&5
24479 sed 's/^/| /' conftest.$ac_ext >&5
24481 ac_header_compiler=no
24484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24485 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24486 echo "${ECHO_T}$ac_header_compiler" >&6; }
24488 # Is the header present?
24489 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24490 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24491 cat >conftest.$ac_ext <<_ACEOF
24494 cat confdefs.h >>conftest.$ac_ext
24495 cat >>conftest.$ac_ext <<_ACEOF
24496 /* end confdefs.h. */
24497 #include <$ac_header>
24499 if { (ac_try="$ac_cpp conftest.$ac_ext"
24500 case "(($ac_try" in
24501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24502 *) ac_try_echo=$ac_try;;
24504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24505 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24507 grep -v '^ *+' conftest.er1 >conftest.err
24509 cat conftest.err >&5
24510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24511 (exit $ac_status); } >/dev/null && {
24512 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24513 test ! -s conftest.err
24515 ac_header_preproc=yes
24517 echo "$as_me: failed program was:" >&5
24518 sed 's/^/| /' conftest.$ac_ext >&5
24520 ac_header_preproc=no
24523 rm -f conftest.err conftest.$ac_ext
24524 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24525 echo "${ECHO_T}$ac_header_preproc" >&6; }
24527 # So? What about this header?
24528 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24530 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24531 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24532 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24533 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24534 ac_header_preproc=yes
24537 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24538 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24539 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24540 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24541 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24542 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24543 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24544 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24545 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24546 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24547 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24548 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24552 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24554 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24555 echo $ECHO_N "(cached) $ECHO_C" >&6
24557 eval "$as_ac_Header=\$ac_header_preproc"
24559 ac_res=`eval echo '${'$as_ac_Header'}'`
24560 { echo "$as_me:$LINENO: result: $ac_res" >&5
24561 echo "${ECHO_T}$ac_res" >&6; }
24564 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24565 cat >>confdefs.h <<_ACEOF
24566 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24574 # darwin requires a poll emulation library
24575 { echo "$as_me:$LINENO: checking for poll in -lpoll" >&5
24576 echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6; }
24577 if test "${ac_cv_lib_poll_poll+set}" = set; then
24578 echo $ECHO_N "(cached) $ECHO_C" >&6
24580 ac_check_lib_save_LIBS=$LIBS
24581 LIBS="-lpoll $LIBS"
24582 cat >conftest.$ac_ext <<_ACEOF
24585 cat confdefs.h >>conftest.$ac_ext
24586 cat >>conftest.$ac_ext <<_ACEOF
24587 /* end confdefs.h. */
24589 /* Override any GCC internal prototype to avoid an error.
24590 Use char because int might match the return type of a GCC
24591 builtin and then its argument prototype would still apply. */
24604 rm -f conftest.$ac_objext conftest$ac_exeext
24605 if { (ac_try="$ac_link"
24606 case "(($ac_try" in
24607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24608 *) ac_try_echo=$ac_try;;
24610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24611 (eval "$ac_link") 2>conftest.er1
24613 grep -v '^ *+' conftest.er1 >conftest.err
24615 cat conftest.err >&5
24616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24617 (exit $ac_status); } && {
24618 test -z "$ac_c_werror_flag" ||
24619 test ! -s conftest.err
24620 } && test -s conftest$ac_exeext &&
24621 $as_test_x conftest$ac_exeext; then
24622 ac_cv_lib_poll_poll=yes
24624 echo "$as_me: failed program was:" >&5
24625 sed 's/^/| /' conftest.$ac_ext >&5
24627 ac_cv_lib_poll_poll=no
24630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24631 conftest$ac_exeext conftest.$ac_ext
24632 LIBS=$ac_check_lib_save_LIBS
24634 { echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5
24635 echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6; }
24636 if test $ac_cv_lib_poll_poll = yes; then
24641 # for some image handling on Mac OS X
24643 for ac_header in Carbon/Carbon.h
24645 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24646 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24647 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24650 echo $ECHO_N "(cached) $ECHO_C" >&6
24652 ac_res=`eval echo '${'$as_ac_Header'}'`
24653 { echo "$as_me:$LINENO: result: $ac_res" >&5
24654 echo "${ECHO_T}$ac_res" >&6; }
24656 # Is the header compilable?
24657 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24658 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24659 cat >conftest.$ac_ext <<_ACEOF
24662 cat confdefs.h >>conftest.$ac_ext
24663 cat >>conftest.$ac_ext <<_ACEOF
24664 /* end confdefs.h. */
24665 $ac_includes_default
24666 #include <$ac_header>
24668 rm -f conftest.$ac_objext
24669 if { (ac_try="$ac_compile"
24670 case "(($ac_try" in
24671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24672 *) ac_try_echo=$ac_try;;
24674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24675 (eval "$ac_compile") 2>conftest.er1
24677 grep -v '^ *+' conftest.er1 >conftest.err
24679 cat conftest.err >&5
24680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24681 (exit $ac_status); } && {
24682 test -z "$ac_c_werror_flag" ||
24683 test ! -s conftest.err
24684 } && test -s conftest.$ac_objext; then
24685 ac_header_compiler=yes
24687 echo "$as_me: failed program was:" >&5
24688 sed 's/^/| /' conftest.$ac_ext >&5
24690 ac_header_compiler=no
24693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24694 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24695 echo "${ECHO_T}$ac_header_compiler" >&6; }
24697 # Is the header present?
24698 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24699 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24700 cat >conftest.$ac_ext <<_ACEOF
24703 cat confdefs.h >>conftest.$ac_ext
24704 cat >>conftest.$ac_ext <<_ACEOF
24705 /* end confdefs.h. */
24706 #include <$ac_header>
24708 if { (ac_try="$ac_cpp conftest.$ac_ext"
24709 case "(($ac_try" in
24710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24711 *) ac_try_echo=$ac_try;;
24713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24714 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24716 grep -v '^ *+' conftest.er1 >conftest.err
24718 cat conftest.err >&5
24719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24720 (exit $ac_status); } >/dev/null && {
24721 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24722 test ! -s conftest.err
24724 ac_header_preproc=yes
24726 echo "$as_me: failed program was:" >&5
24727 sed 's/^/| /' conftest.$ac_ext >&5
24729 ac_header_preproc=no
24732 rm -f conftest.err conftest.$ac_ext
24733 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24734 echo "${ECHO_T}$ac_header_preproc" >&6; }
24736 # So? What about this header?
24737 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24739 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24740 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24741 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24742 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24743 ac_header_preproc=yes
24746 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24747 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24748 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24749 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24750 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24751 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24752 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24753 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24754 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24755 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24756 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24757 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24761 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24762 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24763 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24764 echo $ECHO_N "(cached) $ECHO_C" >&6
24766 eval "$as_ac_Header=\$ac_header_preproc"
24768 ac_res=`eval echo '${'$as_ac_Header'}'`
24769 { echo "$as_me:$LINENO: result: $ac_res" >&5
24770 echo "${ECHO_T}$ac_res" >&6; }
24773 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24774 cat >>confdefs.h <<_ACEOF
24775 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24783 # CoreAudio framework
24784 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
24785 { echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
24786 echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6; }
24787 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
24788 echo $ECHO_N "(cached) $ECHO_C" >&6
24790 { echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
24791 echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
24793 # Is the header compilable?
24794 { echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h usability" >&5
24795 echo $ECHO_N "checking CoreAudio/CoreAudio.h usability... $ECHO_C" >&6; }
24796 cat >conftest.$ac_ext <<_ACEOF
24799 cat confdefs.h >>conftest.$ac_ext
24800 cat >>conftest.$ac_ext <<_ACEOF
24801 /* end confdefs.h. */
24802 $ac_includes_default
24803 #include <CoreAudio/CoreAudio.h>
24805 rm -f conftest.$ac_objext
24806 if { (ac_try="$ac_compile"
24807 case "(($ac_try" in
24808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24809 *) ac_try_echo=$ac_try;;
24811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24812 (eval "$ac_compile") 2>conftest.er1
24814 grep -v '^ *+' conftest.er1 >conftest.err
24816 cat conftest.err >&5
24817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24818 (exit $ac_status); } && {
24819 test -z "$ac_c_werror_flag" ||
24820 test ! -s conftest.err
24821 } && test -s conftest.$ac_objext; then
24822 ac_header_compiler=yes
24824 echo "$as_me: failed program was:" >&5
24825 sed 's/^/| /' conftest.$ac_ext >&5
24827 ac_header_compiler=no
24830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24831 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24832 echo "${ECHO_T}$ac_header_compiler" >&6; }
24834 # Is the header present?
24835 { echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h presence" >&5
24836 echo $ECHO_N "checking CoreAudio/CoreAudio.h presence... $ECHO_C" >&6; }
24837 cat >conftest.$ac_ext <<_ACEOF
24840 cat confdefs.h >>conftest.$ac_ext
24841 cat >>conftest.$ac_ext <<_ACEOF
24842 /* end confdefs.h. */
24843 #include <CoreAudio/CoreAudio.h>
24845 if { (ac_try="$ac_cpp conftest.$ac_ext"
24846 case "(($ac_try" in
24847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24848 *) ac_try_echo=$ac_try;;
24850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24851 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24853 grep -v '^ *+' conftest.er1 >conftest.err
24855 cat conftest.err >&5
24856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24857 (exit $ac_status); } >/dev/null && {
24858 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24859 test ! -s conftest.err
24861 ac_header_preproc=yes
24863 echo "$as_me: failed program was:" >&5
24864 sed 's/^/| /' conftest.$ac_ext >&5
24866 ac_header_preproc=no
24869 rm -f conftest.err conftest.$ac_ext
24870 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24871 echo "${ECHO_T}$ac_header_preproc" >&6; }
24873 # So? What about this header?
24874 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24876 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
24877 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24878 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&5
24879 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&2;}
24880 ac_header_preproc=yes
24883 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&5
24884 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&2;}
24885 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&5
24886 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&2;}
24887 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&5
24888 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&2;}
24889 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&5
24890 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&2;}
24891 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
24892 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
24893 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&5
24894 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&2;}
24898 { echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
24899 echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6; }
24900 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
24901 echo $ECHO_N "(cached) $ECHO_C" >&6
24903 ac_cv_header_CoreAudio_CoreAudio_h=$ac_header_preproc
24905 { echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
24906 echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
24909 if test $ac_cv_header_CoreAudio_CoreAudio_h = yes; then
24912 cat >>confdefs.h <<\_ACEOF
24913 #define HAVE_COREAUDIO 1
24916 FRAMEWORK_COREAUDIO="-Xlinker -framework -Xlinker CoreAudio"
24923 { echo "$as_me:$LINENO: checking if res_init needs -lresolv" >&5
24924 echo $ECHO_N "checking if res_init needs -lresolv... $ECHO_C" >&6; }
24925 kde_libs_safe="$LIBS"
24926 LIBS="$LIBS $X_EXTRA_LIBS -lresolv"
24927 cat >conftest.$ac_ext <<_ACEOF
24930 cat confdefs.h >>conftest.$ac_ext
24931 cat >>conftest.$ac_ext <<_ACEOF
24932 /* end confdefs.h. */
24934 #include <sys/types.h>
24935 #include <netinet/in.h>
24936 #include <arpa/nameser.h>
24937 #include <resolv.h>
24949 rm -f conftest.$ac_objext conftest$ac_exeext
24950 if { (ac_try="$ac_link"
24951 case "(($ac_try" in
24952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24953 *) ac_try_echo=$ac_try;;
24955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24956 (eval "$ac_link") 2>conftest.er1
24958 grep -v '^ *+' conftest.er1 >conftest.err
24960 cat conftest.err >&5
24961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24962 (exit $ac_status); } && {
24963 test -z "$ac_c_werror_flag" ||
24964 test ! -s conftest.err
24965 } && test -s conftest$ac_exeext &&
24966 $as_test_x conftest$ac_exeext; then
24968 LIBRESOLV="-lresolv"
24969 { echo "$as_me:$LINENO: result: yes" >&5
24970 echo "${ECHO_T}yes" >&6; }
24972 cat >>confdefs.h <<\_ACEOF
24973 #define HAVE_RES_INIT 1
24978 echo "$as_me: failed program was:" >&5
24979 sed 's/^/| /' conftest.$ac_ext >&5
24981 { echo "$as_me:$LINENO: result: no" >&5
24982 echo "${ECHO_T}no" >&6; }
24986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24987 conftest$ac_exeext conftest.$ac_ext
24988 LIBS=$kde_libs_safe
24992 { echo "$as_me:$LINENO: checking for res_init" >&5
24993 echo $ECHO_N "checking for res_init... $ECHO_C" >&6; }
24994 if test "${kde_cv_func_res_init+set}" = set; then
24995 echo $ECHO_N "(cached) $ECHO_C" >&6
25000 ac_cpp='$CXXCPP $CPPFLAGS'
25001 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25002 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25003 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25005 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
25008 save_CXXFLAGS="$CXXFLAGS"
25009 kde_safe_LIBS="$LIBS"
25010 LIBS="$LIBS $X_EXTRA_LIBS"
25011 if test "$GXX" = "yes"; then
25012 CXXFLAGS="$CXXFLAGS -pedantic-errors"
25014 cat >conftest.$ac_ext <<_ACEOF
25017 cat confdefs.h >>conftest.$ac_ext
25018 cat >>conftest.$ac_ext <<_ACEOF
25019 /* end confdefs.h. */
25022 #include <sys/types.h>
25023 #include <netinet/in.h>
25024 #include <arpa/nameser.h>
25025 #include <resolv.h>
25038 rm -f conftest.$ac_objext
25039 if { (ac_try="$ac_compile"
25040 case "(($ac_try" in
25041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25042 *) ac_try_echo=$ac_try;;
25044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25045 (eval "$ac_compile") 2>conftest.er1
25047 grep -v '^ *+' conftest.er1 >conftest.err
25049 cat conftest.err >&5
25050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25051 (exit $ac_status); } && {
25052 test -z "$ac_cxx_werror_flag" ||
25053 test ! -s conftest.err
25054 } && test -s conftest.$ac_objext; then
25055 kde_cv_func_res_init=yes
25057 echo "$as_me: failed program was:" >&5
25058 sed 's/^/| /' conftest.$ac_ext >&5
25060 kde_cv_func_res_init=no
25063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25064 CXXFLAGS="$save_CXXFLAGS"
25065 LIBS="$kde_safe_LIBS"
25067 ac_cpp='$CPP $CPPFLAGS'
25068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25076 { echo "$as_me:$LINENO: result: $kde_cv_func_res_init" >&5
25077 echo "${ECHO_T}$kde_cv_func_res_init" >&6; }
25079 { echo "$as_me:$LINENO: checking if res_init needs custom prototype" >&5
25080 echo $ECHO_N "checking if res_init needs custom prototype... $ECHO_C" >&6; }
25081 if test "${kde_cv_proto_res_init+set}" = set; then
25082 echo $ECHO_N "(cached) $ECHO_C" >&6
25085 if test "x$kde_cv_func_res_init" = xyes; then
25086 kde_cv_proto_res_init=no
25089 setenv|unsetenv|usleep|random|srandom|seteuid|mkstemps|mkstemp|revoke|vsnprintf|strlcpy|strlcat)
25090 kde_cv_proto_res_init="yes - in libkdefakes"
25093 kde_cv_proto_res_init=unknown
25098 if test "x$kde_cv_proto_res_init" = xunknown; then
25102 ac_cpp='$CXXCPP $CPPFLAGS'
25103 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25104 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25105 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25107 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
25110 kde_safe_libs=$LIBS
25111 LIBS="$LIBS $X_EXTRA_LIBS"
25112 cat >conftest.$ac_ext <<_ACEOF
25115 cat confdefs.h >>conftest.$ac_ext
25116 cat >>conftest.$ac_ext <<_ACEOF
25117 /* end confdefs.h. */
25120 #include <sys/types.h>
25121 #include <netinet/in.h>
25122 #include <arpa/nameser.h>
25123 #include <resolv.h>
25126 extern "C" int res_init(void);
25138 rm -f conftest.$ac_objext conftest$ac_exeext
25139 if { (ac_try="$ac_link"
25140 case "(($ac_try" in
25141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25142 *) ac_try_echo=$ac_try;;
25144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25145 (eval "$ac_link") 2>conftest.er1
25147 grep -v '^ *+' conftest.er1 >conftest.err
25149 cat conftest.err >&5
25150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25151 (exit $ac_status); } && {
25152 test -z "$ac_cxx_werror_flag" ||
25153 test ! -s conftest.err
25154 } && test -s conftest$ac_exeext &&
25155 $as_test_x conftest$ac_exeext; then
25156 kde_cv_func_res_init=yes
25157 kde_cv_proto_res_init=yes
25159 echo "$as_me: failed program was:" >&5
25160 sed 's/^/| /' conftest.$ac_ext >&5
25162 kde_cv_proto_res_init="res_init unavailable"
25166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25167 conftest$ac_exeext conftest.$ac_ext
25168 LIBS=$kde_safe_libs
25170 ac_cpp='$CPP $CPPFLAGS'
25171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25179 { echo "$as_me:$LINENO: result: $kde_cv_proto_res_init" >&5
25180 echo "${ECHO_T}$kde_cv_proto_res_init" >&6; }
25182 if test "x$kde_cv_func_res_init" = xyes; then
25184 cat >>confdefs.h <<\_ACEOF
25185 #define HAVE_RES_INIT 1
25190 if test "x$kde_cv_proto_res_init" = xno; then
25192 cat >>confdefs.h <<\_ACEOF
25193 #define HAVE_RES_INIT_PROTO 1
25204 LIBSOCKET="$X_EXTRA_LIBS"
25207 { echo "$as_me:$LINENO: checking for killpg in -lucb" >&5
25208 echo $ECHO_N "checking for killpg in -lucb... $ECHO_C" >&6; }
25209 if test "${ac_cv_lib_ucb_killpg+set}" = set; then
25210 echo $ECHO_N "(cached) $ECHO_C" >&6
25212 ac_check_lib_save_LIBS=$LIBS
25214 cat >conftest.$ac_ext <<_ACEOF
25217 cat confdefs.h >>conftest.$ac_ext
25218 cat >>conftest.$ac_ext <<_ACEOF
25219 /* end confdefs.h. */
25221 /* Override any GCC internal prototype to avoid an error.
25222 Use char because int might match the return type of a GCC
25223 builtin and then its argument prototype would still apply. */
25236 rm -f conftest.$ac_objext conftest$ac_exeext
25237 if { (ac_try="$ac_link"
25238 case "(($ac_try" in
25239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25240 *) ac_try_echo=$ac_try;;
25242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25243 (eval "$ac_link") 2>conftest.er1
25245 grep -v '^ *+' conftest.er1 >conftest.err
25247 cat conftest.err >&5
25248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25249 (exit $ac_status); } && {
25250 test -z "$ac_c_werror_flag" ||
25251 test ! -s conftest.err
25252 } && test -s conftest$ac_exeext &&
25253 $as_test_x conftest$ac_exeext; then
25254 ac_cv_lib_ucb_killpg=yes
25256 echo "$as_me: failed program was:" >&5
25257 sed 's/^/| /' conftest.$ac_ext >&5
25259 ac_cv_lib_ucb_killpg=no
25262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25263 conftest$ac_exeext conftest.$ac_ext
25264 LIBS=$ac_check_lib_save_LIBS
25266 { echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_killpg" >&5
25267 echo "${ECHO_T}$ac_cv_lib_ucb_killpg" >&6; }
25268 if test $ac_cv_lib_ucb_killpg = yes; then
25273 case $host in *-*-lynxos* )
25274 { echo "$as_me:$LINENO: checking LynxOS header file wrappers" >&5
25275 echo $ECHO_N "checking LynxOS header file wrappers... $ECHO_C" >&6; }
25276 CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__"
25277 { echo "$as_me:$LINENO: result: disabled" >&5
25278 echo "${ECHO_T}disabled" >&6; }
25279 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
25280 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
25281 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
25282 echo $ECHO_N "(cached) $ECHO_C" >&6
25284 ac_check_lib_save_LIBS=$LIBS
25286 cat >conftest.$ac_ext <<_ACEOF
25289 cat confdefs.h >>conftest.$ac_ext
25290 cat >>conftest.$ac_ext <<_ACEOF
25291 /* end confdefs.h. */
25293 /* Override any GCC internal prototype to avoid an error.
25294 Use char because int might match the return type of a GCC
25295 builtin and then its argument prototype would still apply. */
25299 char gethostbyname ();
25303 return gethostbyname ();
25308 rm -f conftest.$ac_objext conftest$ac_exeext
25309 if { (ac_try="$ac_link"
25310 case "(($ac_try" in
25311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25312 *) ac_try_echo=$ac_try;;
25314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25315 (eval "$ac_link") 2>conftest.er1
25317 grep -v '^ *+' conftest.er1 >conftest.err
25319 cat conftest.err >&5
25320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25321 (exit $ac_status); } && {
25322 test -z "$ac_c_werror_flag" ||
25323 test ! -s conftest.err
25324 } && test -s conftest$ac_exeext &&
25325 $as_test_x conftest$ac_exeext; then
25326 ac_cv_lib_bsd_gethostbyname=yes
25328 echo "$as_me: failed program was:" >&5
25329 sed 's/^/| /' conftest.$ac_ext >&5
25331 ac_cv_lib_bsd_gethostbyname=no
25334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25335 conftest$ac_exeext conftest.$ac_ext
25336 LIBS=$ac_check_lib_save_LIBS
25338 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
25339 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
25340 if test $ac_cv_lib_bsd_gethostbyname = yes; then
25346 { echo "$as_me:$LINENO: checking for int" >&5
25347 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
25348 if test "${ac_cv_type_int+set}" = set; then
25349 echo $ECHO_N "(cached) $ECHO_C" >&6
25351 cat >conftest.$ac_ext <<_ACEOF
25354 cat confdefs.h >>conftest.$ac_ext
25355 cat >>conftest.$ac_ext <<_ACEOF
25356 /* end confdefs.h. */
25357 $ac_includes_default
25358 typedef int ac__type_new_;
25362 if ((ac__type_new_ *) 0)
25364 if (sizeof (ac__type_new_))
25370 rm -f conftest.$ac_objext
25371 if { (ac_try="$ac_compile"
25372 case "(($ac_try" in
25373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25374 *) ac_try_echo=$ac_try;;
25376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25377 (eval "$ac_compile") 2>conftest.er1
25379 grep -v '^ *+' conftest.er1 >conftest.err
25381 cat conftest.err >&5
25382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25383 (exit $ac_status); } && {
25384 test -z "$ac_c_werror_flag" ||
25385 test ! -s conftest.err
25386 } && test -s conftest.$ac_objext; then
25389 echo "$as_me: failed program was:" >&5
25390 sed 's/^/| /' conftest.$ac_ext >&5
25395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25397 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
25398 echo "${ECHO_T}$ac_cv_type_int" >&6; }
25400 # The cast to long int works around a bug in the HP C Compiler
25401 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25402 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25403 # This bug is HP SR number 8606223364.
25404 { echo "$as_me:$LINENO: checking size of int" >&5
25405 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
25406 if test "${ac_cv_sizeof_int+set}" = set; then
25407 echo $ECHO_N "(cached) $ECHO_C" >&6
25409 if test "$cross_compiling" = yes; then
25410 # Depending upon the size, compute the lo and hi bounds.
25411 cat >conftest.$ac_ext <<_ACEOF
25414 cat confdefs.h >>conftest.$ac_ext
25415 cat >>conftest.$ac_ext <<_ACEOF
25416 /* end confdefs.h. */
25417 $ac_includes_default
25418 typedef int ac__type_sizeof_;
25422 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25429 rm -f conftest.$ac_objext
25430 if { (ac_try="$ac_compile"
25431 case "(($ac_try" in
25432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25433 *) ac_try_echo=$ac_try;;
25435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25436 (eval "$ac_compile") 2>conftest.er1
25438 grep -v '^ *+' conftest.er1 >conftest.err
25440 cat conftest.err >&5
25441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25442 (exit $ac_status); } && {
25443 test -z "$ac_c_werror_flag" ||
25444 test ! -s conftest.err
25445 } && test -s conftest.$ac_objext; then
25448 cat >conftest.$ac_ext <<_ACEOF
25451 cat confdefs.h >>conftest.$ac_ext
25452 cat >>conftest.$ac_ext <<_ACEOF
25453 /* end confdefs.h. */
25454 $ac_includes_default
25455 typedef int ac__type_sizeof_;
25459 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25466 rm -f conftest.$ac_objext
25467 if { (ac_try="$ac_compile"
25468 case "(($ac_try" in
25469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25470 *) ac_try_echo=$ac_try;;
25472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25473 (eval "$ac_compile") 2>conftest.er1
25475 grep -v '^ *+' conftest.er1 >conftest.err
25477 cat conftest.err >&5
25478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25479 (exit $ac_status); } && {
25480 test -z "$ac_c_werror_flag" ||
25481 test ! -s conftest.err
25482 } && test -s conftest.$ac_objext; then
25483 ac_hi=$ac_mid; break
25485 echo "$as_me: failed program was:" >&5
25486 sed 's/^/| /' conftest.$ac_ext >&5
25488 ac_lo=`expr $ac_mid + 1`
25489 if test $ac_lo -le $ac_mid; then
25493 ac_mid=`expr 2 '*' $ac_mid + 1`
25496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25499 echo "$as_me: failed program was:" >&5
25500 sed 's/^/| /' conftest.$ac_ext >&5
25502 cat >conftest.$ac_ext <<_ACEOF
25505 cat confdefs.h >>conftest.$ac_ext
25506 cat >>conftest.$ac_ext <<_ACEOF
25507 /* end confdefs.h. */
25508 $ac_includes_default
25509 typedef int ac__type_sizeof_;
25513 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25520 rm -f conftest.$ac_objext
25521 if { (ac_try="$ac_compile"
25522 case "(($ac_try" in
25523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25524 *) ac_try_echo=$ac_try;;
25526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25527 (eval "$ac_compile") 2>conftest.er1
25529 grep -v '^ *+' conftest.er1 >conftest.err
25531 cat conftest.err >&5
25532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25533 (exit $ac_status); } && {
25534 test -z "$ac_c_werror_flag" ||
25535 test ! -s conftest.err
25536 } && test -s conftest.$ac_objext; then
25539 cat >conftest.$ac_ext <<_ACEOF
25542 cat confdefs.h >>conftest.$ac_ext
25543 cat >>conftest.$ac_ext <<_ACEOF
25544 /* end confdefs.h. */
25545 $ac_includes_default
25546 typedef int ac__type_sizeof_;
25550 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25557 rm -f conftest.$ac_objext
25558 if { (ac_try="$ac_compile"
25559 case "(($ac_try" in
25560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25561 *) ac_try_echo=$ac_try;;
25563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25564 (eval "$ac_compile") 2>conftest.er1
25566 grep -v '^ *+' conftest.er1 >conftest.err
25568 cat conftest.err >&5
25569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25570 (exit $ac_status); } && {
25571 test -z "$ac_c_werror_flag" ||
25572 test ! -s conftest.err
25573 } && test -s conftest.$ac_objext; then
25574 ac_lo=$ac_mid; break
25576 echo "$as_me: failed program was:" >&5
25577 sed 's/^/| /' conftest.$ac_ext >&5
25579 ac_hi=`expr '(' $ac_mid ')' - 1`
25580 if test $ac_mid -le $ac_hi; then
25584 ac_mid=`expr 2 '*' $ac_mid`
25587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25590 echo "$as_me: failed program was:" >&5
25591 sed 's/^/| /' conftest.$ac_ext >&5
25596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25600 # Binary search between lo and hi bounds.
25601 while test "x$ac_lo" != "x$ac_hi"; do
25602 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25603 cat >conftest.$ac_ext <<_ACEOF
25606 cat confdefs.h >>conftest.$ac_ext
25607 cat >>conftest.$ac_ext <<_ACEOF
25608 /* end confdefs.h. */
25609 $ac_includes_default
25610 typedef int ac__type_sizeof_;
25614 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25621 rm -f conftest.$ac_objext
25622 if { (ac_try="$ac_compile"
25623 case "(($ac_try" in
25624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25625 *) ac_try_echo=$ac_try;;
25627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25628 (eval "$ac_compile") 2>conftest.er1
25630 grep -v '^ *+' conftest.er1 >conftest.err
25632 cat conftest.err >&5
25633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25634 (exit $ac_status); } && {
25635 test -z "$ac_c_werror_flag" ||
25636 test ! -s conftest.err
25637 } && test -s conftest.$ac_objext; then
25640 echo "$as_me: failed program was:" >&5
25641 sed 's/^/| /' conftest.$ac_ext >&5
25643 ac_lo=`expr '(' $ac_mid ')' + 1`
25646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25649 ?*) ac_cv_sizeof_int=$ac_lo;;
25650 '') if test "$ac_cv_type_int" = yes; then
25651 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
25652 See \`config.log' for more details." >&5
25653 echo "$as_me: error: cannot compute sizeof (int)
25654 See \`config.log' for more details." >&2;}
25655 { (exit 77); exit 77; }; }
25661 cat >conftest.$ac_ext <<_ACEOF
25664 cat confdefs.h >>conftest.$ac_ext
25665 cat >>conftest.$ac_ext <<_ACEOF
25666 /* end confdefs.h. */
25667 $ac_includes_default
25668 typedef int ac__type_sizeof_;
25669 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25670 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25672 #include <stdlib.h>
25677 FILE *f = fopen ("conftest.val", "w");
25680 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25682 long int i = longval ();
25683 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25685 fprintf (f, "%ld\n", i);
25689 unsigned long int i = ulongval ();
25690 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25692 fprintf (f, "%lu\n", i);
25694 return ferror (f) || fclose (f) != 0;
25700 rm -f conftest$ac_exeext
25701 if { (ac_try="$ac_link"
25702 case "(($ac_try" in
25703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25704 *) ac_try_echo=$ac_try;;
25706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25707 (eval "$ac_link") 2>&5
25709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25710 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25711 { (case "(($ac_try" in
25712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25713 *) ac_try_echo=$ac_try;;
25715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25716 (eval "$ac_try") 2>&5
25718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25719 (exit $ac_status); }; }; then
25720 ac_cv_sizeof_int=`cat conftest.val`
25722 echo "$as_me: program exited with status $ac_status" >&5
25723 echo "$as_me: failed program was:" >&5
25724 sed 's/^/| /' conftest.$ac_ext >&5
25726 ( exit $ac_status )
25727 if test "$ac_cv_type_int" = yes; then
25728 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
25729 See \`config.log' for more details." >&5
25730 echo "$as_me: error: cannot compute sizeof (int)
25731 See \`config.log' for more details." >&2;}
25732 { (exit 77); exit 77; }; }
25737 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25741 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
25742 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
25746 cat >>confdefs.h <<_ACEOF
25747 #define SIZEOF_INT $ac_cv_sizeof_int
25750 { echo "$as_me:$LINENO: checking for short" >&5
25751 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
25752 if test "${ac_cv_type_short+set}" = set; then
25753 echo $ECHO_N "(cached) $ECHO_C" >&6
25755 cat >conftest.$ac_ext <<_ACEOF
25758 cat confdefs.h >>conftest.$ac_ext
25759 cat >>conftest.$ac_ext <<_ACEOF
25760 /* end confdefs.h. */
25761 $ac_includes_default
25762 typedef short ac__type_new_;
25766 if ((ac__type_new_ *) 0)
25768 if (sizeof (ac__type_new_))
25774 rm -f conftest.$ac_objext
25775 if { (ac_try="$ac_compile"
25776 case "(($ac_try" in
25777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25778 *) ac_try_echo=$ac_try;;
25780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25781 (eval "$ac_compile") 2>conftest.er1
25783 grep -v '^ *+' conftest.er1 >conftest.err
25785 cat conftest.err >&5
25786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25787 (exit $ac_status); } && {
25788 test -z "$ac_c_werror_flag" ||
25789 test ! -s conftest.err
25790 } && test -s conftest.$ac_objext; then
25791 ac_cv_type_short=yes
25793 echo "$as_me: failed program was:" >&5
25794 sed 's/^/| /' conftest.$ac_ext >&5
25796 ac_cv_type_short=no
25799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25801 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
25802 echo "${ECHO_T}$ac_cv_type_short" >&6; }
25804 # The cast to long int works around a bug in the HP C Compiler
25805 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25806 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25807 # This bug is HP SR number 8606223364.
25808 { echo "$as_me:$LINENO: checking size of short" >&5
25809 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
25810 if test "${ac_cv_sizeof_short+set}" = set; then
25811 echo $ECHO_N "(cached) $ECHO_C" >&6
25813 if test "$cross_compiling" = yes; then
25814 # Depending upon the size, compute the lo and hi bounds.
25815 cat >conftest.$ac_ext <<_ACEOF
25818 cat confdefs.h >>conftest.$ac_ext
25819 cat >>conftest.$ac_ext <<_ACEOF
25820 /* end confdefs.h. */
25821 $ac_includes_default
25822 typedef short ac__type_sizeof_;
25826 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25833 rm -f conftest.$ac_objext
25834 if { (ac_try="$ac_compile"
25835 case "(($ac_try" in
25836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25837 *) ac_try_echo=$ac_try;;
25839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25840 (eval "$ac_compile") 2>conftest.er1
25842 grep -v '^ *+' conftest.er1 >conftest.err
25844 cat conftest.err >&5
25845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25846 (exit $ac_status); } && {
25847 test -z "$ac_c_werror_flag" ||
25848 test ! -s conftest.err
25849 } && test -s conftest.$ac_objext; then
25852 cat >conftest.$ac_ext <<_ACEOF
25855 cat confdefs.h >>conftest.$ac_ext
25856 cat >>conftest.$ac_ext <<_ACEOF
25857 /* end confdefs.h. */
25858 $ac_includes_default
25859 typedef short ac__type_sizeof_;
25863 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25870 rm -f conftest.$ac_objext
25871 if { (ac_try="$ac_compile"
25872 case "(($ac_try" in
25873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25874 *) ac_try_echo=$ac_try;;
25876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25877 (eval "$ac_compile") 2>conftest.er1
25879 grep -v '^ *+' conftest.er1 >conftest.err
25881 cat conftest.err >&5
25882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25883 (exit $ac_status); } && {
25884 test -z "$ac_c_werror_flag" ||
25885 test ! -s conftest.err
25886 } && test -s conftest.$ac_objext; then
25887 ac_hi=$ac_mid; break
25889 echo "$as_me: failed program was:" >&5
25890 sed 's/^/| /' conftest.$ac_ext >&5
25892 ac_lo=`expr $ac_mid + 1`
25893 if test $ac_lo -le $ac_mid; then
25897 ac_mid=`expr 2 '*' $ac_mid + 1`
25900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25903 echo "$as_me: failed program was:" >&5
25904 sed 's/^/| /' conftest.$ac_ext >&5
25906 cat >conftest.$ac_ext <<_ACEOF
25909 cat confdefs.h >>conftest.$ac_ext
25910 cat >>conftest.$ac_ext <<_ACEOF
25911 /* end confdefs.h. */
25912 $ac_includes_default
25913 typedef short ac__type_sizeof_;
25917 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25924 rm -f conftest.$ac_objext
25925 if { (ac_try="$ac_compile"
25926 case "(($ac_try" in
25927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25928 *) ac_try_echo=$ac_try;;
25930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25931 (eval "$ac_compile") 2>conftest.er1
25933 grep -v '^ *+' conftest.er1 >conftest.err
25935 cat conftest.err >&5
25936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25937 (exit $ac_status); } && {
25938 test -z "$ac_c_werror_flag" ||
25939 test ! -s conftest.err
25940 } && test -s conftest.$ac_objext; then
25943 cat >conftest.$ac_ext <<_ACEOF
25946 cat confdefs.h >>conftest.$ac_ext
25947 cat >>conftest.$ac_ext <<_ACEOF
25948 /* end confdefs.h. */
25949 $ac_includes_default
25950 typedef short ac__type_sizeof_;
25954 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25961 rm -f conftest.$ac_objext
25962 if { (ac_try="$ac_compile"
25963 case "(($ac_try" in
25964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25965 *) ac_try_echo=$ac_try;;
25967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25968 (eval "$ac_compile") 2>conftest.er1
25970 grep -v '^ *+' conftest.er1 >conftest.err
25972 cat conftest.err >&5
25973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25974 (exit $ac_status); } && {
25975 test -z "$ac_c_werror_flag" ||
25976 test ! -s conftest.err
25977 } && test -s conftest.$ac_objext; then
25978 ac_lo=$ac_mid; break
25980 echo "$as_me: failed program was:" >&5
25981 sed 's/^/| /' conftest.$ac_ext >&5
25983 ac_hi=`expr '(' $ac_mid ')' - 1`
25984 if test $ac_mid -le $ac_hi; then
25988 ac_mid=`expr 2 '*' $ac_mid`
25991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25994 echo "$as_me: failed program was:" >&5
25995 sed 's/^/| /' conftest.$ac_ext >&5
26000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26004 # Binary search between lo and hi bounds.
26005 while test "x$ac_lo" != "x$ac_hi"; do
26006 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26007 cat >conftest.$ac_ext <<_ACEOF
26010 cat confdefs.h >>conftest.$ac_ext
26011 cat >>conftest.$ac_ext <<_ACEOF
26012 /* end confdefs.h. */
26013 $ac_includes_default
26014 typedef short ac__type_sizeof_;
26018 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26025 rm -f conftest.$ac_objext
26026 if { (ac_try="$ac_compile"
26027 case "(($ac_try" in
26028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26029 *) ac_try_echo=$ac_try;;
26031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26032 (eval "$ac_compile") 2>conftest.er1
26034 grep -v '^ *+' conftest.er1 >conftest.err
26036 cat conftest.err >&5
26037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26038 (exit $ac_status); } && {
26039 test -z "$ac_c_werror_flag" ||
26040 test ! -s conftest.err
26041 } && test -s conftest.$ac_objext; then
26044 echo "$as_me: failed program was:" >&5
26045 sed 's/^/| /' conftest.$ac_ext >&5
26047 ac_lo=`expr '(' $ac_mid ')' + 1`
26050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26053 ?*) ac_cv_sizeof_short=$ac_lo;;
26054 '') if test "$ac_cv_type_short" = yes; then
26055 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
26056 See \`config.log' for more details." >&5
26057 echo "$as_me: error: cannot compute sizeof (short)
26058 See \`config.log' for more details." >&2;}
26059 { (exit 77); exit 77; }; }
26061 ac_cv_sizeof_short=0
26065 cat >conftest.$ac_ext <<_ACEOF
26068 cat confdefs.h >>conftest.$ac_ext
26069 cat >>conftest.$ac_ext <<_ACEOF
26070 /* end confdefs.h. */
26071 $ac_includes_default
26072 typedef short ac__type_sizeof_;
26073 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
26074 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
26076 #include <stdlib.h>
26081 FILE *f = fopen ("conftest.val", "w");
26084 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
26086 long int i = longval ();
26087 if (i != ((long int) (sizeof (ac__type_sizeof_))))
26089 fprintf (f, "%ld\n", i);
26093 unsigned long int i = ulongval ();
26094 if (i != ((long int) (sizeof (ac__type_sizeof_))))
26096 fprintf (f, "%lu\n", i);
26098 return ferror (f) || fclose (f) != 0;
26104 rm -f conftest$ac_exeext
26105 if { (ac_try="$ac_link"
26106 case "(($ac_try" in
26107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26108 *) ac_try_echo=$ac_try;;
26110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26111 (eval "$ac_link") 2>&5
26113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26114 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26115 { (case "(($ac_try" in
26116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26117 *) ac_try_echo=$ac_try;;
26119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26120 (eval "$ac_try") 2>&5
26122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26123 (exit $ac_status); }; }; then
26124 ac_cv_sizeof_short=`cat conftest.val`
26126 echo "$as_me: program exited with status $ac_status" >&5
26127 echo "$as_me: failed program was:" >&5
26128 sed 's/^/| /' conftest.$ac_ext >&5
26130 ( exit $ac_status )
26131 if test "$ac_cv_type_short" = yes; then
26132 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
26133 See \`config.log' for more details." >&5
26134 echo "$as_me: error: cannot compute sizeof (short)
26135 See \`config.log' for more details." >&2;}
26136 { (exit 77); exit 77; }; }
26138 ac_cv_sizeof_short=0
26141 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26145 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
26146 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
26150 cat >>confdefs.h <<_ACEOF
26151 #define SIZEOF_SHORT $ac_cv_sizeof_short
26154 { echo "$as_me:$LINENO: checking for long" >&5
26155 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
26156 if test "${ac_cv_type_long+set}" = set; then
26157 echo $ECHO_N "(cached) $ECHO_C" >&6
26159 cat >conftest.$ac_ext <<_ACEOF
26162 cat confdefs.h >>conftest.$ac_ext
26163 cat >>conftest.$ac_ext <<_ACEOF
26164 /* end confdefs.h. */
26165 $ac_includes_default
26166 typedef long ac__type_new_;
26170 if ((ac__type_new_ *) 0)
26172 if (sizeof (ac__type_new_))
26178 rm -f conftest.$ac_objext
26179 if { (ac_try="$ac_compile"
26180 case "(($ac_try" in
26181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26182 *) ac_try_echo=$ac_try;;
26184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26185 (eval "$ac_compile") 2>conftest.er1
26187 grep -v '^ *+' conftest.er1 >conftest.err
26189 cat conftest.err >&5
26190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26191 (exit $ac_status); } && {
26192 test -z "$ac_c_werror_flag" ||
26193 test ! -s conftest.err
26194 } && test -s conftest.$ac_objext; then
26195 ac_cv_type_long=yes
26197 echo "$as_me: failed program was:" >&5
26198 sed 's/^/| /' conftest.$ac_ext >&5
26203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26205 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
26206 echo "${ECHO_T}$ac_cv_type_long" >&6; }
26208 # The cast to long int works around a bug in the HP C Compiler
26209 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26210 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26211 # This bug is HP SR number 8606223364.
26212 { echo "$as_me:$LINENO: checking size of long" >&5
26213 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
26214 if test "${ac_cv_sizeof_long+set}" = set; then
26215 echo $ECHO_N "(cached) $ECHO_C" >&6
26217 if test "$cross_compiling" = yes; then
26218 # Depending upon the size, compute the lo and hi bounds.
26219 cat >conftest.$ac_ext <<_ACEOF
26222 cat confdefs.h >>conftest.$ac_ext
26223 cat >>conftest.$ac_ext <<_ACEOF
26224 /* end confdefs.h. */
26225 $ac_includes_default
26226 typedef long ac__type_sizeof_;
26230 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
26237 rm -f conftest.$ac_objext
26238 if { (ac_try="$ac_compile"
26239 case "(($ac_try" in
26240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26241 *) ac_try_echo=$ac_try;;
26243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26244 (eval "$ac_compile") 2>conftest.er1
26246 grep -v '^ *+' conftest.er1 >conftest.err
26248 cat conftest.err >&5
26249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26250 (exit $ac_status); } && {
26251 test -z "$ac_c_werror_flag" ||
26252 test ! -s conftest.err
26253 } && test -s conftest.$ac_objext; then
26256 cat >conftest.$ac_ext <<_ACEOF
26259 cat confdefs.h >>conftest.$ac_ext
26260 cat >>conftest.$ac_ext <<_ACEOF
26261 /* end confdefs.h. */
26262 $ac_includes_default
26263 typedef long ac__type_sizeof_;
26267 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26274 rm -f conftest.$ac_objext
26275 if { (ac_try="$ac_compile"
26276 case "(($ac_try" in
26277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26278 *) ac_try_echo=$ac_try;;
26280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26281 (eval "$ac_compile") 2>conftest.er1
26283 grep -v '^ *+' conftest.er1 >conftest.err
26285 cat conftest.err >&5
26286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26287 (exit $ac_status); } && {
26288 test -z "$ac_c_werror_flag" ||
26289 test ! -s conftest.err
26290 } && test -s conftest.$ac_objext; then
26291 ac_hi=$ac_mid; break
26293 echo "$as_me: failed program was:" >&5
26294 sed 's/^/| /' conftest.$ac_ext >&5
26296 ac_lo=`expr $ac_mid + 1`
26297 if test $ac_lo -le $ac_mid; then
26301 ac_mid=`expr 2 '*' $ac_mid + 1`
26304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26307 echo "$as_me: failed program was:" >&5
26308 sed 's/^/| /' conftest.$ac_ext >&5
26310 cat >conftest.$ac_ext <<_ACEOF
26313 cat confdefs.h >>conftest.$ac_ext
26314 cat >>conftest.$ac_ext <<_ACEOF
26315 /* end confdefs.h. */
26316 $ac_includes_default
26317 typedef long ac__type_sizeof_;
26321 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
26328 rm -f conftest.$ac_objext
26329 if { (ac_try="$ac_compile"
26330 case "(($ac_try" in
26331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26332 *) ac_try_echo=$ac_try;;
26334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26335 (eval "$ac_compile") 2>conftest.er1
26337 grep -v '^ *+' conftest.er1 >conftest.err
26339 cat conftest.err >&5
26340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26341 (exit $ac_status); } && {
26342 test -z "$ac_c_werror_flag" ||
26343 test ! -s conftest.err
26344 } && test -s conftest.$ac_objext; then
26347 cat >conftest.$ac_ext <<_ACEOF
26350 cat confdefs.h >>conftest.$ac_ext
26351 cat >>conftest.$ac_ext <<_ACEOF
26352 /* end confdefs.h. */
26353 $ac_includes_default
26354 typedef long ac__type_sizeof_;
26358 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
26365 rm -f conftest.$ac_objext
26366 if { (ac_try="$ac_compile"
26367 case "(($ac_try" in
26368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26369 *) ac_try_echo=$ac_try;;
26371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26372 (eval "$ac_compile") 2>conftest.er1
26374 grep -v '^ *+' conftest.er1 >conftest.err
26376 cat conftest.err >&5
26377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26378 (exit $ac_status); } && {
26379 test -z "$ac_c_werror_flag" ||
26380 test ! -s conftest.err
26381 } && test -s conftest.$ac_objext; then
26382 ac_lo=$ac_mid; break
26384 echo "$as_me: failed program was:" >&5
26385 sed 's/^/| /' conftest.$ac_ext >&5
26387 ac_hi=`expr '(' $ac_mid ')' - 1`
26388 if test $ac_mid -le $ac_hi; then
26392 ac_mid=`expr 2 '*' $ac_mid`
26395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26398 echo "$as_me: failed program was:" >&5
26399 sed 's/^/| /' conftest.$ac_ext >&5
26404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26408 # Binary search between lo and hi bounds.
26409 while test "x$ac_lo" != "x$ac_hi"; do
26410 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26411 cat >conftest.$ac_ext <<_ACEOF
26414 cat confdefs.h >>conftest.$ac_ext
26415 cat >>conftest.$ac_ext <<_ACEOF
26416 /* end confdefs.h. */
26417 $ac_includes_default
26418 typedef long ac__type_sizeof_;
26422 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26429 rm -f conftest.$ac_objext
26430 if { (ac_try="$ac_compile"
26431 case "(($ac_try" in
26432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26433 *) ac_try_echo=$ac_try;;
26435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26436 (eval "$ac_compile") 2>conftest.er1
26438 grep -v '^ *+' conftest.er1 >conftest.err
26440 cat conftest.err >&5
26441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26442 (exit $ac_status); } && {
26443 test -z "$ac_c_werror_flag" ||
26444 test ! -s conftest.err
26445 } && test -s conftest.$ac_objext; then
26448 echo "$as_me: failed program was:" >&5
26449 sed 's/^/| /' conftest.$ac_ext >&5
26451 ac_lo=`expr '(' $ac_mid ')' + 1`
26454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26457 ?*) ac_cv_sizeof_long=$ac_lo;;
26458 '') if test "$ac_cv_type_long" = yes; then
26459 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
26460 See \`config.log' for more details." >&5
26461 echo "$as_me: error: cannot compute sizeof (long)
26462 See \`config.log' for more details." >&2;}
26463 { (exit 77); exit 77; }; }
26465 ac_cv_sizeof_long=0
26469 cat >conftest.$ac_ext <<_ACEOF
26472 cat confdefs.h >>conftest.$ac_ext
26473 cat >>conftest.$ac_ext <<_ACEOF
26474 /* end confdefs.h. */
26475 $ac_includes_default
26476 typedef long ac__type_sizeof_;
26477 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
26478 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
26480 #include <stdlib.h>
26485 FILE *f = fopen ("conftest.val", "w");
26488 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
26490 long int i = longval ();
26491 if (i != ((long int) (sizeof (ac__type_sizeof_))))
26493 fprintf (f, "%ld\n", i);
26497 unsigned long int i = ulongval ();
26498 if (i != ((long int) (sizeof (ac__type_sizeof_))))
26500 fprintf (f, "%lu\n", i);
26502 return ferror (f) || fclose (f) != 0;
26508 rm -f conftest$ac_exeext
26509 if { (ac_try="$ac_link"
26510 case "(($ac_try" in
26511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26512 *) ac_try_echo=$ac_try;;
26514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26515 (eval "$ac_link") 2>&5
26517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26518 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26519 { (case "(($ac_try" in
26520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26521 *) ac_try_echo=$ac_try;;
26523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26524 (eval "$ac_try") 2>&5
26526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26527 (exit $ac_status); }; }; then
26528 ac_cv_sizeof_long=`cat conftest.val`
26530 echo "$as_me: program exited with status $ac_status" >&5
26531 echo "$as_me: failed program was:" >&5
26532 sed 's/^/| /' conftest.$ac_ext >&5
26534 ( exit $ac_status )
26535 if test "$ac_cv_type_long" = yes; then
26536 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
26537 See \`config.log' for more details." >&5
26538 echo "$as_me: error: cannot compute sizeof (long)
26539 See \`config.log' for more details." >&2;}
26540 { (exit 77); exit 77; }; }
26542 ac_cv_sizeof_long=0
26545 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26549 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
26550 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
26554 cat >>confdefs.h <<_ACEOF
26555 #define SIZEOF_LONG $ac_cv_sizeof_long
26558 { echo "$as_me:$LINENO: checking for char *" >&5
26559 echo $ECHO_N "checking for char *... $ECHO_C" >&6; }
26560 if test "${ac_cv_type_char_p+set}" = set; then
26561 echo $ECHO_N "(cached) $ECHO_C" >&6
26563 cat >conftest.$ac_ext <<_ACEOF
26566 cat confdefs.h >>conftest.$ac_ext
26567 cat >>conftest.$ac_ext <<_ACEOF
26568 /* end confdefs.h. */
26569 $ac_includes_default
26570 typedef char * ac__type_new_;
26574 if ((ac__type_new_ *) 0)
26576 if (sizeof (ac__type_new_))
26582 rm -f conftest.$ac_objext
26583 if { (ac_try="$ac_compile"
26584 case "(($ac_try" in
26585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26586 *) ac_try_echo=$ac_try;;
26588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26589 (eval "$ac_compile") 2>conftest.er1
26591 grep -v '^ *+' conftest.er1 >conftest.err
26593 cat conftest.err >&5
26594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26595 (exit $ac_status); } && {
26596 test -z "$ac_c_werror_flag" ||
26597 test ! -s conftest.err
26598 } && test -s conftest.$ac_objext; then
26599 ac_cv_type_char_p=yes
26601 echo "$as_me: failed program was:" >&5
26602 sed 's/^/| /' conftest.$ac_ext >&5
26604 ac_cv_type_char_p=no
26607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26609 { echo "$as_me:$LINENO: result: $ac_cv_type_char_p" >&5
26610 echo "${ECHO_T}$ac_cv_type_char_p" >&6; }
26612 # The cast to long int works around a bug in the HP C Compiler
26613 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26614 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26615 # This bug is HP SR number 8606223364.
26616 { echo "$as_me:$LINENO: checking size of char *" >&5
26617 echo $ECHO_N "checking size of char *... $ECHO_C" >&6; }
26618 if test "${ac_cv_sizeof_char_p+set}" = set; then
26619 echo $ECHO_N "(cached) $ECHO_C" >&6
26621 if test "$cross_compiling" = yes; then
26622 # Depending upon the size, compute the lo and hi bounds.
26623 cat >conftest.$ac_ext <<_ACEOF
26626 cat confdefs.h >>conftest.$ac_ext
26627 cat >>conftest.$ac_ext <<_ACEOF
26628 /* end confdefs.h. */
26629 $ac_includes_default
26630 typedef char * ac__type_sizeof_;
26634 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
26641 rm -f conftest.$ac_objext
26642 if { (ac_try="$ac_compile"
26643 case "(($ac_try" in
26644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26645 *) ac_try_echo=$ac_try;;
26647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26648 (eval "$ac_compile") 2>conftest.er1
26650 grep -v '^ *+' conftest.er1 >conftest.err
26652 cat conftest.err >&5
26653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26654 (exit $ac_status); } && {
26655 test -z "$ac_c_werror_flag" ||
26656 test ! -s conftest.err
26657 } && test -s conftest.$ac_objext; then
26660 cat >conftest.$ac_ext <<_ACEOF
26663 cat confdefs.h >>conftest.$ac_ext
26664 cat >>conftest.$ac_ext <<_ACEOF
26665 /* end confdefs.h. */
26666 $ac_includes_default
26667 typedef char * ac__type_sizeof_;
26671 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26678 rm -f conftest.$ac_objext
26679 if { (ac_try="$ac_compile"
26680 case "(($ac_try" in
26681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26682 *) ac_try_echo=$ac_try;;
26684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26685 (eval "$ac_compile") 2>conftest.er1
26687 grep -v '^ *+' conftest.er1 >conftest.err
26689 cat conftest.err >&5
26690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26691 (exit $ac_status); } && {
26692 test -z "$ac_c_werror_flag" ||
26693 test ! -s conftest.err
26694 } && test -s conftest.$ac_objext; then
26695 ac_hi=$ac_mid; break
26697 echo "$as_me: failed program was:" >&5
26698 sed 's/^/| /' conftest.$ac_ext >&5
26700 ac_lo=`expr $ac_mid + 1`
26701 if test $ac_lo -le $ac_mid; then
26705 ac_mid=`expr 2 '*' $ac_mid + 1`
26708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26711 echo "$as_me: failed program was:" >&5
26712 sed 's/^/| /' conftest.$ac_ext >&5
26714 cat >conftest.$ac_ext <<_ACEOF
26717 cat confdefs.h >>conftest.$ac_ext
26718 cat >>conftest.$ac_ext <<_ACEOF
26719 /* end confdefs.h. */
26720 $ac_includes_default
26721 typedef char * ac__type_sizeof_;
26725 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
26732 rm -f conftest.$ac_objext
26733 if { (ac_try="$ac_compile"
26734 case "(($ac_try" in
26735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26736 *) ac_try_echo=$ac_try;;
26738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26739 (eval "$ac_compile") 2>conftest.er1
26741 grep -v '^ *+' conftest.er1 >conftest.err
26743 cat conftest.err >&5
26744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26745 (exit $ac_status); } && {
26746 test -z "$ac_c_werror_flag" ||
26747 test ! -s conftest.err
26748 } && test -s conftest.$ac_objext; then
26751 cat >conftest.$ac_ext <<_ACEOF
26754 cat confdefs.h >>conftest.$ac_ext
26755 cat >>conftest.$ac_ext <<_ACEOF
26756 /* end confdefs.h. */
26757 $ac_includes_default
26758 typedef char * ac__type_sizeof_;
26762 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
26769 rm -f conftest.$ac_objext
26770 if { (ac_try="$ac_compile"
26771 case "(($ac_try" in
26772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26773 *) ac_try_echo=$ac_try;;
26775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26776 (eval "$ac_compile") 2>conftest.er1
26778 grep -v '^ *+' conftest.er1 >conftest.err
26780 cat conftest.err >&5
26781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26782 (exit $ac_status); } && {
26783 test -z "$ac_c_werror_flag" ||
26784 test ! -s conftest.err
26785 } && test -s conftest.$ac_objext; then
26786 ac_lo=$ac_mid; break
26788 echo "$as_me: failed program was:" >&5
26789 sed 's/^/| /' conftest.$ac_ext >&5
26791 ac_hi=`expr '(' $ac_mid ')' - 1`
26792 if test $ac_mid -le $ac_hi; then
26796 ac_mid=`expr 2 '*' $ac_mid`
26799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26802 echo "$as_me: failed program was:" >&5
26803 sed 's/^/| /' conftest.$ac_ext >&5
26808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26812 # Binary search between lo and hi bounds.
26813 while test "x$ac_lo" != "x$ac_hi"; do
26814 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26815 cat >conftest.$ac_ext <<_ACEOF
26818 cat confdefs.h >>conftest.$ac_ext
26819 cat >>conftest.$ac_ext <<_ACEOF
26820 /* end confdefs.h. */
26821 $ac_includes_default
26822 typedef char * ac__type_sizeof_;
26826 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26833 rm -f conftest.$ac_objext
26834 if { (ac_try="$ac_compile"
26835 case "(($ac_try" in
26836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26837 *) ac_try_echo=$ac_try;;
26839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26840 (eval "$ac_compile") 2>conftest.er1
26842 grep -v '^ *+' conftest.er1 >conftest.err
26844 cat conftest.err >&5
26845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26846 (exit $ac_status); } && {
26847 test -z "$ac_c_werror_flag" ||
26848 test ! -s conftest.err
26849 } && test -s conftest.$ac_objext; then
26852 echo "$as_me: failed program was:" >&5
26853 sed 's/^/| /' conftest.$ac_ext >&5
26855 ac_lo=`expr '(' $ac_mid ')' + 1`
26858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26861 ?*) ac_cv_sizeof_char_p=$ac_lo;;
26862 '') if test "$ac_cv_type_char_p" = yes; then
26863 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char *)
26864 See \`config.log' for more details." >&5
26865 echo "$as_me: error: cannot compute sizeof (char *)
26866 See \`config.log' for more details." >&2;}
26867 { (exit 77); exit 77; }; }
26869 ac_cv_sizeof_char_p=0
26873 cat >conftest.$ac_ext <<_ACEOF
26876 cat confdefs.h >>conftest.$ac_ext
26877 cat >>conftest.$ac_ext <<_ACEOF
26878 /* end confdefs.h. */
26879 $ac_includes_default
26880 typedef char * ac__type_sizeof_;
26881 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
26882 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
26884 #include <stdlib.h>
26889 FILE *f = fopen ("conftest.val", "w");
26892 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
26894 long int i = longval ();
26895 if (i != ((long int) (sizeof (ac__type_sizeof_))))
26897 fprintf (f, "%ld\n", i);
26901 unsigned long int i = ulongval ();
26902 if (i != ((long int) (sizeof (ac__type_sizeof_))))
26904 fprintf (f, "%lu\n", i);
26906 return ferror (f) || fclose (f) != 0;
26912 rm -f conftest$ac_exeext
26913 if { (ac_try="$ac_link"
26914 case "(($ac_try" in
26915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26916 *) ac_try_echo=$ac_try;;
26918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26919 (eval "$ac_link") 2>&5
26921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26922 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26923 { (case "(($ac_try" in
26924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26925 *) ac_try_echo=$ac_try;;
26927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26928 (eval "$ac_try") 2>&5
26930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26931 (exit $ac_status); }; }; then
26932 ac_cv_sizeof_char_p=`cat conftest.val`
26934 echo "$as_me: program exited with status $ac_status" >&5
26935 echo "$as_me: failed program was:" >&5
26936 sed 's/^/| /' conftest.$ac_ext >&5
26938 ( exit $ac_status )
26939 if test "$ac_cv_type_char_p" = yes; then
26940 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char *)
26941 See \`config.log' for more details." >&5
26942 echo "$as_me: error: cannot compute sizeof (char *)
26943 See \`config.log' for more details." >&2;}
26944 { (exit 77); exit 77; }; }
26946 ac_cv_sizeof_char_p=0
26949 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26953 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char_p" >&5
26954 echo "${ECHO_T}$ac_cv_sizeof_char_p" >&6; }
26958 cat >>confdefs.h <<_ACEOF
26959 #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
26964 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
26965 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
26966 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
26967 echo $ECHO_N "(cached) $ECHO_C" >&6
26969 ac_check_lib_save_LIBS=$LIBS
26971 cat >conftest.$ac_ext <<_ACEOF
26974 cat confdefs.h >>conftest.$ac_ext
26975 cat >>conftest.$ac_ext <<_ACEOF
26976 /* end confdefs.h. */
26978 /* Override any GCC internal prototype to avoid an error.
26979 Use char because int might match the return type of a GCC
26980 builtin and then its argument prototype would still apply. */
26993 rm -f conftest.$ac_objext conftest$ac_exeext
26994 if { (ac_try="$ac_link"
26995 case "(($ac_try" in
26996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26997 *) ac_try_echo=$ac_try;;
26999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27000 (eval "$ac_link") 2>conftest.er1
27002 grep -v '^ *+' conftest.er1 >conftest.err
27004 cat conftest.err >&5
27005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27006 (exit $ac_status); } && {
27007 test -z "$ac_c_werror_flag" ||
27008 test ! -s conftest.err
27009 } && test -s conftest$ac_exeext &&
27010 $as_test_x conftest$ac_exeext; then
27011 ac_cv_lib_dl_dlopen=yes
27013 echo "$as_me: failed program was:" >&5
27014 sed 's/^/| /' conftest.$ac_ext >&5
27016 ac_cv_lib_dl_dlopen=no
27019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27020 conftest$ac_exeext conftest.$ac_ext
27021 LIBS=$ac_check_lib_save_LIBS
27023 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
27024 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
27025 if test $ac_cv_lib_dl_dlopen = yes; then
27028 ac_cv_have_dlfcn=yes
27033 { echo "$as_me:$LINENO: checking for shl_unload in -ldld" >&5
27034 echo $ECHO_N "checking for shl_unload in -ldld... $ECHO_C" >&6; }
27035 if test "${ac_cv_lib_dld_shl_unload+set}" = set; then
27036 echo $ECHO_N "(cached) $ECHO_C" >&6
27038 ac_check_lib_save_LIBS=$LIBS
27040 cat >conftest.$ac_ext <<_ACEOF
27043 cat confdefs.h >>conftest.$ac_ext
27044 cat >>conftest.$ac_ext <<_ACEOF
27045 /* end confdefs.h. */
27047 /* Override any GCC internal prototype to avoid an error.
27048 Use char because int might match the return type of a GCC
27049 builtin and then its argument prototype would still apply. */
27053 char shl_unload ();
27057 return shl_unload ();
27062 rm -f conftest.$ac_objext conftest$ac_exeext
27063 if { (ac_try="$ac_link"
27064 case "(($ac_try" in
27065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27066 *) ac_try_echo=$ac_try;;
27068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27069 (eval "$ac_link") 2>conftest.er1
27071 grep -v '^ *+' conftest.er1 >conftest.err
27073 cat conftest.err >&5
27074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27075 (exit $ac_status); } && {
27076 test -z "$ac_c_werror_flag" ||
27077 test ! -s conftest.err
27078 } && test -s conftest$ac_exeext &&
27079 $as_test_x conftest$ac_exeext; then
27080 ac_cv_lib_dld_shl_unload=yes
27082 echo "$as_me: failed program was:" >&5
27083 sed 's/^/| /' conftest.$ac_ext >&5
27085 ac_cv_lib_dld_shl_unload=no
27088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27089 conftest$ac_exeext conftest.$ac_ext
27090 LIBS=$ac_check_lib_save_LIBS
27092 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_unload" >&5
27093 echo "${ECHO_T}$ac_cv_lib_dld_shl_unload" >&6; }
27094 if test $ac_cv_lib_dld_shl_unload = yes; then
27097 ac_cv_have_shload=yes
27107 { echo "$as_me:$LINENO: checking for size_t" >&5
27108 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
27109 if test "${ac_cv_type_size_t+set}" = set; then
27110 echo $ECHO_N "(cached) $ECHO_C" >&6
27112 cat >conftest.$ac_ext <<_ACEOF
27115 cat confdefs.h >>conftest.$ac_ext
27116 cat >>conftest.$ac_ext <<_ACEOF
27117 /* end confdefs.h. */
27118 $ac_includes_default
27119 typedef size_t ac__type_new_;
27123 if ((ac__type_new_ *) 0)
27125 if (sizeof (ac__type_new_))
27131 rm -f conftest.$ac_objext
27132 if { (ac_try="$ac_compile"
27133 case "(($ac_try" in
27134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27135 *) ac_try_echo=$ac_try;;
27137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27138 (eval "$ac_compile") 2>conftest.er1
27140 grep -v '^ *+' conftest.er1 >conftest.err
27142 cat conftest.err >&5
27143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27144 (exit $ac_status); } && {
27145 test -z "$ac_c_werror_flag" ||
27146 test ! -s conftest.err
27147 } && test -s conftest.$ac_objext; then
27148 ac_cv_type_size_t=yes
27150 echo "$as_me: failed program was:" >&5
27151 sed 's/^/| /' conftest.$ac_ext >&5
27153 ac_cv_type_size_t=no
27156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27158 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27159 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
27161 # The cast to long int works around a bug in the HP C Compiler
27162 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27163 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27164 # This bug is HP SR number 8606223364.
27165 { echo "$as_me:$LINENO: checking size of size_t" >&5
27166 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
27167 if test "${ac_cv_sizeof_size_t+set}" = set; then
27168 echo $ECHO_N "(cached) $ECHO_C" >&6
27170 if test "$cross_compiling" = yes; then
27171 # Depending upon the size, compute the lo and hi bounds.
27172 cat >conftest.$ac_ext <<_ACEOF
27175 cat confdefs.h >>conftest.$ac_ext
27176 cat >>conftest.$ac_ext <<_ACEOF
27177 /* end confdefs.h. */
27178 $ac_includes_default
27179 typedef size_t ac__type_sizeof_;
27183 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27190 rm -f conftest.$ac_objext
27191 if { (ac_try="$ac_compile"
27192 case "(($ac_try" in
27193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27194 *) ac_try_echo=$ac_try;;
27196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27197 (eval "$ac_compile") 2>conftest.er1
27199 grep -v '^ *+' conftest.er1 >conftest.err
27201 cat conftest.err >&5
27202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27203 (exit $ac_status); } && {
27204 test -z "$ac_c_werror_flag" ||
27205 test ! -s conftest.err
27206 } && test -s conftest.$ac_objext; then
27209 cat >conftest.$ac_ext <<_ACEOF
27212 cat confdefs.h >>conftest.$ac_ext
27213 cat >>conftest.$ac_ext <<_ACEOF
27214 /* end confdefs.h. */
27215 $ac_includes_default
27216 typedef size_t ac__type_sizeof_;
27220 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27227 rm -f conftest.$ac_objext
27228 if { (ac_try="$ac_compile"
27229 case "(($ac_try" in
27230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27231 *) ac_try_echo=$ac_try;;
27233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27234 (eval "$ac_compile") 2>conftest.er1
27236 grep -v '^ *+' conftest.er1 >conftest.err
27238 cat conftest.err >&5
27239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27240 (exit $ac_status); } && {
27241 test -z "$ac_c_werror_flag" ||
27242 test ! -s conftest.err
27243 } && test -s conftest.$ac_objext; then
27244 ac_hi=$ac_mid; break
27246 echo "$as_me: failed program was:" >&5
27247 sed 's/^/| /' conftest.$ac_ext >&5
27249 ac_lo=`expr $ac_mid + 1`
27250 if test $ac_lo -le $ac_mid; then
27254 ac_mid=`expr 2 '*' $ac_mid + 1`
27257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27260 echo "$as_me: failed program was:" >&5
27261 sed 's/^/| /' conftest.$ac_ext >&5
27263 cat >conftest.$ac_ext <<_ACEOF
27266 cat confdefs.h >>conftest.$ac_ext
27267 cat >>conftest.$ac_ext <<_ACEOF
27268 /* end confdefs.h. */
27269 $ac_includes_default
27270 typedef size_t ac__type_sizeof_;
27274 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27281 rm -f conftest.$ac_objext
27282 if { (ac_try="$ac_compile"
27283 case "(($ac_try" in
27284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27285 *) ac_try_echo=$ac_try;;
27287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27288 (eval "$ac_compile") 2>conftest.er1
27290 grep -v '^ *+' conftest.er1 >conftest.err
27292 cat conftest.err >&5
27293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27294 (exit $ac_status); } && {
27295 test -z "$ac_c_werror_flag" ||
27296 test ! -s conftest.err
27297 } && test -s conftest.$ac_objext; then
27300 cat >conftest.$ac_ext <<_ACEOF
27303 cat confdefs.h >>conftest.$ac_ext
27304 cat >>conftest.$ac_ext <<_ACEOF
27305 /* end confdefs.h. */
27306 $ac_includes_default
27307 typedef size_t ac__type_sizeof_;
27311 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27318 rm -f conftest.$ac_objext
27319 if { (ac_try="$ac_compile"
27320 case "(($ac_try" in
27321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27322 *) ac_try_echo=$ac_try;;
27324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27325 (eval "$ac_compile") 2>conftest.er1
27327 grep -v '^ *+' conftest.er1 >conftest.err
27329 cat conftest.err >&5
27330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27331 (exit $ac_status); } && {
27332 test -z "$ac_c_werror_flag" ||
27333 test ! -s conftest.err
27334 } && test -s conftest.$ac_objext; then
27335 ac_lo=$ac_mid; break
27337 echo "$as_me: failed program was:" >&5
27338 sed 's/^/| /' conftest.$ac_ext >&5
27340 ac_hi=`expr '(' $ac_mid ')' - 1`
27341 if test $ac_mid -le $ac_hi; then
27345 ac_mid=`expr 2 '*' $ac_mid`
27348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27351 echo "$as_me: failed program was:" >&5
27352 sed 's/^/| /' conftest.$ac_ext >&5
27357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27361 # Binary search between lo and hi bounds.
27362 while test "x$ac_lo" != "x$ac_hi"; do
27363 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27364 cat >conftest.$ac_ext <<_ACEOF
27367 cat confdefs.h >>conftest.$ac_ext
27368 cat >>conftest.$ac_ext <<_ACEOF
27369 /* end confdefs.h. */
27370 $ac_includes_default
27371 typedef size_t ac__type_sizeof_;
27375 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27382 rm -f conftest.$ac_objext
27383 if { (ac_try="$ac_compile"
27384 case "(($ac_try" in
27385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27386 *) ac_try_echo=$ac_try;;
27388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27389 (eval "$ac_compile") 2>conftest.er1
27391 grep -v '^ *+' conftest.er1 >conftest.err
27393 cat conftest.err >&5
27394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27395 (exit $ac_status); } && {
27396 test -z "$ac_c_werror_flag" ||
27397 test ! -s conftest.err
27398 } && test -s conftest.$ac_objext; then
27401 echo "$as_me: failed program was:" >&5
27402 sed 's/^/| /' conftest.$ac_ext >&5
27404 ac_lo=`expr '(' $ac_mid ')' + 1`
27407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27410 ?*) ac_cv_sizeof_size_t=$ac_lo;;
27411 '') if test "$ac_cv_type_size_t" = yes; then
27412 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
27413 See \`config.log' for more details." >&5
27414 echo "$as_me: error: cannot compute sizeof (size_t)
27415 See \`config.log' for more details." >&2;}
27416 { (exit 77); exit 77; }; }
27418 ac_cv_sizeof_size_t=0
27422 cat >conftest.$ac_ext <<_ACEOF
27425 cat confdefs.h >>conftest.$ac_ext
27426 cat >>conftest.$ac_ext <<_ACEOF
27427 /* end confdefs.h. */
27428 $ac_includes_default
27429 typedef size_t ac__type_sizeof_;
27430 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27431 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27433 #include <stdlib.h>
27438 FILE *f = fopen ("conftest.val", "w");
27441 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27443 long int i = longval ();
27444 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27446 fprintf (f, "%ld\n", i);
27450 unsigned long int i = ulongval ();
27451 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27453 fprintf (f, "%lu\n", i);
27455 return ferror (f) || fclose (f) != 0;
27461 rm -f conftest$ac_exeext
27462 if { (ac_try="$ac_link"
27463 case "(($ac_try" in
27464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27465 *) ac_try_echo=$ac_try;;
27467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27468 (eval "$ac_link") 2>&5
27470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27471 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27472 { (case "(($ac_try" in
27473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27474 *) ac_try_echo=$ac_try;;
27476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27477 (eval "$ac_try") 2>&5
27479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27480 (exit $ac_status); }; }; then
27481 ac_cv_sizeof_size_t=`cat conftest.val`
27483 echo "$as_me: program exited with status $ac_status" >&5
27484 echo "$as_me: failed program was:" >&5
27485 sed 's/^/| /' conftest.$ac_ext >&5
27487 ( exit $ac_status )
27488 if test "$ac_cv_type_size_t" = yes; then
27489 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
27490 See \`config.log' for more details." >&5
27491 echo "$as_me: error: cannot compute sizeof (size_t)
27492 See \`config.log' for more details." >&2;}
27493 { (exit 77); exit 77; }; }
27495 ac_cv_sizeof_size_t=0
27498 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27502 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
27503 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
27507 cat >>confdefs.h <<_ACEOF
27508 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
27512 { echo "$as_me:$LINENO: checking for unsigned long" >&5
27513 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
27514 if test "${ac_cv_type_unsigned_long+set}" = set; then
27515 echo $ECHO_N "(cached) $ECHO_C" >&6
27517 cat >conftest.$ac_ext <<_ACEOF
27520 cat confdefs.h >>conftest.$ac_ext
27521 cat >>conftest.$ac_ext <<_ACEOF
27522 /* end confdefs.h. */
27523 $ac_includes_default
27524 typedef unsigned long ac__type_new_;
27528 if ((ac__type_new_ *) 0)
27530 if (sizeof (ac__type_new_))
27536 rm -f conftest.$ac_objext
27537 if { (ac_try="$ac_compile"
27538 case "(($ac_try" in
27539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27540 *) ac_try_echo=$ac_try;;
27542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27543 (eval "$ac_compile") 2>conftest.er1
27545 grep -v '^ *+' conftest.er1 >conftest.err
27547 cat conftest.err >&5
27548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27549 (exit $ac_status); } && {
27550 test -z "$ac_c_werror_flag" ||
27551 test ! -s conftest.err
27552 } && test -s conftest.$ac_objext; then
27553 ac_cv_type_unsigned_long=yes
27555 echo "$as_me: failed program was:" >&5
27556 sed 's/^/| /' conftest.$ac_ext >&5
27558 ac_cv_type_unsigned_long=no
27561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27563 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
27564 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
27566 # The cast to long int works around a bug in the HP C Compiler
27567 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27568 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27569 # This bug is HP SR number 8606223364.
27570 { echo "$as_me:$LINENO: checking size of unsigned long" >&5
27571 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
27572 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
27573 echo $ECHO_N "(cached) $ECHO_C" >&6
27575 if test "$cross_compiling" = yes; then
27576 # Depending upon the size, compute the lo and hi bounds.
27577 cat >conftest.$ac_ext <<_ACEOF
27580 cat confdefs.h >>conftest.$ac_ext
27581 cat >>conftest.$ac_ext <<_ACEOF
27582 /* end confdefs.h. */
27583 $ac_includes_default
27584 typedef unsigned long ac__type_sizeof_;
27588 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27595 rm -f conftest.$ac_objext
27596 if { (ac_try="$ac_compile"
27597 case "(($ac_try" in
27598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27599 *) ac_try_echo=$ac_try;;
27601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27602 (eval "$ac_compile") 2>conftest.er1
27604 grep -v '^ *+' conftest.er1 >conftest.err
27606 cat conftest.err >&5
27607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27608 (exit $ac_status); } && {
27609 test -z "$ac_c_werror_flag" ||
27610 test ! -s conftest.err
27611 } && test -s conftest.$ac_objext; then
27614 cat >conftest.$ac_ext <<_ACEOF
27617 cat confdefs.h >>conftest.$ac_ext
27618 cat >>conftest.$ac_ext <<_ACEOF
27619 /* end confdefs.h. */
27620 $ac_includes_default
27621 typedef unsigned long ac__type_sizeof_;
27625 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27632 rm -f conftest.$ac_objext
27633 if { (ac_try="$ac_compile"
27634 case "(($ac_try" in
27635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27636 *) ac_try_echo=$ac_try;;
27638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27639 (eval "$ac_compile") 2>conftest.er1
27641 grep -v '^ *+' conftest.er1 >conftest.err
27643 cat conftest.err >&5
27644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27645 (exit $ac_status); } && {
27646 test -z "$ac_c_werror_flag" ||
27647 test ! -s conftest.err
27648 } && test -s conftest.$ac_objext; then
27649 ac_hi=$ac_mid; break
27651 echo "$as_me: failed program was:" >&5
27652 sed 's/^/| /' conftest.$ac_ext >&5
27654 ac_lo=`expr $ac_mid + 1`
27655 if test $ac_lo -le $ac_mid; then
27659 ac_mid=`expr 2 '*' $ac_mid + 1`
27662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27665 echo "$as_me: failed program was:" >&5
27666 sed 's/^/| /' conftest.$ac_ext >&5
27668 cat >conftest.$ac_ext <<_ACEOF
27671 cat confdefs.h >>conftest.$ac_ext
27672 cat >>conftest.$ac_ext <<_ACEOF
27673 /* end confdefs.h. */
27674 $ac_includes_default
27675 typedef unsigned long ac__type_sizeof_;
27679 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27686 rm -f conftest.$ac_objext
27687 if { (ac_try="$ac_compile"
27688 case "(($ac_try" in
27689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27690 *) ac_try_echo=$ac_try;;
27692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27693 (eval "$ac_compile") 2>conftest.er1
27695 grep -v '^ *+' conftest.er1 >conftest.err
27697 cat conftest.err >&5
27698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27699 (exit $ac_status); } && {
27700 test -z "$ac_c_werror_flag" ||
27701 test ! -s conftest.err
27702 } && test -s conftest.$ac_objext; then
27705 cat >conftest.$ac_ext <<_ACEOF
27708 cat confdefs.h >>conftest.$ac_ext
27709 cat >>conftest.$ac_ext <<_ACEOF
27710 /* end confdefs.h. */
27711 $ac_includes_default
27712 typedef unsigned long ac__type_sizeof_;
27716 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27723 rm -f conftest.$ac_objext
27724 if { (ac_try="$ac_compile"
27725 case "(($ac_try" in
27726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27727 *) ac_try_echo=$ac_try;;
27729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27730 (eval "$ac_compile") 2>conftest.er1
27732 grep -v '^ *+' conftest.er1 >conftest.err
27734 cat conftest.err >&5
27735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27736 (exit $ac_status); } && {
27737 test -z "$ac_c_werror_flag" ||
27738 test ! -s conftest.err
27739 } && test -s conftest.$ac_objext; then
27740 ac_lo=$ac_mid; break
27742 echo "$as_me: failed program was:" >&5
27743 sed 's/^/| /' conftest.$ac_ext >&5
27745 ac_hi=`expr '(' $ac_mid ')' - 1`
27746 if test $ac_mid -le $ac_hi; then
27750 ac_mid=`expr 2 '*' $ac_mid`
27753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27756 echo "$as_me: failed program was:" >&5
27757 sed 's/^/| /' conftest.$ac_ext >&5
27762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27766 # Binary search between lo and hi bounds.
27767 while test "x$ac_lo" != "x$ac_hi"; do
27768 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27769 cat >conftest.$ac_ext <<_ACEOF
27772 cat confdefs.h >>conftest.$ac_ext
27773 cat >>conftest.$ac_ext <<_ACEOF
27774 /* end confdefs.h. */
27775 $ac_includes_default
27776 typedef unsigned long ac__type_sizeof_;
27780 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27787 rm -f conftest.$ac_objext
27788 if { (ac_try="$ac_compile"
27789 case "(($ac_try" in
27790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27791 *) ac_try_echo=$ac_try;;
27793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27794 (eval "$ac_compile") 2>conftest.er1
27796 grep -v '^ *+' conftest.er1 >conftest.err
27798 cat conftest.err >&5
27799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27800 (exit $ac_status); } && {
27801 test -z "$ac_c_werror_flag" ||
27802 test ! -s conftest.err
27803 } && test -s conftest.$ac_objext; then
27806 echo "$as_me: failed program was:" >&5
27807 sed 's/^/| /' conftest.$ac_ext >&5
27809 ac_lo=`expr '(' $ac_mid ')' + 1`
27812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27815 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
27816 '') if test "$ac_cv_type_unsigned_long" = yes; then
27817 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
27818 See \`config.log' for more details." >&5
27819 echo "$as_me: error: cannot compute sizeof (unsigned long)
27820 See \`config.log' for more details." >&2;}
27821 { (exit 77); exit 77; }; }
27823 ac_cv_sizeof_unsigned_long=0
27827 cat >conftest.$ac_ext <<_ACEOF
27830 cat confdefs.h >>conftest.$ac_ext
27831 cat >>conftest.$ac_ext <<_ACEOF
27832 /* end confdefs.h. */
27833 $ac_includes_default
27834 typedef unsigned long ac__type_sizeof_;
27835 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27836 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27838 #include <stdlib.h>
27843 FILE *f = fopen ("conftest.val", "w");
27846 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27848 long int i = longval ();
27849 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27851 fprintf (f, "%ld\n", i);
27855 unsigned long int i = ulongval ();
27856 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27858 fprintf (f, "%lu\n", i);
27860 return ferror (f) || fclose (f) != 0;
27866 rm -f conftest$ac_exeext
27867 if { (ac_try="$ac_link"
27868 case "(($ac_try" in
27869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27870 *) ac_try_echo=$ac_try;;
27872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27873 (eval "$ac_link") 2>&5
27875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27876 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27877 { (case "(($ac_try" in
27878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27879 *) ac_try_echo=$ac_try;;
27881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27882 (eval "$ac_try") 2>&5
27884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27885 (exit $ac_status); }; }; then
27886 ac_cv_sizeof_unsigned_long=`cat conftest.val`
27888 echo "$as_me: program exited with status $ac_status" >&5
27889 echo "$as_me: failed program was:" >&5
27890 sed 's/^/| /' conftest.$ac_ext >&5
27892 ( exit $ac_status )
27893 if test "$ac_cv_type_unsigned_long" = yes; then
27894 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
27895 See \`config.log' for more details." >&5
27896 echo "$as_me: error: cannot compute sizeof (unsigned long)
27897 See \`config.log' for more details." >&2;}
27898 { (exit 77); exit 77; }; }
27900 ac_cv_sizeof_unsigned_long=0
27903 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27907 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
27908 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
27912 cat >>confdefs.h <<_ACEOF
27913 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
27918 { echo "$as_me:$LINENO: checking sizeof size_t == sizeof unsigned long" >&5
27919 echo $ECHO_N "checking sizeof size_t == sizeof unsigned long... $ECHO_C" >&6; }
27920 cat >conftest.$ac_ext <<_ACEOF
27923 cat confdefs.h >>conftest.$ac_ext
27924 cat >>conftest.$ac_ext <<_ACEOF
27925 /* end confdefs.h. */
27931 #if SIZEOF_SIZE_T != SIZEOF_UNSIGNED_LONG
27939 rm -f conftest.$ac_objext
27940 if { (ac_try="$ac_compile"
27941 case "(($ac_try" in
27942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27943 *) ac_try_echo=$ac_try;;
27945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27946 (eval "$ac_compile") 2>conftest.er1
27948 grep -v '^ *+' conftest.er1 >conftest.err
27950 cat conftest.err >&5
27951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27952 (exit $ac_status); } && {
27953 test -z "$ac_c_werror_flag" ||
27954 test ! -s conftest.err
27955 } && test -s conftest.$ac_objext; then
27956 { echo "$as_me:$LINENO: result: yes" >&5
27957 echo "${ECHO_T}yes" >&6; }
27959 echo "$as_me: failed program was:" >&5
27960 sed 's/^/| /' conftest.$ac_ext >&5
27963 { echo "$as_me:$LINENO: result: no" >&5
27964 echo "${ECHO_T}no" >&6; }
27965 { { echo "$as_me:$LINENO: error:
27966 Apparently on your system our assumption sizeof size_t == sizeof unsigned long
27967 does not apply. Please mail kde-devel@kde.org with a description of your system!
27969 echo "$as_me: error:
27970 Apparently on your system our assumption sizeof size_t == sizeof unsigned long
27971 does not apply. Please mail kde-devel@kde.org with a description of your system!
27973 { (exit 1); exit 1; }; }
27977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27980 # darwin needs this to initialize the environment
27982 for ac_header in crt_externs.h
27984 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27985 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27986 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27988 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27989 echo $ECHO_N "(cached) $ECHO_C" >&6
27991 ac_res=`eval echo '${'$as_ac_Header'}'`
27992 { echo "$as_me:$LINENO: result: $ac_res" >&5
27993 echo "${ECHO_T}$ac_res" >&6; }
27995 # Is the header compilable?
27996 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27997 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27998 cat >conftest.$ac_ext <<_ACEOF
28001 cat confdefs.h >>conftest.$ac_ext
28002 cat >>conftest.$ac_ext <<_ACEOF
28003 /* end confdefs.h. */
28004 $ac_includes_default
28005 #include <$ac_header>
28007 rm -f conftest.$ac_objext
28008 if { (ac_try="$ac_compile"
28009 case "(($ac_try" in
28010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28011 *) ac_try_echo=$ac_try;;
28013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28014 (eval "$ac_compile") 2>conftest.er1
28016 grep -v '^ *+' conftest.er1 >conftest.err
28018 cat conftest.err >&5
28019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28020 (exit $ac_status); } && {
28021 test -z "$ac_c_werror_flag" ||
28022 test ! -s conftest.err
28023 } && test -s conftest.$ac_objext; then
28024 ac_header_compiler=yes
28026 echo "$as_me: failed program was:" >&5
28027 sed 's/^/| /' conftest.$ac_ext >&5
28029 ac_header_compiler=no
28032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28033 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28034 echo "${ECHO_T}$ac_header_compiler" >&6; }
28036 # Is the header present?
28037 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28038 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28039 cat >conftest.$ac_ext <<_ACEOF
28042 cat confdefs.h >>conftest.$ac_ext
28043 cat >>conftest.$ac_ext <<_ACEOF
28044 /* end confdefs.h. */
28045 #include <$ac_header>
28047 if { (ac_try="$ac_cpp conftest.$ac_ext"
28048 case "(($ac_try" in
28049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28050 *) ac_try_echo=$ac_try;;
28052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28053 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28055 grep -v '^ *+' conftest.er1 >conftest.err
28057 cat conftest.err >&5
28058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28059 (exit $ac_status); } >/dev/null && {
28060 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28061 test ! -s conftest.err
28063 ac_header_preproc=yes
28065 echo "$as_me: failed program was:" >&5
28066 sed 's/^/| /' conftest.$ac_ext >&5
28068 ac_header_preproc=no
28071 rm -f conftest.err conftest.$ac_ext
28072 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28073 echo "${ECHO_T}$ac_header_preproc" >&6; }
28075 # So? What about this header?
28076 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28078 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28079 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28080 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28081 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28082 ac_header_preproc=yes
28085 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28086 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28087 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28088 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28089 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28090 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28091 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28092 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28093 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28094 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28095 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28096 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28100 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28103 echo $ECHO_N "(cached) $ECHO_C" >&6
28105 eval "$as_ac_Header=\$ac_header_preproc"
28107 ac_res=`eval echo '${'$as_ac_Header'}'`
28108 { echo "$as_me:$LINENO: result: $ac_res" >&5
28109 echo "${ECHO_T}$ac_res" >&6; }
28112 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28113 cat >>confdefs.h <<_ACEOF
28114 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28121 { echo "$as_me:$LINENO: checking for _NSGetEnviron" >&5
28122 echo $ECHO_N "checking for _NSGetEnviron... $ECHO_C" >&6; }
28123 if test "${ac_cv_func__NSGetEnviron+set}" = set; then
28124 echo $ECHO_N "(cached) $ECHO_C" >&6
28126 cat >conftest.$ac_ext <<_ACEOF
28129 cat confdefs.h >>conftest.$ac_ext
28130 cat >>conftest.$ac_ext <<_ACEOF
28131 /* end confdefs.h. */
28132 /* Define _NSGetEnviron to an innocuous variant, in case <limits.h> declares _NSGetEnviron.
28133 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28134 #define _NSGetEnviron innocuous__NSGetEnviron
28136 /* System header to define __stub macros and hopefully few prototypes,
28137 which can conflict with char _NSGetEnviron (); below.
28138 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28139 <limits.h> exists even on freestanding compilers. */
28142 # include <limits.h>
28144 # include <assert.h>
28147 #undef _NSGetEnviron
28149 /* Override any GCC internal prototype to avoid an error.
28150 Use char because int might match the return type of a GCC
28151 builtin and then its argument prototype would still apply. */
28155 char _NSGetEnviron ();
28156 /* The GNU C library defines this for functions which it implements
28157 to always fail with ENOSYS. Some functions are actually named
28158 something starting with __ and the normal name is an alias. */
28159 #if defined __stub__NSGetEnviron || defined __stub____NSGetEnviron
28166 return _NSGetEnviron ();
28171 rm -f conftest.$ac_objext conftest$ac_exeext
28172 if { (ac_try="$ac_link"
28173 case "(($ac_try" in
28174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28175 *) ac_try_echo=$ac_try;;
28177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28178 (eval "$ac_link") 2>conftest.er1
28180 grep -v '^ *+' conftest.er1 >conftest.err
28182 cat conftest.err >&5
28183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28184 (exit $ac_status); } && {
28185 test -z "$ac_c_werror_flag" ||
28186 test ! -s conftest.err
28187 } && test -s conftest$ac_exeext &&
28188 $as_test_x conftest$ac_exeext; then
28189 ac_cv_func__NSGetEnviron=yes
28191 echo "$as_me: failed program was:" >&5
28192 sed 's/^/| /' conftest.$ac_ext >&5
28194 ac_cv_func__NSGetEnviron=no
28197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28198 conftest$ac_exeext conftest.$ac_ext
28200 { echo "$as_me:$LINENO: result: $ac_cv_func__NSGetEnviron" >&5
28201 echo "${ECHO_T}$ac_cv_func__NSGetEnviron" >&6; }
28202 if test $ac_cv_func__NSGetEnviron = yes; then
28204 cat >>confdefs.h <<\_ACEOF
28205 #define HAVE_NSGETENVIRON 1
28219 for ac_func in vsnprintf snprintf
28221 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28222 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28223 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28224 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28225 echo $ECHO_N "(cached) $ECHO_C" >&6
28227 cat >conftest.$ac_ext <<_ACEOF
28230 cat confdefs.h >>conftest.$ac_ext
28231 cat >>conftest.$ac_ext <<_ACEOF
28232 /* end confdefs.h. */
28233 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28234 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28235 #define $ac_func innocuous_$ac_func
28237 /* System header to define __stub macros and hopefully few prototypes,
28238 which can conflict with char $ac_func (); below.
28239 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28240 <limits.h> exists even on freestanding compilers. */
28243 # include <limits.h>
28245 # include <assert.h>
28250 /* Override any GCC internal prototype to avoid an error.
28251 Use char because int might match the return type of a GCC
28252 builtin and then its argument prototype would still apply. */
28257 /* The GNU C library defines this for functions which it implements
28258 to always fail with ENOSYS. Some functions are actually named
28259 something starting with __ and the normal name is an alias. */
28260 #if defined __stub_$ac_func || defined __stub___$ac_func
28267 return $ac_func ();
28272 rm -f conftest.$ac_objext conftest$ac_exeext
28273 if { (ac_try="$ac_link"
28274 case "(($ac_try" in
28275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28276 *) ac_try_echo=$ac_try;;
28278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28279 (eval "$ac_link") 2>conftest.er1
28281 grep -v '^ *+' conftest.er1 >conftest.err
28283 cat conftest.err >&5
28284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28285 (exit $ac_status); } && {
28286 test -z "$ac_c_werror_flag" ||
28287 test ! -s conftest.err
28288 } && test -s conftest$ac_exeext &&
28289 $as_test_x conftest$ac_exeext; then
28290 eval "$as_ac_var=yes"
28292 echo "$as_me: failed program was:" >&5
28293 sed 's/^/| /' conftest.$ac_ext >&5
28295 eval "$as_ac_var=no"
28298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28299 conftest$ac_exeext conftest.$ac_ext
28301 ac_res=`eval echo '${'$as_ac_var'}'`
28302 { echo "$as_me:$LINENO: result: $ac_res" >&5
28303 echo "${ECHO_T}$ac_res" >&6; }
28304 if test `eval echo '${'$as_ac_var'}'` = yes; then
28305 cat >>confdefs.h <<_ACEOF
28306 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28320 # Check whether --enable-embedded was given.
28321 if test "${enable_embedded+set}" = set; then
28322 enableval=$enable_embedded; kde_use_qt_emb=$enableval
28329 # Check whether --enable-qtopia was given.
28330 if test "${enable_qtopia+set}" = set; then
28331 enableval=$enable_qtopia; kde_use_qt_emb_palm=$enableval
28333 kde_use_qt_emb_palm=no
28338 # Check whether --enable-mac was given.
28339 if test "${enable_mac+set}" = set; then
28340 enableval=$enable_mac; kde_use_qt_mac=$enableval
28347 # used to disable x11-specific stuff on special platforms
28350 if test "$kde_use_qt_emb" = "no" && test "$kde_use_qt_mac" = "no"; then
28352 include_x11_FALSE='#'
28354 include_x11_TRUE='#'
28359 if test "$kde_use_qt_emb" = "no" && test "$kde_use_qt_mac" = "no"; then
28361 { echo "$as_me:$LINENO: checking for X" >&5
28362 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
28364 if test "${kde_cv_have_x+set}" = set; then
28365 echo $ECHO_N "(cached) $ECHO_C" >&6
28367 # One or both of the vars are not set, and there is no cached value.
28368 if test "{$x_includes+set}" = set || test "$x_includes" = NONE; then
28371 kde_x_includes=$x_includes
28373 if test "{$x_libraries+set}" = set || test "$x_libraries" = NONE; then
28376 kde_x_libraries=$x_libraries
28379 # below we use the standard autoconf calls
28380 ac_x_libraries=$kde_x_libraries
28381 ac_x_includes=$kde_x_includes
28386 if test "$ac_x_includes" = NO; then
28387 # Guess where to find include files, by looking for this one X11 .h file.
28388 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
28390 # First, try using that file with no special directory specified.
28391 cat >conftest.$ac_ext <<_ACEOF
28394 cat confdefs.h >>conftest.$ac_ext
28395 cat >>conftest.$ac_ext <<_ACEOF
28396 /* end confdefs.h. */
28397 #include <$x_direct_test_include>
28399 if { (ac_try="$ac_cpp conftest.$ac_ext"
28400 case "(($ac_try" in
28401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28402 *) ac_try_echo=$ac_try;;
28404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28405 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28407 grep -v '^ *+' conftest.er1 >conftest.err
28409 cat conftest.err >&5
28410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28411 (exit $ac_status); } >/dev/null && {
28412 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28413 test ! -s conftest.err
28415 # We can compile using X headers with no special include directory.
28418 echo "$as_me: failed program was:" >&5
28419 sed 's/^/| /' conftest.$ac_ext >&5
28421 # Look for the header file in a standard set of common directories.
28422 # Check X11 before X11Rn because it is often a symlink to the current release.
28425 /usr/X11R6/include \
28426 /usr/X11R5/include \
28427 /usr/X11R4/include \
28430 /usr/include/X11R6 \
28431 /usr/include/X11R5 \
28432 /usr/include/X11R4 \
28434 /usr/local/X11/include \
28435 /usr/local/X11R6/include \
28436 /usr/local/X11R5/include \
28437 /usr/local/X11R4/include \
28439 /usr/local/include/X11 \
28440 /usr/local/include/X11R6 \
28441 /usr/local/include/X11R5 \
28442 /usr/local/include/X11R4 \
28444 /usr/X386/include \
28445 /usr/x386/include \
28446 /usr/XFree86/include/X11 \
28449 /usr/local/include \
28450 /usr/unsupported/include \
28451 /usr/athena/include \
28452 /usr/local/x11r5/include \
28453 /usr/lpp/Xamples/include \
28455 /usr/openwin/include \
28456 /usr/openwin/share/include \
28459 if test -r "$ac_dir/$x_direct_test_include"; then
28460 ac_x_includes=$ac_dir
28466 rm -f conftest.err conftest.$ac_ext
28467 fi # $ac_x_includes = NO
28469 if test "$ac_x_libraries" = NO; then
28470 # Check for the libraries.
28472 test -z "$x_direct_test_library" && x_direct_test_library=Xt
28473 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
28475 # See if we find them without any special options.
28476 # Don't add to $LIBS permanently.
28477 ac_save_LIBS="$LIBS"
28478 LIBS="-l$x_direct_test_library $LIBS"
28479 cat >conftest.$ac_ext <<_ACEOF
28482 cat confdefs.h >>conftest.$ac_ext
28483 cat >>conftest.$ac_ext <<_ACEOF
28484 /* end confdefs.h. */
28485 #include <X11/Intrinsic.h>
28489 ${x_direct_test_function}(1)
28494 rm -f conftest.$ac_objext conftest$ac_exeext
28495 if { (ac_try="$ac_link"
28496 case "(($ac_try" in
28497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28498 *) ac_try_echo=$ac_try;;
28500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28501 (eval "$ac_link") 2>conftest.er1
28503 grep -v '^ *+' conftest.er1 >conftest.err
28505 cat conftest.err >&5
28506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28507 (exit $ac_status); } && {
28508 test -z "$ac_c_werror_flag" ||
28509 test ! -s conftest.err
28510 } && test -s conftest$ac_exeext &&
28511 $as_test_x conftest$ac_exeext; then
28512 LIBS="$ac_save_LIBS"
28513 # We can link X programs with no special library path.
28516 echo "$as_me: failed program was:" >&5
28517 sed 's/^/| /' conftest.$ac_ext >&5
28519 LIBS="$ac_save_LIBS"
28520 # First see if replacing the include by lib works.
28521 # Check X11 before X11Rn because it is often a symlink to the current release.
28522 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib${kdelibsuff}/` \
28523 /usr/X11/lib${kdelibsuff} \
28524 /usr/X11R6/lib${kdelibsuff} \
28525 /usr/X11R5/lib${kdelibsuff} \
28526 /usr/X11R4/lib${kdelibsuff} \
28528 /usr/lib${kdelibsuff}/X11 \
28529 /usr/lib${kdelibsuff}/X11R6 \
28530 /usr/lib${kdelibsuff}/X11R5 \
28531 /usr/lib${kdelibsuff}/X11R4 \
28533 /usr/local/X11/lib${kdelibsuff} \
28534 /usr/local/X11R6/lib${kdelibsuff} \
28535 /usr/local/X11R5/lib${kdelibsuff} \
28536 /usr/local/X11R4/lib${kdelibsuff} \
28538 /usr/local/lib${kdelibsuff}/X11 \
28539 /usr/local/lib${kdelibsuff}/X11R6 \
28540 /usr/local/lib${kdelibsuff}/X11R5 \
28541 /usr/local/lib${kdelibsuff}/X11R4 \
28543 /usr/X386/lib${kdelibsuff} \
28544 /usr/x386/lib${kdelibsuff} \
28545 /usr/XFree86/lib${kdelibsuff}/X11 \
28547 /usr/lib${kdelibsuff} \
28548 /usr/local/lib${kdelibsuff} \
28549 /usr/unsupported/lib${kdelibsuff} \
28550 /usr/athena/lib${kdelibsuff} \
28551 /usr/local/x11r5/lib${kdelibsuff} \
28552 /usr/lpp/Xamples/lib${kdelibsuff} \
28553 /lib/usr/lib${kdelibsuff}/X11 \
28555 /usr/openwin/lib${kdelibsuff} \
28556 /usr/openwin/share/lib${kdelibsuff} \
28559 for ac_extension in a so sl; do
28560 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
28561 ac_x_libraries=$ac_dir
28568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28569 conftest$ac_exeext conftest.$ac_ext
28570 fi # $ac_x_libraries = NO
28578 rm -f -r conftest.dir
28579 if mkdir conftest.dir; then
28581 cat >Imakefile <<'_ACEOF'
28583 @echo incroot='${INCROOT}'
28585 @echo usrlibdir='${USRLIBDIR}'
28587 @echo libdir='${LIBDIR}'
28589 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
28590 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
28591 for ac_var in incroot usrlibdir libdir; do
28592 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
28594 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
28595 for ac_extension in a so sl; do
28596 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
28597 test -f "$ac_im_libdir/libX11.$ac_extension"; then
28598 ac_im_usrlibdir=$ac_im_libdir; break
28601 # Screen out bogus values from the imake configuration. They are
28602 # bogus both because they are the default anyway, and because
28603 # using them would break gcc on systems where it needs fixed includes.
28604 case $ac_im_incroot in
28605 /usr/include) ac_x_includes= ;;
28606 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
28608 case $ac_im_usrlibdir in
28609 /usr/lib | /lib) ;;
28610 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
28614 rm -f -r conftest.dir
28617 if test -z "$ac_x_includes"; then
28620 if test -z "$ac_x_libraries"; then
28621 ac_x_libraries="/usr/lib${kdelibsuff}"
28624 #from now on we use our own again
28626 # when the user already gave --x-includes, we ignore
28627 # what the standard autoconf macros told us.
28628 if test "$kde_x_includes" = NO; then
28629 kde_x_includes=$ac_x_includes
28632 # for --x-libraries too
28633 if test "$kde_x_libraries" = NO; then
28634 kde_x_libraries=$ac_x_libraries
28637 if test "$kde_x_includes" = NO; then
28638 { { echo "$as_me:$LINENO: error: Can't find X includes. Please check your installation and add the correct paths!" >&5
28639 echo "$as_me: error: Can't find X includes. Please check your installation and add the correct paths!" >&2;}
28640 { (exit 1); exit 1; }; }
28643 if test "$kde_x_libraries" = NO; then
28644 { { echo "$as_me:$LINENO: error: Can't find X libraries. Please check your installation and add the correct paths!" >&5
28645 echo "$as_me: error: Can't find X libraries. Please check your installation and add the correct paths!" >&2;}
28646 { (exit 1); exit 1; }; }
28649 # Record where we found X for the cache.
28650 kde_cv_have_x="have_x=yes \
28651 kde_x_includes=$kde_x_includes kde_x_libraries=$kde_x_libraries"
28655 eval "$kde_cv_have_x"
28657 if test "$have_x" != yes; then
28658 { echo "$as_me:$LINENO: result: $have_x" >&5
28659 echo "${ECHO_T}$have_x" >&6; }
28662 { echo "$as_me:$LINENO: result: libraries $kde_x_libraries, headers $kde_x_includes" >&5
28663 echo "${ECHO_T}libraries $kde_x_libraries, headers $kde_x_includes" >&6; }
28666 if test -z "$kde_x_includes" || test "x$kde_x_includes" = xNONE; then
28668 x_includes="."; else
28669 x_includes=$kde_x_includes
28670 X_INCLUDES="-I$x_includes"
28673 if test -z "$kde_x_libraries" || test "x$kde_x_libraries" = xNONE; then
28675 x_libraries="/usr/lib"; else
28676 x_libraries=$kde_x_libraries
28677 X_LDFLAGS="-L$x_libraries"
28679 all_includes="$X_INCLUDES"
28680 all_libraries="$X_LDFLAGS $LDFLAGS_AS_NEEDED $LDFLAGS_NEW_DTAGS"
28682 # Check for libraries that X11R6 Xt/Xaw programs need.
28683 ac_save_LDFLAGS="$LDFLAGS"
28684 LDFLAGS="$LDFLAGS $X_LDFLAGS"
28685 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
28686 # check for ICE first), but we must link in the order -lSM -lICE or
28687 # we get undefined symbols. So assume we have SM if we have ICE.
28688 # These have to be linked with before -lX11, unlike the other
28689 # libraries we check for below, so use a different variable.
28690 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
28691 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
28692 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
28693 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
28694 echo $ECHO_N "(cached) $ECHO_C" >&6
28696 ac_check_lib_save_LIBS=$LIBS
28697 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
28698 cat >conftest.$ac_ext <<_ACEOF
28701 cat confdefs.h >>conftest.$ac_ext
28702 cat >>conftest.$ac_ext <<_ACEOF
28703 /* end confdefs.h. */
28705 /* Override any GCC internal prototype to avoid an error.
28706 Use char because int might match the return type of a GCC
28707 builtin and then its argument prototype would still apply. */
28711 char IceConnectionNumber ();
28715 return IceConnectionNumber ();
28720 rm -f conftest.$ac_objext conftest$ac_exeext
28721 if { (ac_try="$ac_link"
28722 case "(($ac_try" in
28723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28724 *) ac_try_echo=$ac_try;;
28726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28727 (eval "$ac_link") 2>conftest.er1
28729 grep -v '^ *+' conftest.er1 >conftest.err
28731 cat conftest.err >&5
28732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28733 (exit $ac_status); } && {
28734 test -z "$ac_c_werror_flag" ||
28735 test ! -s conftest.err
28736 } && test -s conftest$ac_exeext &&
28737 $as_test_x conftest$ac_exeext; then
28738 ac_cv_lib_ICE_IceConnectionNumber=yes
28740 echo "$as_me: failed program was:" >&5
28741 sed 's/^/| /' conftest.$ac_ext >&5
28743 ac_cv_lib_ICE_IceConnectionNumber=no
28746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28747 conftest$ac_exeext conftest.$ac_ext
28748 LIBS=$ac_check_lib_save_LIBS
28750 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
28751 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
28752 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
28756 LDFLAGS="$ac_save_LDFLAGS"
28758 LIB_X11='-lX11 $(LIBSOCKET)'
28760 { echo "$as_me:$LINENO: checking for libXext" >&5
28761 echo $ECHO_N "checking for libXext... $ECHO_C" >&6; }
28762 if test "${kde_cv_have_libXext+set}" = set; then
28763 echo $ECHO_N "(cached) $ECHO_C" >&6
28766 kde_ldflags_safe="$LDFLAGS"
28767 kde_libs_safe="$LIBS"
28769 LDFLAGS="$LDFLAGS $X_LDFLAGS $USER_LDFLAGS"
28770 LIBS="-lXext -lX11 $LIBSOCKET"
28772 cat >conftest.$ac_ext <<_ACEOF
28775 cat confdefs.h >>conftest.$ac_ext
28776 cat >>conftest.$ac_ext <<_ACEOF
28777 /* end confdefs.h. */
28780 #ifdef STDC_HEADERS
28781 # include <stdlib.h>
28788 printf("hello Xext\n");
28794 rm -f conftest.$ac_objext conftest$ac_exeext
28795 if { (ac_try="$ac_link"
28796 case "(($ac_try" in
28797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28798 *) ac_try_echo=$ac_try;;
28800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28801 (eval "$ac_link") 2>conftest.er1
28803 grep -v '^ *+' conftest.er1 >conftest.err
28805 cat conftest.err >&5
28806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28807 (exit $ac_status); } && {
28808 test -z "$ac_c_werror_flag" ||
28809 test ! -s conftest.err
28810 } && test -s conftest$ac_exeext &&
28811 $as_test_x conftest$ac_exeext; then
28812 kde_cv_have_libXext=yes
28814 echo "$as_me: failed program was:" >&5
28815 sed 's/^/| /' conftest.$ac_ext >&5
28817 kde_cv_have_libXext=no
28821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28822 conftest$ac_exeext conftest.$ac_ext
28824 LDFLAGS=$kde_ldflags_safe
28825 LIBS=$kde_libs_safe
28830 { echo "$as_me:$LINENO: result: $kde_cv_have_libXext" >&5
28831 echo "${ECHO_T}$kde_cv_have_libXext" >&6; }
28833 if test "$kde_cv_have_libXext" = "no"; then
28834 { { echo "$as_me:$LINENO: error: We need a working libXext to proceed. Since configure
28835 can't find it itself, we stop here assuming that make wouldn't find
28837 echo "$as_me: error: We need a working libXext to proceed. Since configure
28838 can't find it itself, we stop here assuming that make wouldn't find
28839 them either." >&2;}
28840 { (exit 1); exit 1; }; }
28846 elif test "$kde_use_qt_emb" = "yes"; then
28848 CXXFLAGS="$CXXFLAGS -fno-rtti"
28849 QTE_NORTTI="-fno-rtti -DQWS"
28859 elif test "$kde_use_qt_mac" = "yes"; then
28860 CXXFLAGS="$CXXFLAGS -DQT_MAC -no-cpp-precomp"
28861 CFLAGS="$CFLAGS -DQT_MAC -no-cpp-precomp"
28887 if test -n "$PTHREAD_LIBS"; then
28888 if test "x$PTHREAD_LIBS" = "x-pthread" ; then
28889 LIBPTHREAD="PTHREAD"
28891 PTHREAD_LIBS_save="$PTHREAD_LIBS"
28892 PTHREAD_LIBS=`echo "$PTHREAD_LIBS_save" | sed -e 's,^-l,,g'`
28893 { echo "$as_me:$LINENO: checking for pthread_create in $PTHREAD_LIBS" >&5
28894 echo $ECHO_N "checking for pthread_create in $PTHREAD_LIBS... $ECHO_C" >&6; }
28896 kde_save_LDFLAGS="$LDFLAGS"
28897 kde_save_LIBS="$LIBS"
28898 LDFLAGS="$LDFLAGS $all_libraries"
28900 aix*) LDFLAGS="-brtl $LDFLAGS"
28901 test "$GCC" = yes && LDFLAGS="-Wl,$LDFLAGS"
28904 as_ac_Lib=`echo "ac_cv_lib_$PTHREAD_LIBS''_pthread_create" | $as_tr_sh`
28905 { echo "$as_me:$LINENO: checking for pthread_create in -l$PTHREAD_LIBS" >&5
28906 echo $ECHO_N "checking for pthread_create in -l$PTHREAD_LIBS... $ECHO_C" >&6; }
28907 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
28908 echo $ECHO_N "(cached) $ECHO_C" >&6
28910 ac_check_lib_save_LIBS=$LIBS
28911 LIBS="-l$PTHREAD_LIBS $LIBS"
28912 cat >conftest.$ac_ext <<_ACEOF
28915 cat confdefs.h >>conftest.$ac_ext
28916 cat >>conftest.$ac_ext <<_ACEOF
28917 /* end confdefs.h. */
28919 /* Override any GCC internal prototype to avoid an error.
28920 Use char because int might match the return type of a GCC
28921 builtin and then its argument prototype would still apply. */
28925 char pthread_create ();
28929 return pthread_create ();
28934 rm -f conftest.$ac_objext conftest$ac_exeext
28935 if { (ac_try="$ac_link"
28936 case "(($ac_try" in
28937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28938 *) ac_try_echo=$ac_try;;
28940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28941 (eval "$ac_link") 2>conftest.er1
28943 grep -v '^ *+' conftest.er1 >conftest.err
28945 cat conftest.err >&5
28946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28947 (exit $ac_status); } && {
28948 test -z "$ac_c_werror_flag" ||
28949 test ! -s conftest.err
28950 } && test -s conftest$ac_exeext &&
28951 $as_test_x conftest$ac_exeext; then
28952 eval "$as_ac_Lib=yes"
28954 echo "$as_me: failed program was:" >&5
28955 sed 's/^/| /' conftest.$ac_ext >&5
28957 eval "$as_ac_Lib=no"
28960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28961 conftest$ac_exeext conftest.$ac_ext
28962 LIBS=$ac_check_lib_save_LIBS
28964 ac_res=`eval echo '${'$as_ac_Lib'}'`
28965 { echo "$as_me:$LINENO: result: $ac_res" >&5
28966 echo "${ECHO_T}$ac_res" >&6; }
28967 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
28968 LIBPTHREAD="$PTHREAD_LIBS_save"
28971 LDFLAGS="$kde_save_LDFLAGS"
28972 LIBS="$kde_save_LIBS"
28974 PTHREAD_LIBS="$PTHREAD_LIBS_save"
28978 if test -z "$LIBPTHREAD"; then
28979 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
28980 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
28981 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
28982 echo $ECHO_N "(cached) $ECHO_C" >&6
28984 ac_check_lib_save_LIBS=$LIBS
28985 LIBS="-lpthread $LIBS"
28986 cat >conftest.$ac_ext <<_ACEOF
28989 cat confdefs.h >>conftest.$ac_ext
28990 cat >>conftest.$ac_ext <<_ACEOF
28991 /* end confdefs.h. */
28993 /* Override any GCC internal prototype to avoid an error.
28994 Use char because int might match the return type of a GCC
28995 builtin and then its argument prototype would still apply. */
28999 char pthread_create ();
29003 return pthread_create ();
29008 rm -f conftest.$ac_objext conftest$ac_exeext
29009 if { (ac_try="$ac_link"
29010 case "(($ac_try" in
29011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29012 *) ac_try_echo=$ac_try;;
29014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29015 (eval "$ac_link") 2>conftest.er1
29017 grep -v '^ *+' conftest.er1 >conftest.err
29019 cat conftest.err >&5
29020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29021 (exit $ac_status); } && {
29022 test -z "$ac_c_werror_flag" ||
29023 test ! -s conftest.err
29024 } && test -s conftest$ac_exeext &&
29025 $as_test_x conftest$ac_exeext; then
29026 ac_cv_lib_pthread_pthread_create=yes
29028 echo "$as_me: failed program was:" >&5
29029 sed 's/^/| /' conftest.$ac_ext >&5
29031 ac_cv_lib_pthread_pthread_create=no
29034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29035 conftest$ac_exeext conftest.$ac_ext
29036 LIBS=$ac_check_lib_save_LIBS
29038 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
29039 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
29040 if test $ac_cv_lib_pthread_pthread_create = yes; then
29041 LIBPTHREAD="-lpthread"
29046 if test -z "$LIBPTHREAD" ; then
29047 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
29048 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
29049 kde_safe_libs=$LIBS
29050 LIBS="$LIBS -lpthread"
29051 cat >conftest.$ac_ext <<_ACEOF
29054 cat confdefs.h >>conftest.$ac_ext
29055 cat >>conftest.$ac_ext <<_ACEOF
29056 /* end confdefs.h. */
29057 #include <pthread.h>
29061 (void)pthread_create(0,0,0,0);
29066 rm -f conftest.$ac_objext conftest$ac_exeext
29067 if { (ac_try="$ac_link"
29068 case "(($ac_try" in
29069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29070 *) ac_try_echo=$ac_try;;
29072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29073 (eval "$ac_link") 2>conftest.er1
29075 grep -v '^ *+' conftest.er1 >conftest.err
29077 cat conftest.err >&5
29078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29079 (exit $ac_status); } && {
29080 test -z "$ac_c_werror_flag" ||
29081 test ! -s conftest.err
29082 } && test -s conftest$ac_exeext &&
29083 $as_test_x conftest$ac_exeext; then
29085 { echo "$as_me:$LINENO: result: yes" >&5
29086 echo "${ECHO_T}yes" >&6; }
29087 LIBPTHREAD="-lpthread"
29089 echo "$as_me: failed program was:" >&5
29090 sed 's/^/| /' conftest.$ac_ext >&5
29093 { echo "$as_me:$LINENO: result: no" >&5
29094 echo "${ECHO_T}no" >&6; }
29097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29098 conftest$ac_exeext conftest.$ac_ext
29099 LIBS=$kde_safe_libs
29102 if test "x$LIBPTHREAD" = "xPTHREAD" ; then
29110 if test -z "$LIBPTHREAD"; then
29112 { echo "$as_me:$LINENO: checking whether $CXX supports -pthread" >&5
29113 echo $ECHO_N "checking whether $CXX supports -pthread... $ECHO_C" >&6; }
29114 kde_cache=`echo pthread | sed 'y% .=/+-,%____p__%'`
29115 if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
29116 echo $ECHO_N "(cached) $ECHO_C" >&6
29121 ac_cpp='$CXXCPP $CPPFLAGS'
29122 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29123 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29124 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29126 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
29129 save_CXXFLAGS="$CXXFLAGS"
29130 CXXFLAGS="$CXXFLAGS -pthread"
29131 cat >conftest.$ac_ext <<_ACEOF
29134 cat confdefs.h >>conftest.$ac_ext
29135 cat >>conftest.$ac_ext <<_ACEOF
29136 /* end confdefs.h. */
29146 rm -f conftest.$ac_objext conftest$ac_exeext
29147 if { (ac_try="$ac_link"
29148 case "(($ac_try" in
29149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29150 *) ac_try_echo=$ac_try;;
29152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29153 (eval "$ac_link") 2>conftest.er1
29155 grep -v '^ *+' conftest.er1 >conftest.err
29157 cat conftest.err >&5
29158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29159 (exit $ac_status); } && {
29160 test -z "$ac_cxx_werror_flag" ||
29161 test ! -s conftest.err
29162 } && test -s conftest$ac_exeext &&
29163 $as_test_x conftest$ac_exeext; then
29164 eval "kde_cv_prog_cxx_$kde_cache=yes"
29166 echo "$as_me: failed program was:" >&5
29167 sed 's/^/| /' conftest.$ac_ext >&5
29172 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29173 conftest$ac_exeext conftest.$ac_ext
29174 CXXFLAGS="$save_CXXFLAGS"
29176 ac_cpp='$CPP $CPPFLAGS'
29177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29184 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
29185 { echo "$as_me:$LINENO: result: yes" >&5
29186 echo "${ECHO_T}yes" >&6; }
29188 USE_THREADS="-D_THREAD_SAFE -pthread"
29190 { echo "$as_me:$LINENO: result: no" >&5
29191 echo "${ECHO_T}no" >&6; }
29203 { echo "$as_me:$LINENO: checking whether $CXX supports -mt" >&5
29204 echo $ECHO_N "checking whether $CXX supports -mt... $ECHO_C" >&6; }
29205 kde_cache=`echo mt | sed 'y% .=/+-,%____p__%'`
29206 if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
29207 echo $ECHO_N "(cached) $ECHO_C" >&6
29212 ac_cpp='$CXXCPP $CPPFLAGS'
29213 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29214 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29215 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29217 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
29220 save_CXXFLAGS="$CXXFLAGS"
29221 CXXFLAGS="$CXXFLAGS -mt"
29222 cat >conftest.$ac_ext <<_ACEOF
29225 cat confdefs.h >>conftest.$ac_ext
29226 cat >>conftest.$ac_ext <<_ACEOF
29227 /* end confdefs.h. */
29237 rm -f conftest.$ac_objext conftest$ac_exeext
29238 if { (ac_try="$ac_link"
29239 case "(($ac_try" in
29240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29241 *) ac_try_echo=$ac_try;;
29243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29244 (eval "$ac_link") 2>conftest.er1
29246 grep -v '^ *+' conftest.er1 >conftest.err
29248 cat conftest.err >&5
29249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29250 (exit $ac_status); } && {
29251 test -z "$ac_cxx_werror_flag" ||
29252 test ! -s conftest.err
29253 } && test -s conftest$ac_exeext &&
29254 $as_test_x conftest$ac_exeext; then
29255 eval "kde_cv_prog_cxx_$kde_cache=yes"
29257 echo "$as_me: failed program was:" >&5
29258 sed 's/^/| /' conftest.$ac_ext >&5
29263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29264 conftest$ac_exeext conftest.$ac_ext
29265 CXXFLAGS="$save_CXXFLAGS"
29267 ac_cpp='$CPP $CPPFLAGS'
29268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29275 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
29276 { echo "$as_me:$LINENO: result: yes" >&5
29277 echo "${ECHO_T}yes" >&6; }
29281 { echo "$as_me:$LINENO: result: no" >&5
29282 echo "${ECHO_T}no" >&6; }
29287 CPPFLAGS="$CPPFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DUSE_SOLARIS -DSVR4"
29290 CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE $PTHREAD_CFLAGS"
29293 CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE"
29294 LIBPTHREAD="$LIBPTHREAD -lc_r"
29296 linux*) CPPFLAGS="$CPPFLAGS -D_REENTRANT"
29297 if test "$CXX" = "KCC"; then
29298 CXXFLAGS="$CXXFLAGS --thread_safe"
29299 NOOPT_CXXFLAGS="$NOOPT_CXXFLAGS --thread_safe"
29309 { echo "$as_me:$LINENO: checking for extra includes" >&5
29310 echo $ECHO_N "checking for extra includes... $ECHO_C" >&6; }
29312 # Check whether --with-extra-includes was given.
29313 if test "${with_extra_includes+set}" = set; then
29314 withval=$with_extra_includes; kde_use_extra_includes="$withval"
29316 kde_use_extra_includes=NONE
29320 kde_extra_includes=
29321 if test -n "$kde_use_extra_includes" && \
29322 test "$kde_use_extra_includes" != "NONE"; then
29326 for dir in $kde_use_extra_includes; do
29327 kde_extra_includes="$kde_extra_includes $dir"
29328 USER_INCLUDES="$USER_INCLUDES -I$dir"
29331 kde_use_extra_includes="added"
29333 kde_use_extra_includes="no"
29337 { echo "$as_me:$LINENO: result: $kde_use_extra_includes" >&5
29338 echo "${ECHO_T}$kde_use_extra_includes" >&6; }
29341 { echo "$as_me:$LINENO: checking for extra libs" >&5
29342 echo $ECHO_N "checking for extra libs... $ECHO_C" >&6; }
29344 # Check whether --with-extra-libs was given.
29345 if test "${with_extra_libs+set}" = set; then
29346 withval=$with_extra_libs; kde_use_extra_libs=$withval
29348 kde_use_extra_libs=NONE
29352 if test -n "$kde_use_extra_libs" && \
29353 test "$kde_use_extra_libs" != "NONE"; then
29357 for dir in $kde_use_extra_libs; do
29358 kde_extra_libs="$kde_extra_libs $dir"
29359 KDE_EXTRA_RPATH="$KDE_EXTRA_RPATH -R $dir"
29360 USER_LDFLAGS="$USER_LDFLAGS -L$dir"
29363 kde_use_extra_libs="added"
29365 kde_use_extra_libs="no"
29370 { echo "$as_me:$LINENO: result: $kde_use_extra_libs" >&5
29371 echo "${ECHO_T}$kde_use_extra_libs" >&6; }
29376 { echo "$as_me:$LINENO: checking for libz" >&5
29377 echo $ECHO_N "checking for libz... $ECHO_C" >&6; }
29378 if test "${ac_cv_lib_z+set}" = set; then
29379 echo $ECHO_N "(cached) $ECHO_C" >&6
29382 kde_save_LIBS="$LIBS"
29383 LIBS="$all_libraries $USER_LDFLAGS -lz $LIBSOCKET"
29384 kde_save_CFLAGS="$CFLAGS"
29385 CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
29386 cat >conftest.$ac_ext <<_ACEOF
29389 cat confdefs.h >>conftest.$ac_ext
29390 cat >>conftest.$ac_ext <<_ACEOF
29391 /* end confdefs.h. */
29400 gzFile f = (gzFile) 0;
29401 /* this would segfault.. but we only link, don't run */
29402 (void) gzgets(f, buf, sizeof(buf));
29404 return (zlibVersion() == ZLIB_VERSION);
29410 rm -f conftest.$ac_objext conftest$ac_exeext
29411 if { (ac_try="$ac_link"
29412 case "(($ac_try" in
29413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29414 *) ac_try_echo=$ac_try;;
29416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29417 (eval "$ac_link") 2>conftest.er1
29419 grep -v '^ *+' conftest.er1 >conftest.err
29421 cat conftest.err >&5
29422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29423 (exit $ac_status); } && {
29424 test -z "$ac_c_werror_flag" ||
29425 test ! -s conftest.err
29426 } && test -s conftest$ac_exeext &&
29427 $as_test_x conftest$ac_exeext; then
29428 eval "ac_cv_lib_z='-lz'"
29430 echo "$as_me: failed program was:" >&5
29431 sed 's/^/| /' conftest.$ac_ext >&5
29433 eval "ac_cv_lib_z=no"
29436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29437 conftest$ac_exeext conftest.$ac_ext
29438 LIBS="$kde_save_LIBS"
29439 CFLAGS="$kde_save_CFLAGS"
29442 if test ! "$ac_cv_lib_z" = no; then
29444 cat >>confdefs.h <<_ACEOF
29445 #define HAVE_LIBZ 1
29448 LIBZ="$ac_cv_lib_z"
29449 { echo "$as_me:$LINENO: result: $ac_cv_lib_z" >&5
29450 echo "${ECHO_T}$ac_cv_lib_z" >&6; }
29452 { { echo "$as_me:$LINENO: error: not found.
29453 Possibly configure picks up an outdated version
29454 installed by XFree86. Remove it from your system.
29456 Check your installation and look into config.log" >&5
29457 echo "$as_me: error: not found.
29458 Possibly configure picks up an outdated version
29459 installed by XFree86. Remove it from your system.
29461 Check your installation and look into config.log" >&2;}
29462 { (exit 1); exit 1; }; }
29470 { echo "$as_me:$LINENO: checking for libpng" >&5
29471 echo $ECHO_N "checking for libpng... $ECHO_C" >&6; }
29472 if test "${ac_cv_lib_png+set}" = set; then
29473 echo $ECHO_N "(cached) $ECHO_C" >&6
29476 kde_save_LIBS="$LIBS"
29477 if test "x$kde_use_qt_emb" != "xyes" && test "x$kde_use_qt_mac" != "xyes"; then
29478 LIBS="$LIBS $all_libraries $USER_LDFLAGS -lpng $LIBZ -lm -lX11 $LIBSOCKET"
29480 LIBS="$LIBS $all_libraries $USER_LDFLAGS -lpng $LIBZ -lm"
29482 kde_save_CFLAGS="$CFLAGS"
29483 CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
29485 cat >conftest.$ac_ext <<_ACEOF
29488 cat confdefs.h >>conftest.$ac_ext
29489 cat >>conftest.$ac_ext <<_ACEOF
29490 /* end confdefs.h. */
29498 png_structp png_ptr = png_create_read_struct( /* image ptr */
29499 PNG_LIBPNG_VER_STRING, 0, 0, 0 );
29500 return( png_ptr != 0 );
29506 rm -f conftest.$ac_objext conftest$ac_exeext
29507 if { (ac_try="$ac_link"
29508 case "(($ac_try" in
29509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29510 *) ac_try_echo=$ac_try;;
29512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29513 (eval "$ac_link") 2>conftest.er1
29515 grep -v '^ *+' conftest.er1 >conftest.err
29517 cat conftest.err >&5
29518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29519 (exit $ac_status); } && {
29520 test -z "$ac_c_werror_flag" ||
29521 test ! -s conftest.err
29522 } && test -s conftest$ac_exeext &&
29523 $as_test_x conftest$ac_exeext; then
29524 eval "ac_cv_lib_png='-lpng $LIBZ -lm'"
29526 echo "$as_me: failed program was:" >&5
29527 sed 's/^/| /' conftest.$ac_ext >&5
29529 eval "ac_cv_lib_png=no"
29533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29534 conftest$ac_exeext conftest.$ac_ext
29535 LIBS="$kde_save_LIBS"
29536 CFLAGS="$kde_save_CFLAGS"
29539 if eval "test ! \"`echo $ac_cv_lib_png`\" = no"; then
29541 cat >>confdefs.h <<_ACEOF
29542 #define HAVE_LIBPNG 1
29545 LIBPNG="$ac_cv_lib_png"
29547 { echo "$as_me:$LINENO: result: $ac_cv_lib_png" >&5
29548 echo "${ECHO_T}$ac_cv_lib_png" >&6; }
29550 { echo "$as_me:$LINENO: result: no" >&5
29551 echo "${ECHO_T}no" >&6; }
29558 { echo "$as_me:$LINENO: checking for libjpeg6b" >&5
29559 echo $ECHO_N "checking for libjpeg6b... $ECHO_C" >&6; }
29560 if test "${ac_cv_lib_jpeg_6b+set}" = set; then
29561 echo $ECHO_N "(cached) $ECHO_C" >&6
29564 ac_save_LIBS="$LIBS"
29565 LIBS="$all_libraries $USER_LDFLAGS -ljpeg6b -lm"
29566 ac_save_CFLAGS="$CFLAGS"
29567 CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
29568 cat >conftest.$ac_ext <<_ACEOF
29571 cat confdefs.h >>conftest.$ac_ext
29572 cat >>conftest.$ac_ext <<_ACEOF
29573 /* end confdefs.h. */
29574 /* Override any gcc2 internal prototype to avoid an error. */
29575 struct jpeg_decompress_struct;
29576 typedef struct jpeg_decompress_struct * j_decompress_ptr;
29577 typedef int size_t;
29581 void jpeg_CreateDecompress(j_decompress_ptr cinfo,
29582 int version, size_t structsize);
29586 /* We use char because int might match the return type of a gcc2
29587 builtin and then its argument prototype would still apply. */
29592 jpeg_CreateDecompress(0L, 0, 0);
29597 rm -f conftest.$ac_objext conftest$ac_exeext
29598 if { (ac_try="$ac_link"
29599 case "(($ac_try" in
29600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29601 *) ac_try_echo=$ac_try;;
29603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29604 (eval "$ac_link") 2>conftest.er1
29606 grep -v '^ *+' conftest.er1 >conftest.err
29608 cat conftest.err >&5
29609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29610 (exit $ac_status); } && {
29611 test -z "$ac_c_werror_flag" ||
29612 test ! -s conftest.err
29613 } && test -s conftest$ac_exeext &&
29614 $as_test_x conftest$ac_exeext; then
29615 eval "ac_cv_lib_jpeg_6b=-ljpeg6b"
29617 echo "$as_me: failed program was:" >&5
29618 sed 's/^/| /' conftest.$ac_ext >&5
29620 eval "ac_cv_lib_jpeg_6b=no"
29623 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29624 conftest$ac_exeext conftest.$ac_ext
29625 LIBS="$ac_save_LIBS"
29626 CFLAGS="$ac_save_CFLAGS"
29631 if eval "test ! \"`echo $ac_cv_lib_jpeg_6b`\" = no"; then
29632 LIBJPEG="$ac_cv_lib_jpeg_6b"
29633 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_6b" >&5
29634 echo "${ECHO_T}$ac_cv_lib_jpeg_6b" >&6; }
29636 { echo "$as_me:$LINENO: result: no" >&5
29637 echo "${ECHO_T}no" >&6; }
29639 { echo "$as_me:$LINENO: checking for libjpeg" >&5
29640 echo $ECHO_N "checking for libjpeg... $ECHO_C" >&6; }
29641 if test "${ac_cv_lib_jpeg_normal+set}" = set; then
29642 echo $ECHO_N "(cached) $ECHO_C" >&6
29645 ac_save_LIBS="$LIBS"
29646 LIBS="$all_libraries $USER_LDFLAGS -ljpeg -lm"
29647 ac_save_CFLAGS="$CFLAGS"
29648 CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
29649 cat >conftest.$ac_ext <<_ACEOF
29652 cat confdefs.h >>conftest.$ac_ext
29653 cat >>conftest.$ac_ext <<_ACEOF
29654 /* end confdefs.h. */
29655 /* Override any gcc2 internal prototype to avoid an error. */
29656 struct jpeg_decompress_struct;
29657 typedef struct jpeg_decompress_struct * j_decompress_ptr;
29658 typedef int size_t;
29662 void jpeg_CreateDecompress(j_decompress_ptr cinfo,
29663 int version, size_t structsize);
29667 /* We use char because int might match the return type of a gcc2
29668 builtin and then its argument prototype would still apply. */
29673 jpeg_CreateDecompress(0L, 0, 0);
29678 rm -f conftest.$ac_objext conftest$ac_exeext
29679 if { (ac_try="$ac_link"
29680 case "(($ac_try" in
29681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29682 *) ac_try_echo=$ac_try;;
29684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29685 (eval "$ac_link") 2>conftest.er1
29687 grep -v '^ *+' conftest.er1 >conftest.err
29689 cat conftest.err >&5
29690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29691 (exit $ac_status); } && {
29692 test -z "$ac_c_werror_flag" ||
29693 test ! -s conftest.err
29694 } && test -s conftest$ac_exeext &&
29695 $as_test_x conftest$ac_exeext; then
29696 eval "ac_cv_lib_jpeg_normal=-ljpeg"
29698 echo "$as_me: failed program was:" >&5
29699 sed 's/^/| /' conftest.$ac_ext >&5
29701 eval "ac_cv_lib_jpeg_normal=no"
29704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29705 conftest$ac_exeext conftest.$ac_ext
29706 LIBS="$ac_save_LIBS"
29707 CFLAGS="$ac_save_CFLAGS"
29712 if eval "test ! \"`echo $ac_cv_lib_jpeg_normal`\" = no"; then
29713 LIBJPEG="$ac_cv_lib_jpeg_normal"
29714 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_normal" >&5
29715 echo "${ECHO_T}$ac_cv_lib_jpeg_normal" >&6; }
29717 { echo "$as_me:$LINENO: result: no" >&5
29718 echo "${ECHO_T}no" >&6; }
29731 jpeg_incdirs="$includedir /usr/include /usr/local/include $kde_extra_includes"
29734 for i in $jpeg_incdirs;
29736 for j in jpeglib.h;
29738 echo "configure: 29738: $i/$j" >&5
29739 if test -r "$i/$j"; then
29740 echo "taking that" >&5
29747 test "x$jpeg_incdir" = xNO && jpeg_incdir=
29749 if test -n "$jpeg_incdir" && test -n "$LIBJPEG" ; then
29751 cat >>confdefs.h <<_ACEOF
29752 #define HAVE_LIBJPEG 1
29756 if test -n "$jpeg_incdir" || test -n "$LIBJPEG" ; then
29757 { echo "$as_me:$LINENO: WARNING:
29758 There is an installation error in jpeg support. You seem to have only one
29759 of either the headers _or_ the libraries installed. You may need to either
29760 provide correct --with-extra-... options, or the development package of
29761 libjpeg6b. You can get a source package of libjpeg from http://www.ijg.org/
29762 Disabling JPEG support.
29764 echo "$as_me: WARNING:
29765 There is an installation error in jpeg support. You seem to have only one
29766 of either the headers _or_ the libraries installed. You may need to either
29767 provide correct --with-extra-... options, or the development package of
29768 libjpeg6b. You can get a source package of libjpeg from http://www.ijg.org/
29769 Disabling JPEG support.
29772 { echo "$as_me:$LINENO: WARNING: libjpeg not found. disable JPEG support." >&5
29773 echo "$as_me: WARNING: libjpeg not found. disable JPEG support." >&2;}
29785 { echo "$as_me:$LINENO: checking for perl" >&5
29786 echo $ECHO_N "checking for perl... $ECHO_C" >&6; }
29787 if test -n "$PERL"; then
29788 kde_cv_path="$PERL";
29790 kde_cache=`echo perl | sed 'y%./+-%__p_%'`
29792 if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
29793 echo $ECHO_N "(cached) $ECHO_C" >&6
29800 for dir in $PATH; do
29803 if test -z ""; then dirs="$bindir $exec_prefix/bin $prefix/bin $dirs"
29804 else dirs="$dirs $bindir $exec_prefix/bin $prefix/bin"
29808 for dir in $dirs; do
29809 if test -x "$dir/perl"; then
29812 evalstr="$dir/perl 2>&1 "
29813 if eval $evalstr; then
29814 kde_cv_path="$dir/perl"
29818 kde_cv_path="$dir/perl"
29824 eval "kde_cv_path_$kde_cache=$kde_cv_path"
29830 eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
29834 if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
29835 { echo "$as_me:$LINENO: result: not found" >&5
29836 echo "${ECHO_T}not found" >&6; }
29838 { { echo "$as_me:$LINENO: error: No Perl found in your $PATH.
29839 We need perl to generate some code." >&5
29840 echo "$as_me: error: No Perl found in your $PATH.
29841 We need perl to generate some code." >&2;}
29842 { (exit 1); exit 1; }; }
29845 { echo "$as_me:$LINENO: result: $kde_cv_path" >&5
29846 echo "${ECHO_T}$kde_cv_path" >&6; }
29860 # Check whether --enable-mt was given.
29861 if test "${enable_mt+set}" = set; then
29862 enableval=$enable_mt; kde_use_qt_mt=$enableval
29865 if test $kde_qtver = 3; then
29880 if test "x$kde_use_qt_mt" = "xyes"; then
29884 if test -z "$LIBPTHREAD"; then
29885 if test -z "$USE_THREADS"; then
29886 kde_check_threading_default=no
29888 kde_check_threading_default=yes
29891 kde_check_threading_default=yes
29893 # Check whether --enable-threading was given.
29894 if test "${enable_threading+set}" = set; then
29895 enableval=$enable_threading; kde_use_threading=$enableval
29897 kde_use_threading=$kde_check_threading_default
29900 if test "x$kde_use_threading" = "xyes"; then
29902 cat >>confdefs.h <<\_ACEOF
29903 #define HAVE_LIBPTHREAD 1
29908 if test "x$kde_use_threading" = "xyes"; then
29909 CPPFLAGS="$USE_THREADS -DQT_THREAD_SUPPORT $CPPFLAGS"
29910 KDE_MT_LDFLAGS="$USE_THREADS"
29911 KDE_MT_LIBS="$LIBPTHREAD"
29919 kde_qt_was_given=yes
29921 if test -z "$LIBQT_GLOB"; then
29922 if test "x$kde_use_qt_emb" = "xyes"; then
29923 LIBQT_GLOB="libqte.*"
29925 LIBQT_GLOB="libqt.*"
29929 if test -z "$LIBQT"; then
29930 if test "x$kde_use_qt_emb" = "xyes"; then
29936 kde_int_qt="-l$qtlib"
29938 kde_int_qt="$LIBQT"
29942 if test -z "$LIBQPE"; then
29943 if test "x$kde_use_qt_emb" = "xyes"; then
29944 if test "x$kde_use_qt_emb_palm" = "xyes"; then
29955 if test "x$kde_use_qt_mt" = "xyes"; then
29956 if test -z "$LIBQT"; then
29957 LIBQT="-l$qtlib-mt"
29958 kde_int_qt="-l$qtlib-mt"
29961 kde_int_qt="$qtlib-mt"
29963 LIBQT_GLOB="lib$qtlib-mt.*"
29964 USING_QT_MT="using -mt"
29969 if test $kde_qtver != 1; then
29973 LIBQT="$LIBQT $LIBPNG $LIBJPEG"
29976 if test $kde_qtver = 3; then
29978 LIBQT="$LIBQT $LIBDL"
29981 { echo "$as_me:$LINENO: checking for Qt" >&5
29982 echo $ECHO_N "checking for Qt... $ECHO_C" >&6; }
29984 if test "x$kde_use_qt_emb" != "xyes" && test "x$kde_use_qt_mac" != "xyes"; then
29985 LIBQT="$LIBQT $X_PRE_LIBS -lXext -lX11 $LIBSM $LIBSOCKET"
29987 ac_qt_includes=NO ac_qt_libraries=NO ac_qt_bindir=NO
29991 # Check whether --with-qt-dir was given.
29992 if test "${with_qt_dir+set}" = set; then
29993 withval=$with_qt_dir; ac_qt_includes="$withval"/include
29994 ac_qt_libraries="$withval"/lib${kdelibsuff}
29995 ac_qt_bindir="$withval"/bin
30001 # Check whether --with-qt-includes was given.
30002 if test "${with_qt_includes+set}" = set; then
30003 withval=$with_qt_includes;
30004 ac_qt_includes="$withval"
30009 kde_qt_libs_given=no
30012 # Check whether --with-qt-libraries was given.
30013 if test "${with_qt_libraries+set}" = set; then
30014 withval=$with_qt_libraries; ac_qt_libraries="$withval"
30015 kde_qt_libs_given=yes
30020 if test "${ac_cv_have_qt+set}" = set; then
30021 echo $ECHO_N "(cached) $ECHO_C" >&6
30023 #try to guess Qt locations
30026 for dir in $kde_qt_dirs; do
30027 qt_incdirs="$qt_incdirs $dir/include $dir"
30029 qt_incdirs="$QTINC $qt_incdirs /usr/local/qt/include /usr/include/qt /usr/include /usr/X11R6/include/X11/qt /usr/X11R6/include/qt /usr/X11R6/include/qt2 /usr/include/qt3 $x_includes"
30030 if test ! "$ac_qt_includes" = "NO"; then
30031 qt_incdirs="$ac_qt_includes $qt_incdirs"
30034 if test "$kde_qtver" != "1"; then
30035 kde_qt_header=qstyle.h
30037 kde_qt_header=qglobal.h
30042 for i in $qt_incdirs;
30044 for j in $kde_qt_header;
30046 echo "configure: 30046: $i/$j" >&5
30047 if test -r "$i/$j"; then
30048 echo "taking that" >&5
30055 ac_qt_includes="$qt_incdir"
30058 for dir in $kde_qt_dirs; do
30059 qt_libdirs="$qt_libdirs $dir/lib${kdelibsuff} $dir"
30061 qt_libdirs="$QTLIB $qt_libdirs /usr/X11R6/lib /usr/lib /usr/local/qt/lib $x_libraries"
30062 if test ! "$ac_qt_libraries" = "NO"; then
30063 qt_libdir=$ac_qt_libraries
30065 qt_libdirs="$ac_qt_libraries $qt_libdirs"
30066 # if the Qt was given, the chance is too big that libqt.* doesn't exist
30068 for dir in $qt_libdirs; do
30069 try="ls -1 $dir/${LIBQT_GLOB}"
30070 if test -n "`$try 2> /dev/null`"; then qt_libdir=$dir; break; else echo "tried $dir" >&5 ; fi
30073 for a in $qt_libdir/lib`echo ${kde_int_qt} | sed 's,^-l,,'`_incremental.*; do
30074 if test -e "$a"; then
30075 LIBQT="$LIBQT ${kde_int_qt}_incremental"
30080 ac_qt_libraries="$qt_libdir"
30084 ac_cpp='$CXXCPP $CPPFLAGS'
30085 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30086 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30087 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30089 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
30093 ac_cxxflags_safe="$CXXFLAGS"
30094 ac_ldflags_safe="$LDFLAGS"
30095 ac_libs_safe="$LIBS"
30097 CXXFLAGS="$CXXFLAGS -I$qt_incdir $all_includes"
30098 LDFLAGS="$LDFLAGS -L$qt_libdir $all_libraries $USER_LDFLAGS $KDE_MT_LDFLAGS"
30099 LIBS="$LIBS $LIBQT $KDE_MT_LIBS"
30103 cat > conftest.$ac_ext <<EOF
30104 #include "confdefs.h"
30105 #include <qglobal.h>
30106 #include <qapplication.h>
30108 if test "$kde_qtver" = "2"; then
30109 cat >> conftest.$ac_ext <<EOF
30110 #include <qevent.h>
30111 #include <qstring.h>
30112 #include <qstyle.h>
30115 if test $kde_qtsubver -gt 0; then
30116 cat >> conftest.$ac_ext <<EOF
30117 #if QT_VERSION < 210
30124 if test "$kde_qtver" = "3"; then
30125 cat >> conftest.$ac_ext <<EOF
30126 #include <qcursor.h>
30127 #include <qstylefactory.h>
30128 #include <private/qucomextra_p.h>
30132 echo "#if ! ($kde_qt_verstring)" >> conftest.$ac_ext
30133 cat >> conftest.$ac_ext <<EOF
30139 if test "$kde_qtver" = "2"; then
30140 cat >> conftest.$ac_ext <<EOF
30141 QStringList *t = new QStringList();
30144 if test $kde_qtsubver -gt 0; then
30145 cat >> conftest.$ac_ext <<EOF
30147 s.setLatin1("Elvis is alive", 14);
30151 if test "$kde_qtver" = "3"; then
30152 cat >> conftest.$ac_ext <<EOF
30153 (void)QStyleFactory::create(QString::null);
30154 QCursor c(Qt::WhatsThisCursor);
30157 cat >> conftest.$ac_ext <<EOF
30163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30164 (eval $ac_link) 2>&5
30166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30167 (exit $ac_status); } && test -s conftest; then
30170 echo "configure: failed program was:" >&5
30171 cat conftest.$ac_ext >&5
30172 ac_qt_libraries="NO"
30175 CXXFLAGS="$ac_cxxflags_safe"
30176 LDFLAGS="$ac_ldflags_safe"
30177 LIBS="$ac_libs_safe"
30180 ac_cpp='$CPP $CPPFLAGS'
30181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30185 if test "$ac_qt_includes" = NO || test "$ac_qt_libraries" = NO; then
30186 ac_cv_have_qt="have_qt=no"
30189 if test "$ac_qt_includes" = NO; then
30190 if test "$ac_qt_libraries" = NO; then
30191 ac_qt_notfound="(headers and libraries)";
30193 ac_qt_notfound="(headers)";
30196 if test "x$kde_use_qt_mt" = "xyes"; then
30198 Make sure that you have compiled Qt with thread support!"
30199 ac_qt_notfound="(library $qtlib-mt)";
30201 ac_qt_notfound="(library $qtlib)";
30205 { { echo "$as_me:$LINENO: error: Qt ($kde_qt_minversion) $ac_qt_notfound not found. Please check your installation!
30206 For more details about this problem, look at the end of config.log.$missing_qt_mt" >&5
30207 echo "$as_me: error: Qt ($kde_qt_minversion) $ac_qt_notfound not found. Please check your installation!
30208 For more details about this problem, look at the end of config.log.$missing_qt_mt" >&2;}
30209 { (exit 1); exit 1; }; }
30217 eval "$ac_cv_have_qt"
30219 if test "$have_qt" != yes; then
30220 { echo "$as_me:$LINENO: result: $have_qt" >&5
30221 echo "${ECHO_T}$have_qt" >&6; };
30223 ac_cv_have_qt="have_qt=yes \
30224 ac_qt_includes=$ac_qt_includes ac_qt_libraries=$ac_qt_libraries"
30225 { echo "$as_me:$LINENO: result: libraries $ac_qt_libraries, headers $ac_qt_includes $USING_QT_MT" >&5
30226 echo "${ECHO_T}libraries $ac_qt_libraries, headers $ac_qt_includes $USING_QT_MT" >&6; }
30228 qt_libraries="$ac_qt_libraries"
30229 qt_includes="$ac_qt_includes"
30232 if test ! "$kde_qt_libs_given" = "yes" && test ! "$kde_qtver" = 3; then
30235 { echo "$as_me:$LINENO: checking if Qt compiles without flags" >&5
30236 echo $ECHO_N "checking if Qt compiles without flags... $ECHO_C" >&6; }
30237 if test "${kde_cv_qt_direct+set}" = set; then
30238 echo $ECHO_N "(cached) $ECHO_C" >&6
30243 ac_cpp='$CXXCPP $CPPFLAGS'
30244 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30245 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30246 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30248 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
30251 ac_LD_LIBRARY_PATH_safe=$LD_LIBRARY_PATH
30252 ac_LIBRARY_PATH="$LIBRARY_PATH"
30253 ac_cxxflags_safe="$CXXFLAGS"
30254 ac_ldflags_safe="$LDFLAGS"
30255 ac_libs_safe="$LIBS"
30257 CXXFLAGS="$CXXFLAGS -I$qt_includes"
30258 LDFLAGS="$LDFLAGS $X_LDFLAGS"
30259 if test "x$kde_use_qt_emb" != "xyes" && test "x$kde_use_qt_mac" != "xyes"; then
30260 LIBS="$LIBQT -lXext -lX11 $LIBSOCKET"
30262 LIBS="$LIBQT $LIBSOCKET"
30265 export LD_LIBRARY_PATH
30267 export LIBRARY_PATH
30271 cat > conftest.$ac_ext <<EOF
30272 #include "confdefs.h"
30273 #include <qglobal.h>
30274 #include <qapplication.h>
30276 if test "$kde_qtver" = "2"; then
30277 cat >> conftest.$ac_ext <<EOF
30278 #include <qevent.h>
30279 #include <qstring.h>
30280 #include <qstyle.h>
30283 if test $kde_qtsubver -gt 0; then
30284 cat >> conftest.$ac_ext <<EOF
30285 #if QT_VERSION < 210
30292 if test "$kde_qtver" = "3"; then
30293 cat >> conftest.$ac_ext <<EOF
30294 #include <qcursor.h>
30295 #include <qstylefactory.h>
30296 #include <private/qucomextra_p.h>
30300 echo "#if ! ($kde_qt_verstring)" >> conftest.$ac_ext
30301 cat >> conftest.$ac_ext <<EOF
30307 if test "$kde_qtver" = "2"; then
30308 cat >> conftest.$ac_ext <<EOF
30309 QStringList *t = new QStringList();
30312 if test $kde_qtsubver -gt 0; then
30313 cat >> conftest.$ac_ext <<EOF
30315 s.setLatin1("Elvis is alive", 14);
30319 if test "$kde_qtver" = "3"; then
30320 cat >> conftest.$ac_ext <<EOF
30321 (void)QStyleFactory::create(QString::null);
30322 QCursor c(Qt::WhatsThisCursor);
30325 cat >> conftest.$ac_ext <<EOF
30331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30332 (eval $ac_link) 2>&5
30334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30335 (exit $ac_status); } && test -s conftest; then
30336 kde_cv_qt_direct="yes"
30338 kde_cv_qt_direct="no"
30339 echo "configure: failed program was:" >&5
30340 cat conftest.$ac_ext >&5
30344 CXXFLAGS="$ac_cxxflags_safe"
30345 LDFLAGS="$ac_ldflags_safe"
30346 LIBS="$ac_libs_safe"
30348 LD_LIBRARY_PATH="$ac_LD_LIBRARY_PATH_safe"
30349 export LD_LIBRARY_PATH
30350 LIBRARY_PATH="$ac_LIBRARY_PATH"
30351 export LIBRARY_PATH
30353 ac_cpp='$CPP $CPPFLAGS'
30354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30362 if test "$kde_cv_qt_direct" = "yes"; then
30363 { echo "$as_me:$LINENO: result: yes" >&5
30364 echo "${ECHO_T}yes" >&6; }
30367 { echo "$as_me:$LINENO: result: no" >&5
30368 echo "${ECHO_T}no" >&6; }
30377 if test "$qt_includes" = "$x_includes" || test -z "$qt_includes"; then
30380 QT_INCLUDES="-I$qt_includes"
30381 all_includes="$QT_INCLUDES $all_includes"
30384 if test "$qt_libraries" = "$x_libraries" || test -z "$qt_libraries"; then
30387 QT_LDFLAGS="-L$qt_libraries"
30388 all_libraries="$QT_LDFLAGS $all_libraries"
30390 test -z "$KDE_MT_LDFLAGS" || all_libraries="$all_libraries $KDE_MT_LDFLAGS"
30397 for dir in $kde_qt_dirs; do
30398 qt_bindirs="$qt_bindirs $dir/bin $dir/src/moc"
30400 qt_bindirs="$qt_bindirs /usr/bin /usr/X11R6/bin /usr/local/qt/bin"
30401 if test ! "$ac_qt_bindir" = "NO"; then
30402 qt_bindirs="$ac_qt_bindir $qt_bindirs"
30406 { echo "$as_me:$LINENO: checking for moc" >&5
30407 echo $ECHO_N "checking for moc... $ECHO_C" >&6; }
30408 if test -n "$MOC"; then
30409 kde_cv_path="$MOC";
30411 kde_cache=`echo moc | sed 'y%./+-%__p_%'`
30413 if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
30414 echo $ECHO_N "(cached) $ECHO_C" >&6
30421 for dir in $PATH; do
30424 if test -z ""; then dirs="$qt_bindirs $dirs"
30425 else dirs="$dirs $qt_bindirs"
30429 for dir in $dirs; do
30430 if test -x "$dir/moc"; then
30433 evalstr="$dir/moc 2>&1 "
30434 if eval $evalstr; then
30435 kde_cv_path="$dir/moc"
30439 kde_cv_path="$dir/moc"
30445 eval "kde_cv_path_$kde_cache=$kde_cv_path"
30451 eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
30455 if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
30456 { echo "$as_me:$LINENO: result: not found" >&5
30457 echo "${ECHO_T}not found" >&6; }
30459 { { echo "$as_me:$LINENO: error: No Qt meta object compiler (moc) found!
30460 Please check whether you installed Qt correctly.
30461 You need to have a running moc binary.
30462 configure tried to run $ac_cv_path_moc and the test didn't
30463 succeed. If configure shouldn't have tried this one, set
30464 the environment variable MOC to the right one before running
30467 echo "$as_me: error: No Qt meta object compiler (moc) found!
30468 Please check whether you installed Qt correctly.
30469 You need to have a running moc binary.
30470 configure tried to run $ac_cv_path_moc and the test didn't
30471 succeed. If configure shouldn't have tried this one, set
30472 the environment variable MOC to the right one before running
30475 { (exit 1); exit 1; }; }
30478 { echo "$as_me:$LINENO: result: $kde_cv_path" >&5
30479 echo "${ECHO_T}$kde_cv_path" >&6; }
30484 if test -z "$UIC_NOT_NEEDED"; then
30486 { echo "$as_me:$LINENO: checking for uic" >&5
30487 echo $ECHO_N "checking for uic... $ECHO_C" >&6; }
30488 if test -n "$UIC_PATH"; then
30489 kde_cv_path="$UIC_PATH";
30491 kde_cache=`echo uic | sed 'y%./+-%__p_%'`
30493 if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
30494 echo $ECHO_N "(cached) $ECHO_C" >&6
30501 for dir in $PATH; do
30504 if test -z ""; then dirs="$qt_bindirs $dirs"
30505 else dirs="$dirs $qt_bindirs"
30509 for dir in $dirs; do
30510 if test -x "$dir/uic"; then
30513 evalstr="$dir/uic 2>&1 "
30514 if eval $evalstr; then
30515 kde_cv_path="$dir/uic"
30519 kde_cv_path="$dir/uic"
30525 eval "kde_cv_path_$kde_cache=$kde_cv_path"
30531 eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
30535 if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
30536 { echo "$as_me:$LINENO: result: not found" >&5
30537 echo "${ECHO_T}not found" >&6; }
30540 { echo "$as_me:$LINENO: result: $kde_cv_path" >&5
30541 echo "${ECHO_T}$kde_cv_path" >&6; }
30542 UIC_PATH=$kde_cv_path
30546 if test -z "$UIC_PATH" ; then
30548 { echo "$as_me:$LINENO: WARNING: No Qt ui compiler (uic) found!
30549 Please check whether you installed Qt correctly.
30550 You need to have a running uic binary.
30551 configure tried to run $ac_cv_path_uic and the test didn't
30552 succeed. If configure shouldn't have tried this one, set
30553 the environment variable UIC to the right one before running
30556 echo "$as_me: WARNING: No Qt ui compiler (uic) found!
30557 Please check whether you installed Qt correctly.
30558 You need to have a running uic binary.
30559 configure tried to run $ac_cv_path_uic and the test didn't
30560 succeed. If configure shouldn't have tried this one, set
30561 the environment variable UIC to the right one before running
30569 if test $kde_qtver = 3; then
30571 { echo "$as_me:$LINENO: checking whether uic supports -L " >&5
30572 echo $ECHO_N "checking whether uic supports -L ... $ECHO_C" >&6; }
30573 kde_cache=`echo L | sed 'y% .=/+-%____p_%'`
30574 if { as_var=kde_cv_prog_uic_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
30575 echo $ECHO_N "(cached) $ECHO_C" >&6
30578 cat >conftest.ui <<EOT
30579 <!DOCTYPE UI><UI version="3" stdsetdef="1"></UI>
30581 ac_uic_testrun="$UIC_PATH -L /nonexistent conftest.ui >/dev/null"
30582 if { (eval echo "$as_me:$LINENO: \"$ac_uic_testrun\"") >&5
30583 (eval $ac_uic_testrun) 2>&5
30585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30586 (exit $ac_status); }; then
30587 eval "kde_cv_prog_uic_$kde_cache=yes"
30589 eval "kde_cv_prog_uic_$kde_cache=no"
30596 if eval "test \"`echo '$kde_cv_prog_uic_'$kde_cache`\" = yes"; then
30597 { echo "$as_me:$LINENO: result: yes" >&5
30598 echo "${ECHO_T}yes" >&6; }
30600 ac_uic_supports_libpath=yes
30602 { echo "$as_me:$LINENO: result: no" >&5
30603 echo "${ECHO_T}no" >&6; }
30605 ac_uic_supports_libpath=no
30609 { echo "$as_me:$LINENO: checking whether uic supports -nounload " >&5
30610 echo $ECHO_N "checking whether uic supports -nounload ... $ECHO_C" >&6; }
30611 kde_cache=`echo nounload | sed 'y% .=/+-%____p_%'`
30612 if { as_var=kde_cv_prog_uic_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
30613 echo $ECHO_N "(cached) $ECHO_C" >&6
30616 cat >conftest.ui <<EOT
30617 <!DOCTYPE UI><UI version="3" stdsetdef="1"></UI>
30619 ac_uic_testrun="$UIC_PATH -nounload conftest.ui >/dev/null"
30620 if { (eval echo "$as_me:$LINENO: \"$ac_uic_testrun\"") >&5
30621 (eval $ac_uic_testrun) 2>&5
30623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30624 (exit $ac_status); }; then
30625 eval "kde_cv_prog_uic_$kde_cache=yes"
30627 eval "kde_cv_prog_uic_$kde_cache=no"
30634 if eval "test \"`echo '$kde_cv_prog_uic_'$kde_cache`\" = yes"; then
30635 { echo "$as_me:$LINENO: result: yes" >&5
30636 echo "${ECHO_T}yes" >&6; }
30638 ac_uic_supports_nounload=yes
30640 { echo "$as_me:$LINENO: result: no" >&5
30641 echo "${ECHO_T}no" >&6; }
30643 ac_uic_supports_nounload=no
30647 if test x$ac_uic_supports_libpath = xyes; then
30648 UIC="$UIC -L \$(kde_widgetdir)"
30650 if test x$ac_uic_supports_nounload = xyes; then
30651 UIC="$UIC -nounload"
30656 UIC="echo uic not available: "
30663 if test $kde_qtver = 3; then
30671 if test -n "$LIBJPEG"; then
30672 { echo "$as_me:$LINENO: checking if Qt needs $LIBJPEG" >&5
30673 echo $ECHO_N "checking if Qt needs $LIBJPEG... $ECHO_C" >&6; }
30674 if test "${kde_cv_qt_jpeg+set}" = set; then
30675 echo $ECHO_N "(cached) $ECHO_C" >&6
30680 ac_cpp='$CXXCPP $CPPFLAGS'
30681 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30682 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30683 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30685 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
30688 ac_save_LIBS="$LIBS"
30689 LIBS="$all_libraries $USER_LDFLAGS $LIBQT"
30690 LIBS=`echo $LIBS | sed "s/$LIBJPEG//"`
30691 ac_save_CXXFLAGS="$CXXFLAGS"
30692 CXXFLAGS="$CXXFLAGS $all_includes $USER_INCLUDES"
30693 cat >conftest.$ac_ext <<_ACEOF
30696 cat confdefs.h >>conftest.$ac_ext
30697 cat >>conftest.$ac_ext <<_ACEOF
30698 /* end confdefs.h. */
30699 #include <qapplication.h>
30706 QApplication app(argc, argv);
30711 rm -f conftest.$ac_objext conftest$ac_exeext
30712 if { (ac_try="$ac_link"
30713 case "(($ac_try" in
30714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30715 *) ac_try_echo=$ac_try;;
30717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30718 (eval "$ac_link") 2>conftest.er1
30720 grep -v '^ *+' conftest.er1 >conftest.err
30722 cat conftest.err >&5
30723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30724 (exit $ac_status); } && {
30725 test -z "$ac_cxx_werror_flag" ||
30726 test ! -s conftest.err
30727 } && test -s conftest$ac_exeext &&
30728 $as_test_x conftest$ac_exeext; then
30729 eval "kde_cv_qt_jpeg=no"
30731 echo "$as_me: failed program was:" >&5
30732 sed 's/^/| /' conftest.$ac_ext >&5
30734 eval "kde_cv_qt_jpeg=yes"
30737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30738 conftest$ac_exeext conftest.$ac_ext
30739 LIBS="$ac_save_LIBS"
30740 CXXFLAGS="$ac_save_CXXFLAGS"
30742 ac_cpp='$CPP $CPPFLAGS'
30743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30752 if eval "test ! \"`echo $kde_cv_qt_jpeg`\" = no"; then
30753 { echo "$as_me:$LINENO: result: yes" >&5
30754 echo "${ECHO_T}yes" >&6; }
30755 LIBJPEG_QT='$(LIBJPEG)'
30757 { echo "$as_me:$LINENO: result: no" >&5
30758 echo "${ECHO_T}no" >&6; }
30764 if test "x$kde_use_qt_emb" != "xyes" && test "x$kde_use_qt_mac" != "xyes"; then
30765 LIB_QT="$kde_int_qt $LIBJPEG_QT "'$(LIBZ) $(LIBPNG) -lXext $(LIB_X11) $(LIBSM)'
30767 LIB_QT="$kde_int_qt $LIBJPEG_QT "'$(LIBZ) $(LIBPNG)'
30769 test -z "$KDE_MT_LIBS" || LIB_QT="$LIB_QT $KDE_MT_LIBS"
30770 for a in $qt_libdir/lib`echo ${kde_int_qt} | sed 's,^-l,,'`_incremental.*; do
30771 if test -e "$a"; then
30772 LIB_QT="$LIB_QT ${kde_int_qt}_incremental"
30789 { echo "$as_me:$LINENO: checking for rpath" >&5
30790 echo $ECHO_N "checking for rpath... $ECHO_C" >&6; }
30791 # Check whether --enable-rpath was given.
30792 if test "${enable_rpath+set}" = set; then
30793 enableval=$enable_rpath; USE_RPATH=$enableval
30799 if test -z "$KDE_RPATH" && test "$USE_RPATH" = "yes"; then
30801 KDE_RPATH="-R \$(libdir)"
30803 if test "$kde_libraries" != "$libdir"; then
30804 KDE_RPATH="$KDE_RPATH -R \$(kde_libraries)"
30807 if test -n "$qt_libraries"; then
30808 KDE_RPATH="$KDE_RPATH -R \$(qt_libraries)"
30810 if test -n "$X_LDFLAGS"; then
30811 X_RPATH="-R \$(x_libraries)"
30812 KDE_RPATH="$KDE_RPATH $X_RPATH"
30814 if test -n "$KDE_EXTRA_RPATH"; then
30815 KDE_RPATH="$KDE_RPATH \$(KDE_EXTRA_RPATH)"
30821 { echo "$as_me:$LINENO: result: $USE_RPATH" >&5
30822 echo "${ECHO_T}$USE_RPATH" >&6; }
30824 { echo "$as_me:$LINENO: checking for KDE" >&5
30825 echo $ECHO_N "checking for KDE... $ECHO_C" >&6; }
30827 if test "${prefix}" != NONE; then
30828 kde_includes=${includedir}
30831 test "x$exec_prefix" = xNONE && exec_prefix=$prefix
30833 while ac_kde_includes=`eval echo "$tmp"`; test "x$ac_kde_includes" != "x$tmp"; do tmp=$ac_kde_includes; done
30837 kde_libraries=${libdir}
30840 test "x$exec_prefix" = xNONE && exec_prefix=$prefix
30842 while ac_kde_libraries=`eval echo "$tmp"`; test "x$ac_kde_libraries" != "x$tmp"; do tmp=$ac_kde_libraries; done
30853 if test "${ac_cv_have_kde+set}" = set; then
30854 echo $ECHO_N "(cached) $ECHO_C" >&6
30856 #try to guess kde locations
30858 if test "$kde_qtver" = 1; then
30859 kde_check_header="ksock.h"
30860 kde_check_lib="libkdecore.la"
30862 kde_check_header="ksharedptr.h"
30863 kde_check_lib="libkio.la"
30866 if test -z ""; then
30868 kde_incdirs="$kde_libs_prefix/include /usr/lib/kde/include /usr/local/kde/include /usr/local/include /usr/kde/include /usr/include/kde /usr/include /opt/kde3/include /opt/kde/include $x_includes $qt_includes"
30869 test -n "$KDEDIR" && kde_incdirs="$KDEDIR/include $KDEDIR/include/kde $KDEDIR $kde_incdirs"
30870 kde_incdirs="$ac_kde_includes $kde_incdirs"
30873 for i in $kde_incdirs;
30875 for j in $kde_check_header;
30877 echo "configure: 30877: $i/$j" >&5
30878 if test -r "$i/$j"; then
30879 echo "taking that" >&5
30886 ac_kde_includes="$kde_incdir"
30888 if test -n "$ac_kde_includes" && test ! -r "$ac_kde_includes/$kde_check_header"; then
30889 { { echo "$as_me:$LINENO: error:
30890 in the prefix, you've chosen, are no KDE headers installed. This will fail.
30891 So, check this please and use another prefix!" >&5
30892 echo "$as_me: error:
30893 in the prefix, you've chosen, are no KDE headers installed. This will fail.
30894 So, check this please and use another prefix!" >&2;}
30895 { (exit 1); exit 1; }; }
30898 kde_libdirs="$kde_libs_prefix/lib${kdelibsuff} /usr/lib/kde/lib${kdelibsuff} /usr/local/kde/lib${kdelibsuff} /usr/kde/lib${kdelibsuff} /usr/lib${kdelibsuff}/kde /usr/lib${kdelibsuff}/kde3 /usr/lib${kdelibsuff} /usr/X11R6/lib${kdelibsuff} /usr/local/lib${kdelibsuff} /opt/kde3/lib${kdelibsuff} /opt/kde/lib${kdelibsuff} /usr/X11R6/kde/lib${kdelibsuff}"
30899 test -n "$KDEDIR" && kde_libdirs="$KDEDIR/lib${kdelibsuff} $KDEDIR $kde_libdirs"
30900 kde_libdirs="$ac_kde_libraries $libdir $kde_libdirs"
30903 for i in $kde_libdirs;
30905 for j in $kde_check_lib;
30907 echo "configure: 30907: $i/$j" >&5
30908 if test -r "$i/$j"; then
30909 echo "taking that" >&5
30916 ac_kde_libraries="$kde_libdir"
30921 for i in $kde_libdirs;
30923 for j in "kde3/plugins/designer/kdewidgets.la";
30925 echo "configure: 30925: $i/$j" >&5
30926 if test -r "$i/$j"; then
30927 echo "taking that" >&5
30935 if test -n "$ac_kde_libraries" && test ! -r "$ac_kde_libraries/$kde_check_lib"; then
30936 { { echo "$as_me:$LINENO: error:
30937 in the prefix, you've chosen, are no KDE libraries installed. This will fail.
30938 So, check this please and use another prefix!" >&5
30939 echo "$as_me: error:
30940 in the prefix, you've chosen, are no KDE libraries installed. This will fail.
30941 So, check this please and use another prefix!" >&2;}
30942 { (exit 1); exit 1; }; }
30945 if test -n "$kde_widgetdir" && test ! -r "$kde_widgetdir/kde3/plugins/designer/kdewidgets.la"; then
30946 { { echo "$as_me:$LINENO: error:
30947 I can't find the designer plugins. These are required and should have been installed
30949 echo "$as_me: error:
30950 I can't find the designer plugins. These are required and should have been installed
30952 { (exit 1); exit 1; }; }
30955 if test -n "$kde_widgetdir"; then
30956 kde_widgetdir="$kde_widgetdir/kde3/plugins/designer"
30960 if test "$ac_kde_includes" = NO || test "$ac_kde_libraries" = NO || test "$kde_widgetdir" = NO; then
30961 ac_cv_have_kde="have_kde=no"
30963 ac_cv_have_kde="have_kde=yes \
30964 ac_kde_includes=$ac_kde_includes ac_kde_libraries=$ac_kde_libraries"
30968 ac_cv_have_kde="have_kde=no"
30974 eval "$ac_cv_have_kde"
30976 if test "$have_kde" != "yes"; then
30977 if test "${prefix}" = NONE; then
30978 ac_kde_prefix="$ac_default_prefix"
30980 ac_kde_prefix="$prefix"
30982 if test "$exec_prefix" = NONE; then
30983 ac_kde_exec_prefix="$ac_kde_prefix"
30984 { echo "$as_me:$LINENO: result: will be installed in $ac_kde_prefix" >&5
30985 echo "${ECHO_T}will be installed in $ac_kde_prefix" >&6; }
30987 ac_kde_exec_prefix="$exec_prefix"
30988 { echo "$as_me:$LINENO: result: will be installed in $ac_kde_prefix and $ac_kde_exec_prefix" >&5
30989 echo "${ECHO_T}will be installed in $ac_kde_prefix and $ac_kde_exec_prefix" >&6; }
30992 kde_libraries="${libdir}"
30993 kde_includes="${includedir}"
30996 ac_cv_have_kde="have_kde=yes \
30997 ac_kde_includes=$ac_kde_includes ac_kde_libraries=$ac_kde_libraries"
30998 { echo "$as_me:$LINENO: result: libraries $ac_kde_libraries, headers $ac_kde_includes" >&5
30999 echo "${ECHO_T}libraries $ac_kde_libraries, headers $ac_kde_includes" >&6; }
31001 kde_libraries="$ac_kde_libraries"
31002 kde_includes="$ac_kde_includes"
31007 if test "$kde_includes" = "$x_includes" || test "$kde_includes" = "$qt_includes" || test "$kde_includes" = "/usr/include"; then
31010 KDE_INCLUDES="-I$kde_includes"
31011 all_includes="$KDE_INCLUDES $all_includes"
31014 KDE_DEFAULT_CXXFLAGS="-DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION"
31016 KDE_LDFLAGS="-L$kde_libraries"
31017 if test ! "$kde_libraries" = "$x_libraries" && test ! "$kde_libraries" = "$qt_libraries" ; then
31018 all_libraries="$KDE_LDFLAGS $all_libraries"
31026 all_libraries="$all_libraries $USER_LDFLAGS"
31027 all_includes="$all_includes $USER_INCLUDES"
31031 if test -z ""; then
31035 if test x$ac_uic_supports_libpath = xyes; then
31037 { echo "$as_me:$LINENO: checking if UIC has KDE plugins available" >&5
31038 echo $ECHO_N "checking if UIC has KDE plugins available... $ECHO_C" >&6; }
31039 if test "${kde_cv_uic_plugins+set}" = set; then
31040 echo $ECHO_N "(cached) $ECHO_C" >&6
31043 cat > actest.ui << EOF
31044 <!DOCTYPE UI><UI version="3.0" stdsetdef="1">
31045 <class>NewConnectionDialog</class>
31046 <widget class="QDialog">
31047 <widget class="KLineEdit">
31048 <property name="name">
31049 <cstring>testInput</cstring>
31058 kde_cv_uic_plugins=no
31059 kde_line="$UIC_PATH -L $kde_widgetdir"
31060 if test x$ac_uic_supports_nounload = xyes; then
31061 kde_line="$kde_line -nounload"
31063 kde_line="$kde_line -impl actest.h actest.ui > actest.cpp"
31064 if { (eval echo "$as_me:$LINENO: \"$kde_line\"") >&5
31065 (eval $kde_line) 2>&5
31067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31068 (exit $ac_status); }; then
31069 # if you're trying to debug this check and think it's incorrect,
31070 # better check your installation. The check _is_ correct - your
31071 # installation is not.
31072 if test -f actest.cpp && grep klineedit actest.cpp > /dev/null; then
31073 kde_cv_uic_plugins=yes
31076 rm -f actest.ui actest.cpp
31081 { echo "$as_me:$LINENO: result: $kde_cv_uic_plugins" >&5
31082 echo "${ECHO_T}$kde_cv_uic_plugins" >&6; }
31083 if test "$kde_cv_uic_plugins" != yes; then
31084 { { echo "$as_me:$LINENO: error: you need to install kdelibs first." >&5
31085 echo "$as_me: error: you need to install kdelibs first." >&2;}
31086 { (exit 1); exit 1; }; }
31092 ac_kde_libraries="$kde_libdir"
31098 # Check whether --enable-path-check was given.
31099 if test "${enable_path_check+set}" = set; then
31100 enableval=$enable_path_check;
31101 if test "$enableval" = "no";
31102 then ac_use_path_checking="default"
31103 else ac_use_path_checking=""
31108 if test "$kde_qtver" = 1;
31109 then ac_use_path_checking=""
31110 else ac_use_path_checking="default"
31120 { echo "$as_me:$LINENO: checking for KDE paths" >&5
31121 echo $ECHO_N "checking for KDE paths... $ECHO_C" >&6; }
31123 kde_cached_paths=yes
31124 if test "${kde_cv_all_paths+set}" = set; then
31125 echo $ECHO_N "(cached) $ECHO_C" >&6
31129 if test "$ac_use_path_checking" = "default"; then
31131 if test -z "$kde_htmldir"; then
31132 kde_htmldir='\${datadir}/doc/HTML'
31134 if test -z "$kde_appsdir"; then
31135 kde_appsdir='\${datadir}/applnk'
31137 if test -z "$kde_icondir"; then
31138 kde_icondir='\${datadir}/icons'
31140 if test -z "$kde_sounddir"; then
31141 kde_sounddir='\${datadir}/sounds'
31143 if test -z "$kde_datadir"; then
31144 kde_datadir='\${datadir}/apps'
31146 if test -z "$kde_locale"; then
31147 kde_locale='\${datadir}/locale'
31149 if test -z "$kde_cgidir"; then
31150 kde_cgidir='\${exec_prefix}/cgi-bin'
31152 if test -z "$kde_confdir"; then
31153 kde_confdir='\${datadir}/config'
31155 if test -z "$kde_kcfgdir"; then
31156 kde_kcfgdir='\${datadir}/config.kcfg'
31158 if test -z "$kde_mimedir"; then
31159 kde_mimedir='\${datadir}/mimelnk'
31161 if test -z "$kde_toolbardir"; then
31162 kde_toolbardir='\${datadir}/toolbar'
31164 if test -z "$kde_wallpaperdir"; then
31165 kde_wallpaperdir='\${datadir}/wallpapers'
31167 if test -z "$kde_templatesdir"; then
31168 kde_templatesdir='\${datadir}/templates'
31170 if test -z "$kde_bindir"; then
31171 kde_bindir='\${exec_prefix}/bin'
31173 if test -z "$kde_servicesdir"; then
31174 kde_servicesdir='\${datadir}/services'
31176 if test -z "$kde_servicetypesdir"; then
31177 kde_servicetypesdir='\${datadir}/servicetypes'
31179 if test -z "$kde_moduledir"; then
31180 if test "$kde_qtver" = "2"; then
31181 kde_moduledir='\${libdir}/kde2'
31183 kde_moduledir='\${libdir}/kde3'
31186 if test -z "$kde_styledir"; then
31187 kde_styledir='\${libdir}/kde3/plugins/styles'
31189 if test -z "$kde_widgetdir"; then
31190 kde_widgetdir='\${libdir}/kde3/plugins/designer'
31192 if test -z "$xdg_appsdir"; then
31193 xdg_appsdir='\${datadir}/applications/kde'
31195 if test -z "$xdg_menudir"; then
31196 xdg_menudir='\${sysconfdir}/xdg/menus'
31198 if test -z "$xdg_directorydir"; then
31199 xdg_directorydir='\${datadir}/desktop-directories'
31203 kde_cv_all_paths="kde_have_all_paths=\"yes\" \
31204 kde_htmldir=\"$kde_htmldir\" \
31205 kde_appsdir=\"$kde_appsdir\" \
31206 kde_icondir=\"$kde_icondir\" \
31207 kde_sounddir=\"$kde_sounddir\" \
31208 kde_datadir=\"$kde_datadir\" \
31209 kde_locale=\"$kde_locale\" \
31210 kde_cgidir=\"$kde_cgidir\" \
31211 kde_confdir=\"$kde_confdir\" \
31212 kde_kcfgdir=\"$kde_kcfgdir\" \
31213 kde_mimedir=\"$kde_mimedir\" \
31214 kde_toolbardir=\"$kde_toolbardir\" \
31215 kde_wallpaperdir=\"$kde_wallpaperdir\" \
31216 kde_templatesdir=\"$kde_templatesdir\" \
31217 kde_bindir=\"$kde_bindir\" \
31218 kde_servicesdir=\"$kde_servicesdir\" \
31219 kde_servicetypesdir=\"$kde_servicetypesdir\" \
31220 kde_moduledir=\"$kde_moduledir\" \
31221 kde_styledir=\"$kde_styledir\" \
31222 kde_widgetdir=\"$kde_widgetdir\" \
31223 xdg_appsdir=\"$xdg_appsdir\" \
31224 xdg_menudir=\"$xdg_menudir\" \
31225 xdg_directorydir=\"$xdg_directorydir\" \
31226 kde_result=defaults"
31231 if test $kde_qtver = 1; then
31232 { echo "$as_me:$LINENO: result: compiling" >&5
31233 echo "${ECHO_T}compiling" >&6; }
31236 { echo "$as_me:$LINENO: checking for KDE headers installed" >&5
31237 echo $ECHO_N "checking for KDE headers installed... $ECHO_C" >&6; }
31240 ac_cpp='$CXXCPP $CPPFLAGS'
31241 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31242 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31243 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31245 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
31248 cat > conftest.$ac_ext <<EOF
31249 #ifdef STDC_HEADERS
31250 # include <stdlib.h>
31253 #include "confdefs.h"
31257 printf("kde_htmldir=\\"%s\\"\n", KApplication::kde_htmldir().data());
31258 printf("kde_appsdir=\\"%s\\"\n", KApplication::kde_appsdir().data());
31259 printf("kde_icondir=\\"%s\\"\n", KApplication::kde_icondir().data());
31260 printf("kde_sounddir=\\"%s\\"\n", KApplication::kde_sounddir().data());
31261 printf("kde_datadir=\\"%s\\"\n", KApplication::kde_datadir().data());
31262 printf("kde_locale=\\"%s\\"\n", KApplication::kde_localedir().data());
31263 printf("kde_cgidir=\\"%s\\"\n", KApplication::kde_cgidir().data());
31264 printf("kde_confdir=\\"%s\\"\n", KApplication::kde_configdir().data());
31265 printf("kde_mimedir=\\"%s\\"\n", KApplication::kde_mimedir().data());
31266 printf("kde_toolbardir=\\"%s\\"\n", KApplication::kde_toolbardir().data());
31267 printf("kde_wallpaperdir=\\"%s\\"\n",
31268 KApplication::kde_wallpaperdir().data());
31269 printf("kde_bindir=\\"%s\\"\n", KApplication::kde_bindir().data());
31270 printf("kde_partsdir=\\"%s\\"\n", KApplication::kde_partsdir().data());
31271 printf("kde_servicesdir=\\"/tmp/dummy\\"\n");
31272 printf("kde_servicetypesdir=\\"/tmp/dummy\\"\n");
31273 printf("kde_moduledir=\\"/tmp/dummy\\"\n");
31274 printf("kde_styledir=\\"/tmp/dummy\\"\n");
31275 printf("kde_widgetdir=\\"/tmp/dummy\\"\n");
31276 printf("xdg_appsdir=\\"/tmp/dummy\\"\n");
31277 printf("xdg_menudir=\\"/tmp/dummy\\"\n");
31278 printf("xdg_directorydir=\\"/tmp/dummy\\"\n");
31279 printf("kde_kcfgdir=\\"/tmp/dummy\\"\n");
31284 ac_save_CPPFLAGS=$CPPFLAGS
31285 CPPFLAGS="$all_includes $CPPFLAGS"
31286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31287 (eval $ac_compile) 2>&5
31289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31290 (exit $ac_status); }; then
31291 { echo "$as_me:$LINENO: result: yes" >&5
31292 echo "${ECHO_T}yes" >&6; }
31294 { { echo "$as_me:$LINENO: error: your system is not able to compile a small KDE application!
31295 Check, if you installed the KDE header files correctly.
31296 For more details about this problem, look at the end of config.log." >&5
31297 echo "$as_me: error: your system is not able to compile a small KDE application!
31298 Check, if you installed the KDE header files correctly.
31299 For more details about this problem, look at the end of config.log." >&2;}
31300 { (exit 1); exit 1; }; }
31302 CPPFLAGS=$ac_save_CPPFLAGS
31305 ac_cpp='$CPP $CPPFLAGS'
31306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31314 if test -n "$USE_RPATH"; then
31316 if test -n "$kde_libraries"; then
31317 KDE_TEST_RPATH="-R $kde_libraries"
31320 if test -n "$qt_libraries"; then
31321 KDE_TEST_RPATH="$KDE_TEST_RPATH -R $qt_libraries"
31324 if test -n "$x_libraries"; then
31325 KDE_TEST_RPATH="$KDE_TEST_RPATH -R $x_libraries"
31328 KDE_TEST_RPATH="$KDE_TEST_RPATH $KDE_EXTRA_RPATH"
31331 { echo "$as_me:$LINENO: checking for KDE libraries installed" >&5
31332 echo $ECHO_N "checking for KDE libraries installed... $ECHO_C" >&6; }
31333 ac_link='$LIBTOOL_SHELL --silent --mode=link ${CXX-g++} -o conftest $CXXFLAGS $all_includes $CPPFLAGS $LDFLAGS $all_libraries conftest.$ac_ext $LIBS -lkdecore $LIBQT $KDE_TEST_RPATH 1>&5'
31335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31336 (eval $ac_link) 2>&5
31338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31339 (exit $ac_status); } && test -s conftest; then
31340 { echo "$as_me:$LINENO: result: yes" >&5
31341 echo "${ECHO_T}yes" >&6; }
31343 { { echo "$as_me:$LINENO: error: your system fails at linking a small KDE application!
31344 Check, if your compiler is installed correctly and if you have used the
31345 same compiler to compile Qt and kdelibs as you did use now.
31346 For more details about this problem, look at the end of config.log." >&5
31347 echo "$as_me: error: your system fails at linking a small KDE application!
31348 Check, if your compiler is installed correctly and if you have used the
31349 same compiler to compile Qt and kdelibs as you did use now.
31350 For more details about this problem, look at the end of config.log." >&2;}
31351 { (exit 1); exit 1; }; }
31354 if eval `KDEDIR= ./conftest 2>&5`; then
31357 kde_result=problems
31360 KDEDIR= ./conftest 2> /dev/null >&5 # make an echo for config.log
31361 kde_have_all_paths=yes
31364 kde_cv_all_paths="kde_have_all_paths=\"yes\" \
31365 kde_htmldir=\"$kde_htmldir\" \
31366 kde_appsdir=\"$kde_appsdir\" \
31367 kde_icondir=\"$kde_icondir\" \
31368 kde_sounddir=\"$kde_sounddir\" \
31369 kde_datadir=\"$kde_datadir\" \
31370 kde_locale=\"$kde_locale\" \
31371 kde_cgidir=\"$kde_cgidir\" \
31372 kde_confdir=\"$kde_confdir\" \
31373 kde_kcfgdir=\"$kde_kcfgdir\" \
31374 kde_mimedir=\"$kde_mimedir\" \
31375 kde_toolbardir=\"$kde_toolbardir\" \
31376 kde_wallpaperdir=\"$kde_wallpaperdir\" \
31377 kde_templatesdir=\"$kde_templatesdir\" \
31378 kde_bindir=\"$kde_bindir\" \
31379 kde_servicesdir=\"$kde_servicesdir\" \
31380 kde_servicetypesdir=\"$kde_servicetypesdir\" \
31381 kde_moduledir=\"$kde_moduledir\" \
31382 kde_styledir=\"$kde_styledir\" \
31383 kde_widgetdir=\"$kde_widgetdir\" \
31384 xdg_appsdir=\"$xdg_appsdir\" \
31385 xdg_menudir=\"$xdg_menudir\" \
31386 xdg_directorydir=\"$xdg_directorydir\" \
31387 kde_result=$kde_result"
31392 { { echo "$as_me:$LINENO: error: path checking not yet supported for KDE 2" >&5
31393 echo "$as_me: error: path checking not yet supported for KDE 2" >&2;}
31394 { (exit 1); exit 1; }; }
31399 kde_cached_paths=no
31403 eval "$kde_cv_all_paths"
31404 if test -z "$kde_htmldir" || test -z "$kde_appsdir" ||
31405 test -z "$kde_icondir" || test -z "$kde_sounddir" ||
31406 test -z "$kde_datadir" || test -z "$kde_locale" ||
31407 test -z "$kde_cgidir" || test -z "$kde_confdir" ||
31408 test -z "$kde_kcfgdir" ||
31409 test -z "$kde_mimedir" || test -z "$kde_toolbardir" ||
31410 test -z "$kde_wallpaperdir" || test -z "$kde_templatesdir" ||
31411 test -z "$kde_bindir" || test -z "$kde_servicesdir" ||
31412 test -z "$kde_servicetypesdir" || test -z "$kde_moduledir" ||
31413 test -z "$kde_styledir" || test -z "kde_widgetdir" ||
31414 test -z "$xdg_appsdir" || test -z "$xdg_menudir" || test -z "$xdg_directorydir" ||
31415 test "x$kde_have_all_paths" != "xyes"; then
31416 kde_have_all_paths=no
31419 if test "$kde_have_all_paths" = "no" && test "$kde_cached_paths" = "yes"; then
31420 # wrong values were cached, may be, we can set better ones
31422 kde_htmldir= kde_appsdir= kde_icondir= kde_sounddir=
31423 kde_datadir= kde_locale= kde_cgidir= kde_confdir= kde_kcfgdir=
31424 kde_mimedir= kde_toolbardir= kde_wallpaperdir= kde_templatesdir=
31425 kde_bindir= kde_servicesdir= kde_servicetypesdir= kde_moduledir=
31426 kde_have_all_paths=
31429 xdg_appsdir = xdg_menudir= xdg_directorydir=
31431 if test "$ac_use_path_checking" = "default"; then
31433 if test -z "$kde_htmldir"; then
31434 kde_htmldir='\${datadir}/doc/HTML'
31436 if test -z "$kde_appsdir"; then
31437 kde_appsdir='\${datadir}/applnk'
31439 if test -z "$kde_icondir"; then
31440 kde_icondir='\${datadir}/icons'
31442 if test -z "$kde_sounddir"; then
31443 kde_sounddir='\${datadir}/sounds'
31445 if test -z "$kde_datadir"; then
31446 kde_datadir='\${datadir}/apps'
31448 if test -z "$kde_locale"; then
31449 kde_locale='\${datadir}/locale'
31451 if test -z "$kde_cgidir"; then
31452 kde_cgidir='\${exec_prefix}/cgi-bin'
31454 if test -z "$kde_confdir"; then
31455 kde_confdir='\${datadir}/config'
31457 if test -z "$kde_kcfgdir"; then
31458 kde_kcfgdir='\${datadir}/config.kcfg'
31460 if test -z "$kde_mimedir"; then
31461 kde_mimedir='\${datadir}/mimelnk'
31463 if test -z "$kde_toolbardir"; then
31464 kde_toolbardir='\${datadir}/toolbar'
31466 if test -z "$kde_wallpaperdir"; then
31467 kde_wallpaperdir='\${datadir}/wallpapers'
31469 if test -z "$kde_templatesdir"; then
31470 kde_templatesdir='\${datadir}/templates'
31472 if test -z "$kde_bindir"; then
31473 kde_bindir='\${exec_prefix}/bin'
31475 if test -z "$kde_servicesdir"; then
31476 kde_servicesdir='\${datadir}/services'
31478 if test -z "$kde_servicetypesdir"; then
31479 kde_servicetypesdir='\${datadir}/servicetypes'
31481 if test -z "$kde_moduledir"; then
31482 if test "$kde_qtver" = "2"; then
31483 kde_moduledir='\${libdir}/kde2'
31485 kde_moduledir='\${libdir}/kde3'
31488 if test -z "$kde_styledir"; then
31489 kde_styledir='\${libdir}/kde3/plugins/styles'
31491 if test -z "$kde_widgetdir"; then
31492 kde_widgetdir='\${libdir}/kde3/plugins/designer'
31494 if test -z "$xdg_appsdir"; then
31495 xdg_appsdir='\${datadir}/applications/kde'
31497 if test -z "$xdg_menudir"; then
31498 xdg_menudir='\${sysconfdir}/xdg/menus'
31500 if test -z "$xdg_directorydir"; then
31501 xdg_directorydir='\${datadir}/desktop-directories'
31505 kde_cv_all_paths="kde_have_all_paths=\"yes\" \
31506 kde_htmldir=\"$kde_htmldir\" \
31507 kde_appsdir=\"$kde_appsdir\" \
31508 kde_icondir=\"$kde_icondir\" \
31509 kde_sounddir=\"$kde_sounddir\" \
31510 kde_datadir=\"$kde_datadir\" \
31511 kde_locale=\"$kde_locale\" \
31512 kde_cgidir=\"$kde_cgidir\" \
31513 kde_confdir=\"$kde_confdir\" \
31514 kde_kcfgdir=\"$kde_kcfgdir\" \
31515 kde_mimedir=\"$kde_mimedir\" \
31516 kde_toolbardir=\"$kde_toolbardir\" \
31517 kde_wallpaperdir=\"$kde_wallpaperdir\" \
31518 kde_templatesdir=\"$kde_templatesdir\" \
31519 kde_bindir=\"$kde_bindir\" \
31520 kde_servicesdir=\"$kde_servicesdir\" \
31521 kde_servicetypesdir=\"$kde_servicetypesdir\" \
31522 kde_moduledir=\"$kde_moduledir\" \
31523 kde_styledir=\"$kde_styledir\" \
31524 kde_widgetdir=\"$kde_widgetdir\" \
31525 xdg_appsdir=\"$xdg_appsdir\" \
31526 xdg_menudir=\"$xdg_menudir\" \
31527 xdg_directorydir=\"$xdg_directorydir\" \
31528 kde_result=defaults"
31533 if test $kde_qtver = 1; then
31534 { echo "$as_me:$LINENO: result: compiling" >&5
31535 echo "${ECHO_T}compiling" >&6; }
31538 { echo "$as_me:$LINENO: checking for KDE headers installed" >&5
31539 echo $ECHO_N "checking for KDE headers installed... $ECHO_C" >&6; }
31542 ac_cpp='$CXXCPP $CPPFLAGS'
31543 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31544 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31545 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31547 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
31550 cat > conftest.$ac_ext <<EOF
31551 #ifdef STDC_HEADERS
31552 # include <stdlib.h>
31555 #include "confdefs.h"
31559 printf("kde_htmldir=\\"%s\\"\n", KApplication::kde_htmldir().data());
31560 printf("kde_appsdir=\\"%s\\"\n", KApplication::kde_appsdir().data());
31561 printf("kde_icondir=\\"%s\\"\n", KApplication::kde_icondir().data());
31562 printf("kde_sounddir=\\"%s\\"\n", KApplication::kde_sounddir().data());
31563 printf("kde_datadir=\\"%s\\"\n", KApplication::kde_datadir().data());
31564 printf("kde_locale=\\"%s\\"\n", KApplication::kde_localedir().data());
31565 printf("kde_cgidir=\\"%s\\"\n", KApplication::kde_cgidir().data());
31566 printf("kde_confdir=\\"%s\\"\n", KApplication::kde_configdir().data());
31567 printf("kde_mimedir=\\"%s\\"\n", KApplication::kde_mimedir().data());
31568 printf("kde_toolbardir=\\"%s\\"\n", KApplication::kde_toolbardir().data());
31569 printf("kde_wallpaperdir=\\"%s\\"\n",
31570 KApplication::kde_wallpaperdir().data());
31571 printf("kde_bindir=\\"%s\\"\n", KApplication::kde_bindir().data());
31572 printf("kde_partsdir=\\"%s\\"\n", KApplication::kde_partsdir().data());
31573 printf("kde_servicesdir=\\"/tmp/dummy\\"\n");
31574 printf("kde_servicetypesdir=\\"/tmp/dummy\\"\n");
31575 printf("kde_moduledir=\\"/tmp/dummy\\"\n");
31576 printf("kde_styledir=\\"/tmp/dummy\\"\n");
31577 printf("kde_widgetdir=\\"/tmp/dummy\\"\n");
31578 printf("xdg_appsdir=\\"/tmp/dummy\\"\n");
31579 printf("xdg_menudir=\\"/tmp/dummy\\"\n");
31580 printf("xdg_directorydir=\\"/tmp/dummy\\"\n");
31581 printf("kde_kcfgdir=\\"/tmp/dummy\\"\n");
31586 ac_save_CPPFLAGS=$CPPFLAGS
31587 CPPFLAGS="$all_includes $CPPFLAGS"
31588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31589 (eval $ac_compile) 2>&5
31591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31592 (exit $ac_status); }; then
31593 { echo "$as_me:$LINENO: result: yes" >&5
31594 echo "${ECHO_T}yes" >&6; }
31596 { { echo "$as_me:$LINENO: error: your system is not able to compile a small KDE application!
31597 Check, if you installed the KDE header files correctly.
31598 For more details about this problem, look at the end of config.log." >&5
31599 echo "$as_me: error: your system is not able to compile a small KDE application!
31600 Check, if you installed the KDE header files correctly.
31601 For more details about this problem, look at the end of config.log." >&2;}
31602 { (exit 1); exit 1; }; }
31604 CPPFLAGS=$ac_save_CPPFLAGS
31607 ac_cpp='$CPP $CPPFLAGS'
31608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31616 if test -n "$USE_RPATH"; then
31618 if test -n "$kde_libraries"; then
31619 KDE_TEST_RPATH="-R $kde_libraries"
31622 if test -n "$qt_libraries"; then
31623 KDE_TEST_RPATH="$KDE_TEST_RPATH -R $qt_libraries"
31626 if test -n "$x_libraries"; then
31627 KDE_TEST_RPATH="$KDE_TEST_RPATH -R $x_libraries"
31630 KDE_TEST_RPATH="$KDE_TEST_RPATH $KDE_EXTRA_RPATH"
31633 { echo "$as_me:$LINENO: checking for KDE libraries installed" >&5
31634 echo $ECHO_N "checking for KDE libraries installed... $ECHO_C" >&6; }
31635 ac_link='$LIBTOOL_SHELL --silent --mode=link ${CXX-g++} -o conftest $CXXFLAGS $all_includes $CPPFLAGS $LDFLAGS $all_libraries conftest.$ac_ext $LIBS -lkdecore $LIBQT $KDE_TEST_RPATH 1>&5'
31637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31638 (eval $ac_link) 2>&5
31640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31641 (exit $ac_status); } && test -s conftest; then
31642 { echo "$as_me:$LINENO: result: yes" >&5
31643 echo "${ECHO_T}yes" >&6; }
31645 { { echo "$as_me:$LINENO: error: your system fails at linking a small KDE application!
31646 Check, if your compiler is installed correctly and if you have used the
31647 same compiler to compile Qt and kdelibs as you did use now.
31648 For more details about this problem, look at the end of config.log." >&5
31649 echo "$as_me: error: your system fails at linking a small KDE application!
31650 Check, if your compiler is installed correctly and if you have used the
31651 same compiler to compile Qt and kdelibs as you did use now.
31652 For more details about this problem, look at the end of config.log." >&2;}
31653 { (exit 1); exit 1; }; }
31656 if eval `KDEDIR= ./conftest 2>&5`; then
31659 kde_result=problems
31662 KDEDIR= ./conftest 2> /dev/null >&5 # make an echo for config.log
31663 kde_have_all_paths=yes
31666 kde_cv_all_paths="kde_have_all_paths=\"yes\" \
31667 kde_htmldir=\"$kde_htmldir\" \
31668 kde_appsdir=\"$kde_appsdir\" \
31669 kde_icondir=\"$kde_icondir\" \
31670 kde_sounddir=\"$kde_sounddir\" \
31671 kde_datadir=\"$kde_datadir\" \
31672 kde_locale=\"$kde_locale\" \
31673 kde_cgidir=\"$kde_cgidir\" \
31674 kde_confdir=\"$kde_confdir\" \
31675 kde_kcfgdir=\"$kde_kcfgdir\" \
31676 kde_mimedir=\"$kde_mimedir\" \
31677 kde_toolbardir=\"$kde_toolbardir\" \
31678 kde_wallpaperdir=\"$kde_wallpaperdir\" \
31679 kde_templatesdir=\"$kde_templatesdir\" \
31680 kde_bindir=\"$kde_bindir\" \
31681 kde_servicesdir=\"$kde_servicesdir\" \
31682 kde_servicetypesdir=\"$kde_servicetypesdir\" \
31683 kde_moduledir=\"$kde_moduledir\" \
31684 kde_styledir=\"$kde_styledir\" \
31685 kde_widgetdir=\"$kde_widgetdir\" \
31686 xdg_appsdir=\"$xdg_appsdir\" \
31687 xdg_menudir=\"$xdg_menudir\" \
31688 xdg_directorydir=\"$xdg_directorydir\" \
31689 kde_result=$kde_result"
31694 { { echo "$as_me:$LINENO: error: path checking not yet supported for KDE 2" >&5
31695 echo "$as_me: error: path checking not yet supported for KDE 2" >&2;}
31696 { (exit 1); exit 1; }; }
31701 eval "$kde_cv_all_paths"
31702 if test -z "$kde_htmldir" || test -z "$kde_appsdir" ||
31703 test -z "$kde_icondir" || test -z "$kde_sounddir" ||
31704 test -z "$kde_datadir" || test -z "$kde_locale" ||
31705 test -z "$kde_cgidir" || test -z "$kde_confdir" ||
31706 test -z "$kde_kcfgdir" ||
31707 test -z "$kde_mimedir" || test -z "$kde_toolbardir" ||
31708 test -z "$kde_wallpaperdir" || test -z "$kde_templatesdir" ||
31709 test -z "$kde_bindir" || test -z "$kde_servicesdir" ||
31710 test -z "$kde_servicetypesdir" || test -z "$kde_moduledir" ||
31711 test -z "$kde_styledir" || test -z "kde_widgetdir" ||
31712 test -z "$xdg_appsdir" || test -z "$xdg_menudir" || test -z "$xdg_directorydir" ||
31713 test "x$kde_have_all_paths" != "xyes"; then
31714 kde_have_all_paths=no
31717 kde_result="$kde_result (cache overridden)"
31719 if test "$kde_have_all_paths" = "no"; then
31720 { { echo "$as_me:$LINENO: error: configure could not run a little KDE program to test the environment.
31721 Since it had compiled and linked before, it must be a strange problem on your system.
31722 Look at config.log for details. If you are not able to fix this, look at
31723 http://www.kde.org/faq/installation.html or any www.kde.org mirror.
31724 (If you're using an egcs version on Linux, you may update binutils!)
31726 echo "$as_me: error: configure could not run a little KDE program to test the environment.
31727 Since it had compiled and linked before, it must be a strange problem on your system.
31728 Look at config.log for details. If you are not able to fix this, look at
31729 http://www.kde.org/faq/installation.html or any www.kde.org mirror.
31730 (If you're using an egcs version on Linux, you may update binutils!)
31732 { (exit 1); exit 1; }; }
31735 { echo "$as_me:$LINENO: result: $kde_result" >&5
31736 echo "${ECHO_T}$kde_result" >&6; }
31743 # Check whether --with-arts was given.
31744 if test "${with_arts+set}" = set; then
31745 withval=$with_arts; build_arts=$withval
31753 if test "$build_arts" '!=' "no"; then
31755 include_ARTS_FALSE='#'
31757 include_ARTS_TRUE='#'
31758 include_ARTS_FALSE=
31761 if test "$build_arts" = "no"; then
31763 cat >>confdefs.h <<\_ACEOF
31764 #define WITHOUT_ARTS 1
31770 kde_default_bindirs="/usr/bin /usr/local/bin /opt/local/bin /usr/X11R6/bin /opt/kde/bin /opt/kde3/bin /usr/kde/bin /usr/local/kde/bin"
31771 test -n "$KDEDIR" && kde_default_bindirs="$KDEDIR/bin $kde_default_bindirs"
31772 if test -n "$KDEDIRS"; then
31775 for dir in $KDEDIRS; do
31776 kde_default_bindirs="$dir/bin $kde_default_bindirs "
31781 kde_default_bindirs="$exec_prefix/bin $prefix/bin $kde_libs_prefix/bin $kde_default_bindirs"
31783 { echo "$as_me:$LINENO: checking for dcopidl" >&5
31784 echo $ECHO_N "checking for dcopidl... $ECHO_C" >&6; }
31785 if test -n "$DCOPIDL"; then
31786 kde_cv_path="$DCOPIDL";
31788 kde_cache=`echo dcopidl | sed 'y%./+-%__p_%'`
31790 if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
31791 echo $ECHO_N "(cached) $ECHO_C" >&6
31798 for dir in $PATH; do
31801 if test -z ""; then dirs="$kde_default_bindirs $dirs"
31802 else dirs="$dirs $kde_default_bindirs"
31806 for dir in $dirs; do
31807 if test -x "$dir/dcopidl"; then
31810 evalstr="$dir/dcopidl 2>&1 "
31811 if eval $evalstr; then
31812 kde_cv_path="$dir/dcopidl"
31816 kde_cv_path="$dir/dcopidl"
31822 eval "kde_cv_path_$kde_cache=$kde_cv_path"
31828 eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
31832 if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
31833 { echo "$as_me:$LINENO: result: not found" >&5
31834 echo "${ECHO_T}not found" >&6; }
31836 { { echo "$as_me:$LINENO: error: The important program dcopidl was not found!
31837 Please check whether you installed KDE correctly.
31839 echo "$as_me: error: The important program dcopidl was not found!
31840 Please check whether you installed KDE correctly.
31842 { (exit 1); exit 1; }; }
31845 { echo "$as_me:$LINENO: result: $kde_cv_path" >&5
31846 echo "${ECHO_T}$kde_cv_path" >&6; }
31847 DCOPIDL=$kde_cv_path
31852 { echo "$as_me:$LINENO: checking for dcopidl2cpp" >&5
31853 echo $ECHO_N "checking for dcopidl2cpp... $ECHO_C" >&6; }
31854 if test -n "$DCOPIDL2CPP"; then
31855 kde_cv_path="$DCOPIDL2CPP";
31857 kde_cache=`echo dcopidl2cpp | sed 'y%./+-%__p_%'`
31859 if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
31860 echo $ECHO_N "(cached) $ECHO_C" >&6
31867 for dir in $PATH; do
31870 if test -z ""; then dirs="$kde_default_bindirs $dirs"
31871 else dirs="$dirs $kde_default_bindirs"
31875 for dir in $dirs; do
31876 if test -x "$dir/dcopidl2cpp"; then
31879 evalstr="$dir/dcopidl2cpp 2>&1 "
31880 if eval $evalstr; then
31881 kde_cv_path="$dir/dcopidl2cpp"
31885 kde_cv_path="$dir/dcopidl2cpp"
31891 eval "kde_cv_path_$kde_cache=$kde_cv_path"
31897 eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
31901 if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
31902 { echo "$as_me:$LINENO: result: not found" >&5
31903 echo "${ECHO_T}not found" >&6; }
31905 { { echo "$as_me:$LINENO: error: The important program dcopidl2cpp was not found!
31906 Please check whether you installed KDE correctly.
31908 echo "$as_me: error: The important program dcopidl2cpp was not found!
31909 Please check whether you installed KDE correctly.
31911 { (exit 1); exit 1; }; }
31914 { echo "$as_me:$LINENO: result: $kde_cv_path" >&5
31915 echo "${ECHO_T}$kde_cv_path" >&6; }
31916 DCOPIDL2CPP=$kde_cv_path
31920 if test "$build_arts" '!=' "no"; then
31922 { echo "$as_me:$LINENO: checking for mcopidl" >&5
31923 echo $ECHO_N "checking for mcopidl... $ECHO_C" >&6; }
31924 if test -n "$MCOPIDL"; then
31925 kde_cv_path="$MCOPIDL";
31927 kde_cache=`echo mcopidl | sed 'y%./+-%__p_%'`
31929 if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
31930 echo $ECHO_N "(cached) $ECHO_C" >&6
31937 for dir in $PATH; do
31940 if test -z ""; then dirs="$kde_default_bindirs $dirs"
31941 else dirs="$dirs $kde_default_bindirs"
31945 for dir in $dirs; do
31946 if test -x "$dir/mcopidl"; then
31949 evalstr="$dir/mcopidl 2>&1 "
31950 if eval $evalstr; then
31951 kde_cv_path="$dir/mcopidl"
31955 kde_cv_path="$dir/mcopidl"
31961 eval "kde_cv_path_$kde_cache=$kde_cv_path"
31967 eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
31971 if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
31972 { echo "$as_me:$LINENO: result: not found" >&5
31973 echo "${ECHO_T}not found" >&6; }
31975 { { echo "$as_me:$LINENO: error: The important program mcopidl was not found!
31976 Please check whether you installed aRts correctly or use
31977 --without-arts to compile without aRts support (this will remove functionality).
31979 echo "$as_me: error: The important program mcopidl was not found!
31980 Please check whether you installed aRts correctly or use
31981 --without-arts to compile without aRts support (this will remove functionality).
31983 { (exit 1); exit 1; }; }
31986 { echo "$as_me:$LINENO: result: $kde_cv_path" >&5
31987 echo "${ECHO_T}$kde_cv_path" >&6; }
31988 MCOPIDL=$kde_cv_path
31993 { echo "$as_me:$LINENO: checking for artsc-config" >&5
31994 echo $ECHO_N "checking for artsc-config... $ECHO_C" >&6; }
31995 if test -n "$ARTSCCONFIG"; then
31996 kde_cv_path="$ARTSCCONFIG";
31998 kde_cache=`echo artsc-config | sed 'y%./+-%__p_%'`
32000 if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
32001 echo $ECHO_N "(cached) $ECHO_C" >&6
32008 for dir in $PATH; do
32011 if test -z ""; then dirs="$kde_default_bindirs $dirs"
32012 else dirs="$dirs $kde_default_bindirs"
32016 for dir in $dirs; do
32017 if test -x "$dir/artsc-config"; then
32020 evalstr="$dir/artsc-config 2>&1 "
32021 if eval $evalstr; then
32022 kde_cv_path="$dir/artsc-config"
32026 kde_cv_path="$dir/artsc-config"
32032 eval "kde_cv_path_$kde_cache=$kde_cv_path"
32038 eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
32042 if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
32043 { echo "$as_me:$LINENO: result: not found" >&5
32044 echo "${ECHO_T}not found" >&6; }
32046 { { echo "$as_me:$LINENO: error: The important program artsc-config was not found!
32047 Please check whether you installed aRts correctly or use
32048 --without-arts to compile without aRts support (this will remove functionality).
32050 echo "$as_me: error: The important program artsc-config was not found!
32051 Please check whether you installed aRts correctly or use
32052 --without-arts to compile without aRts support (this will remove functionality).
32054 { (exit 1); exit 1; }; }
32057 { echo "$as_me:$LINENO: result: $kde_cv_path" >&5
32058 echo "${ECHO_T}$kde_cv_path" >&6; }
32059 ARTSCCONFIG=$kde_cv_path
32065 { echo "$as_me:$LINENO: checking for meinproc" >&5
32066 echo $ECHO_N "checking for meinproc... $ECHO_C" >&6; }
32067 if test -n "$MEINPROC"; then
32068 kde_cv_path="$MEINPROC";
32070 kde_cache=`echo meinproc | sed 'y%./+-%__p_%'`
32072 if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
32073 echo $ECHO_N "(cached) $ECHO_C" >&6
32080 for dir in $PATH; do
32083 if test -z ""; then dirs="$kde_default_bindirs $dirs"
32084 else dirs="$dirs $kde_default_bindirs"
32088 for dir in $dirs; do
32089 if test -x "$dir/meinproc"; then
32092 evalstr="$dir/meinproc 2>&1 "
32093 if eval $evalstr; then
32094 kde_cv_path="$dir/meinproc"
32098 kde_cv_path="$dir/meinproc"
32104 eval "kde_cv_path_$kde_cache=$kde_cv_path"
32110 eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
32114 if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
32115 { echo "$as_me:$LINENO: result: not found" >&5
32116 echo "${ECHO_T}not found" >&6; }
32119 { echo "$as_me:$LINENO: result: $kde_cv_path" >&5
32120 echo "${ECHO_T}$kde_cv_path" >&6; }
32121 MEINPROC=$kde_cv_path
32128 if test -n "$kde_qtver" && test "$kde_qtver" -lt 3; then
32132 if test "$kde_qtver" = "3"; then
32133 if test "$kde_qtsubver" -le 1; then
32136 if test "$kde_qtsubver" -le 2 -o `kde-config --version | grep KDE | sed 's/KDE: \(...\).*/\1/'` == 3.2; then
32142 if test -n "$kde32ornewer"; then
32144 { echo "$as_me:$LINENO: checking for kconfig_compiler" >&5
32145 echo $ECHO_N "checking for kconfig_compiler... $ECHO_C" >&6; }
32146 if test -n "$KCONFIG_COMPILER"; then
32147 kde_cv_path="$KCONFIG_COMPILER";
32149 kde_cache=`echo kconfig_compiler | sed 'y%./+-%__p_%'`
32151 if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
32152 echo $ECHO_N "(cached) $ECHO_C" >&6
32159 for dir in $PATH; do
32162 if test -z ""; then dirs="$kde_default_bindirs $dirs"
32163 else dirs="$dirs $kde_default_bindirs"
32167 for dir in $dirs; do
32168 if test -x "$dir/kconfig_compiler"; then
32171 evalstr="$dir/kconfig_compiler 2>&1 "
32172 if eval $evalstr; then
32173 kde_cv_path="$dir/kconfig_compiler"
32177 kde_cv_path="$dir/kconfig_compiler"
32183 eval "kde_cv_path_$kde_cache=$kde_cv_path"
32189 eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
32193 if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
32194 { echo "$as_me:$LINENO: result: not found" >&5
32195 echo "${ECHO_T}not found" >&6; }
32197 { { echo "$as_me:$LINENO: error: The important program kconfig_compiler was not found!
32198 Please check whether you installed KDE correctly.
32200 echo "$as_me: error: The important program kconfig_compiler was not found!
32201 Please check whether you installed KDE correctly.
32203 { (exit 1); exit 1; }; }
32206 { echo "$as_me:$LINENO: result: $kde_cv_path" >&5
32207 echo "${ECHO_T}$kde_cv_path" >&6; }
32208 KCONFIG_COMPILER=$kde_cv_path
32213 { echo "$as_me:$LINENO: checking for dcopidlng" >&5
32214 echo $ECHO_N "checking for dcopidlng... $ECHO_C" >&6; }
32215 if test -n "$DCOPIDLNG"; then
32216 kde_cv_path="$DCOPIDLNG";
32218 kde_cache=`echo dcopidlng | sed 'y%./+-%__p_%'`
32220 if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
32221 echo $ECHO_N "(cached) $ECHO_C" >&6
32228 for dir in $PATH; do
32231 if test -z ""; then dirs="$kde_default_bindirs $dirs"
32232 else dirs="$dirs $kde_default_bindirs"
32236 for dir in $dirs; do
32237 if test -x "$dir/dcopidlng"; then
32240 evalstr="$dir/dcopidlng 2>&1 "
32241 if eval $evalstr; then
32242 kde_cv_path="$dir/dcopidlng"
32246 kde_cv_path="$dir/dcopidlng"
32252 eval "kde_cv_path_$kde_cache=$kde_cv_path"
32258 eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
32262 if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
32263 { echo "$as_me:$LINENO: result: not found" >&5
32264 echo "${ECHO_T}not found" >&6; }
32266 { { echo "$as_me:$LINENO: error: The important program dcopidlng was not found!
32267 Please check whether you installed KDE correctly.
32269 echo "$as_me: error: The important program dcopidlng was not found!
32270 Please check whether you installed KDE correctly.
32272 { (exit 1); exit 1; }; }
32275 { echo "$as_me:$LINENO: result: $kde_cv_path" >&5
32276 echo "${ECHO_T}$kde_cv_path" >&6; }
32277 DCOPIDLNG=$kde_cv_path
32282 if test -n "$kde33ornewer"; then
32284 { echo "$as_me:$LINENO: checking for makekdewidgets" >&5
32285 echo $ECHO_N "checking for makekdewidgets... $ECHO_C" >&6; }
32286 if test -n "$MAKEKDEWIDGETS"; then
32287 kde_cv_path="$MAKEKDEWIDGETS";
32289 kde_cache=`echo makekdewidgets | sed 'y%./+-%__p_%'`
32291 if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
32292 echo $ECHO_N "(cached) $ECHO_C" >&6
32299 for dir in $PATH; do
32302 if test -z ""; then dirs="$kde_default_bindirs $dirs"
32303 else dirs="$dirs $kde_default_bindirs"
32307 for dir in $dirs; do
32308 if test -x "$dir/makekdewidgets"; then
32311 evalstr="$dir/makekdewidgets 2>&1 "
32312 if eval $evalstr; then
32313 kde_cv_path="$dir/makekdewidgets"
32317 kde_cv_path="$dir/makekdewidgets"
32323 eval "kde_cv_path_$kde_cache=$kde_cv_path"
32329 eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
32333 if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
32334 { echo "$as_me:$LINENO: result: not found" >&5
32335 echo "${ECHO_T}not found" >&6; }
32337 { { echo "$as_me:$LINENO: error: The important program makekdewidgets was not found!
32338 Please check whether you installed KDE correctly.
32340 echo "$as_me: error: The important program makekdewidgets was not found!
32341 Please check whether you installed KDE correctly.
32343 { (exit 1); exit 1; }; }
32346 { echo "$as_me:$LINENO: result: $kde_cv_path" >&5
32347 echo "${ECHO_T}$kde_cv_path" >&6; }
32348 MAKEKDEWIDGETS=$kde_cv_path
32355 { echo "$as_me:$LINENO: checking for xmllint" >&5
32356 echo $ECHO_N "checking for xmllint... $ECHO_C" >&6; }
32357 if test -n "$XMLLINT"; then
32358 kde_cv_path="$XMLLINT";
32360 kde_cache=`echo xmllint | sed 'y%./+-%__p_%'`
32362 if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
32363 echo $ECHO_N "(cached) $ECHO_C" >&6
32370 for dir in $PATH; do
32373 if test -z ""; then dirs="${prefix}/bin ${exec_prefix}/bin $dirs"
32374 else dirs="$dirs ${prefix}/bin ${exec_prefix}/bin"
32378 for dir in $dirs; do
32379 if test -x "$dir/xmllint"; then
32382 evalstr="$dir/xmllint 2>&1 "
32383 if eval $evalstr; then
32384 kde_cv_path="$dir/xmllint"
32388 kde_cv_path="$dir/xmllint"
32394 eval "kde_cv_path_$kde_cache=$kde_cv_path"
32400 eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
32404 if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
32405 { echo "$as_me:$LINENO: result: not found" >&5
32406 echo "${ECHO_T}not found" >&6; }
32409 { echo "$as_me:$LINENO: result: $kde_cv_path" >&5
32410 echo "${ECHO_T}$kde_cv_path" >&6; }
32411 XMLLINT=$kde_cv_path
32416 if test -n "$MEINPROC" && test ! "$MEINPROC" = "compiled"; then
32417 kde_sharedirs="/usr/share/kde /usr/local/share /usr/share /opt/kde3/share /opt/kde/share $prefix/share"
32418 test -n "$KDEDIR" && kde_sharedirs="$KDEDIR/share $kde_sharedirs"
32420 KDE_XSL_STYLESHEET=NO
32421 for i in $kde_sharedirs;
32423 for j in apps/ksgmltools2/customization/kde-chunk.xsl;
32425 echo "configure: 32425: $i/$j" >&5
32426 if test -r "$i/$j"; then
32427 echo "taking that" >&5
32428 KDE_XSL_STYLESHEET=$i
32434 if test "$KDE_XSL_STYLESHEET" = "NO"; then
32435 KDE_XSL_STYLESHEET=""
32437 KDE_XSL_STYLESHEET="$KDE_XSL_STYLESHEET/apps/ksgmltools2/customization/kde-chunk.xsl"
32441 DCOP_DEPENDENCIES='$(DCOPIDL)'
32442 if test -n "$kde32ornewer"; then
32443 KCFG_DEPENDENCIES='$(KCONFIG_COMPILER)'
32444 DCOP_DEPENDENCIES='$(DCOPIDL) $(DCOPIDLNG)'
32480 kdeinitdir='$(kde_moduledir)'
32484 if test "$kde_qtver" = 1; then
32485 kde_minidir="$kde_icondir/mini"
32487 # for KDE 1 - this breaks KDE2 apps using minidir, but
32488 # that's the plan ;-/
32489 kde_minidir="/dev/null"
32497 if test $kde_qtver = 3; then
32498 LIB_KDECORE="-lkdecore"
32500 LIB_KDEUI="-lkdeui"
32512 LIB_KHTML="-lkhtml"
32514 LIB_KSPELL="-lkspell"
32516 LIB_KPARTS="-lkparts"
32518 LIB_KDEPRINT="-lkdeprint"
32520 LIB_KUTILS="-lkutils"
32522 LIB_KDEPIM="-lkdepim"
32524 LIB_KIMPROXY="-lkimproxy"
32526 LIB_KNEWSTUFF="-lknewstuff"
32528 LIB_KDNSSD="-lkdnssd"
32530 # these are for backward compatibility
32531 LIB_KSYCOCA="-lkio"
32535 elif test $kde_qtver = 2; then
32536 LIB_KDECORE="-lkdecore"
32538 LIB_KDEUI="-lkdeui"
32542 LIB_KSYCOCA="-lksycoca"
32546 LIB_KFILE="-lkfile"
32550 LIB_KHTML="-lkhtml"
32552 LIB_KSPELL="-lkspell"
32554 LIB_KPARTS="-lkparts"
32556 LIB_KDEPRINT="-lkdeprint"
32559 LIB_KDECORE="-lkdecore -lXext $(LIB_QT)"
32561 LIB_KDEUI="-lkdeui $(LIB_KDECORE)"
32563 LIB_KFM="-lkfm $(LIB_KDECORE)"
32565 LIB_KFILE="-lkfile $(LIB_KFM) $(LIB_KDEUI)"
32567 LIB_KAB="-lkab $(LIB_KIMGIO) $(LIB_KDECORE)"
32573 REQUIRED_KDE_VERSION=3.2.0
32574 #MIN_CONFIG($REQUIRED_KDE_VERSION)
32575 ##AC_CONFIG_SRCDIR(src/main.cpp)
32577 REQUIRED_SCIM_VERSION=1.3.0
32581 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
32582 if test -n "$ac_tool_prefix"; then
32583 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
32584 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
32585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32587 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
32588 echo $ECHO_N "(cached) $ECHO_C" >&6
32590 case $PKG_CONFIG in
32592 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
32595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32596 for as_dir in $PATH
32599 test -z "$as_dir" && as_dir=.
32600 for ac_exec_ext in '' $ac_executable_extensions; do
32601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32602 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
32603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32613 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
32614 if test -n "$PKG_CONFIG"; then
32615 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
32616 echo "${ECHO_T}$PKG_CONFIG" >&6; }
32618 { echo "$as_me:$LINENO: result: no" >&5
32619 echo "${ECHO_T}no" >&6; }
32624 if test -z "$ac_cv_path_PKG_CONFIG"; then
32625 ac_pt_PKG_CONFIG=$PKG_CONFIG
32626 # Extract the first word of "pkg-config", so it can be a program name with args.
32627 set dummy pkg-config; ac_word=$2
32628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32630 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
32631 echo $ECHO_N "(cached) $ECHO_C" >&6
32633 case $ac_pt_PKG_CONFIG in
32635 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
32638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32639 for as_dir in $PATH
32642 test -z "$as_dir" && as_dir=.
32643 for ac_exec_ext in '' $ac_executable_extensions; do
32644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32645 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
32646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32656 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
32657 if test -n "$ac_pt_PKG_CONFIG"; then
32658 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
32659 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
32661 { echo "$as_me:$LINENO: result: no" >&5
32662 echo "${ECHO_T}no" >&6; }
32665 if test "x$ac_pt_PKG_CONFIG" = x; then
32668 case $cross_compiling:$ac_tool_warned in
32670 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
32671 whose name does not start with the host triplet. If you think this
32672 configuration is useful to you, please write to autoconf@gnu.org." >&5
32673 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
32674 whose name does not start with the host triplet. If you think this
32675 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
32676 ac_tool_warned=yes ;;
32678 PKG_CONFIG=$ac_pt_PKG_CONFIG
32681 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
32685 if test -n "$PKG_CONFIG"; then
32686 _pkg_min_version=0.9.0
32687 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
32688 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
32689 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
32690 { echo "$as_me:$LINENO: result: yes" >&5
32691 echo "${ECHO_T}yes" >&6; }
32693 { echo "$as_me:$LINENO: result: no" >&5
32694 echo "${ECHO_T}no" >&6; }
32701 { echo "$as_me:$LINENO: checking for SCIM" >&5
32702 echo $ECHO_N "checking for SCIM... $ECHO_C" >&6; }
32704 if test -n "$PKG_CONFIG"; then
32705 if test -n "$SCIM_CFLAGS"; then
32706 pkg_cv_SCIM_CFLAGS="$SCIM_CFLAGS"
32708 if test -n "$PKG_CONFIG" && \
32709 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"scim >= \$REQUIRED_SCIM_VERSION\"") >&5
32710 ($PKG_CONFIG --exists --print-errors "scim >= $REQUIRED_SCIM_VERSION") 2>&5
32712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32713 (exit $ac_status); }; then
32714 pkg_cv_SCIM_CFLAGS=`$PKG_CONFIG --cflags "scim >= $REQUIRED_SCIM_VERSION" 2>/dev/null`
32722 if test -n "$PKG_CONFIG"; then
32723 if test -n "$SCIM_LIBS"; then
32724 pkg_cv_SCIM_LIBS="$SCIM_LIBS"
32726 if test -n "$PKG_CONFIG" && \
32727 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"scim >= \$REQUIRED_SCIM_VERSION\"") >&5
32728 ($PKG_CONFIG --exists --print-errors "scim >= $REQUIRED_SCIM_VERSION") 2>&5
32730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32731 (exit $ac_status); }; then
32732 pkg_cv_SCIM_LIBS=`$PKG_CONFIG --libs "scim >= $REQUIRED_SCIM_VERSION" 2>/dev/null`
32743 if test $pkg_failed = yes; then
32745 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32746 _pkg_short_errors_supported=yes
32748 _pkg_short_errors_supported=no
32750 if test $_pkg_short_errors_supported = yes; then
32751 SCIM_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "scim >= $REQUIRED_SCIM_VERSION"`
32753 SCIM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "scim >= $REQUIRED_SCIM_VERSION"`
32755 # Put the nasty error message in config.log where it belongs
32756 echo "$SCIM_PKG_ERRORS" >&5
32758 { echo "$as_me:$LINENO: result: no" >&5
32759 echo "${ECHO_T}no" >&6; }
32761 elif test $pkg_failed = untried; then
32764 SCIM_CFLAGS=$pkg_cv_SCIM_CFLAGS
32765 SCIM_LIBS=$pkg_cv_SCIM_LIBS
32766 { echo "$as_me:$LINENO: result: yes" >&5
32767 echo "${ECHO_T}yes" >&6; }
32774 if test "x$HAS_SCIM" != "xyes"; then
32775 { { echo "$as_me:$LINENO: error: SCIM library is not available or the version is too old!" >&5
32776 echo "$as_me: error: SCIM library is not available or the version is too old!" >&2;}
32777 { (exit 1); exit 1; }; }
32779 SCIM_VERSION=`$PKG_CONFIG --modversion scim`
32782 ##dnl PACKAGE set before
32784 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
32785 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
32786 # Check whether --enable-nls was given.
32787 if test "${enable_nls+set}" = set; then
32788 enableval=$enable_nls; USE_NLS=$enableval
32793 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
32794 echo "${ECHO_T}$USE_NLS" >&6; }
32801 # Prepare PATH_SEPARATOR.
32802 # The user is always right.
32803 if test "${PATH_SEPARATOR+set}" != set; then
32804 echo "#! /bin/sh" >conf$$.sh
32805 echo "exit 0" >>conf$$.sh
32807 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
32815 # Find out how to test for executable files. Don't use a zero-byte file,
32816 # as systems may use methods other than mode bits to determine executability.
32817 cat >conf$$.file <<_ASEOF
32821 chmod +x conf$$.file
32822 if test -x conf$$.file >/dev/null 2>&1; then
32823 ac_executable_p="test -x"
32825 ac_executable_p="test -f"
32829 # Extract the first word of "msgfmt", so it can be a program name with args.
32830 set dummy msgfmt; ac_word=$2
32831 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32833 if test "${ac_cv_path_MSGFMT+set}" = set; then
32834 echo $ECHO_N "(cached) $ECHO_C" >&6
32838 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
32841 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
32842 for ac_dir in $PATH; do
32844 test -z "$ac_dir" && ac_dir=.
32845 for ac_exec_ext in '' $ac_executable_extensions; do
32846 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
32847 echo "$as_me: trying $ac_dir/$ac_word..." >&5
32848 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
32849 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
32850 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
32857 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
32861 MSGFMT="$ac_cv_path_MSGFMT"
32862 if test "$MSGFMT" != ":"; then
32863 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
32864 echo "${ECHO_T}$MSGFMT" >&6; }
32866 { echo "$as_me:$LINENO: result: no" >&5
32867 echo "${ECHO_T}no" >&6; }
32870 # Extract the first word of "gmsgfmt", so it can be a program name with args.
32871 set dummy gmsgfmt; ac_word=$2
32872 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32874 if test "${ac_cv_path_GMSGFMT+set}" = set; then
32875 echo $ECHO_N "(cached) $ECHO_C" >&6
32879 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
32882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32883 for as_dir in $PATH
32886 test -z "$as_dir" && as_dir=.
32887 for ac_exec_ext in '' $ac_executable_extensions; do
32888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32889 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
32890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32897 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
32901 GMSGFMT=$ac_cv_path_GMSGFMT
32902 if test -n "$GMSGFMT"; then
32903 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
32904 echo "${ECHO_T}$GMSGFMT" >&6; }
32906 { echo "$as_me:$LINENO: result: no" >&5
32907 echo "${ECHO_T}no" >&6; }
32912 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
32913 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
32914 *) MSGFMT_015=$MSGFMT ;;
32917 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
32918 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
32919 *) GMSGFMT_015=$GMSGFMT ;;
32924 # Prepare PATH_SEPARATOR.
32925 # The user is always right.
32926 if test "${PATH_SEPARATOR+set}" != set; then
32927 echo "#! /bin/sh" >conf$$.sh
32928 echo "exit 0" >>conf$$.sh
32930 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
32938 # Find out how to test for executable files. Don't use a zero-byte file,
32939 # as systems may use methods other than mode bits to determine executability.
32940 cat >conf$$.file <<_ASEOF
32944 chmod +x conf$$.file
32945 if test -x conf$$.file >/dev/null 2>&1; then
32946 ac_executable_p="test -x"
32948 ac_executable_p="test -f"
32952 # Extract the first word of "xgettext", so it can be a program name with args.
32953 set dummy xgettext; ac_word=$2
32954 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32956 if test "${ac_cv_path_XGETTEXT+set}" = set; then
32957 echo $ECHO_N "(cached) $ECHO_C" >&6
32959 case "$XGETTEXT" in
32961 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
32964 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
32965 for ac_dir in $PATH; do
32967 test -z "$ac_dir" && ac_dir=.
32968 for ac_exec_ext in '' $ac_executable_extensions; do
32969 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
32970 echo "$as_me: trying $ac_dir/$ac_word..." >&5
32971 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
32972 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
32973 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
32980 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
32984 XGETTEXT="$ac_cv_path_XGETTEXT"
32985 if test "$XGETTEXT" != ":"; then
32986 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
32987 echo "${ECHO_T}$XGETTEXT" >&6; }
32989 { echo "$as_me:$LINENO: result: no" >&5
32990 echo "${ECHO_T}no" >&6; }
32995 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
32996 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
32997 *) XGETTEXT_015=$XGETTEXT ;;
33002 # Prepare PATH_SEPARATOR.
33003 # The user is always right.
33004 if test "${PATH_SEPARATOR+set}" != set; then
33005 echo "#! /bin/sh" >conf$$.sh
33006 echo "exit 0" >>conf$$.sh
33008 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
33016 # Find out how to test for executable files. Don't use a zero-byte file,
33017 # as systems may use methods other than mode bits to determine executability.
33018 cat >conf$$.file <<_ASEOF
33022 chmod +x conf$$.file
33023 if test -x conf$$.file >/dev/null 2>&1; then
33024 ac_executable_p="test -x"
33026 ac_executable_p="test -f"
33030 # Extract the first word of "msgmerge", so it can be a program name with args.
33031 set dummy msgmerge; ac_word=$2
33032 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33034 if test "${ac_cv_path_MSGMERGE+set}" = set; then
33035 echo $ECHO_N "(cached) $ECHO_C" >&6
33037 case "$MSGMERGE" in
33039 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
33042 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
33043 for ac_dir in $PATH; do
33045 test -z "$ac_dir" && ac_dir=.
33046 for ac_exec_ext in '' $ac_executable_extensions; do
33047 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
33048 echo "$as_me: trying $ac_dir/$ac_word..." >&5
33049 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
33050 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
33057 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
33061 MSGMERGE="$ac_cv_path_MSGMERGE"
33062 if test "$MSGMERGE" != ":"; then
33063 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
33064 echo "${ECHO_T}$MSGMERGE" >&6; }
33066 { echo "$as_me:$LINENO: result: no" >&5
33067 echo "${ECHO_T}no" >&6; }
33071 test -n "$localedir" || localedir='${datadir}/locale'
33074 ac_config_commands="$ac_config_commands po-directories"
33078 if test "X$prefix" = "XNONE"; then
33079 acl_final_prefix="$ac_default_prefix"
33081 acl_final_prefix="$prefix"
33083 if test "X$exec_prefix" = "XNONE"; then
33084 acl_final_exec_prefix='${prefix}'
33086 acl_final_exec_prefix="$exec_prefix"
33088 acl_save_prefix="$prefix"
33089 prefix="$acl_final_prefix"
33090 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
33091 prefix="$acl_save_prefix"
33094 # Check whether --with-gnu-ld was given.
33095 if test "${with_gnu_ld+set}" = set; then
33096 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
33101 # Prepare PATH_SEPARATOR.
33102 # The user is always right.
33103 if test "${PATH_SEPARATOR+set}" != set; then
33104 echo "#! /bin/sh" >conf$$.sh
33105 echo "exit 0" >>conf$$.sh
33107 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
33115 if test "$GCC" = yes; then
33116 # Check if gcc -print-prog-name=ld gives a path.
33117 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
33118 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
33121 # gcc leaves a trailing carriage return which upsets mingw
33122 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
33124 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
33127 # Accept absolute paths.
33128 [\\/]* | [A-Za-z]:[\\/]*)
33129 re_direlt='/[^/][^/]*/\.\./'
33130 # Canonicalize the path of ld
33131 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
33132 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
33133 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
33135 test -z "$LD" && LD="$ac_prog"
33138 # If it fails, then pretend we aren't using GCC.
33142 # If it is relative, then search for the first ld in PATH.
33143 with_gnu_ld=unknown
33146 elif test "$with_gnu_ld" = yes; then
33147 { echo "$as_me:$LINENO: checking for GNU ld" >&5
33148 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
33150 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
33151 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
33153 if test "${acl_cv_path_LD+set}" = set; then
33154 echo $ECHO_N "(cached) $ECHO_C" >&6
33156 if test -z "$LD"; then
33157 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
33158 for ac_dir in $PATH; do
33159 test -z "$ac_dir" && ac_dir=.
33160 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
33161 acl_cv_path_LD="$ac_dir/$ac_prog"
33162 # Check to see if the program is GNU ld. I'd rather use --version,
33163 # but apparently some GNU ld's only accept -v.
33164 # Break only if it was the GNU/non-GNU ld that we prefer.
33165 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
33166 *GNU* | *'with BFD'*)
33167 test "$with_gnu_ld" != no && break ;;
33169 test "$with_gnu_ld" != yes && break ;;
33175 acl_cv_path_LD="$LD" # Let the user override the test with a path.
33179 LD="$acl_cv_path_LD"
33180 if test -n "$LD"; then
33181 { echo "$as_me:$LINENO: result: $LD" >&5
33182 echo "${ECHO_T}$LD" >&6; }
33184 { echo "$as_me:$LINENO: result: no" >&5
33185 echo "${ECHO_T}no" >&6; }
33187 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
33188 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
33189 { (exit 1); exit 1; }; }
33190 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
33191 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
33192 if test "${acl_cv_prog_gnu_ld+set}" = set; then
33193 echo $ECHO_N "(cached) $ECHO_C" >&6
33195 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
33196 case `$LD -v 2>&1 </dev/null` in
33197 *GNU* | *'with BFD'*)
33198 acl_cv_prog_gnu_ld=yes ;;
33200 acl_cv_prog_gnu_ld=no ;;
33203 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
33204 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
33205 with_gnu_ld=$acl_cv_prog_gnu_ld
33210 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
33211 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
33212 if test "${acl_cv_rpath+set}" = set; then
33213 echo $ECHO_N "(cached) $ECHO_C" >&6
33216 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
33217 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
33219 rm -f ./conftest.sh
33223 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
33224 echo "${ECHO_T}$acl_cv_rpath" >&6; }
33226 libext="$acl_cv_libext"
33227 shlibext="$acl_cv_shlibext"
33228 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
33229 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
33230 hardcode_direct="$acl_cv_hardcode_direct"
33231 hardcode_minus_L="$acl_cv_hardcode_minus_L"
33232 # Check whether --enable-rpath was given.
33233 if test "${enable_rpath+set}" = set; then
33234 enableval=$enable_rpath; :
33242 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
33243 if test -n "$searchpath"; then
33244 acl_save_IFS="${IFS= }"; IFS=":"
33245 for searchdir in $searchpath; do
33246 if test -d "$searchdir"; then
33247 case "$searchdir" in
33248 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
33249 *) searchdir=`cd "$searchdir" && pwd`
33250 case "$searchdir" in
33251 */lib64 ) acl_libdirstem=lib64 ;;
33256 IFS="$acl_save_IFS"
33268 acl_save_prefix="$prefix"
33269 prefix="$acl_final_prefix"
33270 acl_save_exec_prefix="$exec_prefix"
33271 exec_prefix="$acl_final_exec_prefix"
33273 eval additional_includedir=\"$includedir\"
33274 eval additional_libdir=\"$libdir\"
33276 exec_prefix="$acl_save_exec_prefix"
33277 prefix="$acl_save_prefix"
33280 # Check whether --with-libiconv-prefix was given.
33281 if test "${with_libiconv_prefix+set}" = set; then
33282 withval=$with_libiconv_prefix;
33283 if test "X$withval" = "Xno"; then
33286 if test "X$withval" = "X"; then
33288 acl_save_prefix="$prefix"
33289 prefix="$acl_final_prefix"
33290 acl_save_exec_prefix="$exec_prefix"
33291 exec_prefix="$acl_final_exec_prefix"
33293 eval additional_includedir=\"$includedir\"
33294 eval additional_libdir=\"$libdir\"
33296 exec_prefix="$acl_save_exec_prefix"
33297 prefix="$acl_save_prefix"
33300 additional_includedir="$withval/include"
33301 additional_libdir="$withval/$acl_libdirstem"
33312 names_already_handled=
33313 names_next_round='iconv '
33314 while test -n "$names_next_round"; do
33315 names_this_round="$names_next_round"
33317 for name in $names_this_round; do
33319 for n in $names_already_handled; do
33320 if test "$n" = "$name"; then
33321 already_handled=yes
33325 if test -z "$already_handled"; then
33326 names_already_handled="$names_already_handled $name"
33327 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
33328 eval value=\"\$HAVE_LIB$uppername\"
33329 if test -n "$value"; then
33330 if test "$value" = yes; then
33331 eval value=\"\$LIB$uppername\"
33332 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
33333 eval value=\"\$LTLIB$uppername\"
33334 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
33343 if test $use_additional = yes; then
33344 if test -n "$shlibext" \
33345 && { test -f "$additional_libdir/lib$name.$shlibext" \
33346 || { test "$shlibext" = dll \
33347 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
33348 found_dir="$additional_libdir"
33349 if test -f "$additional_libdir/lib$name.$shlibext"; then
33350 found_so="$additional_libdir/lib$name.$shlibext"
33352 found_so="$additional_libdir/lib$name.dll.a"
33354 if test -f "$additional_libdir/lib$name.la"; then
33355 found_la="$additional_libdir/lib$name.la"
33358 if test -f "$additional_libdir/lib$name.$libext"; then
33359 found_dir="$additional_libdir"
33360 found_a="$additional_libdir/lib$name.$libext"
33361 if test -f "$additional_libdir/lib$name.la"; then
33362 found_la="$additional_libdir/lib$name.la"
33367 if test "X$found_dir" = "X"; then
33368 for x in $LDFLAGS $LTLIBICONV; do
33370 acl_save_prefix="$prefix"
33371 prefix="$acl_final_prefix"
33372 acl_save_exec_prefix="$exec_prefix"
33373 exec_prefix="$acl_final_exec_prefix"
33375 exec_prefix="$acl_save_exec_prefix"
33376 prefix="$acl_save_prefix"
33380 dir=`echo "X$x" | sed -e 's/^X-L//'`
33381 if test -n "$shlibext" \
33382 && { test -f "$dir/lib$name.$shlibext" \
33383 || { test "$shlibext" = dll \
33384 && test -f "$dir/lib$name.dll.a"; }; }; then
33386 if test -f "$dir/lib$name.$shlibext"; then
33387 found_so="$dir/lib$name.$shlibext"
33389 found_so="$dir/lib$name.dll.a"
33391 if test -f "$dir/lib$name.la"; then
33392 found_la="$dir/lib$name.la"
33395 if test -f "$dir/lib$name.$libext"; then
33397 found_a="$dir/lib$name.$libext"
33398 if test -f "$dir/lib$name.la"; then
33399 found_la="$dir/lib$name.la"
33405 if test "X$found_dir" != "X"; then
33410 if test "X$found_dir" != "X"; then
33411 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
33412 if test "X$found_so" != "X"; then
33413 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
33414 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
33417 for x in $ltrpathdirs; do
33418 if test "X$x" = "X$found_dir"; then
33423 if test -z "$haveit"; then
33424 ltrpathdirs="$ltrpathdirs $found_dir"
33426 if test "$hardcode_direct" = yes; then
33427 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
33429 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
33430 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
33432 for x in $rpathdirs; do
33433 if test "X$x" = "X$found_dir"; then
33438 if test -z "$haveit"; then
33439 rpathdirs="$rpathdirs $found_dir"
33443 for x in $LDFLAGS $LIBICONV; do
33445 acl_save_prefix="$prefix"
33446 prefix="$acl_final_prefix"
33447 acl_save_exec_prefix="$exec_prefix"
33448 exec_prefix="$acl_final_exec_prefix"
33450 exec_prefix="$acl_save_exec_prefix"
33451 prefix="$acl_save_prefix"
33453 if test "X$x" = "X-L$found_dir"; then
33458 if test -z "$haveit"; then
33459 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
33461 if test "$hardcode_minus_L" != no; then
33462 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
33464 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
33470 if test "X$found_a" != "X"; then
33471 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
33473 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
33476 additional_includedir=
33477 case "$found_dir" in
33478 */$acl_libdirstem | */$acl_libdirstem/)
33479 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
33480 additional_includedir="$basedir/include"
33483 if test "X$additional_includedir" != "X"; then
33484 if test "X$additional_includedir" != "X/usr/include"; then
33486 if test "X$additional_includedir" = "X/usr/local/include"; then
33487 if test -n "$GCC"; then
33489 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
33493 if test -z "$haveit"; then
33494 for x in $CPPFLAGS $INCICONV; do
33496 acl_save_prefix="$prefix"
33497 prefix="$acl_final_prefix"
33498 acl_save_exec_prefix="$exec_prefix"
33499 exec_prefix="$acl_final_exec_prefix"
33501 exec_prefix="$acl_save_exec_prefix"
33502 prefix="$acl_save_prefix"
33504 if test "X$x" = "X-I$additional_includedir"; then
33509 if test -z "$haveit"; then
33510 if test -d "$additional_includedir"; then
33511 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
33517 if test -n "$found_la"; then
33518 save_libdir="$libdir"
33519 case "$found_la" in
33520 */* | *\\*) . "$found_la" ;;
33521 *) . "./$found_la" ;;
33523 libdir="$save_libdir"
33524 for dep in $dependency_libs; do
33527 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
33528 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
33530 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
33531 if test -n "$GCC"; then
33533 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
33537 if test -z "$haveit"; then
33539 for x in $LDFLAGS $LIBICONV; do
33541 acl_save_prefix="$prefix"
33542 prefix="$acl_final_prefix"
33543 acl_save_exec_prefix="$exec_prefix"
33544 exec_prefix="$acl_final_exec_prefix"
33546 exec_prefix="$acl_save_exec_prefix"
33547 prefix="$acl_save_prefix"
33549 if test "X$x" = "X-L$additional_libdir"; then
33554 if test -z "$haveit"; then
33555 if test -d "$additional_libdir"; then
33556 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
33560 for x in $LDFLAGS $LTLIBICONV; do
33562 acl_save_prefix="$prefix"
33563 prefix="$acl_final_prefix"
33564 acl_save_exec_prefix="$exec_prefix"
33565 exec_prefix="$acl_final_exec_prefix"
33567 exec_prefix="$acl_save_exec_prefix"
33568 prefix="$acl_save_prefix"
33570 if test "X$x" = "X-L$additional_libdir"; then
33575 if test -z "$haveit"; then
33576 if test -d "$additional_libdir"; then
33577 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
33584 dir=`echo "X$dep" | sed -e 's/^X-R//'`
33585 if test "$enable_rpath" != no; then
33587 for x in $rpathdirs; do
33588 if test "X$x" = "X$dir"; then
33593 if test -z "$haveit"; then
33594 rpathdirs="$rpathdirs $dir"
33597 for x in $ltrpathdirs; do
33598 if test "X$x" = "X$dir"; then
33603 if test -z "$haveit"; then
33604 ltrpathdirs="$ltrpathdirs $dir"
33609 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
33612 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
33615 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
33616 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
33622 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
33623 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
33629 if test "X$rpathdirs" != "X"; then
33630 if test -n "$hardcode_libdir_separator"; then
33632 for found_dir in $rpathdirs; do
33633 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
33635 acl_save_libdir="$libdir"
33637 eval flag=\"$hardcode_libdir_flag_spec\"
33638 libdir="$acl_save_libdir"
33639 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
33641 for found_dir in $rpathdirs; do
33642 acl_save_libdir="$libdir"
33643 libdir="$found_dir"
33644 eval flag=\"$hardcode_libdir_flag_spec\"
33645 libdir="$acl_save_libdir"
33646 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
33650 if test "X$ltrpathdirs" != "X"; then
33651 for found_dir in $ltrpathdirs; do
33652 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
33680 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
33681 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
33682 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
33683 echo $ECHO_N "(cached) $ECHO_C" >&6
33685 gt_save_LIBS="$LIBS"
33686 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
33687 cat >conftest.$ac_ext <<_ACEOF
33690 cat confdefs.h >>conftest.$ac_ext
33691 cat >>conftest.$ac_ext <<_ACEOF
33692 /* end confdefs.h. */
33693 #include <CoreFoundation/CFPreferences.h>
33697 CFPreferencesCopyAppValue(NULL, NULL)
33702 rm -f conftest.$ac_objext conftest$ac_exeext
33703 if { (ac_try="$ac_link"
33704 case "(($ac_try" in
33705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33706 *) ac_try_echo=$ac_try;;
33708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33709 (eval "$ac_link") 2>conftest.er1
33711 grep -v '^ *+' conftest.er1 >conftest.err
33713 cat conftest.err >&5
33714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33715 (exit $ac_status); } && {
33716 test -z "$ac_c_werror_flag" ||
33717 test ! -s conftest.err
33718 } && test -s conftest$ac_exeext &&
33719 $as_test_x conftest$ac_exeext; then
33720 gt_cv_func_CFPreferencesCopyAppValue=yes
33722 echo "$as_me: failed program was:" >&5
33723 sed 's/^/| /' conftest.$ac_ext >&5
33725 gt_cv_func_CFPreferencesCopyAppValue=no
33728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33729 conftest$ac_exeext conftest.$ac_ext
33730 LIBS="$gt_save_LIBS"
33732 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
33733 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
33734 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
33736 cat >>confdefs.h <<\_ACEOF
33737 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
33741 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
33742 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
33743 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
33744 echo $ECHO_N "(cached) $ECHO_C" >&6
33746 gt_save_LIBS="$LIBS"
33747 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
33748 cat >conftest.$ac_ext <<_ACEOF
33751 cat confdefs.h >>conftest.$ac_ext
33752 cat >>conftest.$ac_ext <<_ACEOF
33753 /* end confdefs.h. */
33754 #include <CoreFoundation/CFLocale.h>
33758 CFLocaleCopyCurrent();
33763 rm -f conftest.$ac_objext conftest$ac_exeext
33764 if { (ac_try="$ac_link"
33765 case "(($ac_try" in
33766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33767 *) ac_try_echo=$ac_try;;
33769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33770 (eval "$ac_link") 2>conftest.er1
33772 grep -v '^ *+' conftest.er1 >conftest.err
33774 cat conftest.err >&5
33775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33776 (exit $ac_status); } && {
33777 test -z "$ac_c_werror_flag" ||
33778 test ! -s conftest.err
33779 } && test -s conftest$ac_exeext &&
33780 $as_test_x conftest$ac_exeext; then
33781 gt_cv_func_CFLocaleCopyCurrent=yes
33783 echo "$as_me: failed program was:" >&5
33784 sed 's/^/| /' conftest.$ac_ext >&5
33786 gt_cv_func_CFLocaleCopyCurrent=no
33789 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33790 conftest$ac_exeext conftest.$ac_ext
33791 LIBS="$gt_save_LIBS"
33793 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
33794 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
33795 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
33797 cat >>confdefs.h <<\_ACEOF
33798 #define HAVE_CFLOCALECOPYCURRENT 1
33803 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
33804 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
33816 case " $gt_needs " in
33817 *" need-formatstring-macros "*) gt_api_version=3 ;;
33818 *" need-ngettext "*) gt_api_version=2 ;;
33819 *) gt_api_version=1 ;;
33821 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
33822 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
33824 if test "$USE_NLS" = "yes"; then
33825 gt_use_preinstalled_gnugettext=no
33828 if test $gt_api_version -ge 3; then
33829 gt_revision_test_code='
33830 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
33831 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
33833 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
33836 gt_revision_test_code=
33838 if test $gt_api_version -ge 2; then
33839 gt_expression_test_code=' + * ngettext ("", "", 0)'
33841 gt_expression_test_code=
33844 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
33845 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
33846 if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
33847 echo $ECHO_N "(cached) $ECHO_C" >&6
33849 cat >conftest.$ac_ext <<_ACEOF
33852 cat confdefs.h >>conftest.$ac_ext
33853 cat >>conftest.$ac_ext <<_ACEOF
33854 /* end confdefs.h. */
33855 #include <libintl.h>
33856 $gt_revision_test_code
33857 extern int _nl_msg_cat_cntr;
33858 extern int *_nl_domain_bindings;
33862 bindtextdomain ("", "");
33863 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
33868 rm -f conftest.$ac_objext conftest$ac_exeext
33869 if { (ac_try="$ac_link"
33870 case "(($ac_try" in
33871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33872 *) ac_try_echo=$ac_try;;
33874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33875 (eval "$ac_link") 2>conftest.er1
33877 grep -v '^ *+' conftest.er1 >conftest.err
33879 cat conftest.err >&5
33880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33881 (exit $ac_status); } && {
33882 test -z "$ac_c_werror_flag" ||
33883 test ! -s conftest.err
33884 } && test -s conftest$ac_exeext &&
33885 $as_test_x conftest$ac_exeext; then
33886 eval "$gt_func_gnugettext_libc=yes"
33888 echo "$as_me: failed program was:" >&5
33889 sed 's/^/| /' conftest.$ac_ext >&5
33891 eval "$gt_func_gnugettext_libc=no"
33894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33895 conftest$ac_exeext conftest.$ac_ext
33897 ac_res=`eval echo '${'$gt_func_gnugettext_libc'}'`
33898 { echo "$as_me:$LINENO: result: $ac_res" >&5
33899 echo "${ECHO_T}$ac_res" >&6; }
33901 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
33907 am_save_CPPFLAGS="$CPPFLAGS"
33909 for element in $INCICONV; do
33911 for x in $CPPFLAGS; do
33913 acl_save_prefix="$prefix"
33914 prefix="$acl_final_prefix"
33915 acl_save_exec_prefix="$exec_prefix"
33916 exec_prefix="$acl_final_exec_prefix"
33918 exec_prefix="$acl_save_exec_prefix"
33919 prefix="$acl_save_prefix"
33921 if test "X$x" = "X$element"; then
33926 if test -z "$haveit"; then
33927 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
33932 { echo "$as_me:$LINENO: checking for iconv" >&5
33933 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
33934 if test "${am_cv_func_iconv+set}" = set; then
33935 echo $ECHO_N "(cached) $ECHO_C" >&6
33938 am_cv_func_iconv="no, consider installing GNU libiconv"
33940 cat >conftest.$ac_ext <<_ACEOF
33943 cat confdefs.h >>conftest.$ac_ext
33944 cat >>conftest.$ac_ext <<_ACEOF
33945 /* end confdefs.h. */
33946 #include <stdlib.h>
33951 iconv_t cd = iconv_open("","");
33952 iconv(cd,NULL,NULL,NULL,NULL);
33958 rm -f conftest.$ac_objext conftest$ac_exeext
33959 if { (ac_try="$ac_link"
33960 case "(($ac_try" in
33961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33962 *) ac_try_echo=$ac_try;;
33964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33965 (eval "$ac_link") 2>conftest.er1
33967 grep -v '^ *+' conftest.er1 >conftest.err
33969 cat conftest.err >&5
33970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33971 (exit $ac_status); } && {
33972 test -z "$ac_c_werror_flag" ||
33973 test ! -s conftest.err
33974 } && test -s conftest$ac_exeext &&
33975 $as_test_x conftest$ac_exeext; then
33976 am_cv_func_iconv=yes
33978 echo "$as_me: failed program was:" >&5
33979 sed 's/^/| /' conftest.$ac_ext >&5
33984 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33985 conftest$ac_exeext conftest.$ac_ext
33986 if test "$am_cv_func_iconv" != yes; then
33987 am_save_LIBS="$LIBS"
33988 LIBS="$LIBS $LIBICONV"
33989 cat >conftest.$ac_ext <<_ACEOF
33992 cat confdefs.h >>conftest.$ac_ext
33993 cat >>conftest.$ac_ext <<_ACEOF
33994 /* end confdefs.h. */
33995 #include <stdlib.h>
34000 iconv_t cd = iconv_open("","");
34001 iconv(cd,NULL,NULL,NULL,NULL);
34007 rm -f conftest.$ac_objext conftest$ac_exeext
34008 if { (ac_try="$ac_link"
34009 case "(($ac_try" in
34010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34011 *) ac_try_echo=$ac_try;;
34013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34014 (eval "$ac_link") 2>conftest.er1
34016 grep -v '^ *+' conftest.er1 >conftest.err
34018 cat conftest.err >&5
34019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34020 (exit $ac_status); } && {
34021 test -z "$ac_c_werror_flag" ||
34022 test ! -s conftest.err
34023 } && test -s conftest$ac_exeext &&
34024 $as_test_x conftest$ac_exeext; then
34025 am_cv_lib_iconv=yes
34026 am_cv_func_iconv=yes
34028 echo "$as_me: failed program was:" >&5
34029 sed 's/^/| /' conftest.$ac_ext >&5
34034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34035 conftest$ac_exeext conftest.$ac_ext
34036 LIBS="$am_save_LIBS"
34040 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
34041 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
34042 if test "$am_cv_func_iconv" = yes; then
34044 cat >>confdefs.h <<\_ACEOF
34045 #define HAVE_ICONV 1
34049 if test "$am_cv_lib_iconv" = yes; then
34050 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
34051 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
34052 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
34053 echo "${ECHO_T}$LIBICONV" >&6; }
34055 CPPFLAGS="$am_save_CPPFLAGS"
34068 acl_save_prefix="$prefix"
34069 prefix="$acl_final_prefix"
34070 acl_save_exec_prefix="$exec_prefix"
34071 exec_prefix="$acl_final_exec_prefix"
34073 eval additional_includedir=\"$includedir\"
34074 eval additional_libdir=\"$libdir\"
34076 exec_prefix="$acl_save_exec_prefix"
34077 prefix="$acl_save_prefix"
34080 # Check whether --with-libintl-prefix was given.
34081 if test "${with_libintl_prefix+set}" = set; then
34082 withval=$with_libintl_prefix;
34083 if test "X$withval" = "Xno"; then
34086 if test "X$withval" = "X"; then
34088 acl_save_prefix="$prefix"
34089 prefix="$acl_final_prefix"
34090 acl_save_exec_prefix="$exec_prefix"
34091 exec_prefix="$acl_final_exec_prefix"
34093 eval additional_includedir=\"$includedir\"
34094 eval additional_libdir=\"$libdir\"
34096 exec_prefix="$acl_save_exec_prefix"
34097 prefix="$acl_save_prefix"
34100 additional_includedir="$withval/include"
34101 additional_libdir="$withval/$acl_libdirstem"
34112 names_already_handled=
34113 names_next_round='intl '
34114 while test -n "$names_next_round"; do
34115 names_this_round="$names_next_round"
34117 for name in $names_this_round; do
34119 for n in $names_already_handled; do
34120 if test "$n" = "$name"; then
34121 already_handled=yes
34125 if test -z "$already_handled"; then
34126 names_already_handled="$names_already_handled $name"
34127 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
34128 eval value=\"\$HAVE_LIB$uppername\"
34129 if test -n "$value"; then
34130 if test "$value" = yes; then
34131 eval value=\"\$LIB$uppername\"
34132 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
34133 eval value=\"\$LTLIB$uppername\"
34134 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
34143 if test $use_additional = yes; then
34144 if test -n "$shlibext" \
34145 && { test -f "$additional_libdir/lib$name.$shlibext" \
34146 || { test "$shlibext" = dll \
34147 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
34148 found_dir="$additional_libdir"
34149 if test -f "$additional_libdir/lib$name.$shlibext"; then
34150 found_so="$additional_libdir/lib$name.$shlibext"
34152 found_so="$additional_libdir/lib$name.dll.a"
34154 if test -f "$additional_libdir/lib$name.la"; then
34155 found_la="$additional_libdir/lib$name.la"
34158 if test -f "$additional_libdir/lib$name.$libext"; then
34159 found_dir="$additional_libdir"
34160 found_a="$additional_libdir/lib$name.$libext"
34161 if test -f "$additional_libdir/lib$name.la"; then
34162 found_la="$additional_libdir/lib$name.la"
34167 if test "X$found_dir" = "X"; then
34168 for x in $LDFLAGS $LTLIBINTL; do
34170 acl_save_prefix="$prefix"
34171 prefix="$acl_final_prefix"
34172 acl_save_exec_prefix="$exec_prefix"
34173 exec_prefix="$acl_final_exec_prefix"
34175 exec_prefix="$acl_save_exec_prefix"
34176 prefix="$acl_save_prefix"
34180 dir=`echo "X$x" | sed -e 's/^X-L//'`
34181 if test -n "$shlibext" \
34182 && { test -f "$dir/lib$name.$shlibext" \
34183 || { test "$shlibext" = dll \
34184 && test -f "$dir/lib$name.dll.a"; }; }; then
34186 if test -f "$dir/lib$name.$shlibext"; then
34187 found_so="$dir/lib$name.$shlibext"
34189 found_so="$dir/lib$name.dll.a"
34191 if test -f "$dir/lib$name.la"; then
34192 found_la="$dir/lib$name.la"
34195 if test -f "$dir/lib$name.$libext"; then
34197 found_a="$dir/lib$name.$libext"
34198 if test -f "$dir/lib$name.la"; then
34199 found_la="$dir/lib$name.la"
34205 if test "X$found_dir" != "X"; then
34210 if test "X$found_dir" != "X"; then
34211 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
34212 if test "X$found_so" != "X"; then
34213 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
34214 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
34217 for x in $ltrpathdirs; do
34218 if test "X$x" = "X$found_dir"; then
34223 if test -z "$haveit"; then
34224 ltrpathdirs="$ltrpathdirs $found_dir"
34226 if test "$hardcode_direct" = yes; then
34227 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
34229 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
34230 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
34232 for x in $rpathdirs; do
34233 if test "X$x" = "X$found_dir"; then
34238 if test -z "$haveit"; then
34239 rpathdirs="$rpathdirs $found_dir"
34243 for x in $LDFLAGS $LIBINTL; do
34245 acl_save_prefix="$prefix"
34246 prefix="$acl_final_prefix"
34247 acl_save_exec_prefix="$exec_prefix"
34248 exec_prefix="$acl_final_exec_prefix"
34250 exec_prefix="$acl_save_exec_prefix"
34251 prefix="$acl_save_prefix"
34253 if test "X$x" = "X-L$found_dir"; then
34258 if test -z "$haveit"; then
34259 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
34261 if test "$hardcode_minus_L" != no; then
34262 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
34264 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
34270 if test "X$found_a" != "X"; then
34271 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
34273 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
34276 additional_includedir=
34277 case "$found_dir" in
34278 */$acl_libdirstem | */$acl_libdirstem/)
34279 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
34280 additional_includedir="$basedir/include"
34283 if test "X$additional_includedir" != "X"; then
34284 if test "X$additional_includedir" != "X/usr/include"; then
34286 if test "X$additional_includedir" = "X/usr/local/include"; then
34287 if test -n "$GCC"; then
34289 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
34293 if test -z "$haveit"; then
34294 for x in $CPPFLAGS $INCINTL; do
34296 acl_save_prefix="$prefix"
34297 prefix="$acl_final_prefix"
34298 acl_save_exec_prefix="$exec_prefix"
34299 exec_prefix="$acl_final_exec_prefix"
34301 exec_prefix="$acl_save_exec_prefix"
34302 prefix="$acl_save_prefix"
34304 if test "X$x" = "X-I$additional_includedir"; then
34309 if test -z "$haveit"; then
34310 if test -d "$additional_includedir"; then
34311 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
34317 if test -n "$found_la"; then
34318 save_libdir="$libdir"
34319 case "$found_la" in
34320 */* | *\\*) . "$found_la" ;;
34321 *) . "./$found_la" ;;
34323 libdir="$save_libdir"
34324 for dep in $dependency_libs; do
34327 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
34328 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
34330 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
34331 if test -n "$GCC"; then
34333 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
34337 if test -z "$haveit"; then
34339 for x in $LDFLAGS $LIBINTL; do
34341 acl_save_prefix="$prefix"
34342 prefix="$acl_final_prefix"
34343 acl_save_exec_prefix="$exec_prefix"
34344 exec_prefix="$acl_final_exec_prefix"
34346 exec_prefix="$acl_save_exec_prefix"
34347 prefix="$acl_save_prefix"
34349 if test "X$x" = "X-L$additional_libdir"; then
34354 if test -z "$haveit"; then
34355 if test -d "$additional_libdir"; then
34356 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
34360 for x in $LDFLAGS $LTLIBINTL; do
34362 acl_save_prefix="$prefix"
34363 prefix="$acl_final_prefix"
34364 acl_save_exec_prefix="$exec_prefix"
34365 exec_prefix="$acl_final_exec_prefix"
34367 exec_prefix="$acl_save_exec_prefix"
34368 prefix="$acl_save_prefix"
34370 if test "X$x" = "X-L$additional_libdir"; then
34375 if test -z "$haveit"; then
34376 if test -d "$additional_libdir"; then
34377 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
34384 dir=`echo "X$dep" | sed -e 's/^X-R//'`
34385 if test "$enable_rpath" != no; then
34387 for x in $rpathdirs; do
34388 if test "X$x" = "X$dir"; then
34393 if test -z "$haveit"; then
34394 rpathdirs="$rpathdirs $dir"
34397 for x in $ltrpathdirs; do
34398 if test "X$x" = "X$dir"; then
34403 if test -z "$haveit"; then
34404 ltrpathdirs="$ltrpathdirs $dir"
34409 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
34412 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
34415 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
34416 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
34422 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
34423 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
34429 if test "X$rpathdirs" != "X"; then
34430 if test -n "$hardcode_libdir_separator"; then
34432 for found_dir in $rpathdirs; do
34433 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
34435 acl_save_libdir="$libdir"
34437 eval flag=\"$hardcode_libdir_flag_spec\"
34438 libdir="$acl_save_libdir"
34439 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
34441 for found_dir in $rpathdirs; do
34442 acl_save_libdir="$libdir"
34443 libdir="$found_dir"
34444 eval flag=\"$hardcode_libdir_flag_spec\"
34445 libdir="$acl_save_libdir"
34446 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
34450 if test "X$ltrpathdirs" != "X"; then
34451 for found_dir in $ltrpathdirs; do
34452 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
34456 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
34457 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
34458 if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
34459 echo $ECHO_N "(cached) $ECHO_C" >&6
34461 gt_save_CPPFLAGS="$CPPFLAGS"
34462 CPPFLAGS="$CPPFLAGS $INCINTL"
34463 gt_save_LIBS="$LIBS"
34464 LIBS="$LIBS $LIBINTL"
34465 cat >conftest.$ac_ext <<_ACEOF
34468 cat confdefs.h >>conftest.$ac_ext
34469 cat >>conftest.$ac_ext <<_ACEOF
34470 /* end confdefs.h. */
34471 #include <libintl.h>
34472 $gt_revision_test_code
34473 extern int _nl_msg_cat_cntr;
34478 const char *_nl_expand_alias (const char *);
34482 bindtextdomain ("", "");
34483 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
34488 rm -f conftest.$ac_objext conftest$ac_exeext
34489 if { (ac_try="$ac_link"
34490 case "(($ac_try" in
34491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34492 *) ac_try_echo=$ac_try;;
34494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34495 (eval "$ac_link") 2>conftest.er1
34497 grep -v '^ *+' conftest.er1 >conftest.err
34499 cat conftest.err >&5
34500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34501 (exit $ac_status); } && {
34502 test -z "$ac_c_werror_flag" ||
34503 test ! -s conftest.err
34504 } && test -s conftest$ac_exeext &&
34505 $as_test_x conftest$ac_exeext; then
34506 eval "$gt_func_gnugettext_libintl=yes"
34508 echo "$as_me: failed program was:" >&5
34509 sed 's/^/| /' conftest.$ac_ext >&5
34511 eval "$gt_func_gnugettext_libintl=no"
34514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34515 conftest$ac_exeext conftest.$ac_ext
34516 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
34517 LIBS="$LIBS $LIBICONV"
34518 cat >conftest.$ac_ext <<_ACEOF
34521 cat confdefs.h >>conftest.$ac_ext
34522 cat >>conftest.$ac_ext <<_ACEOF
34523 /* end confdefs.h. */
34524 #include <libintl.h>
34525 $gt_revision_test_code
34526 extern int _nl_msg_cat_cntr;
34531 const char *_nl_expand_alias (const char *);
34535 bindtextdomain ("", "");
34536 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
34541 rm -f conftest.$ac_objext conftest$ac_exeext
34542 if { (ac_try="$ac_link"
34543 case "(($ac_try" in
34544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34545 *) ac_try_echo=$ac_try;;
34547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34548 (eval "$ac_link") 2>conftest.er1
34550 grep -v '^ *+' conftest.er1 >conftest.err
34552 cat conftest.err >&5
34553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34554 (exit $ac_status); } && {
34555 test -z "$ac_c_werror_flag" ||
34556 test ! -s conftest.err
34557 } && test -s conftest$ac_exeext &&
34558 $as_test_x conftest$ac_exeext; then
34559 LIBINTL="$LIBINTL $LIBICONV"
34560 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
34561 eval "$gt_func_gnugettext_libintl=yes"
34564 echo "$as_me: failed program was:" >&5
34565 sed 's/^/| /' conftest.$ac_ext >&5
34570 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34571 conftest$ac_exeext conftest.$ac_ext
34573 CPPFLAGS="$gt_save_CPPFLAGS"
34574 LIBS="$gt_save_LIBS"
34576 ac_res=`eval echo '${'$gt_func_gnugettext_libintl'}'`
34577 { echo "$as_me:$LINENO: result: $ac_res" >&5
34578 echo "${ECHO_T}$ac_res" >&6; }
34581 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
34582 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
34583 && test "$PACKAGE" != gettext-runtime \
34584 && test "$PACKAGE" != gettext-tools; }; then
34585 gt_use_preinstalled_gnugettext=yes
34594 if test -n "$INTL_MACOSX_LIBS"; then
34595 if test "$gt_use_preinstalled_gnugettext" = "yes" \
34596 || test "$nls_cv_use_gnu_gettext" = "yes"; then
34597 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
34598 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
34602 if test "$gt_use_preinstalled_gnugettext" = "yes" \
34603 || test "$nls_cv_use_gnu_gettext" = "yes"; then
34605 cat >>confdefs.h <<\_ACEOF
34606 #define ENABLE_NLS 1
34614 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
34615 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
34616 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
34617 echo "${ECHO_T}$USE_NLS" >&6; }
34618 if test "$USE_NLS" = "yes"; then
34619 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
34620 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
34621 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
34622 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
34623 gt_source="external libintl"
34628 gt_source="included intl directory"
34630 { echo "$as_me:$LINENO: result: $gt_source" >&5
34631 echo "${ECHO_T}$gt_source" >&6; }
34634 if test "$USE_NLS" = "yes"; then
34636 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
34637 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
34638 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
34639 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
34640 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
34641 echo "${ECHO_T}$LIBINTL" >&6; }
34643 for element in $INCINTL; do
34645 for x in $CPPFLAGS; do
34647 acl_save_prefix="$prefix"
34648 prefix="$acl_final_prefix"
34649 acl_save_exec_prefix="$exec_prefix"
34650 exec_prefix="$acl_final_exec_prefix"
34652 exec_prefix="$acl_save_exec_prefix"
34653 prefix="$acl_save_prefix"
34655 if test "X$x" = "X$element"; then
34660 if test -z "$haveit"; then
34661 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
34668 cat >>confdefs.h <<\_ACEOF
34669 #define HAVE_GETTEXT 1
34673 cat >>confdefs.h <<\_ACEOF
34674 #define HAVE_DCGETTEXT 1
34684 INTLLIBS="$LIBINTL"
34692 ###########################################################
34693 ## Definiation of compile args. ##
34694 ###########################################################
34695 # Check whether --enable-scim-debug was given.
34696 if test "${enable_scim_debug+set}" = set; then
34697 enableval=$enable_scim_debug; scim_debug=yes
34703 if test "$scim_debug" = "yes"; then
34705 cat >>confdefs.h <<\_ACEOF
34706 #define ENABLE_DEBUG 1
34709 CFLAGS="$CFLAGS -g"
34710 CXXFLAGS="$CXXFLAGS -g"
34712 cat >>confdefs.h <<\_ACEOF
34713 #define ENABLE_DEBUG 0
34719 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
34720 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
34721 if test "${ac_cv_c_bigendian+set}" = set; then
34722 echo $ECHO_N "(cached) $ECHO_C" >&6
34724 # See if sys/param.h defines the BYTE_ORDER macro.
34725 cat >conftest.$ac_ext <<_ACEOF
34728 cat confdefs.h >>conftest.$ac_ext
34729 cat >>conftest.$ac_ext <<_ACEOF
34730 /* end confdefs.h. */
34731 #include <sys/types.h>
34732 #include <sys/param.h>
34737 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
34738 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
34739 bogus endian macros
34746 rm -f conftest.$ac_objext
34747 if { (ac_try="$ac_compile"
34748 case "(($ac_try" in
34749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34750 *) ac_try_echo=$ac_try;;
34752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34753 (eval "$ac_compile") 2>conftest.er1
34755 grep -v '^ *+' conftest.er1 >conftest.err
34757 cat conftest.err >&5
34758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34759 (exit $ac_status); } && {
34760 test -z "$ac_c_werror_flag" ||
34761 test ! -s conftest.err
34762 } && test -s conftest.$ac_objext; then
34763 # It does; now see whether it defined to BIG_ENDIAN or not.
34764 cat >conftest.$ac_ext <<_ACEOF
34767 cat confdefs.h >>conftest.$ac_ext
34768 cat >>conftest.$ac_ext <<_ACEOF
34769 /* end confdefs.h. */
34770 #include <sys/types.h>
34771 #include <sys/param.h>
34776 #if BYTE_ORDER != BIG_ENDIAN
34784 rm -f conftest.$ac_objext
34785 if { (ac_try="$ac_compile"
34786 case "(($ac_try" in
34787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34788 *) ac_try_echo=$ac_try;;
34790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34791 (eval "$ac_compile") 2>conftest.er1
34793 grep -v '^ *+' conftest.er1 >conftest.err
34795 cat conftest.err >&5
34796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34797 (exit $ac_status); } && {
34798 test -z "$ac_c_werror_flag" ||
34799 test ! -s conftest.err
34800 } && test -s conftest.$ac_objext; then
34801 ac_cv_c_bigendian=yes
34803 echo "$as_me: failed program was:" >&5
34804 sed 's/^/| /' conftest.$ac_ext >&5
34806 ac_cv_c_bigendian=no
34809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34811 echo "$as_me: failed program was:" >&5
34812 sed 's/^/| /' conftest.$ac_ext >&5
34814 # It does not; compile a test program.
34815 if test "$cross_compiling" = yes; then
34816 # try to guess the endianness by grepping values into an object file
34817 ac_cv_c_bigendian=unknown
34818 cat >conftest.$ac_ext <<_ACEOF
34821 cat confdefs.h >>conftest.$ac_ext
34822 cat >>conftest.$ac_ext <<_ACEOF
34823 /* end confdefs.h. */
34824 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
34825 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
34826 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
34827 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
34828 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
34829 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
34833 _ascii (); _ebcdic ();
34838 rm -f conftest.$ac_objext
34839 if { (ac_try="$ac_compile"
34840 case "(($ac_try" in
34841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34842 *) ac_try_echo=$ac_try;;
34844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34845 (eval "$ac_compile") 2>conftest.er1
34847 grep -v '^ *+' conftest.er1 >conftest.err
34849 cat conftest.err >&5
34850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34851 (exit $ac_status); } && {
34852 test -z "$ac_c_werror_flag" ||
34853 test ! -s conftest.err
34854 } && test -s conftest.$ac_objext; then
34855 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
34856 ac_cv_c_bigendian=yes
34858 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
34859 if test "$ac_cv_c_bigendian" = unknown; then
34860 ac_cv_c_bigendian=no
34862 # finding both strings is unlikely to happen, but who knows?
34863 ac_cv_c_bigendian=unknown
34867 echo "$as_me: failed program was:" >&5
34868 sed 's/^/| /' conftest.$ac_ext >&5
34873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34875 cat >conftest.$ac_ext <<_ACEOF
34878 cat confdefs.h >>conftest.$ac_ext
34879 cat >>conftest.$ac_ext <<_ACEOF
34880 /* end confdefs.h. */
34881 $ac_includes_default
34886 /* Are we little or big endian? From Harbison&Steele. */
34890 char c[sizeof (long int)];
34893 return u.c[sizeof (long int) - 1] == 1;
34899 rm -f conftest$ac_exeext
34900 if { (ac_try="$ac_link"
34901 case "(($ac_try" in
34902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34903 *) ac_try_echo=$ac_try;;
34905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34906 (eval "$ac_link") 2>&5
34908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34909 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34910 { (case "(($ac_try" in
34911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34912 *) ac_try_echo=$ac_try;;
34914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34915 (eval "$ac_try") 2>&5
34917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34918 (exit $ac_status); }; }; then
34919 ac_cv_c_bigendian=no
34921 echo "$as_me: program exited with status $ac_status" >&5
34922 echo "$as_me: failed program was:" >&5
34923 sed 's/^/| /' conftest.$ac_ext >&5
34925 ( exit $ac_status )
34926 ac_cv_c_bigendian=yes
34928 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34936 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
34937 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
34938 case $ac_cv_c_bigendian in
34941 cat >>confdefs.h <<\_ACEOF
34942 #define WORDS_BIGENDIAN 1
34948 { { echo "$as_me:$LINENO: error: unknown endianness
34949 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
34950 echo "$as_me: error: unknown endianness
34951 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
34952 { (exit 1); exit 1; }; } ;;
34956 { echo "$as_me:$LINENO: checking for MAXPATHLEN" >&5
34957 echo $ECHO_N "checking for MAXPATHLEN... $ECHO_C" >&6; }
34958 if test "${ac_cv_maxpathlen+set}" = set; then
34959 echo $ECHO_N "(cached) $ECHO_C" >&6
34962 cat > conftest.$ac_ext <<EOF
34963 #ifdef STDC_HEADERS
34964 # include <stdlib.h>
34967 #include <sys/param.h>
34969 #define MAXPATHLEN 1024
34972 KDE_HELLO MAXPATHLEN
34976 ac_try="$ac_cpp conftest.$ac_ext 2>/dev/null | grep '^KDE_HELLO' >conftest.out"
34978 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34979 (eval $ac_try) 2>&5
34981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34982 (exit $ac_status); } && test -s conftest.out; then
34983 ac_cv_maxpathlen=`sed 's#KDE_HELLO ##' conftest.out`
34985 ac_cv_maxpathlen=1024
34993 { echo "$as_me:$LINENO: result: $ac_cv_maxpathlen" >&5
34994 echo "${ECHO_T}$ac_cv_maxpathlen" >&6; }
34996 cat >>confdefs.h <<_ACEOF
34997 #define KDEMAXPATHLEN $ac_cv_maxpathlen
35003 REQUIRED_SKIM_VERSION=1.3.0
35004 kde_libsuffix=`kde-config --libsuffix`
35005 test -z "$KDEDIR" && KDEDIR=`kde-config --prefix`
35006 export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$KDEDIR/lib${kde_libsuffix}/pkgconfig
35009 { echo "$as_me:$LINENO: checking for SKIM" >&5
35010 echo $ECHO_N "checking for SKIM... $ECHO_C" >&6; }
35012 if test -n "$PKG_CONFIG"; then
35013 if test -n "$SKIM_CFLAGS"; then
35014 pkg_cv_SKIM_CFLAGS="$SKIM_CFLAGS"
35016 if test -n "$PKG_CONFIG" && \
35017 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"skim >= \$REQUIRED_SKIM_VERSION\"") >&5
35018 ($PKG_CONFIG --exists --print-errors "skim >= $REQUIRED_SKIM_VERSION") 2>&5
35020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35021 (exit $ac_status); }; then
35022 pkg_cv_SKIM_CFLAGS=`$PKG_CONFIG --cflags "skim >= $REQUIRED_SKIM_VERSION" 2>/dev/null`
35030 if test -n "$PKG_CONFIG"; then
35031 if test -n "$SKIM_LIBS"; then
35032 pkg_cv_SKIM_LIBS="$SKIM_LIBS"
35034 if test -n "$PKG_CONFIG" && \
35035 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"skim >= \$REQUIRED_SKIM_VERSION\"") >&5
35036 ($PKG_CONFIG --exists --print-errors "skim >= $REQUIRED_SKIM_VERSION") 2>&5
35038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35039 (exit $ac_status); }; then
35040 pkg_cv_SKIM_LIBS=`$PKG_CONFIG --libs "skim >= $REQUIRED_SKIM_VERSION" 2>/dev/null`
35051 if test $pkg_failed = yes; then
35053 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35054 _pkg_short_errors_supported=yes
35056 _pkg_short_errors_supported=no
35058 if test $_pkg_short_errors_supported = yes; then
35059 SKIM_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "skim >= $REQUIRED_SKIM_VERSION"`
35061 SKIM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "skim >= $REQUIRED_SKIM_VERSION"`
35063 # Put the nasty error message in config.log where it belongs
35064 echo "$SKIM_PKG_ERRORS" >&5
35066 { echo "$as_me:$LINENO: result: no" >&5
35067 echo "${ECHO_T}no" >&6; }
35069 elif test $pkg_failed = untried; then
35072 SKIM_CFLAGS=$pkg_cv_SKIM_CFLAGS
35073 SKIM_LIBS=$pkg_cv_SKIM_LIBS
35074 { echo "$as_me:$LINENO: result: yes" >&5
35075 echo "${ECHO_T}yes" >&6; }
35079 if test "x$HAS_SKIM" = "xyes"; then
35083 { echo "$as_me:$LINENO: checking for SCIM_KDEUTILS" >&5
35084 echo $ECHO_N "checking for SCIM_KDEUTILS... $ECHO_C" >&6; }
35086 if test -n "$PKG_CONFIG"; then
35087 if test -n "$SCIM_KDEUTILS_CFLAGS"; then
35088 pkg_cv_SCIM_KDEUTILS_CFLAGS="$SCIM_KDEUTILS_CFLAGS"
35090 if test -n "$PKG_CONFIG" && \
35091 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"scim_kdeutils >= \$REQUIRED_SKIM_VERSION\"") >&5
35092 ($PKG_CONFIG --exists --print-errors "scim_kdeutils >= $REQUIRED_SKIM_VERSION") 2>&5
35094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35095 (exit $ac_status); }; then
35096 pkg_cv_SCIM_KDEUTILS_CFLAGS=`$PKG_CONFIG --cflags "scim_kdeutils >= $REQUIRED_SKIM_VERSION" 2>/dev/null`
35104 if test -n "$PKG_CONFIG"; then
35105 if test -n "$SCIM_KDEUTILS_LIBS"; then
35106 pkg_cv_SCIM_KDEUTILS_LIBS="$SCIM_KDEUTILS_LIBS"
35108 if test -n "$PKG_CONFIG" && \
35109 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"scim_kdeutils >= \$REQUIRED_SKIM_VERSION\"") >&5
35110 ($PKG_CONFIG --exists --print-errors "scim_kdeutils >= $REQUIRED_SKIM_VERSION") 2>&5
35112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35113 (exit $ac_status); }; then
35114 pkg_cv_SCIM_KDEUTILS_LIBS=`$PKG_CONFIG --libs "scim_kdeutils >= $REQUIRED_SKIM_VERSION" 2>/dev/null`
35125 if test $pkg_failed = yes; then
35127 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35128 _pkg_short_errors_supported=yes
35130 _pkg_short_errors_supported=no
35132 if test $_pkg_short_errors_supported = yes; then
35133 SCIM_KDEUTILS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "scim_kdeutils >= $REQUIRED_SKIM_VERSION"`
35135 SCIM_KDEUTILS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "scim_kdeutils >= $REQUIRED_SKIM_VERSION"`
35137 # Put the nasty error message in config.log where it belongs
35138 echo "$SCIM_KDEUTILS_PKG_ERRORS" >&5
35140 { echo "$as_me:$LINENO: result: no" >&5
35141 echo "${ECHO_T}no" >&6; }
35143 elif test $pkg_failed = untried; then
35146 SCIM_KDEUTILS_CFLAGS=$pkg_cv_SCIM_KDEUTILS_CFLAGS
35147 SCIM_KDEUTILS_LIBS=$pkg_cv_SCIM_KDEUTILS_LIBS
35148 { echo "$as_me:$LINENO: result: yes" >&5
35149 echo "${ECHO_T}yes" >&6; }
35153 if test "x$HAS_KDEUTILS" = "xyes"; then
35154 SKIM_VERSION=`$PKG_CONFIG --modversion skim`
35155 SCIM_PINYIN_ENABLE_SKIM_SUPPORT=1
35156 skim_prefix=`$PKG_CONFIG --variable=prefix skim`
35157 skim_libdir=`$PKG_CONFIG --variable=libdir skim`
35160 ##we need to overwrite prefix with the same prefix of which skim was installed to
35161 prefix=$skim_prefix
35162 libdir=$skim_libdir
35163 ##this is to get rid of the last warning
35164 given_prefix=$skim_prefix
35167 { { echo "$as_me:$LINENO: error: skim library is not available or the version is too old!" >&5
35168 echo "$as_me: error: skim library is not available or the version is too old!" >&2;}
35169 { (exit 1); exit 1; }; }
35173 DO_NOT_COMPILE="$DO_NOT_COMPILE CVS debian bsd-port admin"
35176 if test ! -s $srcdir/subdirs; then
35177 files=`cd $srcdir && ls -1`
35178 dirs=`for i in $files; do if test -d $i; then echo $i; fi; done`
35180 echo $i >> $srcdir/subdirs
35185 if test -s $srcdir/inst-apps; then
35186 ac_topsubdirs="`cat $srcdir/inst-apps`"
35187 elif test -s $srcdir/subdirs; then
35188 ac_topsubdirs="`cat $srcdir/subdirs`"
35191 for i in $ac_topsubdirs; do
35192 { echo "$as_me:$LINENO: checking if $i should be compiled" >&5
35193 echo $ECHO_N "checking if $i should be compiled... $ECHO_C" >&6; }
35194 if test -d $srcdir/$i; then
35196 for j in $DO_NOT_COMPILE; do
35197 if test $i = $j; then
35204 { echo "$as_me:$LINENO: result: $install_it" >&5
35205 echo "${ECHO_T}$install_it" >&6; }
35206 vari=`echo $i | sed -e 's,[-+.@],_,g'`
35207 if test $install_it = "yes"; then
35208 TOPSUBDIRS="$TOPSUBDIRS $i"
35209 eval "$vari""_SUBDIR_included=yes"
35211 eval "$vari""_SUBDIR_included=no"
35217 ac_config_files="$ac_config_files Makefile"
35219 ac_config_files="$ac_config_files icons/Makefile"
35221 ac_config_files="$ac_config_files po/Makefile"
35223 ac_config_files="$ac_config_files setupui/Makefile"
35225 cat >confcache <<\_ACEOF
35226 # This file is a shell script that caches the results of configure
35227 # tests run on this system so they can be shared between configure
35228 # scripts and configure runs, see configure's option --config-cache.
35229 # It is not useful on other systems. If it contains results you don't
35230 # want to keep, you may remove or edit it.
35232 # config.status only pays attention to the cache file if you give it
35233 # the --recheck option to rerun configure.
35235 # `ac_cv_env_foo' variables (set or unset) will be overridden when
35236 # loading this file, other *unset* `ac_cv_foo' will be assigned the
35237 # following values.
35241 # The following way of writing the cache mishandles newlines in values,
35242 # but we know of no workaround that is simple, portable, and efficient.
35243 # So, we kill variables containing newlines.
35244 # Ultrix sh set writes to stderr and can't be redirected directly,
35245 # and sets the high bit in the cache file unless we assign to the vars.
35247 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35248 eval ac_val=\$$ac_var
35252 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
35253 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
35256 _ | IFS | as_nl) ;; #(
35257 *) $as_unset $ac_var ;;
35263 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35264 *${as_nl}ac_space=\ *)
35265 # `set' does not quote correctly, so add quotes (double-quote
35266 # substitution turns \\\\ into \\, and sed turns \\ into \).
35269 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35272 # `set' quotes correctly as required by POSIX, so do not add quotes.
35273 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35282 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35284 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35286 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35287 if test -w "$cache_file"; then
35288 test "x$cache_file" != "x/dev/null" &&
35289 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
35290 echo "$as_me: updating cache $cache_file" >&6;}
35291 cat confcache >$cache_file
35293 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
35294 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35299 test "x$prefix" = xNONE && prefix=$ac_default_prefix
35300 # Let make expand exec_prefix.
35301 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35303 DEFS=-DHAVE_CONFIG_H
35307 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35308 # 1. Remove the extension, and $U if already installed.
35309 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35310 ac_i=`echo "$ac_i" | sed "$ac_script"`
35311 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35312 # will be set to the directory where LIBOBJS objects are built.
35313 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35314 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
35316 LIBOBJS=$ac_libobjs
35318 LTLIBOBJS=$ac_ltlibobjs
35321 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
35322 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
35323 Usually this means the macro was only invoked conditionally." >&5
35324 echo "$as_me: error: conditional \"AMDEP\" was never defined.
35325 Usually this means the macro was only invoked conditionally." >&2;}
35326 { (exit 1); exit 1; }; }
35328 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
35329 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
35330 Usually this means the macro was only invoked conditionally." >&5
35331 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
35332 Usually this means the macro was only invoked conditionally." >&2;}
35333 { (exit 1); exit 1; }; }
35335 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
35336 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
35337 Usually this means the macro was only invoked conditionally." >&5
35338 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
35339 Usually this means the macro was only invoked conditionally." >&2;}
35340 { (exit 1); exit 1; }; }
35342 if test -z "${unsermake_enable_pch_TRUE}" && test -z "${unsermake_enable_pch_FALSE}"; then
35343 { { echo "$as_me:$LINENO: error: conditional \"unsermake_enable_pch\" was never defined.
35344 Usually this means the macro was only invoked conditionally." >&5
35345 echo "$as_me: error: conditional \"unsermake_enable_pch\" was never defined.
35346 Usually this means the macro was only invoked conditionally." >&2;}
35347 { (exit 1); exit 1; }; }
35349 if test -z "${include_x11_TRUE}" && test -z "${include_x11_FALSE}"; then
35350 { { echo "$as_me:$LINENO: error: conditional \"include_x11\" was never defined.
35351 Usually this means the macro was only invoked conditionally." >&5
35352 echo "$as_me: error: conditional \"include_x11\" was never defined.
35353 Usually this means the macro was only invoked conditionally." >&2;}
35354 { (exit 1); exit 1; }; }
35356 if test -z "${include_ARTS_TRUE}" && test -z "${include_ARTS_FALSE}"; then
35357 { { echo "$as_me:$LINENO: error: conditional \"include_ARTS\" was never defined.
35358 Usually this means the macro was only invoked conditionally." >&5
35359 echo "$as_me: error: conditional \"include_ARTS\" was never defined.
35360 Usually this means the macro was only invoked conditionally." >&2;}
35361 { (exit 1); exit 1; }; }
35364 : ${CONFIG_STATUS=./config.status}
35365 ac_clean_files_save=$ac_clean_files
35366 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35367 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35368 echo "$as_me: creating $CONFIG_STATUS" >&6;}
35369 cat >$CONFIG_STATUS <<_ACEOF
35371 # Generated by $as_me.
35372 # Run this file to recreate the current configuration.
35373 # Compiler output produced by configure, useful for debugging
35374 # configure, is in config.log if it exists.
35377 ac_cs_recheck=false
35379 SHELL=\${CONFIG_SHELL-$SHELL}
35382 cat >>$CONFIG_STATUS <<\_ACEOF
35383 ## --------------------- ##
35384 ## M4sh Initialization. ##
35385 ## --------------------- ##
35387 # Be more Bourne compatible
35388 DUALCASE=1; export DUALCASE # for MKS sh
35389 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35392 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35393 # is contrary to our usage. Disable this feature.
35394 alias -g '${1+"$@"}'='"$@"'
35395 setopt NO_GLOB_SUBST
35397 case `(set -o) 2>/dev/null` in
35398 *posix*) set -o posix ;;
35407 # Avoid depending upon Character Ranges.
35408 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35409 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35410 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35411 as_cr_digits='0123456789'
35412 as_cr_alnum=$as_cr_Letters$as_cr_digits
35414 # The user is always right.
35415 if test "${PATH_SEPARATOR+set}" != set; then
35416 echo "#! /bin/sh" >conf$$.sh
35417 echo "exit 0" >>conf$$.sh
35419 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
35427 # Support unset when possible.
35428 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35436 # We need space, tab and new line, in precisely that order. Quoting is
35437 # there to prevent editors from complaining about space-tab.
35438 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
35439 # splitting by setting IFS to empty value.)
35444 # Find who we are. Look in the path if we contain no directory separator.
35446 *[\\/]* ) as_myself=$0 ;;
35447 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35448 for as_dir in $PATH
35451 test -z "$as_dir" && as_dir=.
35452 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35458 # We did not find ourselves, most probably we were run as `sh COMMAND'
35459 # in which case we are not to be found in the path.
35460 if test "x$as_myself" = x; then
35463 if test ! -f "$as_myself"; then
35464 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35465 { (exit 1); exit 1; }
35468 # Work around bugs in pre-3.0 UWIN ksh.
35469 for as_var in ENV MAIL MAILPATH
35470 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35478 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35479 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35480 LC_TELEPHONE LC_TIME
35482 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
35483 eval $as_var=C; export $as_var
35485 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35489 # Required to use basename.
35490 if expr a : '\(a\)' >/dev/null 2>&1 &&
35491 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35497 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35498 as_basename=basename
35504 # Name of the executable.
35505 as_me=`$as_basename -- "$0" ||
35506 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35507 X"$0" : 'X\(//\)$' \| \
35508 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35510 sed '/^.*\/\([^/][^/]*\)\/*$/{
35529 as_lineno_1=$LINENO
35530 as_lineno_2=$LINENO
35531 test "x$as_lineno_1" != "x$as_lineno_2" &&
35532 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
35534 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35535 # uniformly replaced by the line number. The first 'sed' inserts a
35536 # line-number line after each line using $LINENO; the second 'sed'
35537 # does the real work. The second script uses 'N' to pair each
35538 # line-number line with the line containing $LINENO, and appends
35539 # trailing '-' during substitution so that $LINENO is not a special
35540 # case at line end.
35541 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35542 # scripts with optimization help from Paolo Bonzini. Blame Lee
35543 # E. McMahon (1931-1989) for sed's syntax. :-)
35555 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
35558 ' >$as_me.lineno &&
35559 chmod +x "$as_me.lineno" ||
35560 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
35561 { (exit 1); exit 1; }; }
35563 # Don't try to exec as it changes $[0], causing all sort of problems
35564 # (the dirname of $[0] is not the place where we might find the
35565 # original and so on. Autoconf is especially sensitive to this).
35566 . "./$as_me.lineno"
35567 # Exit status is that of the last command.
35572 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35578 ECHO_C= ECHO_N= ECHO_T=
35579 case `echo -n x` in
35581 case `echo 'x\c'` in
35582 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
35589 if expr a : '\(a\)' >/dev/null 2>&1 &&
35590 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35596 rm -f conf$$ conf$$.exe conf$$.file
35597 if test -d conf$$.dir; then
35598 rm -f conf$$.dir/conf$$.file
35604 if ln -s conf$$.file conf$$ 2>/dev/null; then
35606 # ... but there are two gotchas:
35607 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35608 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35609 # In both cases, we have to default to `cp -p'.
35610 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35612 elif ln conf$$.file conf$$ 2>/dev/null; then
35617 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35618 rmdir conf$$.dir 2>/dev/null
35620 if mkdir -p . 2>/dev/null; then
35623 test -d ./-p && rmdir ./-p
35627 if test -x / >/dev/null 2>&1; then
35628 as_test_x='test -x'
35630 if ls -dL / >/dev/null 2>&1; then
35637 if test -d "$1"; then
35643 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
35644 ???[sx]*):;;*)false;;esac;fi
35648 as_executable_p=$as_test_x
35650 # Sed expression to map a string onto a valid CPP name.
35651 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35653 # Sed expression to map a string onto a valid variable name.
35654 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35659 # Save the log message, to keep $[0] and so on meaningful, and to
35660 # report actual input values of CONFIG_FILES etc. instead of their
35661 # values after options handling.
35663 This file was extended by $as_me, which was
35664 generated by GNU Autoconf 2.61. Invocation command line was
35666 CONFIG_FILES = $CONFIG_FILES
35667 CONFIG_HEADERS = $CONFIG_HEADERS
35668 CONFIG_LINKS = $CONFIG_LINKS
35669 CONFIG_COMMANDS = $CONFIG_COMMANDS
35672 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35677 cat >>$CONFIG_STATUS <<_ACEOF
35678 # Files that config.status was made for.
35679 config_files="$ac_config_files"
35680 config_headers="$ac_config_headers"
35681 config_commands="$ac_config_commands"
35685 cat >>$CONFIG_STATUS <<\_ACEOF
35687 \`$as_me' instantiates files from templates according to the
35688 current configuration.
35690 Usage: $0 [OPTIONS] [FILE]...
35692 -h, --help print this help, then exit
35693 -V, --version print version number and configuration settings, then exit
35694 -q, --quiet do not print progress messages
35695 -d, --debug don't remove temporary files
35696 --recheck update $as_me by reconfiguring in the same conditions
35697 --file=FILE[:TEMPLATE]
35698 instantiate the configuration file FILE
35699 --header=FILE[:TEMPLATE]
35700 instantiate the configuration header FILE
35702 Configuration files:
35705 Configuration headers:
35708 Configuration commands:
35711 Report bugs to <bug-autoconf@gnu.org>."
35714 cat >>$CONFIG_STATUS <<_ACEOF
35717 configured by $0, generated by GNU Autoconf 2.61,
35718 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
35720 Copyright (C) 2006 Free Software Foundation, Inc.
35721 This config.status script is free software; the Free Software Foundation
35722 gives unlimited permission to copy, distribute and modify it."
35729 cat >>$CONFIG_STATUS <<\_ACEOF
35730 # If no file are specified by the user, then we need to provide default
35731 # value. By we need to know if files were specified by the user.
35737 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35738 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35749 # Handling of the options.
35750 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35752 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35753 echo "$ac_cs_version"; exit ;;
35754 --debug | --debu | --deb | --de | --d | -d )
35756 --file | --fil | --fi | --f )
35758 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
35759 ac_need_defaults=false;;
35760 --header | --heade | --head | --hea )
35762 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
35763 ac_need_defaults=false;;
35765 # Conflict between --help and --header
35766 { echo "$as_me: error: ambiguous option: $1
35767 Try \`$0 --help' for more information." >&2
35768 { (exit 1); exit 1; }; };;
35769 --help | --hel | -h )
35770 echo "$ac_cs_usage"; exit ;;
35771 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35772 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35775 # This is an error.
35776 -*) { echo "$as_me: error: unrecognized option: $1
35777 Try \`$0 --help' for more information." >&2
35778 { (exit 1); exit 1; }; } ;;
35780 *) ac_config_targets="$ac_config_targets $1"
35781 ac_need_defaults=false ;;
35787 ac_configure_extra_args=
35789 if $ac_cs_silent; then
35791 ac_configure_extra_args="$ac_configure_extra_args --silent"
35795 cat >>$CONFIG_STATUS <<_ACEOF
35796 if \$ac_cs_recheck; then
35797 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35798 CONFIG_SHELL=$SHELL
35799 export CONFIG_SHELL
35800 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35804 cat >>$CONFIG_STATUS <<\_ACEOF
35808 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35809 ## Running $as_me. ##
35815 cat >>$CONFIG_STATUS <<_ACEOF
35819 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
35820 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
35821 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
35822 # from automake < 1.5.
35823 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
35824 # Capture the value of LINGUAS because we need it to compute CATALOGS.
35825 LINGUAS="${LINGUAS-%UNSET%}"
35830 cat >>$CONFIG_STATUS <<\_ACEOF
35832 # Handling of arguments.
35833 for ac_config_target in $ac_config_targets
35835 case $ac_config_target in
35836 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
35837 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
35838 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
35839 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
35840 "icons/Makefile") CONFIG_FILES="$CONFIG_FILES icons/Makefile" ;;
35841 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
35842 "setupui/Makefile") CONFIG_FILES="$CONFIG_FILES setupui/Makefile" ;;
35844 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35845 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35846 { (exit 1); exit 1; }; };;
35851 # If the user did not use the arguments to specify the items to instantiate,
35852 # then the envvar interface is used. Set only those that are not.
35853 # We use the long form for the default assignment because of an extremely
35854 # bizarre bug on SunOS 4.1.3.
35855 if $ac_need_defaults; then
35856 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35857 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35858 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35861 # Have a temporary directory for convenience. Make it in the build tree
35862 # simply because there is no reason against having it here, and in addition,
35863 # creating and moving files from /tmp can sometimes cause problems.
35864 # Hook for its removal unless debugging.
35865 # Note that there is a small window in which the directory will not be cleaned:
35866 # after its creation but before its name has been assigned to `$tmp'.
35870 trap 'exit_status=$?
35871 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35873 trap '{ (exit 1); exit 1; }' 1 2 13 15
35875 # Create a (secure) tmp directory for tmp files.
35878 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35879 test -n "$tmp" && test -d "$tmp"
35882 tmp=./conf$$-$RANDOM
35883 (umask 077 && mkdir "$tmp")
35886 echo "$me: cannot create a temporary directory in ." >&2
35887 { (exit 1); exit 1; }
35891 # Set up the sed scripts for CONFIG_FILES section.
35894 # No need to generate the scripts if there are no CONFIG_FILES.
35895 # This happens for instance when ./config.status config.h
35896 if test -n "$CONFIG_FILES"; then
35903 for ac_last_try in false false false false false :; do
35904 cat >conf$$subs.sed <<_ACEOF
35905 SHELL!$SHELL$ac_delim
35906 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
35907 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
35908 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35909 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35910 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35911 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35912 exec_prefix!$exec_prefix$ac_delim
35913 prefix!$prefix$ac_delim
35914 program_transform_name!$program_transform_name$ac_delim
35915 bindir!$bindir$ac_delim
35916 sbindir!$sbindir$ac_delim
35917 libexecdir!$libexecdir$ac_delim
35918 datarootdir!$datarootdir$ac_delim
35919 datadir!$datadir$ac_delim
35920 sysconfdir!$sysconfdir$ac_delim
35921 sharedstatedir!$sharedstatedir$ac_delim
35922 localstatedir!$localstatedir$ac_delim
35923 includedir!$includedir$ac_delim
35924 oldincludedir!$oldincludedir$ac_delim
35925 docdir!$docdir$ac_delim
35926 infodir!$infodir$ac_delim
35927 htmldir!$htmldir$ac_delim
35928 dvidir!$dvidir$ac_delim
35929 pdfdir!$pdfdir$ac_delim
35930 psdir!$psdir$ac_delim
35931 libdir!$libdir$ac_delim
35932 localedir!$localedir$ac_delim
35933 mandir!$mandir$ac_delim
35934 DEFS!$DEFS$ac_delim
35935 ECHO_C!$ECHO_C$ac_delim
35936 ECHO_N!$ECHO_N$ac_delim
35937 ECHO_T!$ECHO_T$ac_delim
35938 LIBS!$LIBS$ac_delim
35939 build_alias!$build_alias$ac_delim
35940 host_alias!$host_alias$ac_delim
35941 target_alias!$target_alias$ac_delim
35942 build!$build$ac_delim
35943 build_cpu!$build_cpu$ac_delim
35944 build_vendor!$build_vendor$ac_delim
35945 build_os!$build_os$ac_delim
35946 host!$host$ac_delim
35947 host_cpu!$host_cpu$ac_delim
35948 host_vendor!$host_vendor$ac_delim
35949 host_os!$host_os$ac_delim
35950 target!$target$ac_delim
35951 target_cpu!$target_cpu$ac_delim
35952 target_vendor!$target_vendor$ac_delim
35953 target_os!$target_os$ac_delim
35954 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35955 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35956 INSTALL_DATA!$INSTALL_DATA$ac_delim
35957 CYGPATH_W!$CYGPATH_W$ac_delim
35958 PACKAGE!$PACKAGE$ac_delim
35959 VERSION!$VERSION$ac_delim
35960 ACLOCAL!$ACLOCAL$ac_delim
35961 AUTOCONF!$AUTOCONF$ac_delim
35962 AUTOMAKE!$AUTOMAKE$ac_delim
35963 AUTOHEADER!$AUTOHEADER$ac_delim
35964 MAKEINFO!$MAKEINFO$ac_delim
35965 install_sh!$install_sh$ac_delim
35966 STRIP!$STRIP$ac_delim
35967 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
35968 mkdir_p!$mkdir_p$ac_delim
35970 SET_MAKE!$SET_MAKE$ac_delim
35971 am__leading_dot!$am__leading_dot$ac_delim
35972 AMTAR!$AMTAR$ac_delim
35973 am__tar!$am__tar$ac_delim
35974 am__untar!$am__untar$ac_delim
35975 KDECONFIG!$KDECONFIG$ac_delim
35976 kde_libs_prefix!$kde_libs_prefix$ac_delim
35977 kde_libs_htmldir!$kde_libs_htmldir$ac_delim
35978 CONF_FILES!$CONF_FILES$ac_delim
35980 CFLAGS!$CFLAGS$ac_delim
35981 LDFLAGS!$LDFLAGS$ac_delim
35982 CPPFLAGS!$CPPFLAGS$ac_delim
35983 ac_ct_CC!$ac_ct_CC$ac_delim
35984 EXEEXT!$EXEEXT$ac_delim
35985 OBJEXT!$OBJEXT$ac_delim
35986 DEPDIR!$DEPDIR$ac_delim
35987 am__include!$am__include$ac_delim
35988 am__quote!$am__quote$ac_delim
35989 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
35990 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
35991 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
35992 CCDEPMODE!$CCDEPMODE$ac_delim
35993 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
35994 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
35997 CXXFLAGS!$CXXFLAGS$ac_delim
35998 ac_ct_CXX!$ac_ct_CXX$ac_delim
35999 CXXDEPMODE!$CXXDEPMODE$ac_delim
36000 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
36001 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
36004 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
36006 elif $ac_last_try; then
36007 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36008 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36009 { (exit 1); exit 1; }; }
36011 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36015 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36016 if test -n "$ac_eof"; then
36017 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36018 ac_eof=`expr $ac_eof + 1`
36021 cat >>$CONFIG_STATUS <<_ACEOF
36022 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
36023 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36026 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36027 s/^/s,@/; s/!/@,|#_!!_#|/
36030 s/'"$ac_delim"'$/,g/; t
36032 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36033 ' >>$CONFIG_STATUS <conf$$subs.sed
36034 rm -f conf$$subs.sed
36035 cat >>$CONFIG_STATUS <<_ACEOF
36041 for ac_last_try in false false false false false :; do
36042 cat >conf$$subs.sed <<_ACEOF
36043 WOVERLOADED_VIRTUAL!$WOVERLOADED_VIRTUAL$ac_delim
36044 HAVE_GCC_VISIBILITY!$HAVE_GCC_VISIBILITY$ac_delim
36045 unsermake_enable_pch_TRUE!$unsermake_enable_pch_TRUE$ac_delim
36046 unsermake_enable_pch_FALSE!$unsermake_enable_pch_FALSE$ac_delim
36047 USE_EXCEPTIONS!$USE_EXCEPTIONS$ac_delim
36048 USE_RTTI!$USE_RTTI$ac_delim
36049 CXXCPP!$CXXCPP$ac_delim
36050 NOOPT_CXXFLAGS!$NOOPT_CXXFLAGS$ac_delim
36051 NOOPT_CFLAGS!$NOOPT_CFLAGS$ac_delim
36052 ENABLE_PERMISSIVE_FLAG!$ENABLE_PERMISSIVE_FLAG$ac_delim
36053 LDFLAGS_AS_NEEDED!$LDFLAGS_AS_NEEDED$ac_delim
36054 LDFLAGS_NEW_DTAGS!$LDFLAGS_NEW_DTAGS$ac_delim
36055 KDE_USE_FINAL_TRUE!$KDE_USE_FINAL_TRUE$ac_delim
36056 KDE_USE_FINAL_FALSE!$KDE_USE_FINAL_FALSE$ac_delim
36057 KDE_USE_CLOSURE_TRUE!$KDE_USE_CLOSURE_TRUE$ac_delim
36058 KDE_USE_CLOSURE_FALSE!$KDE_USE_CLOSURE_FALSE$ac_delim
36059 KDE_NO_UNDEFINED!$KDE_NO_UNDEFINED$ac_delim
36060 KDE_USE_NMCHECK_TRUE!$KDE_USE_NMCHECK_TRUE$ac_delim
36061 KDE_USE_NMCHECK_FALSE!$KDE_USE_NMCHECK_FALSE$ac_delim
36062 GREP!$GREP$ac_delim
36063 EGREP!$EGREP$ac_delim
36064 LN_S!$LN_S$ac_delim
36065 ECHO!$ECHO$ac_delim
36067 RANLIB!$RANLIB$ac_delim
36069 FFLAGS!$FFLAGS$ac_delim
36070 ac_ct_F77!$ac_ct_F77$ac_delim
36071 LIBTOOL!$LIBTOOL$ac_delim
36072 KDE_PLUGIN!$KDE_PLUGIN$ac_delim
36073 MSGFMT!$MSGFMT$ac_delim
36074 GMSGFMT!$GMSGFMT$ac_delim
36075 XGETTEXT!$XGETTEXT$ac_delim
36076 LIBUTIL!$LIBUTIL$ac_delim
36077 LIBCOMPAT!$LIBCOMPAT$ac_delim
36078 LIBCRYPT!$LIBCRYPT$ac_delim
36079 LIBRESOLV!$LIBRESOLV$ac_delim
36080 LIB_POLL!$LIB_POLL$ac_delim
36081 FRAMEWORK_COREAUDIO!$FRAMEWORK_COREAUDIO$ac_delim
36082 LIBSOCKET!$LIBSOCKET$ac_delim
36083 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
36084 LIBUCB!$LIBUCB$ac_delim
36085 LIBDL!$LIBDL$ac_delim
36086 include_x11_TRUE!$include_x11_TRUE$ac_delim
36087 include_x11_FALSE!$include_x11_FALSE$ac_delim
36088 XMKMF!$XMKMF$ac_delim
36089 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
36090 LIB_X11!$LIB_X11$ac_delim
36091 LIB_XRENDER!$LIB_XRENDER$ac_delim
36092 LIBSM!$LIBSM$ac_delim
36093 X_INCLUDES!$X_INCLUDES$ac_delim
36094 X_LDFLAGS!$X_LDFLAGS$ac_delim
36095 x_includes!$x_includes$ac_delim
36096 x_libraries!$x_libraries$ac_delim
36097 QTE_NORTTI!$QTE_NORTTI$ac_delim
36098 LIB_XEXT!$LIB_XEXT$ac_delim
36099 LIBPTHREAD!$LIBPTHREAD$ac_delim
36100 USE_THREADS!$USE_THREADS$ac_delim
36101 KDE_MT_LDFLAGS!$KDE_MT_LDFLAGS$ac_delim
36102 KDE_MT_LIBS!$KDE_MT_LIBS$ac_delim
36103 USER_INCLUDES!$USER_INCLUDES$ac_delim
36104 USER_LDFLAGS!$USER_LDFLAGS$ac_delim
36105 LIBZ!$LIBZ$ac_delim
36106 LIBPNG!$LIBPNG$ac_delim
36107 LIBJPEG!$LIBJPEG$ac_delim
36108 qt_libraries!$qt_libraries$ac_delim
36109 qt_includes!$qt_includes$ac_delim
36110 QT_INCLUDES!$QT_INCLUDES$ac_delim
36111 QT_LDFLAGS!$QT_LDFLAGS$ac_delim
36112 PERL!$PERL$ac_delim
36115 UIC_TR!$UIC_TR$ac_delim
36116 LIB_QT!$LIB_QT$ac_delim
36117 LIB_QPE!$LIB_QPE$ac_delim
36118 kde_qtver!$kde_qtver$ac_delim
36119 KDE_EXTRA_RPATH!$KDE_EXTRA_RPATH$ac_delim
36120 KDE_RPATH!$KDE_RPATH$ac_delim
36121 X_RPATH!$X_RPATH$ac_delim
36122 kde_libraries!$kde_libraries$ac_delim
36123 kde_includes!$kde_includes$ac_delim
36124 KDE_LDFLAGS!$KDE_LDFLAGS$ac_delim
36125 KDE_INCLUDES!$KDE_INCLUDES$ac_delim
36126 all_includes!$all_includes$ac_delim
36127 all_libraries!$all_libraries$ac_delim
36128 AUTODIRS!$AUTODIRS$ac_delim
36129 include_ARTS_TRUE!$include_ARTS_TRUE$ac_delim
36130 include_ARTS_FALSE!$include_ARTS_FALSE$ac_delim
36131 MAKEKDEWIDGETS!$MAKEKDEWIDGETS$ac_delim
36132 KCONFIG_COMPILER!$KCONFIG_COMPILER$ac_delim
36133 KCFG_DEPENDENCIES!$KCFG_DEPENDENCIES$ac_delim
36134 DCOPIDLNG!$DCOPIDLNG$ac_delim
36135 DCOPIDL!$DCOPIDL$ac_delim
36136 DCOPIDL2CPP!$DCOPIDL2CPP$ac_delim
36137 DCOP_DEPENDENCIES!$DCOP_DEPENDENCIES$ac_delim
36138 MCOPIDL!$MCOPIDL$ac_delim
36139 ARTSCCONFIG!$ARTSCCONFIG$ac_delim
36142 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
36144 elif $ac_last_try; then
36145 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36146 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36147 { (exit 1); exit 1; }; }
36149 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36153 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36154 if test -n "$ac_eof"; then
36155 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36156 ac_eof=`expr $ac_eof + 1`
36159 cat >>$CONFIG_STATUS <<_ACEOF
36160 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
36161 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36164 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36165 s/^/s,@/; s/!/@,|#_!!_#|/
36168 s/'"$ac_delim"'$/,g/; t
36170 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36171 ' >>$CONFIG_STATUS <conf$$subs.sed
36172 rm -f conf$$subs.sed
36173 cat >>$CONFIG_STATUS <<_ACEOF
36179 for ac_last_try in false false false false false :; do
36180 cat >conf$$subs.sed <<_ACEOF
36181 MEINPROC!$MEINPROC$ac_delim
36182 KDE_XSL_STYLESHEET!$KDE_XSL_STYLESHEET$ac_delim
36183 XMLLINT!$XMLLINT$ac_delim
36184 kde_htmldir!$kde_htmldir$ac_delim
36185 kde_appsdir!$kde_appsdir$ac_delim
36186 kde_icondir!$kde_icondir$ac_delim
36187 kde_sounddir!$kde_sounddir$ac_delim
36188 kde_datadir!$kde_datadir$ac_delim
36189 kde_locale!$kde_locale$ac_delim
36190 kde_confdir!$kde_confdir$ac_delim
36191 kde_kcfgdir!$kde_kcfgdir$ac_delim
36192 kde_mimedir!$kde_mimedir$ac_delim
36193 kde_wallpaperdir!$kde_wallpaperdir$ac_delim
36194 kde_bindir!$kde_bindir$ac_delim
36195 xdg_appsdir!$xdg_appsdir$ac_delim
36196 xdg_menudir!$xdg_menudir$ac_delim
36197 xdg_directorydir!$xdg_directorydir$ac_delim
36198 kde_templatesdir!$kde_templatesdir$ac_delim
36199 kde_servicesdir!$kde_servicesdir$ac_delim
36200 kde_servicetypesdir!$kde_servicetypesdir$ac_delim
36201 kde_moduledir!$kde_moduledir$ac_delim
36202 kdeinitdir!$kdeinitdir$ac_delim
36203 kde_styledir!$kde_styledir$ac_delim
36204 kde_widgetdir!$kde_widgetdir$ac_delim
36205 LIB_KDECORE!$LIB_KDECORE$ac_delim
36206 LIB_KDEUI!$LIB_KDEUI$ac_delim
36207 LIB_KIO!$LIB_KIO$ac_delim
36208 LIB_KJS!$LIB_KJS$ac_delim
36209 LIB_SMB!$LIB_SMB$ac_delim
36210 LIB_KAB!$LIB_KAB$ac_delim
36211 LIB_KABC!$LIB_KABC$ac_delim
36212 LIB_KHTML!$LIB_KHTML$ac_delim
36213 LIB_KSPELL!$LIB_KSPELL$ac_delim
36214 LIB_KPARTS!$LIB_KPARTS$ac_delim
36215 LIB_KDEPRINT!$LIB_KDEPRINT$ac_delim
36216 LIB_KUTILS!$LIB_KUTILS$ac_delim
36217 LIB_KDEPIM!$LIB_KDEPIM$ac_delim
36218 LIB_KIMPROXY!$LIB_KIMPROXY$ac_delim
36219 LIB_KNEWSTUFF!$LIB_KNEWSTUFF$ac_delim
36220 LIB_KDNSSD!$LIB_KDNSSD$ac_delim
36221 LIB_KSYCOCA!$LIB_KSYCOCA$ac_delim
36222 LIB_KFILE!$LIB_KFILE$ac_delim
36223 LIB_KFM!$LIB_KFM$ac_delim
36224 PKG_CONFIG!$PKG_CONFIG$ac_delim
36225 SCIM_CFLAGS!$SCIM_CFLAGS$ac_delim
36226 SCIM_LIBS!$SCIM_LIBS$ac_delim
36227 REQUIRED_KDE_VERSION!$REQUIRED_KDE_VERSION$ac_delim
36228 REQUIRED_SCIM_VERSION!$REQUIRED_SCIM_VERSION$ac_delim
36229 USE_NLS!$USE_NLS$ac_delim
36230 MSGFMT_015!$MSGFMT_015$ac_delim
36231 GMSGFMT_015!$GMSGFMT_015$ac_delim
36232 XGETTEXT_015!$XGETTEXT_015$ac_delim
36233 MSGMERGE!$MSGMERGE$ac_delim
36234 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
36235 LIBICONV!$LIBICONV$ac_delim
36236 LTLIBICONV!$LTLIBICONV$ac_delim
36237 INTLLIBS!$INTLLIBS$ac_delim
36238 LIBINTL!$LIBINTL$ac_delim
36239 LTLIBINTL!$LTLIBINTL$ac_delim
36240 POSUB!$POSUB$ac_delim
36241 SKIM_CFLAGS!$SKIM_CFLAGS$ac_delim
36242 SKIM_LIBS!$SKIM_LIBS$ac_delim
36243 SCIM_KDEUTILS_CFLAGS!$SCIM_KDEUTILS_CFLAGS$ac_delim
36244 SCIM_KDEUTILS_LIBS!$SCIM_KDEUTILS_LIBS$ac_delim
36245 skim_prefix!$skim_prefix$ac_delim
36246 skim_libdir!$skim_libdir$ac_delim
36247 TOPSUBDIRS!$TOPSUBDIRS$ac_delim
36248 LIBOBJS!$LIBOBJS$ac_delim
36249 LTLIBOBJS!$LTLIBOBJS$ac_delim
36252 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 69; then
36254 elif $ac_last_try; then
36255 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36256 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36257 { (exit 1); exit 1; }; }
36259 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36263 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36264 if test -n "$ac_eof"; then
36265 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36266 ac_eof=`expr $ac_eof + 1`
36269 cat >>$CONFIG_STATUS <<_ACEOF
36270 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
36271 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
36274 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36275 s/^/s,@/; s/!/@,|#_!!_#|/
36278 s/'"$ac_delim"'$/,g/; t
36280 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36281 ' >>$CONFIG_STATUS <conf$$subs.sed
36282 rm -f conf$$subs.sed
36283 cat >>$CONFIG_STATUS <<_ACEOF
36290 # VPATH may cause trouble with some makes, so we remove $(srcdir),
36291 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
36292 # trailing colons and then remove the whole line if VPATH becomes empty
36293 # (actually we leave an empty line to preserve line numbers).
36294 if test "x$srcdir" = x.; then
36295 ac_vpsub='/^[ ]*VPATH[ ]*=/{
36296 s/:*\$(srcdir):*/:/
36297 s/:*\${srcdir}:*/:/
36299 s/^\([^=]*=[ ]*\):*/\1/
36305 cat >>$CONFIG_STATUS <<\_ACEOF
36306 fi # test -n "$CONFIG_FILES"
36309 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
36312 :[FHLC]) ac_mode=$ac_tag; continue;;
36314 case $ac_mode$ac_tag in
36316 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
36317 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
36318 { (exit 1); exit 1; }; };;
36319 :[FH]-) ac_tag=-:-;;
36320 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36337 -) ac_f="$tmp/stdin";;
36338 *) # Look for the file first in the build tree, then in the source tree
36339 # (if the path is not absolute). The absolute path cannot be DOS-style,
36340 # because $ac_f cannot contain `:'.
36344 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36346 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
36347 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
36348 { (exit 1); exit 1; }; };;
36350 ac_file_inputs="$ac_file_inputs $ac_f"
36353 # Let's still pretend it is `configure' which instantiates (i.e., don't
36354 # use $as_me), people would be surprised to read:
36355 # /* config.h. Generated by config.status. */
36356 configure_input="Generated from "`IFS=:
36357 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
36358 if test x"$ac_file" != x-; then
36359 configure_input="$ac_file. $configure_input"
36360 { echo "$as_me:$LINENO: creating $ac_file" >&5
36361 echo "$as_me: creating $ac_file" >&6;}
36365 *:-:* | *:-) cat >"$tmp/stdin";;
36370 ac_dir=`$as_dirname -- "$ac_file" ||
36371 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36372 X"$ac_file" : 'X\(//\)[^/]' \| \
36373 X"$ac_file" : 'X\(//\)$' \| \
36374 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36380 /^X\(\/\/\)[^/].*/{
36395 -*) as_dir=./$as_dir;;
36397 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36401 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36402 *) as_qdir=$as_dir;;
36404 as_dirs="'$as_qdir' $as_dirs"
36405 as_dir=`$as_dirname -- "$as_dir" ||
36406 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36407 X"$as_dir" : 'X\(//\)[^/]' \| \
36408 X"$as_dir" : 'X\(//\)$' \| \
36409 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36411 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36415 /^X\(\/\/\)[^/].*/{
36428 test -d "$as_dir" && break
36430 test -z "$as_dirs" || eval "mkdir $as_dirs"
36431 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36432 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36433 { (exit 1); exit 1; }; }; }
36437 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36439 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36440 # A ".." for each directory in $ac_dir_suffix.
36441 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36442 case $ac_top_builddir_sub in
36443 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36444 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36447 ac_abs_top_builddir=$ac_pwd
36448 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36449 # for backward compatibility:
36450 ac_top_builddir=$ac_top_build_prefix
36453 .) # We are building in place.
36455 ac_top_srcdir=$ac_top_builddir_sub
36456 ac_abs_top_srcdir=$ac_pwd ;;
36457 [\\/]* | ?:[\\/]* ) # Absolute name.
36458 ac_srcdir=$srcdir$ac_dir_suffix;
36459 ac_top_srcdir=$srcdir
36460 ac_abs_top_srcdir=$srcdir ;;
36461 *) # Relative name.
36462 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36463 ac_top_srcdir=$ac_top_build_prefix$srcdir
36464 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36466 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36476 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36477 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36481 cat >>$CONFIG_STATUS <<\_ACEOF
36482 # If the template does not know about datarootdir, expand it.
36483 # FIXME: This hack should be removed a few years after 2.60.
36484 ac_datarootdir_hack=; ac_datarootdir_seen=
36486 case `sed -n '/datarootdir/ {
36495 ' $ac_file_inputs` in
36496 *datarootdir*) ac_datarootdir_seen=yes;;
36497 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36498 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36499 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36501 cat >>$CONFIG_STATUS <<_ACEOF
36502 ac_datarootdir_hack='
36503 s&@datadir@&$datadir&g
36504 s&@docdir@&$docdir&g
36505 s&@infodir@&$infodir&g
36506 s&@localedir@&$localedir&g
36507 s&@mandir@&$mandir&g
36508 s&\\\${datarootdir}&$datarootdir&g' ;;
36512 # Neutralize VPATH when `$srcdir' = `.'.
36513 # Shell code in configure.ac might set extrasub.
36514 # FIXME: do we really want to maintain this feature?
36515 cat >>$CONFIG_STATUS <<_ACEOF
36519 cat >>$CONFIG_STATUS <<\_ACEOF
36521 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36522 s&@configure_input@&$configure_input&;t t
36523 s&@top_builddir@&$ac_top_builddir_sub&;t t
36524 s&@srcdir@&$ac_srcdir&;t t
36525 s&@abs_srcdir@&$ac_abs_srcdir&;t t
36526 s&@top_srcdir@&$ac_top_srcdir&;t t
36527 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36528 s&@builddir@&$ac_builddir&;t t
36529 s&@abs_builddir@&$ac_abs_builddir&;t t
36530 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36531 s&@INSTALL@&$ac_INSTALL&;t t
36532 $ac_datarootdir_hack
36533 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
36535 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36536 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
36537 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
36538 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36539 which seems to be undefined. Please make sure it is defined." >&5
36540 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36541 which seems to be undefined. Please make sure it is defined." >&2;}
36545 -) cat "$tmp/out"; rm -f "$tmp/out";;
36546 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
36555 # Transform confdefs.h into a sed script `conftest.defines', that
36556 # substitutes the proper values into config.h.in to produce config.h.
36557 rm -f conftest.defines conftest.tail
36558 # First, append a space to every undef/define line, to ease matching.
36559 echo 's/$/ /' >conftest.defines
36560 # Then, protect against being on the right side of a sed subst, or in
36561 # an unquoted here document, in config.status. If some macros were
36562 # called several times there might be several #defines for the same
36563 # symbol, which is useless. But do not sort them, since the last
36564 # AC_DEFINE must be honored.
36565 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36566 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36567 # NAME is the cpp macro being defined, VALUE is the value it is being given.
36568 # PARAMS is the parameter list in the macro definition--in most cases, it's
36569 # just an empty string.
36570 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
36571 ac_dB='\\)[ (].*,\\1define\\2'
36579 s/^[ ]*#[ ]*define[ ][ ]*//
36584 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36585 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36586 ' >>conftest.defines
36588 # Remove the space that was appended to ease matching.
36589 # Then replace #undef with comments. This is necessary, for
36590 # example, in the case of _POSIX_SOURCE, which is predefined and required
36591 # on some systems where configure will not decide to define it.
36592 # (The regexp can be short, since the line contains either #define or #undef.)
36594 s,^[ #]*u.*,/* & */,' >>conftest.defines
36596 # Break up conftest.defines:
36597 ac_max_sed_lines=50
36599 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36600 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36601 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36603 ac_in='$ac_file_inputs'
36604 ac_out='"$tmp/out1"'
36605 ac_nxt='"$tmp/out2"'
36609 # Write a here document:
36610 cat >>$CONFIG_STATUS <<_ACEOF
36611 # First, check the format of the line:
36612 cat >"\$tmp/defines.sed" <<\\CEOF
36613 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
36614 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
36618 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
36620 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36621 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
36622 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
36623 grep . conftest.tail >/dev/null || break
36624 rm -f conftest.defines
36625 mv conftest.tail conftest.defines
36627 rm -f conftest.defines conftest.tail
36629 echo "ac_result=$ac_in" >>$CONFIG_STATUS
36630 cat >>$CONFIG_STATUS <<\_ACEOF
36631 if test x"$ac_file" != x-; then
36632 echo "/* $configure_input */" >"$tmp/config.h"
36633 cat "$ac_result" >>"$tmp/config.h"
36634 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
36635 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36636 echo "$as_me: $ac_file is unchanged" >&6;}
36639 mv "$tmp/config.h" $ac_file
36642 echo "/* $configure_input */"
36646 # Compute $ac_file's index in $config_headers.
36648 for _am_header in $config_headers :; do
36649 case $_am_header in
36650 $ac_file | $ac_file:* )
36653 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
36656 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
36657 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36658 X$ac_file : 'X\(//\)[^/]' \| \
36659 X$ac_file : 'X\(//\)$' \| \
36660 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
36662 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36666 /^X\(\/\/\)[^/].*/{
36678 s/.*/./; q'`/stamp-h$_am_stamp_count
36681 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
36682 echo "$as_me: executing $ac_file commands" >&6;}
36687 case $ac_file$ac_mode in
36688 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
36689 # Strip MF so we end up with the name of the file.
36690 mf=`echo "$mf" | sed -e 's/:.*$//'`
36691 # Check whether this is an Automake generated Makefile or not.
36692 # We used to match only the files named `Makefile.in', but
36693 # some people rename them; so instead we look at the file content.
36694 # Grep'ing the first line is not enough: some people post-process
36695 # each Makefile.in and add a new line on top of each file to say so.
36696 # So let's grep whole file.
36697 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
36698 dirpart=`$as_dirname -- "$mf" ||
36699 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36700 X"$mf" : 'X\(//\)[^/]' \| \
36701 X"$mf" : 'X\(//\)$' \| \
36702 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
36704 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36708 /^X\(\/\/\)[^/].*/{
36724 # Extract the definition of DEPDIR, am__include, and am__quote
36725 # from the Makefile without running `make'.
36726 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
36727 test -z "$DEPDIR" && continue
36728 am__include=`sed -n 's/^am__include = //p' < "$mf"`
36729 test -z "am__include" && continue
36730 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
36731 # When using ansi2knr, U may be empty or an underscore; expand it
36732 U=`sed -n 's/^U = //p' < "$mf"`
36733 # Find all dependency output files, they are included files with
36734 # $(DEPDIR) in their names. We invoke sed twice because it is the
36735 # simplest approach to changing $(DEPDIR) to its actual value in the
36737 for file in `sed -n "
36738 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
36739 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
36740 # Make sure the directory exists.
36741 test -f "$dirpart/$file" && continue
36742 fdir=`$as_dirname -- "$file" ||
36743 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36744 X"$file" : 'X\(//\)[^/]' \| \
36745 X"$file" : 'X\(//\)$' \| \
36746 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
36748 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36752 /^X\(\/\/\)[^/].*/{
36765 { as_dir=$dirpart/$fdir
36767 -*) as_dir=./$as_dir;;
36769 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36773 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36774 *) as_qdir=$as_dir;;
36776 as_dirs="'$as_qdir' $as_dirs"
36777 as_dir=`$as_dirname -- "$as_dir" ||
36778 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36779 X"$as_dir" : 'X\(//\)[^/]' \| \
36780 X"$as_dir" : 'X\(//\)$' \| \
36781 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36783 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36787 /^X\(\/\/\)[^/].*/{
36800 test -d "$as_dir" && break
36802 test -z "$as_dirs" || eval "mkdir $as_dirs"
36803 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36804 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36805 { (exit 1); exit 1; }; }; }
36806 # echo "creating $dirpart/$file"
36807 echo '# dummy' > "$dirpart/$file"
36811 "po-directories":C)
36812 for ac_file in $CONFIG_FILES; do
36813 # Support "outfile[:infile[:infile...]]"
36815 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
36817 # PO directories have a Makefile.in generated from Makefile.in.in.
36818 case "$ac_file" in */Makefile.in)
36819 # Adjust a relative srcdir.
36820 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
36821 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
36822 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
36823 # In autoconf-2.13 it is called $ac_given_srcdir.
36824 # In autoconf-2.50 it is called $srcdir.
36825 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
36826 case "$ac_given_srcdir" in
36827 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
36828 /*) top_srcdir="$ac_given_srcdir" ;;
36829 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
36831 # Treat a directory as a PO directory if and only if it has a
36832 # POTFILES.in file. This allows packages to have multiple PO
36833 # directories under different names or in different locations.
36834 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
36835 rm -f "$ac_dir/POTFILES"
36836 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
36837 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
36838 POMAKEFILEDEPS="POTFILES.in"
36839 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
36840 # on $ac_dir but don't depend on user-specified configuration
36842 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
36843 # The LINGUAS file contains the set of available languages.
36844 if test -n "$OBSOLETE_ALL_LINGUAS"; then
36845 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
36847 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
36848 # Hide the ALL_LINGUAS assigment from automake < 1.5.
36849 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
36850 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
36852 # The set of available languages was given in configure.in.
36853 # Hide the ALL_LINGUAS assigment from automake < 1.5.
36854 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
36857 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
36858 # Compute UPDATEPOFILES
36859 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
36860 # Compute DUMMYPOFILES
36861 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
36863 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
36864 case "$ac_given_srcdir" in
36866 *) srcdirpre='$(srcdir)/' ;;
36872 for lang in $ALL_LINGUAS; do
36873 POFILES="$POFILES $srcdirpre$lang.po"
36874 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
36875 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
36876 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
36878 # CATALOGS depends on both $ac_dir and the user's LINGUAS
36879 # environment variable.
36881 if test -n "$ALL_LINGUAS"; then
36882 for presentlang in $ALL_LINGUAS; do
36884 if test "%UNSET%" != "$LINGUAS"; then
36885 desiredlanguages="$LINGUAS"
36887 desiredlanguages="$ALL_LINGUAS"
36889 for desiredlang in $desiredlanguages; do
36890 # Use the presentlang catalog if desiredlang is
36891 # a. equal to presentlang, or
36892 # b. a variant of presentlang (because in this case,
36893 # presentlang can be used as a fallback for messages
36894 # which are not translated in the desiredlang catalog).
36895 case "$desiredlang" in
36896 "$presentlang"*) useit=yes;;
36899 if test $useit = yes; then
36900 INST_LINGUAS="$INST_LINGUAS $presentlang"
36905 if test -n "$INST_LINGUAS"; then
36906 for lang in $INST_LINGUAS; do
36907 CATALOGS="$CATALOGS $lang.gmo"
36910 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
36911 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
36912 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
36913 if test -f "$f"; then
36915 *.orig | *.bak | *~) ;;
36916 *) cat "$f" >> "$ac_dir/Makefile" ;;
36929 { (exit 0); exit 0; }
36931 if test "x$with_fast_perl" = "xyes"; then
36932 perl -i.bak $ac_aux_dir/conf.change.pl $CONFIG_STATUS \
36933 || mv $CONFIG_STATUS.bak $CONFIG_STATUS
36934 rm -f $CONFIG_STATUS.bak
36936 chmod +x $CONFIG_STATUS
36937 ac_clean_files=$ac_clean_files_save
36940 # configure is writing to config.log, and then calls config.status.
36941 # config.status does its own redirection, appending to config.log.
36942 # Unfortunately, on DOS this fails, as config.log is still kept open
36943 # by configure, so config.status won't be able to write to it; its
36944 # output is simply discarded. So we exec the FD to /dev/null,
36945 # effectively closing config.log, so it can be properly (re)opened and
36946 # appended to by config.status. When coming back to configure, we
36947 # need to make the FD available again.
36948 if test "$no_create" != yes; then
36950 ac_config_status_args=
36951 test "$silent" = yes &&
36952 ac_config_status_args="$ac_config_status_args --quiet"
36954 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36956 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36957 # would make configure fail if this is the last instruction.
36958 $ac_cs_success || { (exit 1); exit 1; }
36961 { echo "$as_me:$LINENO: result:
36962 skim Support Build options:
36964 Version of libscim $SCIM_VERSION
36965 Version of libskim $SKIM_VERSION
36966 Install prefix $prefix
36967 Build shared libs $enable_shared
36968 Build static libs $enable_static
36969 Enable debug $scim_debug
36972 skim Support Build options:
36974 Version of libscim $SCIM_VERSION
36975 Version of libskim $SKIM_VERSION
36976 Install prefix $prefix
36977 Build shared libs $enable_shared
36978 Build static libs $enable_static
36979 Enable debug $scim_debug
36981 # Check if KDE_SET_PREFIX was called, and --prefix was passed to configure
36982 if test -n "$kde_libs_prefix" -a -n "$given_prefix"; then
36983 # And if so, warn when they don't match
36984 if test "$kde_libs_prefix" != "$given_prefix"; then
36985 # And if kde doesn't know about the prefix yet
36986 echo ":"`kde-config --path exe`":" | grep ":$given_prefix/bin/:" 2>&1 >/dev/null
36987 if test $? -ne 0; then
36989 echo "Warning: you chose to install this package in $given_prefix,"
36990 echo "but KDE was found in $kde_libs_prefix."
36991 echo "For this to work, you will need to tell KDE about the new prefix, by ensuring"
36992 echo "that KDEDIRS contains it, e.g. export KDEDIRS=$given_prefix:$kde_libs_prefix"
36993 echo "Then restart KDE."
36999 if test "$all_tests" = "bad"; then
37000 if test ! "$cache_file" = "/dev/null"; then
37002 echo "Please remove the file $cache_file after changing your setup"
37003 echo "so that configure will find the changes next time."
37008 echo "Good - your configure finished. Start make now"