2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for lordsawar 0.1.7-pre2.
5 # Report bugs to <http://sv.nongnu.org/bugs/?group=lordsawar>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir=.
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org and
232 $0: http://sv.nongnu.org/bugs/?group=lordsawar about your
233 $0: system, including any error possibly output before this
234 $0: message. Then install a modern shell, or manually run
235 $0: the script under such a shell if you do have one."
241 SHELL=${CONFIG_SHELL-/bin/sh}
243 # Unset more variables known to interfere with behavior of common tools.
244 CLICOLOR_FORCE= GREP_OPTIONS=
245 unset CLICOLOR_FORCE GREP_OPTIONS
247 ## --------------------- ##
248 ## M4sh Shell Functions. ##
249 ## --------------------- ##
252 # Portably unset VAR.
255 { eval $1=; unset $1;}
259 # as_fn_set_status STATUS
260 # -----------------------
261 # Set $? to STATUS, without forking.
269 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
279 # Create "$as_dir" as a directory, including parents if necessary.
284 -*) as_dir=./$as_dir;;
286 test -d "$as_dir" || eval $as_mkdir_p || {
290 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 as_dirs="'$as_qdir' $as_dirs"
294 as_dir=`$as_dirname -- "$as_dir" ||
295 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
296 X"$as_dir" : 'X\(//\)[^/]' \| \
297 X"$as_dir" : 'X\(//\)$' \| \
298 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
299 $as_echo X"$as_dir" |
300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
317 test -d "$as_dir" && break
319 test -z "$as_dirs" || eval "mkdir $as_dirs"
320 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
324 # as_fn_append VAR VALUE
325 # ----------------------
326 # Append the text in VALUE to the end of the definition contained in VAR. Take
327 # advantage of any shell optimizations that allow amortized linear growth over
328 # repeated appends, instead of the typical quadratic growth present in naive
330 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
331 eval 'as_fn_append ()
344 # Perform arithmetic evaluation on the ARGs, and store the result in the
345 # global $as_val. Take advantage of shells that can avoid forks. The arguments
346 # must be portable across $(()) and expr.
347 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355 as_val=`expr "$@" || test $? -eq 1`
360 # as_fn_error ERROR [LINENO LOG_FD]
361 # ---------------------------------
362 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
363 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
364 # script with status $?, using 1 if that was 0.
367 as_status=$?; test $as_status -eq 0 && as_status=1
369 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
370 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
372 $as_echo "$as_me: error: $1" >&2
373 as_fn_exit $as_status
376 if expr a : '\(a\)' >/dev/null 2>&1 &&
377 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_me=`$as_basename -- "$0" ||
396 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
397 X"$0" : 'X\(//\)$' \| \
398 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
400 sed '/^.*\/\([^/][^/]*\)\/*$/{
414 # Avoid depending upon Character Ranges.
415 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
416 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
417 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
418 as_cr_digits='0123456789'
419 as_cr_alnum=$as_cr_Letters$as_cr_digits
422 as_lineno_1=$LINENO as_lineno_1a=$LINENO
423 as_lineno_2=$LINENO as_lineno_2a=$LINENO
424 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
425 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
426 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
438 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
442 chmod +x "$as_me.lineno" ||
443 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
445 # Don't try to exec as it changes $[0], causing all sort of problems
446 # (the dirname of $[0] is not the place where we might find the
447 # original and so on. Autoconf is especially sensitive to this).
449 # Exit status is that of the last command.
453 ECHO_C= ECHO_N= ECHO_T=
454 case `echo -n x` in #(((((
456 case `echo 'xy\c'` in
457 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
459 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
466 rm -f conf$$ conf$$.exe conf$$.file
467 if test -d conf$$.dir; then
468 rm -f conf$$.dir/conf$$.file
471 mkdir conf$$.dir 2>/dev/null
473 if (echo >conf$$.file) 2>/dev/null; then
474 if ln -s conf$$.file conf$$ 2>/dev/null; then
476 # ... but there are two gotchas:
477 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
478 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
479 # In both cases, we have to default to `cp -p'.
480 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
482 elif ln conf$$.file conf$$ 2>/dev/null; then
490 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
491 rmdir conf$$.dir 2>/dev/null
493 if mkdir -p . 2>/dev/null; then
494 as_mkdir_p='mkdir -p "$as_dir"'
496 test -d ./-p && rmdir ./-p
500 if test -x / >/dev/null 2>&1; then
503 if ls -dL / >/dev/null 2>&1; then
510 if test -d "$1"; then
516 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
517 ???[sx]*):;;*)false;;esac;fi
521 as_executable_p=$as_test_x
523 # Sed expression to map a string onto a valid CPP name.
524 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
526 # Sed expression to map a string onto a valid variable name.
527 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
531 # Check that we are running under the correct shell.
532 SHELL=${CONFIG_SHELL-/bin/sh}
536 # Remove one level of quotation (which was required for Make).
537 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
542 if test "X$1" = X--no-reexec; then
543 # Discard the --no-reexec flag, and continue.
545 elif test "X$1" = X--fallback-echo; then
546 # Avoid inline document here, it may be left over
548 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
549 # Yippee, $ECHO works!
552 # Restart under the correct shell.
553 exec $SHELL "$0" --no-reexec ${1+"$@"}
556 if test "X$1" = X--fallback-echo; then
557 # used as fallback echo
565 # The HP-UX ksh and POSIX shell print the target directory to stdout
567 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
569 if test -z "$lt_ECHO"; then
570 if test "X${echo_test_string+set}" != Xset; then
571 # find a string as large as possible, as long as the shell can cope with it
572 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
573 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
574 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
575 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
582 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
583 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
584 test "X$echo_testing_string" = "X$echo_test_string"; then
587 # The Solaris, AIX, and Digital Unix default echo programs unquote
588 # backslashes. This makes it impossible to quote backslashes using
589 # echo "$something" | sed 's/\\/\\\\/g'
591 # So, first we look for a working echo in the user's PATH.
593 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
594 for dir in $PATH /usr/ucb; do
596 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
597 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
598 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
599 test "X$echo_testing_string" = "X$echo_test_string"; then
606 if test "X$ECHO" = Xecho; then
607 # We didn't find a better echo, so look for alternatives.
608 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
609 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
610 test "X$echo_testing_string" = "X$echo_test_string"; then
611 # This shell has a builtin print -r that does the trick.
613 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
614 test "X$CONFIG_SHELL" != X/bin/ksh; then
615 # If we have ksh, try running configure again with it.
616 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
617 export ORIGINAL_CONFIG_SHELL
618 CONFIG_SHELL=/bin/ksh
620 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
624 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
625 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
626 test "X$echo_testing_string" = "X$echo_test_string"; then
629 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
630 test "X$echo_testing_string" = 'X\t' &&
631 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
632 test "X$echo_testing_string" = "X$echo_test_string"; then
633 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
635 SHELL="$CONFIG_SHELL"
637 ECHO="$CONFIG_SHELL $0 --fallback-echo"
638 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
639 test "X$echo_testing_string" = 'X\t' &&
640 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
641 test "X$echo_testing_string" = "X$echo_test_string"; then
642 ECHO="$CONFIG_SHELL $0 --fallback-echo"
644 # maybe with a smaller string...
647 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
648 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
655 if test "$prev" != 'sed 50q "$0"'; then
656 echo_test_string=`eval $prev`
657 export echo_test_string
658 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
660 # Oops. We lost completely, so just stick with echo.
669 # Copy echo and quote the copy suitably for passing to libtool from
670 # the Makefile, instead of quoting the original, which is used later.
672 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
673 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
679 exec 7<&0 </dev/null 6>&1
682 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
683 # so uname gets run too.
684 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
689 ac_default_prefix=/usr/local
691 ac_config_libobj_dir=.
698 # Identity of this package.
699 PACKAGE_NAME='lordsawar'
700 PACKAGE_TARNAME='lordsawar'
701 PACKAGE_VERSION='0.1.7-pre2'
702 PACKAGE_STRING='lordsawar 0.1.7-pre2'
703 PACKAGE_BUGREPORT='http://sv.nongnu.org/bugs/?group=lordsawar'
706 ac_unique_file="config.h.in"
707 # Factoring default headers for most tests.
708 ac_includes_default="\
710 #ifdef HAVE_SYS_TYPES_H
711 # include <sys/types.h>
713 #ifdef HAVE_SYS_STAT_H
714 # include <sys/stat.h>
720 # ifdef HAVE_STDLIB_H
725 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
730 #ifdef HAVE_STRINGS_H
731 # include <strings.h>
733 #ifdef HAVE_INTTYPES_H
734 # include <inttypes.h>
744 ac_subst_vars='am__EXEEXT_FALSE
771 XGETTEXT_EXTRA_OPTIONS
775 GETTEXT_MACRO_VERSION
806 PROGRAMNAME_LOCALEDIR
846 INTLTOOL_SERVICE_RULE
848 INTLTOOL_SCHEMAS_RULE
850 INTLTOOL_XML_NOMERGE_RULE
855 INTLTOOL_SOUNDLIST_RULE
862 INTLTOOL_DIRECTORY_RULE
863 INTLTOOL_DESKTOP_RULE
876 INSTALL_STRIP_PROGRAM
930 program_transform_name
943 enable_option_checking
945 enable_dependency_tracking
967 with_boost_includedir
969 ac_precious_vars='build_alias
993 # Initialize some variables set by options.
995 ac_init_version=false
996 ac_unrecognized_opts=
998 # The variables have the same names as the options, with
999 # dashes changed to underlines.
1000 cache_file=/dev/null
1007 program_transform_name=s,x,x,
1015 # Installation directory options.
1016 # These are left unexpanded so users can "make install exec_prefix=/foo"
1017 # and all the variables that are supposed to be based on exec_prefix
1018 # by default will actually change.
1019 # Use braces instead of parens because sh, perl, etc. also accept them.
1020 # (The list follows the same order as the GNU Coding Standards.)
1021 bindir='${exec_prefix}/bin'
1022 sbindir='${exec_prefix}/sbin'
1023 libexecdir='${exec_prefix}/libexec'
1024 datarootdir='${prefix}/share'
1025 datadir='${datarootdir}'
1026 sysconfdir='${prefix}/etc'
1027 sharedstatedir='${prefix}/com'
1028 localstatedir='${prefix}/var'
1029 includedir='${prefix}/include'
1030 oldincludedir='/usr/include'
1031 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1032 infodir='${datarootdir}/info'
1037 libdir='${exec_prefix}/lib'
1038 localedir='${datarootdir}/locale'
1039 mandir='${datarootdir}/man'
1045 # If the previous option needs an argument, assign it.
1046 if test -n "$ac_prev"; then
1047 eval $ac_prev=\$ac_option
1053 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1057 # Accept the important Cygnus configure options, so we can diagnose typos.
1059 case $ac_dashdash$ac_option in
1063 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1065 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1066 bindir=$ac_optarg ;;
1068 -build | --build | --buil | --bui | --bu)
1069 ac_prev=build_alias ;;
1070 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1071 build_alias=$ac_optarg ;;
1073 -cache-file | --cache-file | --cache-fil | --cache-fi \
1074 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1075 ac_prev=cache_file ;;
1076 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1077 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1078 cache_file=$ac_optarg ;;
1080 --config-cache | -C)
1081 cache_file=config.cache ;;
1083 -datadir | --datadir | --datadi | --datad)
1085 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1086 datadir=$ac_optarg ;;
1088 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1089 | --dataroo | --dataro | --datar)
1090 ac_prev=datarootdir ;;
1091 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1092 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1093 datarootdir=$ac_optarg ;;
1095 -disable-* | --disable-*)
1096 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1097 # Reject names that are not valid shell variable names.
1098 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1099 as_fn_error "invalid feature name: $ac_useropt"
1100 ac_useropt_orig=$ac_useropt
1101 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1102 case $ac_user_opts in
1104 "enable_$ac_useropt"
1106 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1107 ac_unrecognized_sep=', ';;
1109 eval enable_$ac_useropt=no ;;
1111 -docdir | --docdir | --docdi | --doc | --do)
1113 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1114 docdir=$ac_optarg ;;
1116 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1118 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1119 dvidir=$ac_optarg ;;
1121 -enable-* | --enable-*)
1122 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1123 # Reject names that are not valid shell variable names.
1124 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1125 as_fn_error "invalid feature name: $ac_useropt"
1126 ac_useropt_orig=$ac_useropt
1127 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1128 case $ac_user_opts in
1130 "enable_$ac_useropt"
1132 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1133 ac_unrecognized_sep=', ';;
1135 eval enable_$ac_useropt=\$ac_optarg ;;
1137 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1138 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1139 | --exec | --exe | --ex)
1140 ac_prev=exec_prefix ;;
1141 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1142 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1143 | --exec=* | --exe=* | --ex=*)
1144 exec_prefix=$ac_optarg ;;
1146 -gas | --gas | --ga | --g)
1147 # Obsolete; use --with-gas.
1150 -help | --help | --hel | --he | -h)
1151 ac_init_help=long ;;
1152 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1153 ac_init_help=recursive ;;
1154 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1155 ac_init_help=short ;;
1157 -host | --host | --hos | --ho)
1158 ac_prev=host_alias ;;
1159 -host=* | --host=* | --hos=* | --ho=*)
1160 host_alias=$ac_optarg ;;
1162 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1164 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1166 htmldir=$ac_optarg ;;
1168 -includedir | --includedir | --includedi | --included | --include \
1169 | --includ | --inclu | --incl | --inc)
1170 ac_prev=includedir ;;
1171 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1172 | --includ=* | --inclu=* | --incl=* | --inc=*)
1173 includedir=$ac_optarg ;;
1175 -infodir | --infodir | --infodi | --infod | --info | --inf)
1177 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1178 infodir=$ac_optarg ;;
1180 -libdir | --libdir | --libdi | --libd)
1182 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1183 libdir=$ac_optarg ;;
1185 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1186 | --libexe | --libex | --libe)
1187 ac_prev=libexecdir ;;
1188 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1189 | --libexe=* | --libex=* | --libe=*)
1190 libexecdir=$ac_optarg ;;
1192 -localedir | --localedir | --localedi | --localed | --locale)
1193 ac_prev=localedir ;;
1194 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1195 localedir=$ac_optarg ;;
1197 -localstatedir | --localstatedir | --localstatedi | --localstated \
1198 | --localstate | --localstat | --localsta | --localst | --locals)
1199 ac_prev=localstatedir ;;
1200 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1201 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1202 localstatedir=$ac_optarg ;;
1204 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1206 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1207 mandir=$ac_optarg ;;
1209 -nfp | --nfp | --nf)
1210 # Obsolete; use --without-fp.
1213 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1214 | --no-cr | --no-c | -n)
1217 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1218 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1221 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1222 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1223 | --oldin | --oldi | --old | --ol | --o)
1224 ac_prev=oldincludedir ;;
1225 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1226 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1227 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1228 oldincludedir=$ac_optarg ;;
1230 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1232 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1233 prefix=$ac_optarg ;;
1235 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1236 | --program-pre | --program-pr | --program-p)
1237 ac_prev=program_prefix ;;
1238 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1239 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1240 program_prefix=$ac_optarg ;;
1242 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1243 | --program-suf | --program-su | --program-s)
1244 ac_prev=program_suffix ;;
1245 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1246 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1247 program_suffix=$ac_optarg ;;
1249 -program-transform-name | --program-transform-name \
1250 | --program-transform-nam | --program-transform-na \
1251 | --program-transform-n | --program-transform- \
1252 | --program-transform | --program-transfor \
1253 | --program-transfo | --program-transf \
1254 | --program-trans | --program-tran \
1255 | --progr-tra | --program-tr | --program-t)
1256 ac_prev=program_transform_name ;;
1257 -program-transform-name=* | --program-transform-name=* \
1258 | --program-transform-nam=* | --program-transform-na=* \
1259 | --program-transform-n=* | --program-transform-=* \
1260 | --program-transform=* | --program-transfor=* \
1261 | --program-transfo=* | --program-transf=* \
1262 | --program-trans=* | --program-tran=* \
1263 | --progr-tra=* | --program-tr=* | --program-t=*)
1264 program_transform_name=$ac_optarg ;;
1266 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1268 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1269 pdfdir=$ac_optarg ;;
1271 -psdir | --psdir | --psdi | --psd | --ps)
1273 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1276 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1277 | -silent | --silent | --silen | --sile | --sil)
1280 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1282 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1284 sbindir=$ac_optarg ;;
1286 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1287 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1288 | --sharedst | --shareds | --shared | --share | --shar \
1290 ac_prev=sharedstatedir ;;
1291 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1292 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1293 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1295 sharedstatedir=$ac_optarg ;;
1297 -site | --site | --sit)
1299 -site=* | --site=* | --sit=*)
1302 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1304 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1305 srcdir=$ac_optarg ;;
1307 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1308 | --syscon | --sysco | --sysc | --sys | --sy)
1309 ac_prev=sysconfdir ;;
1310 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1311 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1312 sysconfdir=$ac_optarg ;;
1314 -target | --target | --targe | --targ | --tar | --ta | --t)
1315 ac_prev=target_alias ;;
1316 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1317 target_alias=$ac_optarg ;;
1319 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1322 -version | --version | --versio | --versi | --vers | -V)
1323 ac_init_version=: ;;
1326 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1327 # Reject names that are not valid shell variable names.
1328 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1329 as_fn_error "invalid package name: $ac_useropt"
1330 ac_useropt_orig=$ac_useropt
1331 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1332 case $ac_user_opts in
1336 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1337 ac_unrecognized_sep=', ';;
1339 eval with_$ac_useropt=\$ac_optarg ;;
1341 -without-* | --without-*)
1342 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1343 # Reject names that are not valid shell variable names.
1344 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1345 as_fn_error "invalid package name: $ac_useropt"
1346 ac_useropt_orig=$ac_useropt
1347 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1348 case $ac_user_opts in
1352 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1353 ac_unrecognized_sep=', ';;
1355 eval with_$ac_useropt=no ;;
1358 # Obsolete; use --with-x.
1361 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1362 | --x-incl | --x-inc | --x-in | --x-i)
1363 ac_prev=x_includes ;;
1364 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1365 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1366 x_includes=$ac_optarg ;;
1368 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1369 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1370 ac_prev=x_libraries ;;
1371 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1372 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1373 x_libraries=$ac_optarg ;;
1375 -*) as_fn_error "unrecognized option: \`$ac_option'
1376 Try \`$0 --help' for more information."
1380 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1381 # Reject names that are not valid shell variable names.
1382 case $ac_envvar in #(
1383 '' | [0-9]* | *[!_$as_cr_alnum]* )
1384 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1386 eval $ac_envvar=\$ac_optarg
1387 export $ac_envvar ;;
1390 # FIXME: should be removed in autoconf 3.0.
1391 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1392 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1393 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1394 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1400 if test -n "$ac_prev"; then
1401 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1402 as_fn_error "missing argument to $ac_option"
1405 if test -n "$ac_unrecognized_opts"; then
1406 case $enable_option_checking in
1408 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1409 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1413 # Check all directory arguments for consistency.
1414 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1415 datadir sysconfdir sharedstatedir localstatedir includedir \
1416 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1417 libdir localedir mandir
1419 eval ac_val=\$$ac_var
1420 # Remove trailing slashes.
1423 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1424 eval $ac_var=\$ac_val;;
1426 # Be sure to have absolute directory names.
1428 [\\/$]* | ?:[\\/]* ) continue;;
1429 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1431 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1434 # There might be people who depend on the old broken behavior: `$host'
1435 # used to hold the argument of --host etc.
1436 # FIXME: To remove some day.
1439 target=$target_alias
1441 # FIXME: To remove some day.
1442 if test "x$host_alias" != x; then
1443 if test "x$build_alias" = x; then
1444 cross_compiling=maybe
1445 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1446 If a cross compiler is detected then cross compile mode will be used." >&2
1447 elif test "x$build_alias" != "x$host_alias"; then
1453 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1455 test "$silent" = yes && exec 6>/dev/null
1458 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1459 ac_ls_di=`ls -di .` &&
1460 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1461 as_fn_error "working directory cannot be determined"
1462 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1463 as_fn_error "pwd does not report name of working directory"
1466 # Find the source files, if location was not specified.
1467 if test -z "$srcdir"; then
1468 ac_srcdir_defaulted=yes
1469 # Try the directory containing this script, then the parent directory.
1470 ac_confdir=`$as_dirname -- "$as_myself" ||
1471 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1472 X"$as_myself" : 'X\(//\)[^/]' \| \
1473 X"$as_myself" : 'X\(//\)$' \| \
1474 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1475 $as_echo X"$as_myself" |
1476 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1494 if test ! -r "$srcdir/$ac_unique_file"; then
1498 ac_srcdir_defaulted=no
1500 if test ! -r "$srcdir/$ac_unique_file"; then
1501 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1502 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1504 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1506 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1508 # When building in place, set srcdir=.
1509 if test "$ac_abs_confdir" = "$ac_pwd"; then
1512 # Remove unnecessary trailing slashes from srcdir.
1513 # Double slashes in file names in object file debugging info
1514 # mess up M-x gdb in Emacs.
1516 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1518 for ac_var in $ac_precious_vars; do
1519 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1520 eval ac_env_${ac_var}_value=\$${ac_var}
1521 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1522 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1526 # Report the --help message.
1528 if test "$ac_init_help" = "long"; then
1529 # Omit some internal or obsolete options to make the list less imposing.
1530 # This message is too long to be a string in the A/UX 3.1 sh.
1532 \`configure' configures lordsawar 0.1.7-pre2 to adapt to many kinds of systems.
1534 Usage: $0 [OPTION]... [VAR=VALUE]...
1536 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1537 VAR=VALUE. See below for descriptions of some of the useful variables.
1539 Defaults for the options are specified in brackets.
1542 -h, --help display this help and exit
1543 --help=short display options specific to this package
1544 --help=recursive display the short help of all the included packages
1545 -V, --version display version information and exit
1546 -q, --quiet, --silent do not print \`checking...' messages
1547 --cache-file=FILE cache test results in FILE [disabled]
1548 -C, --config-cache alias for \`--cache-file=config.cache'
1549 -n, --no-create do not create output files
1550 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1552 Installation directories:
1553 --prefix=PREFIX install architecture-independent files in PREFIX
1554 [$ac_default_prefix]
1555 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1558 By default, \`make install' will install all the files in
1559 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1560 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1561 for instance \`--prefix=\$HOME'.
1563 For better control, use the options below.
1565 Fine tuning of the installation directories:
1566 --bindir=DIR user executables [EPREFIX/bin]
1567 --sbindir=DIR system admin executables [EPREFIX/sbin]
1568 --libexecdir=DIR program executables [EPREFIX/libexec]
1569 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1570 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1571 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1572 --libdir=DIR object code libraries [EPREFIX/lib]
1573 --includedir=DIR C header files [PREFIX/include]
1574 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1575 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1576 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1577 --infodir=DIR info documentation [DATAROOTDIR/info]
1578 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1579 --mandir=DIR man documentation [DATAROOTDIR/man]
1580 --docdir=DIR documentation root [DATAROOTDIR/doc/lordsawar]
1581 --htmldir=DIR html documentation [DOCDIR]
1582 --dvidir=DIR dvi documentation [DOCDIR]
1583 --pdfdir=DIR pdf documentation [DOCDIR]
1584 --psdir=DIR ps documentation [DOCDIR]
1590 --program-prefix=PREFIX prepend PREFIX to installed program names
1591 --program-suffix=SUFFIX append SUFFIX to installed program names
1592 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1595 --build=BUILD configure for building on BUILD [guessed]
1596 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1597 --target=TARGET configure for building compilers for TARGET [HOST]
1601 if test -n "$ac_init_help"; then
1602 case $ac_init_help in
1603 short | recursive ) echo "Configuration of lordsawar 0.1.7-pre2:";;
1608 --disable-option-checking ignore unrecognized --enable/--with options
1609 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1610 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1611 --disable-nls do not use Native Language Support
1612 --disable-dependency-tracking speeds up one-time build
1613 --enable-dependency-tracking do not reject slow dependency extractors
1614 --enable-shared[=PKGS] build shared libraries [default=yes]
1615 --enable-static[=PKGS] build static libraries [default=yes]
1616 --enable-fast-install[=PKGS]
1617 optimize for fast installation [default=yes]
1618 --disable-libtool-lock avoid locking (might break parallel builds)
1619 --disable-sdltest Do not try to compile and run a test SDL program
1620 --enable-sound Enable or disable sound usage (default on)
1621 --enable-winlibs enable windows cross-compiling libs
1622 --disable-rpath do not hardcode runtime library paths
1623 --enable-editor compile editor (default=yes)
1624 --enable-pbm compile play-by-mail (default=yes)
1625 --enable-zipping zip save files (experimental) default=no
1626 --enable-optimizations enable compiler optimizations (disable for debugging) default=yes
1629 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1630 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1631 --with-pic try to use only PIC/non-PIC objects [default=use
1633 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1634 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1635 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1636 --with-expat=<dir> Use expat from here
1637 --with-libtar=<dir> Use libtar from here
1638 --with-gnu-ld assume the C compiler uses GNU ld default=no
1639 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1640 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1641 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1642 --without-libintl-prefix don't search for libintl in includedir and libdir
1643 --with-resolution=RES standard resolution for lordsawar default=800x600
1644 --with-boost-includedir=DIR
1645 Use Boost library installed at specified path
1646 (default /usr/include)
1648 Some influential environment variables:
1649 CC C compiler command
1650 CFLAGS C compiler flags
1651 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1652 nonstandard directory <lib dir>
1653 LIBS libraries to pass to the linker, e.g. -l<library>
1654 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1655 you have headers in a nonstandard directory <include dir>
1657 CXX C++ compiler command
1658 CXXFLAGS C++ compiler flags
1659 CXXCPP C++ preprocessor
1660 PKG_CONFIG path to pkg-config utility
1662 C compiler flags for GLIBMM, overriding pkg-config
1663 GLIBMM_LIBS linker flags for GLIBMM, overriding pkg-config
1665 C compiler flags for GTKMM, overriding pkg-config
1666 GTKMM_LIBS linker flags for GTKMM, overriding pkg-config
1668 C compiler flags for LIBGNET, overriding pkg-config
1670 linker flags for LIBGNET, overriding pkg-config
1672 C compiler flags for LIBSIGC, overriding pkg-config
1674 linker flags for LIBSIGC, overriding pkg-config
1676 Use these variables to override the choices made by `configure' or to help
1677 it to find libraries and programs with nonstandard names/locations.
1679 Report bugs to <http://sv.nongnu.org/bugs/?group=lordsawar>.
1684 if test "$ac_init_help" = "recursive"; then
1685 # If there are subdirs, report their specific --help.
1686 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1687 test -d "$ac_dir" ||
1688 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1693 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1695 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1696 # A ".." for each directory in $ac_dir_suffix.
1697 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1698 case $ac_top_builddir_sub in
1699 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1700 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1703 ac_abs_top_builddir=$ac_pwd
1704 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1705 # for backward compatibility:
1706 ac_top_builddir=$ac_top_build_prefix
1709 .) # We are building in place.
1711 ac_top_srcdir=$ac_top_builddir_sub
1712 ac_abs_top_srcdir=$ac_pwd ;;
1713 [\\/]* | ?:[\\/]* ) # Absolute name.
1714 ac_srcdir=$srcdir$ac_dir_suffix;
1715 ac_top_srcdir=$srcdir
1716 ac_abs_top_srcdir=$srcdir ;;
1718 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1719 ac_top_srcdir=$ac_top_build_prefix$srcdir
1720 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1722 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1724 cd "$ac_dir" || { ac_status=$?; continue; }
1725 # Check for guested configure.
1726 if test -f "$ac_srcdir/configure.gnu"; then
1728 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1729 elif test -f "$ac_srcdir/configure"; then
1731 $SHELL "$ac_srcdir/configure" --help=recursive
1733 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1735 cd "$ac_pwd" || { ac_status=$?; break; }
1739 test -n "$ac_init_help" && exit $ac_status
1740 if $ac_init_version; then
1742 lordsawar configure 0.1.7-pre2
1743 generated by GNU Autoconf 2.64
1745 Copyright (C) 2009 Free Software Foundation, Inc.
1746 This configure script is free software; the Free Software Foundation
1747 gives unlimited permission to copy, distribute and modify it.
1752 ## ------------------------ ##
1753 ## Autoconf initialization. ##
1754 ## ------------------------ ##
1756 # ac_fn_c_try_compile LINENO
1757 # --------------------------
1758 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1759 ac_fn_c_try_compile ()
1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762 rm -f conftest.$ac_objext
1763 if { { ac_try="$ac_compile"
1765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1766 *) ac_try_echo=$ac_try;;
1768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1769 $as_echo "$ac_try_echo"; } >&5
1770 (eval "$ac_compile") 2>conftest.err
1772 if test -s conftest.err; then
1773 grep -v '^ *+' conftest.err >conftest.er1
1774 cat conftest.er1 >&5
1775 mv -f conftest.er1 conftest.err
1777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1778 test $ac_status = 0; } && {
1779 test -z "$ac_c_werror_flag" ||
1780 test ! -s conftest.err
1781 } && test -s conftest.$ac_objext; then :
1784 $as_echo "$as_me: failed program was:" >&5
1785 sed 's/^/| /' conftest.$ac_ext >&5
1789 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1792 } # ac_fn_c_try_compile
1794 # ac_fn_c_try_link LINENO
1795 # -----------------------
1796 # Try to link conftest.$ac_ext, and return whether this succeeded.
1799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800 rm -f conftest.$ac_objext conftest$ac_exeext
1801 if { { ac_try="$ac_link"
1803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1804 *) ac_try_echo=$ac_try;;
1806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1807 $as_echo "$ac_try_echo"; } >&5
1808 (eval "$ac_link") 2>conftest.err
1810 if test -s conftest.err; then
1811 grep -v '^ *+' conftest.err >conftest.er1
1812 cat conftest.er1 >&5
1813 mv -f conftest.er1 conftest.err
1815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1816 test $ac_status = 0; } && {
1817 test -z "$ac_c_werror_flag" ||
1818 test ! -s conftest.err
1819 } && test -s conftest$ac_exeext && {
1820 test "$cross_compiling" = yes ||
1821 $as_test_x conftest$ac_exeext
1825 $as_echo "$as_me: failed program was:" >&5
1826 sed 's/^/| /' conftest.$ac_ext >&5
1830 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1831 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1832 # interfere with the next link command; also delete a directory that is
1833 # left behind by Apple's compiler. We do this before executing the actions.
1834 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1835 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1838 } # ac_fn_c_try_link
1840 # ac_fn_c_check_func LINENO FUNC VAR
1841 # ----------------------------------
1842 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1843 ac_fn_c_check_func ()
1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1847 $as_echo_n "checking for $2... " >&6; }
1848 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1849 $as_echo_n "(cached) " >&6
1851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1852 /* end confdefs.h. */
1853 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1854 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1855 #define $2 innocuous_$2
1857 /* System header to define __stub macros and hopefully few prototypes,
1858 which can conflict with char $2 (); below.
1859 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1860 <limits.h> exists even on freestanding compilers. */
1863 # include <limits.h>
1865 # include <assert.h>
1870 /* Override any GCC internal prototype to avoid an error.
1871 Use char because int might match the return type of a GCC
1872 builtin and then its argument prototype would still apply. */
1877 /* The GNU C library defines this for functions which it implements
1878 to always fail with ENOSYS. Some functions are actually named
1879 something starting with __ and the normal name is an alias. */
1880 #if defined __stub_$2 || defined __stub___$2
1892 if ac_fn_c_try_link "$LINENO"; then :
1897 rm -f core conftest.err conftest.$ac_objext \
1898 conftest$ac_exeext conftest.$ac_ext
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1902 $as_echo "$ac_res" >&6; }
1903 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1905 } # ac_fn_c_check_func
1907 # ac_fn_c_try_cpp LINENO
1908 # ----------------------
1909 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1912 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913 if { { ac_try="$ac_cpp conftest.$ac_ext"
1915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1916 *) ac_try_echo=$ac_try;;
1918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1919 $as_echo "$ac_try_echo"; } >&5
1920 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1922 if test -s conftest.err; then
1923 grep -v '^ *+' conftest.err >conftest.er1
1924 cat conftest.er1 >&5
1925 mv -f conftest.er1 conftest.err
1927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1928 test $ac_status = 0; } >/dev/null && {
1929 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1930 test ! -s conftest.err
1934 $as_echo "$as_me: failed program was:" >&5
1935 sed 's/^/| /' conftest.$ac_ext >&5
1939 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1944 # ac_fn_c_try_run LINENO
1945 # ----------------------
1946 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1947 # that executables *can* be run.
1950 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1951 if { { ac_try="$ac_link"
1953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1954 *) ac_try_echo=$ac_try;;
1956 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1957 $as_echo "$ac_try_echo"; } >&5
1958 (eval "$ac_link") 2>&5
1960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1961 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1962 { { case "(($ac_try" in
1963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1964 *) ac_try_echo=$ac_try;;
1966 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1967 $as_echo "$ac_try_echo"; } >&5
1968 (eval "$ac_try") 2>&5
1970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1971 test $ac_status = 0; }; }; then :
1974 $as_echo "$as_me: program exited with status $ac_status" >&5
1975 $as_echo "$as_me: failed program was:" >&5
1976 sed 's/^/| /' conftest.$ac_ext >&5
1978 ac_retval=$ac_status
1980 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1981 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1986 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1987 # -------------------------------------------------------
1988 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1989 # the include files in INCLUDES and setting the cache variable VAR
1991 ac_fn_c_check_header_mongrel ()
1993 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1994 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1996 $as_echo_n "checking for $2... " >&6; }
1997 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1998 $as_echo_n "(cached) " >&6
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2002 $as_echo "$ac_res" >&6; }
2004 # Is the header compilable?
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2006 $as_echo_n "checking $2 usability... " >&6; }
2007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2008 /* end confdefs.h. */
2012 if ac_fn_c_try_compile "$LINENO"; then :
2013 ac_header_compiler=yes
2015 ac_header_compiler=no
2017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2019 $as_echo "$ac_header_compiler" >&6; }
2021 # Is the header present?
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2023 $as_echo_n "checking $2 presence... " >&6; }
2024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2025 /* end confdefs.h. */
2028 if ac_fn_c_try_cpp "$LINENO"; then :
2029 ac_header_preproc=yes
2031 ac_header_preproc=no
2033 rm -f conftest.err conftest.$ac_ext
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2035 $as_echo "$ac_header_preproc" >&6; }
2037 # So? What about this header?
2038 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2041 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2043 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2047 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2049 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2051 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2053 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2055 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2057 ## --------------------------------------------------------- ##
2058 ## Report this to http://sv.nongnu.org/bugs/?group=lordsawar ##
2059 ## --------------------------------------------------------- ##
2061 ) | sed "s/^/$as_me: WARNING: /" >&2
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2065 $as_echo_n "checking for $2... " >&6; }
2066 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2067 $as_echo_n "(cached) " >&6
2069 eval "$3=\$ac_header_compiler"
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2073 $as_echo "$ac_res" >&6; }
2075 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2077 } # ac_fn_c_check_header_mongrel
2079 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2080 # -------------------------------------------------------
2081 # Tests whether HEADER exists and can be compiled using the include files in
2082 # INCLUDES, setting the cache variable VAR accordingly.
2083 ac_fn_c_check_header_compile ()
2085 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2087 $as_echo_n "checking for $2... " >&6; }
2088 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2089 $as_echo_n "(cached) " >&6
2091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2092 /* end confdefs.h. */
2096 if ac_fn_c_try_compile "$LINENO"; then :
2101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2105 $as_echo "$ac_res" >&6; }
2106 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2108 } # ac_fn_c_check_header_compile
2110 # ac_fn_cxx_try_compile LINENO
2111 # ----------------------------
2112 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2113 ac_fn_cxx_try_compile ()
2115 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2116 rm -f conftest.$ac_objext
2117 if { { ac_try="$ac_compile"
2119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2120 *) ac_try_echo=$ac_try;;
2122 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2123 $as_echo "$ac_try_echo"; } >&5
2124 (eval "$ac_compile") 2>conftest.err
2126 if test -s conftest.err; then
2127 grep -v '^ *+' conftest.err >conftest.er1
2128 cat conftest.er1 >&5
2129 mv -f conftest.er1 conftest.err
2131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2132 test $ac_status = 0; } && {
2133 test -z "$ac_cxx_werror_flag" ||
2134 test ! -s conftest.err
2135 } && test -s conftest.$ac_objext; then :
2138 $as_echo "$as_me: failed program was:" >&5
2139 sed 's/^/| /' conftest.$ac_ext >&5
2143 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2146 } # ac_fn_cxx_try_compile
2148 # ac_fn_cxx_try_cpp LINENO
2149 # ------------------------
2150 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2151 ac_fn_cxx_try_cpp ()
2153 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2154 if { { ac_try="$ac_cpp conftest.$ac_ext"
2156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2157 *) ac_try_echo=$ac_try;;
2159 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2160 $as_echo "$ac_try_echo"; } >&5
2161 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2163 if test -s conftest.err; then
2164 grep -v '^ *+' conftest.err >conftest.er1
2165 cat conftest.er1 >&5
2166 mv -f conftest.er1 conftest.err
2168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2169 test $ac_status = 0; } >/dev/null && {
2170 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2171 test ! -s conftest.err
2175 $as_echo "$as_me: failed program was:" >&5
2176 sed 's/^/| /' conftest.$ac_ext >&5
2180 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2183 } # ac_fn_cxx_try_cpp
2185 # ac_fn_cxx_try_link LINENO
2186 # -------------------------
2187 # Try to link conftest.$ac_ext, and return whether this succeeded.
2188 ac_fn_cxx_try_link ()
2190 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2191 rm -f conftest.$ac_objext conftest$ac_exeext
2192 if { { ac_try="$ac_link"
2194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2195 *) ac_try_echo=$ac_try;;
2197 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2198 $as_echo "$ac_try_echo"; } >&5
2199 (eval "$ac_link") 2>conftest.err
2201 if test -s conftest.err; then
2202 grep -v '^ *+' conftest.err >conftest.er1
2203 cat conftest.er1 >&5
2204 mv -f conftest.er1 conftest.err
2206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2207 test $ac_status = 0; } && {
2208 test -z "$ac_cxx_werror_flag" ||
2209 test ! -s conftest.err
2210 } && test -s conftest$ac_exeext && {
2211 test "$cross_compiling" = yes ||
2212 $as_test_x conftest$ac_exeext
2216 $as_echo "$as_me: failed program was:" >&5
2217 sed 's/^/| /' conftest.$ac_ext >&5
2221 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2222 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2223 # interfere with the next link command; also delete a directory that is
2224 # left behind by Apple's compiler. We do this before executing the actions.
2225 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2226 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2229 } # ac_fn_cxx_try_link
2231 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2232 # ---------------------------------------------------------
2233 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2234 # the include files in INCLUDES and setting the cache variable VAR
2236 ac_fn_cxx_check_header_mongrel ()
2238 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2239 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2241 $as_echo_n "checking for $2... " >&6; }
2242 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2243 $as_echo_n "(cached) " >&6
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2247 $as_echo "$ac_res" >&6; }
2249 # Is the header compilable?
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2251 $as_echo_n "checking $2 usability... " >&6; }
2252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2253 /* end confdefs.h. */
2257 if ac_fn_cxx_try_compile "$LINENO"; then :
2258 ac_header_compiler=yes
2260 ac_header_compiler=no
2262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2264 $as_echo "$ac_header_compiler" >&6; }
2266 # Is the header present?
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2268 $as_echo_n "checking $2 presence... " >&6; }
2269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2270 /* end confdefs.h. */
2273 if ac_fn_cxx_try_cpp "$LINENO"; then :
2274 ac_header_preproc=yes
2276 ac_header_preproc=no
2278 rm -f conftest.err conftest.$ac_ext
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2280 $as_echo "$ac_header_preproc" >&6; }
2282 # So? What about this header?
2283 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2286 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2288 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2292 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2294 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2296 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2298 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2300 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2302 ## --------------------------------------------------------- ##
2303 ## Report this to http://sv.nongnu.org/bugs/?group=lordsawar ##
2304 ## --------------------------------------------------------- ##
2306 ) | sed "s/^/$as_me: WARNING: /" >&2
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2310 $as_echo_n "checking for $2... " >&6; }
2311 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2312 $as_echo_n "(cached) " >&6
2314 eval "$3=\$ac_header_compiler"
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2318 $as_echo "$ac_res" >&6; }
2320 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2322 } # ac_fn_cxx_check_header_mongrel
2323 cat >config.log <<_ACEOF
2324 This file contains any messages produced by compilers while
2325 running configure, to aid debugging if configure makes a mistake.
2327 It was created by lordsawar $as_me 0.1.7-pre2, which was
2328 generated by GNU Autoconf 2.64. Invocation command line was
2340 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2341 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2342 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2343 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2344 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2346 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2347 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2349 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2350 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2351 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2352 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2353 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2354 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2355 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2363 test -z "$as_dir" && as_dir=.
2364 $as_echo "PATH: $as_dir"
2380 # Keep a trace of the command line.
2381 # Strip out --no-create and --no-recursion so they do not pile up.
2382 # Strip out --silent because we don't want to record it for future runs.
2383 # Also quote any args containing shell meta-characters.
2384 # Make two passes to allow for proper duplicate-argument suppression.
2388 ac_must_keep_next=false
2394 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2395 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2396 | -silent | --silent | --silen | --sile | --sil)
2399 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2402 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2404 as_fn_append ac_configure_args1 " '$ac_arg'"
2405 if test $ac_must_keep_next = true; then
2406 ac_must_keep_next=false # Got value, back to normal.
2409 *=* | --config-cache | -C | -disable-* | --disable-* \
2410 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2411 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2412 | -with-* | --with-* | -without-* | --without-* | --x)
2413 case "$ac_configure_args0 " in
2414 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2417 -* ) ac_must_keep_next=true ;;
2420 as_fn_append ac_configure_args " '$ac_arg'"
2425 { ac_configure_args0=; unset ac_configure_args0;}
2426 { ac_configure_args1=; unset ac_configure_args1;}
2428 # When interrupted or exit'd, cleanup temporary files, and complete
2429 # config.log. We remove comments because anyway the quotes in there
2430 # would cause problems or look ugly.
2431 # WARNING: Use '\'' to represent an apostrophe within the trap.
2432 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2433 trap 'exit_status=$?
2434 # Save into config.log some information that might help in debugging.
2439 ## ---------------- ##
2440 ## Cache variables. ##
2441 ## ---------------- ##
2444 # The following way of writing the cache mishandles newlines in values,
2446 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2447 eval ac_val=\$$ac_var
2451 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2452 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2455 _ | IFS | as_nl) ;; #(
2456 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2457 *) { eval $ac_var=; unset $ac_var;} ;;
2462 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2463 *${as_nl}ac_space=\ *)
2465 "s/'\''/'\''\\\\'\'''\''/g;
2466 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2469 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2477 ## ----------------- ##
2478 ## Output variables. ##
2479 ## ----------------- ##
2482 for ac_var in $ac_subst_vars
2484 eval ac_val=\$$ac_var
2486 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2488 $as_echo "$ac_var='\''$ac_val'\''"
2492 if test -n "$ac_subst_files"; then
2494 ## ------------------- ##
2495 ## File substitutions. ##
2496 ## ------------------- ##
2499 for ac_var in $ac_subst_files
2501 eval ac_val=\$$ac_var
2503 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2505 $as_echo "$ac_var='\''$ac_val'\''"
2510 if test -s confdefs.h; then
2520 test "$ac_signal" != 0 &&
2521 $as_echo "$as_me: caught signal $ac_signal"
2522 $as_echo "$as_me: exit $exit_status"
2524 rm -f core *.core core.conftest.* &&
2525 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2528 for ac_signal in 1 2 13 15; do
2529 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2533 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2534 rm -f -r conftest* confdefs.h
2536 $as_echo "/* confdefs.h */" > confdefs.h
2538 # Predefined preprocessor variables.
2540 cat >>confdefs.h <<_ACEOF
2541 #define PACKAGE_NAME "$PACKAGE_NAME"
2544 cat >>confdefs.h <<_ACEOF
2545 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2548 cat >>confdefs.h <<_ACEOF
2549 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2552 cat >>confdefs.h <<_ACEOF
2553 #define PACKAGE_STRING "$PACKAGE_STRING"
2556 cat >>confdefs.h <<_ACEOF
2557 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2560 cat >>confdefs.h <<_ACEOF
2561 #define PACKAGE_URL "$PACKAGE_URL"
2565 # Let the site file select an alternate cache file if it wants to.
2566 # Prefer an explicitly selected file to automatically selected ones.
2569 if test -n "$CONFIG_SITE"; then
2570 ac_site_file1=$CONFIG_SITE
2571 elif test "x$prefix" != xNONE; then
2572 ac_site_file1=$prefix/share/config.site
2573 ac_site_file2=$prefix/etc/config.site
2575 ac_site_file1=$ac_default_prefix/share/config.site
2576 ac_site_file2=$ac_default_prefix/etc/config.site
2578 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2580 test "x$ac_site_file" = xNONE && continue
2581 if test -r "$ac_site_file"; then
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2583 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2584 sed 's/^/| /' "$ac_site_file" >&5
2589 if test -r "$cache_file"; then
2590 # Some versions of bash will fail to source /dev/null (special
2591 # files actually), so we avoid doing that.
2592 if test -f "$cache_file"; then
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2594 $as_echo "$as_me: loading cache $cache_file" >&6;}
2596 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2597 *) . "./$cache_file";;
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2602 $as_echo "$as_me: creating cache $cache_file" >&6;}
2606 gt_needs="$gt_needs "
2607 # Check that the precious variables saved in the cache have kept the same
2609 ac_cache_corrupted=false
2610 for ac_var in $ac_precious_vars; do
2611 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2612 eval ac_new_set=\$ac_env_${ac_var}_set
2613 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2614 eval ac_new_val=\$ac_env_${ac_var}_value
2615 case $ac_old_set,$ac_new_set in
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2618 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2619 ac_cache_corrupted=: ;;
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2622 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2623 ac_cache_corrupted=: ;;
2626 if test "x$ac_old_val" != "x$ac_new_val"; then
2627 # differences in whitespace do not lead to failure.
2628 ac_old_val_w=`echo x $ac_old_val`
2629 ac_new_val_w=`echo x $ac_new_val`
2630 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2632 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2633 ac_cache_corrupted=:
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2636 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2637 eval $ac_var=\$ac_old_val
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2640 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2642 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2645 # Pass precious variables to config.status.
2646 if test "$ac_new_set" = set; then
2648 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2649 *) ac_arg=$ac_var=$ac_new_val ;;
2651 case " $ac_configure_args " in
2652 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2653 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2657 if $ac_cache_corrupted; then
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2659 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2661 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2662 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2664 ## -------------------- ##
2665 ## Main body of script. ##
2666 ## -------------------- ##
2669 ac_cpp='$CPP $CPPFLAGS'
2670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2676 ac_config_headers="$ac_config_headers config.h"
2681 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2682 for ac_t in install-sh install.sh shtool; do
2683 if test -f "$ac_dir/$ac_t"; then
2685 ac_install_sh="$ac_aux_dir/$ac_t -c"
2690 if test -z "$ac_aux_dir"; then
2691 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2694 # These three variables are undocumented and unsupported,
2695 # and are intended to be withdrawn in a future Autoconf release.
2696 # They can cause serious problems if a builder's source tree is in a directory
2697 # whose full name contains unusual characters.
2698 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2699 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2700 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2703 # Make sure we can run config.sub.
2704 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2705 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2708 $as_echo_n "checking build system type... " >&6; }
2709 if test "${ac_cv_build+set}" = set; then :
2710 $as_echo_n "(cached) " >&6
2712 ac_build_alias=$build_alias
2713 test "x$ac_build_alias" = x &&
2714 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2715 test "x$ac_build_alias" = x &&
2716 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2717 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2718 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2722 $as_echo "$ac_cv_build" >&6; }
2723 case $ac_cv_build in
2725 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2728 ac_save_IFS=$IFS; IFS='-'
2734 # Remember, the first character of IFS is used to create $*,
2735 # except with old shells:
2738 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2742 $as_echo_n "checking host system type... " >&6; }
2743 if test "${ac_cv_host+set}" = set; then :
2744 $as_echo_n "(cached) " >&6
2746 if test "x$host_alias" = x; then
2747 ac_cv_host=$ac_cv_build
2749 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2750 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2755 $as_echo "$ac_cv_host" >&6; }
2758 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2761 ac_save_IFS=$IFS; IFS='-'
2767 # Remember, the first character of IFS is used to create $*,
2768 # except with old shells:
2771 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2775 $as_echo_n "checking target system type... " >&6; }
2776 if test "${ac_cv_target+set}" = set; then :
2777 $as_echo_n "(cached) " >&6
2779 if test "x$target_alias" = x; then
2780 ac_cv_target=$ac_cv_host
2782 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2783 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2788 $as_echo "$ac_cv_target" >&6; }
2789 case $ac_cv_target in
2791 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2793 target=$ac_cv_target
2794 ac_save_IFS=$IFS; IFS='-'
2800 # Remember, the first character of IFS is used to create $*,
2801 # except with old shells:
2804 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2807 # The aliases save the names the user supplied, while $host etc.
2808 # will get canonicalized.
2809 test -n "$target_alias" &&
2810 test "$program_prefix$program_suffix$program_transform_name" = \
2812 program_prefix=${target_alias}-
2814 am__api_version='1.11'
2816 # Find a good install program. We prefer a C program (faster),
2817 # so one script is as good as another. But avoid the broken or
2818 # incompatible versions:
2819 # SysV /etc/install, /usr/sbin/install
2820 # SunOS /usr/etc/install
2821 # IRIX /sbin/install
2823 # AmigaOS /C/install, which installs bootblocks on floppy discs
2824 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2825 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2826 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2827 # OS/2's system install, which has a completely different semantic
2828 # ./install, which can be erroneously created by make from ./install.sh.
2829 # Reject install programs that cannot install multiple files.
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2831 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2832 if test -z "$INSTALL"; then
2833 if test "${ac_cv_path_install+set}" = set; then :
2834 $as_echo_n "(cached) " >&6
2836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2840 test -z "$as_dir" && as_dir=.
2841 # Account for people who put trailing slashes in PATH elements.
2842 case $as_dir/ in #((
2843 ./ | .// | /[cC]/* | \
2844 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2845 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2848 # OSF1 and SCO ODT 3.0 have their own names for install.
2849 # Don't use installbsd from OSF since it installs stuff as root
2851 for ac_prog in ginstall scoinst install; do
2852 for ac_exec_ext in '' $ac_executable_extensions; do
2853 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2854 if test $ac_prog = install &&
2855 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2856 # AIX install. It has an incompatible calling convention.
2858 elif test $ac_prog = install &&
2859 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2860 # program-specific install script used by HP pwplus--don't use.
2863 rm -rf conftest.one conftest.two conftest.dir
2864 echo one > conftest.one
2865 echo two > conftest.two
2867 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2868 test -s conftest.one && test -s conftest.two &&
2869 test -s conftest.dir/conftest.one &&
2870 test -s conftest.dir/conftest.two
2872 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2885 rm -rf conftest.one conftest.two conftest.dir
2888 if test "${ac_cv_path_install+set}" = set; then
2889 INSTALL=$ac_cv_path_install
2891 # As a last resort, use the slow shell script. Don't cache a
2892 # value for INSTALL within a source directory, because that will
2893 # break other packages using the cache if that directory is
2894 # removed, or if the value is a relative name.
2895 INSTALL=$ac_install_sh
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2899 $as_echo "$INSTALL" >&6; }
2901 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2902 # It thinks the first close brace ends the variable substitution.
2903 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2905 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2907 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2910 $as_echo_n "checking whether build environment is sane... " >&6; }
2913 echo timestamp > conftest.file
2914 # Reject unsafe characters in $srcdir or the absolute working directory
2915 # name. Accept space and tab only in the latter.
2919 *[\\\"\#\$\&\'\`$am_lf]*)
2920 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2923 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2924 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2927 # Do `set' in a subshell so we don't clobber the current shell's
2928 # arguments. Must try -L first in case configure is actually a
2929 # symlink; some systems play weird games with the mod time of symlinks
2930 # (eg FreeBSD returns the mod time of the symlink's containing
2933 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2934 if test "$*" = "X"; then
2936 set X `ls -t "$srcdir/configure" conftest.file`
2939 if test "$*" != "X $srcdir/configure conftest.file" \
2940 && test "$*" != "X conftest.file $srcdir/configure"; then
2942 # If neither matched, then we have a broken ls. This can happen
2943 # if, for instance, CONFIG_SHELL is bash and it inherits a
2944 # broken ls alias from the environment. This has actually
2945 # happened. Such a system could not be considered "sane".
2946 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2947 alias in your environment" "$LINENO" 5
2950 test "$2" = conftest.file
2956 as_fn_error "newly created file is older than distributed files!
2957 Check your system clock" "$LINENO" 5
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2960 $as_echo "yes" >&6; }
2961 test "$program_prefix" != NONE &&
2962 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2963 # Use a double $ so make ignores it.
2964 test "$program_suffix" != NONE &&
2965 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2966 # Double any \ or $.
2967 # By default was `s,x,x', remove it if useless.
2968 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2969 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2971 # expand $ac_aux_dir to an absolute path
2972 am_aux_dir=`cd $ac_aux_dir && pwd`
2974 if test x"${MISSING+set}" != xset; then
2977 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2979 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2982 # Use eval to expand $SHELL
2983 if eval "$MISSING --run true"; then
2984 am_missing_run="$MISSING --run "
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2988 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2991 if test x"${install_sh}" != xset; then
2994 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2996 install_sh="\${SHELL} $am_aux_dir/install-sh"
3000 # Installed binaries are usually stripped using `strip' when the user
3001 # run `make install-strip'. However `strip' might not be the right
3002 # tool to use in cross-compilation environments, therefore Automake
3003 # will honor the `STRIP' environment variable to overrule this program.
3004 if test "$cross_compiling" != no; then
3005 if test -n "$ac_tool_prefix"; then
3006 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3007 set dummy ${ac_tool_prefix}strip; ac_word=$2
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3009 $as_echo_n "checking for $ac_word... " >&6; }
3010 if test "${ac_cv_prog_STRIP+set}" = set; then :
3011 $as_echo_n "(cached) " >&6
3013 if test -n "$STRIP"; then
3014 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3020 test -z "$as_dir" && as_dir=.
3021 for ac_exec_ext in '' $ac_executable_extensions; do
3022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3023 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3033 STRIP=$ac_cv_prog_STRIP
3034 if test -n "$STRIP"; then
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3036 $as_echo "$STRIP" >&6; }
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3039 $as_echo "no" >&6; }
3044 if test -z "$ac_cv_prog_STRIP"; then
3046 # Extract the first word of "strip", so it can be a program name with args.
3047 set dummy strip; ac_word=$2
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3049 $as_echo_n "checking for $ac_word... " >&6; }
3050 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3051 $as_echo_n "(cached) " >&6
3053 if test -n "$ac_ct_STRIP"; then
3054 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3060 test -z "$as_dir" && as_dir=.
3061 for ac_exec_ext in '' $ac_executable_extensions; do
3062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3063 ac_cv_prog_ac_ct_STRIP="strip"
3064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3073 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3074 if test -n "$ac_ct_STRIP"; then
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3076 $as_echo "$ac_ct_STRIP" >&6; }
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3079 $as_echo "no" >&6; }
3082 if test "x$ac_ct_STRIP" = x; then
3085 case $cross_compiling:$ac_tool_warned in
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3088 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3089 ac_tool_warned=yes ;;
3094 STRIP="$ac_cv_prog_STRIP"
3098 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3101 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3102 if test -z "$MKDIR_P"; then
3103 if test "${ac_cv_path_mkdir+set}" = set; then :
3104 $as_echo_n "(cached) " >&6
3106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3107 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3110 test -z "$as_dir" && as_dir=.
3111 for ac_prog in mkdir gmkdir; do
3112 for ac_exec_ext in '' $ac_executable_extensions; do
3113 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3114 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3115 'mkdir (GNU coreutils) '* | \
3116 'mkdir (coreutils) '* | \
3117 'mkdir (fileutils) '4.1*)
3118 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3128 if test "${ac_cv_path_mkdir+set}" = set; then
3129 MKDIR_P="$ac_cv_path_mkdir -p"
3131 # As a last resort, use the slow shell script. Don't cache a
3132 # value for MKDIR_P within a source directory, because that will
3133 # break other packages using the cache if that directory is
3134 # removed, or if the value is a relative name.
3135 test -d ./--version && rmdir ./--version
3136 MKDIR_P="$ac_install_sh -d"
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3140 $as_echo "$MKDIR_P" >&6; }
3144 [\\/$]* | ?:[\\/]*) ;;
3145 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3148 for ac_prog in gawk mawk nawk awk
3150 # Extract the first word of "$ac_prog", so it can be a program name with args.
3151 set dummy $ac_prog; ac_word=$2
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3153 $as_echo_n "checking for $ac_word... " >&6; }
3154 if test "${ac_cv_prog_AWK+set}" = set; then :
3155 $as_echo_n "(cached) " >&6
3157 if test -n "$AWK"; then
3158 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3164 test -z "$as_dir" && as_dir=.
3165 for ac_exec_ext in '' $ac_executable_extensions; do
3166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3167 ac_cv_prog_AWK="$ac_prog"
3168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3178 if test -n "$AWK"; then
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3180 $as_echo "$AWK" >&6; }
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3183 $as_echo "no" >&6; }
3187 test -n "$AWK" && break
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3191 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3193 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3194 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3195 $as_echo_n "(cached) " >&6
3197 cat >conftest.make <<\_ACEOF
3200 @echo '@@@%%%=$(MAKE)=@@@%%%'
3202 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3203 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3205 eval ac_cv_prog_make_${ac_make}_set=yes;;
3207 eval ac_cv_prog_make_${ac_make}_set=no;;
3211 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3213 $as_echo "yes" >&6; }
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3217 $as_echo "no" >&6; }
3218 SET_MAKE="MAKE=${MAKE-make}"
3221 rm -rf .tst 2>/dev/null
3222 mkdir .tst 2>/dev/null
3223 if test -d .tst; then
3228 rmdir .tst 2>/dev/null
3230 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3231 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3232 # is not polluted with repeated "-I."
3233 am__isrc=' -I$(srcdir)'
3234 # test to see if srcdir already configured
3235 if test -f $srcdir/config.status; then
3236 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3240 # test whether we have cygpath
3241 if test -z "$CYGPATH_W"; then
3242 if (cygpath --version) >/dev/null 2>/dev/null; then
3243 CYGPATH_W='cygpath -w'
3250 # Define the identity of the package.
3252 VERSION='0.1.7-pre2'
3255 cat >>confdefs.h <<_ACEOF
3256 #define PACKAGE "$PACKAGE"
3260 cat >>confdefs.h <<_ACEOF
3261 #define VERSION "$VERSION"
3264 # Some tools Automake needs.
3266 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3269 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3272 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3275 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3278 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3280 # We need awk for the "check" target. The system "awk" is bad on
3282 # Always define AMTAR for backward compatibility.
3284 AMTAR=${AMTAR-"${am_missing_run}tar"}
3286 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
3295 $as_echo_n "checking whether NLS is requested... " >&6; }
3296 # Check whether --enable-nls was given.
3297 if test "${enable_nls+set}" = set; then :
3298 enableval=$enable_nls; USE_NLS=$enableval
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
3304 $as_echo "$USE_NLS" >&6; }
3307 DEPDIR="${am__leading_dot}deps"
3309 ac_config_commands="$ac_config_commands depfiles"
3312 am_make=${MAKE-make}
3313 cat > confinc << 'END'
3315 @echo this is the am__doit target
3318 # If we don't find an include directive, just comment out the code.
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3320 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3324 # First try GNU make style include.
3325 echo "include confinc" > confmf
3326 # Ignore all kinds of additional output from `make'.
3327 case `$am_make -s -f confmf 2> /dev/null` in #(
3328 *the\ am__doit\ target*)
3334 # Now try BSD make style include.
3335 if test "$am__include" = "#"; then
3336 echo '.include "confinc"' > confmf
3337 case `$am_make -s -f confmf 2> /dev/null` in #(
3338 *the\ am__doit\ target*)
3339 am__include=.include
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3348 $as_echo "$_am_result" >&6; }
3349 rm -f confinc confmf
3351 # Check whether --enable-dependency-tracking was given.
3352 if test "${enable_dependency_tracking+set}" = set; then :
3353 enableval=$enable_dependency_tracking;
3356 if test "x$enable_dependency_tracking" != xno; then
3357 am_depcomp="$ac_aux_dir/depcomp"
3360 if test "x$enable_dependency_tracking" != xno; then
3370 ac_cpp='$CPP $CPPFLAGS'
3371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3374 if test -n "$ac_tool_prefix"; then
3375 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3376 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3378 $as_echo_n "checking for $ac_word... " >&6; }
3379 if test "${ac_cv_prog_CC+set}" = set; then :
3380 $as_echo_n "(cached) " >&6
3382 if test -n "$CC"; then
3383 ac_cv_prog_CC="$CC" # Let the user override the test.
3385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3389 test -z "$as_dir" && as_dir=.
3390 for ac_exec_ext in '' $ac_executable_extensions; do
3391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3392 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3403 if test -n "$CC"; then
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3405 $as_echo "$CC" >&6; }
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3408 $as_echo "no" >&6; }
3413 if test -z "$ac_cv_prog_CC"; then
3415 # Extract the first word of "gcc", so it can be a program name with args.
3416 set dummy gcc; ac_word=$2
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3418 $as_echo_n "checking for $ac_word... " >&6; }
3419 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3420 $as_echo_n "(cached) " >&6
3422 if test -n "$ac_ct_CC"; then
3423 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3429 test -z "$as_dir" && as_dir=.
3430 for ac_exec_ext in '' $ac_executable_extensions; do
3431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3432 ac_cv_prog_ac_ct_CC="gcc"
3433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3442 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3443 if test -n "$ac_ct_CC"; then
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3445 $as_echo "$ac_ct_CC" >&6; }
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3448 $as_echo "no" >&6; }
3451 if test "x$ac_ct_CC" = x; then
3454 case $cross_compiling:$ac_tool_warned in
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3457 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3458 ac_tool_warned=yes ;;
3466 if test -z "$CC"; then
3467 if test -n "$ac_tool_prefix"; then
3468 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3469 set dummy ${ac_tool_prefix}cc; ac_word=$2
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3471 $as_echo_n "checking for $ac_word... " >&6; }
3472 if test "${ac_cv_prog_CC+set}" = set; then :
3473 $as_echo_n "(cached) " >&6
3475 if test -n "$CC"; then
3476 ac_cv_prog_CC="$CC" # Let the user override the test.
3478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3482 test -z "$as_dir" && as_dir=.
3483 for ac_exec_ext in '' $ac_executable_extensions; do
3484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3485 ac_cv_prog_CC="${ac_tool_prefix}cc"
3486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3496 if test -n "$CC"; then
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3498 $as_echo "$CC" >&6; }
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3501 $as_echo "no" >&6; }
3507 if test -z "$CC"; then
3508 # Extract the first word of "cc", so it can be a program name with args.
3509 set dummy cc; ac_word=$2
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3511 $as_echo_n "checking for $ac_word... " >&6; }
3512 if test "${ac_cv_prog_CC+set}" = set; then :
3513 $as_echo_n "(cached) " >&6
3515 if test -n "$CC"; then
3516 ac_cv_prog_CC="$CC" # Let the user override the test.
3519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3523 test -z "$as_dir" && as_dir=.
3524 for ac_exec_ext in '' $ac_executable_extensions; do
3525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3526 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3527 ac_prog_rejected=yes
3531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3538 if test $ac_prog_rejected = yes; then
3539 # We found a bogon in the path, so make sure we never use it.
3540 set dummy $ac_cv_prog_CC
3542 if test $# != 0; then
3543 # We chose a different compiler from the bogus one.
3544 # However, it has the same basename, so the bogon will be chosen
3545 # first if we set CC to just the basename; use the full file name.
3547 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3553 if test -n "$CC"; then
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3555 $as_echo "$CC" >&6; }
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3558 $as_echo "no" >&6; }
3563 if test -z "$CC"; then
3564 if test -n "$ac_tool_prefix"; then
3565 for ac_prog in cl.exe
3567 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3568 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3570 $as_echo_n "checking for $ac_word... " >&6; }
3571 if test "${ac_cv_prog_CC+set}" = set; then :
3572 $as_echo_n "(cached) " >&6
3574 if test -n "$CC"; then
3575 ac_cv_prog_CC="$CC" # Let the user override the test.
3577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3581 test -z "$as_dir" && as_dir=.
3582 for ac_exec_ext in '' $ac_executable_extensions; do
3583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3584 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3595 if test -n "$CC"; then
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3597 $as_echo "$CC" >&6; }
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3600 $as_echo "no" >&6; }
3604 test -n "$CC" && break
3607 if test -z "$CC"; then
3609 for ac_prog in cl.exe
3611 # Extract the first word of "$ac_prog", so it can be a program name with args.
3612 set dummy $ac_prog; ac_word=$2
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3614 $as_echo_n "checking for $ac_word... " >&6; }
3615 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3616 $as_echo_n "(cached) " >&6
3618 if test -n "$ac_ct_CC"; then
3619 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3625 test -z "$as_dir" && as_dir=.
3626 for ac_exec_ext in '' $ac_executable_extensions; do
3627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3628 ac_cv_prog_ac_ct_CC="$ac_prog"
3629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3638 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3639 if test -n "$ac_ct_CC"; then
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3641 $as_echo "$ac_ct_CC" >&6; }
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3644 $as_echo "no" >&6; }
3648 test -n "$ac_ct_CC" && break
3651 if test "x$ac_ct_CC" = x; then
3654 case $cross_compiling:$ac_tool_warned in
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3657 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3658 ac_tool_warned=yes ;;
3667 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3668 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3669 as_fn_error "no acceptable C compiler found in \$PATH
3670 See \`config.log' for more details." "$LINENO" 5; }
3672 # Provide some information about the compiler.
3673 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3676 for ac_option in --version -v -V -qversion; do
3677 { { ac_try="$ac_compiler $ac_option >&5"
3679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3680 *) ac_try_echo=$ac_try;;
3682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3683 $as_echo "$ac_try_echo"; } >&5
3684 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3686 if test -s conftest.err; then
3688 ... rest of stderr output deleted ...
3689 10q' conftest.err >conftest.er1
3690 cat conftest.er1 >&5
3691 rm -f conftest.er1 conftest.err
3693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3694 test $ac_status = 0; }
3697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3698 /* end confdefs.h. */
3703 FILE *f = fopen ("conftest.out", "w");
3704 return ferror (f) || fclose (f) != 0;
3710 ac_clean_files_save=$ac_clean_files
3711 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3712 # Try to create an executable without -o first, disregard a.out.
3713 # It will help us diagnose broken compilers, and finding out an intuition
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3716 $as_echo_n "checking for C compiler default output file name... " >&6; }
3717 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3719 # The possible output files:
3720 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3723 for ac_file in $ac_files
3726 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3727 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3732 if { { ac_try="$ac_link_default"
3734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3735 *) ac_try_echo=$ac_try;;
3737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3738 $as_echo "$ac_try_echo"; } >&5
3739 (eval "$ac_link_default") 2>&5
3741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3742 test $ac_status = 0; }; then :
3743 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3744 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3745 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3746 # so that the user can short-circuit this test for compilers unknown to
3748 for ac_file in $ac_files ''
3750 test -f "$ac_file" || continue
3752 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3755 # We found the default executable, but exeext='' is most
3759 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3761 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3763 # We set ac_cv_exeext here because the later test for it is not
3764 # safe: cross compilers may not add the suffix if given an `-o'
3765 # argument, so we may need to know it at that point already.
3766 # Even if this section looks crufty: it has the advantage of
3773 test "$ac_cv_exeext" = no && ac_cv_exeext=
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3779 $as_echo "$ac_file" >&6; }
3780 if test -z "$ac_file"; then :
3781 $as_echo "$as_me: failed program was:" >&5
3782 sed 's/^/| /' conftest.$ac_ext >&5
3784 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3785 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3786 { as_fn_set_status 77
3787 as_fn_error "C compiler cannot create executables
3788 See \`config.log' for more details." "$LINENO" 5; }; }
3790 ac_exeext=$ac_cv_exeext
3792 # Check that the compiler produces executables we can run. If not, either
3793 # the compiler is broken, or we cross compile.
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3795 $as_echo_n "checking whether the C compiler works... " >&6; }
3796 # If not cross compiling, check that we can run a simple program.
3797 if test "$cross_compiling" != yes; then
3798 if { ac_try='./$ac_file'
3799 { { case "(($ac_try" in
3800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3801 *) ac_try_echo=$ac_try;;
3803 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3804 $as_echo "$ac_try_echo"; } >&5
3805 (eval "$ac_try") 2>&5
3807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3808 test $ac_status = 0; }; }; then
3811 if test "$cross_compiling" = maybe; then
3814 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3815 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3816 as_fn_error "cannot run C compiled programs.
3817 If you meant to cross compile, use \`--host'.
3818 See \`config.log' for more details." "$LINENO" 5; }
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3823 $as_echo "yes" >&6; }
3825 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3826 ac_clean_files=$ac_clean_files_save
3827 # Check that the compiler produces executables we can run. If not, either
3828 # the compiler is broken, or we cross compile.
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3830 $as_echo_n "checking whether we are cross compiling... " >&6; }
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3832 $as_echo "$cross_compiling" >&6; }
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3835 $as_echo_n "checking for suffix of executables... " >&6; }
3836 if { { ac_try="$ac_link"
3838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3839 *) ac_try_echo=$ac_try;;
3841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3842 $as_echo "$ac_try_echo"; } >&5
3843 (eval "$ac_link") 2>&5
3845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3846 test $ac_status = 0; }; then :
3847 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3848 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3849 # work properly (i.e., refer to `conftest.exe'), while it won't with
3851 for ac_file in conftest.exe conftest conftest.*; do
3852 test -f "$ac_file" || continue
3854 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3855 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3861 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3862 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3863 as_fn_error "cannot compute suffix of executables: cannot compile and link
3864 See \`config.log' for more details." "$LINENO" 5; }
3866 rm -f conftest$ac_cv_exeext
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3868 $as_echo "$ac_cv_exeext" >&6; }
3870 rm -f conftest.$ac_ext
3871 EXEEXT=$ac_cv_exeext
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3874 $as_echo_n "checking for suffix of object files... " >&6; }
3875 if test "${ac_cv_objext+set}" = set; then :
3876 $as_echo_n "(cached) " >&6
3878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3879 /* end confdefs.h. */
3889 rm -f conftest.o conftest.obj
3890 if { { ac_try="$ac_compile"
3892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893 *) ac_try_echo=$ac_try;;
3895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3896 $as_echo "$ac_try_echo"; } >&5
3897 (eval "$ac_compile") 2>&5
3899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3900 test $ac_status = 0; }; then :
3901 for ac_file in conftest.o conftest.obj conftest.*; do
3902 test -f "$ac_file" || continue;
3904 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3905 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3910 $as_echo "$as_me: failed program was:" >&5
3911 sed 's/^/| /' conftest.$ac_ext >&5
3913 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3914 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3915 as_fn_error "cannot compute suffix of object files: cannot compile
3916 See \`config.log' for more details." "$LINENO" 5; }
3918 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3921 $as_echo "$ac_cv_objext" >&6; }
3922 OBJEXT=$ac_cv_objext
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3925 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3926 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3927 $as_echo_n "(cached) " >&6
3929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3930 /* end confdefs.h. */
3943 if ac_fn_c_try_compile "$LINENO"; then :
3948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3949 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3953 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3954 if test $ac_compiler_gnu = yes; then
3959 ac_test_CFLAGS=${CFLAGS+set}
3960 ac_save_CFLAGS=$CFLAGS
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3962 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3963 if test "${ac_cv_prog_cc_g+set}" = set; then :
3964 $as_echo_n "(cached) " >&6
3966 ac_save_c_werror_flag=$ac_c_werror_flag
3967 ac_c_werror_flag=yes
3970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3971 /* end confdefs.h. */
3981 if ac_fn_c_try_compile "$LINENO"; then :
3985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3986 /* end confdefs.h. */
3996 if ac_fn_c_try_compile "$LINENO"; then :
3999 ac_c_werror_flag=$ac_save_c_werror_flag
4001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4002 /* end confdefs.h. */
4012 if ac_fn_c_try_compile "$LINENO"; then :
4015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4020 ac_c_werror_flag=$ac_save_c_werror_flag
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4023 $as_echo "$ac_cv_prog_cc_g" >&6; }
4024 if test "$ac_test_CFLAGS" = set; then
4025 CFLAGS=$ac_save_CFLAGS
4026 elif test $ac_cv_prog_cc_g = yes; then
4027 if test "$GCC" = yes; then
4033 if test "$GCC" = yes; then
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4040 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4041 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4042 $as_echo_n "(cached) " >&6
4044 ac_cv_prog_cc_c89=no
4046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4047 /* end confdefs.h. */
4050 #include <sys/types.h>
4051 #include <sys/stat.h>
4052 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4053 struct buf { int x; };
4054 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4055 static char *e (p, i)
4061 static char *f (char * (*g) (char **, int), char **p, ...)
4066 s = g (p, va_arg (v,int));
4071 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4072 function prototypes and stuff, but not '\xHH' hex character constants.
4073 These don't provoke an error unfortunately, instead are silently treated
4074 as 'x'. The following induces an error, until -std is added to get
4075 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4076 array size at least. It's necessary to write '\x00'==0 to get something
4077 that's true only with -std. */
4078 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4080 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4081 inside strings and character constants. */
4083 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4085 int test (int i, double x);
4086 struct s1 {int (*f) (int a);};
4087 struct s2 {int (*f) (double a);};
4088 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4094 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4099 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4100 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4102 CC="$ac_save_CC $ac_arg"
4103 if ac_fn_c_try_compile "$LINENO"; then :
4104 ac_cv_prog_cc_c89=$ac_arg
4106 rm -f core conftest.err conftest.$ac_objext
4107 test "x$ac_cv_prog_cc_c89" != "xno" && break
4109 rm -f conftest.$ac_ext
4114 case "x$ac_cv_prog_cc_c89" in
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4117 $as_echo "none needed" >&6; } ;;
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4120 $as_echo "unsupported" >&6; } ;;
4122 CC="$CC $ac_cv_prog_cc_c89"
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4124 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4126 if test "x$ac_cv_prog_cc_c89" != xno; then :
4131 ac_cpp='$CPP $CPPFLAGS'
4132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4136 depcc="$CC" am_compiler_list=
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4139 $as_echo_n "checking dependency style of $depcc... " >&6; }
4140 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4141 $as_echo_n "(cached) " >&6
4143 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4144 # We make a subdir and do the tests there. Otherwise we can end up
4145 # making bogus files that we don't know about and never remove. For
4146 # instance it was reported that on HP-UX the gcc test will end up
4147 # making a dummy file named `D' -- because `-MD' means `put the output
4150 # Copy depcomp to subdir because otherwise we won't find it if we're
4151 # using a relative directory.
4152 cp "$am_depcomp" conftest.dir
4154 # We will build objects and dependencies in a subdirectory because
4155 # it helps to detect inapplicable dependency modes. For instance
4156 # both Tru64's cc and ICC support -MD to output dependencies as a
4157 # side effect of compilation, but ICC will put the dependencies in
4158 # the current directory while Tru64 will put them in the object
4162 am_cv_CC_dependencies_compiler_type=none
4163 if test "$am_compiler_list" = ""; then
4164 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4167 case " $depcc " in #(
4168 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4171 for depmode in $am_compiler_list; do
4172 # Setup a source with many dependencies, because some compilers
4173 # like to wrap large dependency lists on column 80 (with \), and
4174 # we should not choose a depcomp mode which is confused by this.
4176 # We need to recreate these files for each test, as the compiler may
4177 # overwrite some of them when testing with obscure command lines.
4178 # This happens at least with the AIX C compiler.
4180 for i in 1 2 3 4 5 6; do
4181 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4182 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4183 # Solaris 8's {/usr,}/bin/sh.
4184 touch sub/conftst$i.h
4186 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4188 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4189 # mode. It turns out that the SunPro C++ compiler does not properly
4190 # handle `-M -o', and we need to detect this. Also, some Intel
4191 # versions had trouble with output in subdirs
4192 am__obj=sub/conftest.${OBJEXT-o}
4193 am__minus_obj="-o $am__obj"
4196 # This depmode causes a compiler race in universal mode.
4197 test "$am__universal" = false || continue
4200 # after this tag, mechanisms are not by side-effect, so they'll
4201 # only be used when explicitly requested
4202 if test "x$enable_dependency_tracking" = xyes; then
4208 msvisualcpp | msvcmsys)
4209 # This compiler won't grok `-c -o', but also, the minuso test has
4210 # not run yet. These depmodes are late enough in the game, and
4211 # so weak that their functioning should not be impacted.
4212 am__obj=conftest.${OBJEXT-o}
4217 if depmode=$depmode \
4218 source=sub/conftest.c object=$am__obj \
4219 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4220 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4221 >/dev/null 2>conftest.err &&
4222 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4223 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4224 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4225 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4226 # icc doesn't choke on unknown options, it will just issue warnings
4227 # or remarks (even with -Werror). So we grep stderr for any message
4228 # that says an option was ignored or not supported.
4229 # When given -MP, icc 7.0 and 7.1 complain thusly:
4230 # icc: Command line warning: ignoring option '-M'; no argument required
4231 # The diagnosis changed in icc 8.0:
4232 # icc: Command line remark: option '-MP' not supported
4233 if (grep 'ignoring option' conftest.err ||
4234 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4235 am_cv_CC_dependencies_compiler_type=$depmode
4244 am_cv_CC_dependencies_compiler_type=none
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4249 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4250 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4253 test "x$enable_dependency_tracking" != xno \
4254 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4256 am__fastdepCC_FALSE='#'
4258 am__fastdepCC_TRUE='#'
4259 am__fastdepCC_FALSE=
4266 case "$am__api_version" in
4268 as_fn_error "Automake 1.5 or newer is required to use intltool" "$LINENO" 5
4274 if test -n "0.35.5"; then
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intltool >= 0.35.5" >&5
4276 $as_echo_n "checking for intltool >= 0.35.5... " >&6; }
4278 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.35.5 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
4279 INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
4280 INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_APPLIED_VERSION found" >&5
4283 $as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; }
4284 test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
4285 as_fn_error "Your intltool is too old. You need intltool 0.35.5 or later." "$LINENO" 5
4288 # Extract the first word of "intltool-update", so it can be a program name with args.
4289 set dummy intltool-update; ac_word=$2
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4291 $as_echo_n "checking for $ac_word... " >&6; }
4292 if test "${ac_cv_path_INTLTOOL_UPDATE+set}" = set; then :
4293 $as_echo_n "(cached) " >&6
4295 case $INTLTOOL_UPDATE in
4297 ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path.
4300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4304 test -z "$as_dir" && as_dir=.
4305 for ac_exec_ext in '' $ac_executable_extensions; do
4306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4307 ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext"
4308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4318 INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE
4319 if test -n "$INTLTOOL_UPDATE"; then
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_UPDATE" >&5
4321 $as_echo "$INTLTOOL_UPDATE" >&6; }
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4324 $as_echo "no" >&6; }
4328 # Extract the first word of "intltool-merge", so it can be a program name with args.
4329 set dummy intltool-merge; ac_word=$2
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4331 $as_echo_n "checking for $ac_word... " >&6; }
4332 if test "${ac_cv_path_INTLTOOL_MERGE+set}" = set; then :
4333 $as_echo_n "(cached) " >&6
4335 case $INTLTOOL_MERGE in
4337 ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # Let the user override the test with a path.
4340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4344 test -z "$as_dir" && as_dir=.
4345 for ac_exec_ext in '' $ac_executable_extensions; do
4346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4347 ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext"
4348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4358 INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE
4359 if test -n "$INTLTOOL_MERGE"; then
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_MERGE" >&5
4361 $as_echo "$INTLTOOL_MERGE" >&6; }
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4364 $as_echo "no" >&6; }
4368 # Extract the first word of "intltool-extract", so it can be a program name with args.
4369 set dummy intltool-extract; ac_word=$2
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4371 $as_echo_n "checking for $ac_word... " >&6; }
4372 if test "${ac_cv_path_INTLTOOL_EXTRACT+set}" = set; then :
4373 $as_echo_n "(cached) " >&6
4375 case $INTLTOOL_EXTRACT in
4377 ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # Let the user override the test with a path.
4380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4384 test -z "$as_dir" && as_dir=.
4385 for ac_exec_ext in '' $ac_executable_extensions; do
4386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4387 ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext"
4388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4398 INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT
4399 if test -n "$INTLTOOL_EXTRACT"; then
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_EXTRACT" >&5
4401 $as_echo "$INTLTOOL_EXTRACT" >&6; }
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4404 $as_echo "no" >&6; }
4408 if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
4409 as_fn_error "The intltool scripts were not found. Please install intltool." "$LINENO" 5
4412 INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4413 INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4414 INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4415 INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4416 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@'
4417 INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4418 INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4419 INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4420 INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4421 INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4422 INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4423 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@'
4424 INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4425 INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4426 INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4427 INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4428 INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4429 INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4430 INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
4528 # Check the gettext tools to make sure they are GNU
4529 # Extract the first word of "xgettext", so it can be a program name with args.
4530 set dummy xgettext; ac_word=$2
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4532 $as_echo_n "checking for $ac_word... " >&6; }
4533 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
4534 $as_echo_n "(cached) " >&6
4538 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545 test -z "$as_dir" && as_dir=.
4546 for ac_exec_ext in '' $ac_executable_extensions; do
4547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4548 ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
4549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4559 XGETTEXT=$ac_cv_path_XGETTEXT
4560 if test -n "$XGETTEXT"; then
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
4562 $as_echo "$XGETTEXT" >&6; }
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4565 $as_echo "no" >&6; }
4569 # Extract the first word of "msgmerge", so it can be a program name with args.
4570 set dummy msgmerge; ac_word=$2
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4572 $as_echo_n "checking for $ac_word... " >&6; }
4573 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
4574 $as_echo_n "(cached) " >&6
4578 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4585 test -z "$as_dir" && as_dir=.
4586 for ac_exec_ext in '' $ac_executable_extensions; do
4587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4588 ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
4589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4599 MSGMERGE=$ac_cv_path_MSGMERGE
4600 if test -n "$MSGMERGE"; then
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
4602 $as_echo "$MSGMERGE" >&6; }
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4605 $as_echo "no" >&6; }
4609 # Extract the first word of "msgfmt", so it can be a program name with args.
4610 set dummy msgfmt; ac_word=$2
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4612 $as_echo_n "checking for $ac_word... " >&6; }
4613 if test "${ac_cv_path_MSGFMT+set}" = set; then :
4614 $as_echo_n "(cached) " >&6
4618 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4625 test -z "$as_dir" && as_dir=.
4626 for ac_exec_ext in '' $ac_executable_extensions; do
4627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4628 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4639 MSGFMT=$ac_cv_path_MSGFMT
4640 if test -n "$MSGFMT"; then
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
4642 $as_echo "$MSGFMT" >&6; }
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4645 $as_echo "no" >&6; }
4649 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4650 set dummy gmsgfmt; ac_word=$2
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4652 $as_echo_n "checking for $ac_word... " >&6; }
4653 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
4654 $as_echo_n "(cached) " >&6
4658 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4665 test -z "$as_dir" && as_dir=.
4666 for ac_exec_ext in '' $ac_executable_extensions; do
4667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4668 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4676 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4680 GMSGFMT=$ac_cv_path_GMSGFMT
4681 if test -n "$GMSGFMT"; then
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
4683 $as_echo "$GMSGFMT" >&6; }
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4686 $as_echo "no" >&6; }
4690 if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
4691 as_fn_error "GNU gettext tools not found; required for intltool" "$LINENO" 5
4693 xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
4694 mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
4695 mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
4696 if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
4697 as_fn_error "GNU gettext tools not found; required for intltool" "$LINENO" 5
4700 # Extract the first word of "perl", so it can be a program name with args.
4701 set dummy perl; ac_word=$2
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4703 $as_echo_n "checking for $ac_word... " >&6; }
4704 if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then :
4705 $as_echo_n "(cached) " >&6
4707 case $INTLTOOL_PERL in
4709 ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
4712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4716 test -z "$as_dir" && as_dir=.
4717 for ac_exec_ext in '' $ac_executable_extensions; do
4718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4719 ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
4720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4730 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
4731 if test -n "$INTLTOOL_PERL"; then
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_PERL" >&5
4733 $as_echo "$INTLTOOL_PERL" >&6; }
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4736 $as_echo "no" >&6; }
4740 if test -z "$INTLTOOL_PERL"; then
4741 as_fn_error "perl not found" "$LINENO" 5
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl >= 5.8.1" >&5
4744 $as_echo_n "checking for perl >= 5.8.1... " >&6; }
4745 $INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
4746 if test $? -ne 0; then
4747 as_fn_error "perl 5.8.1 is required for intltool" "$LINENO" 5
4749 IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IT_PERL_VERSION" >&5
4751 $as_echo "$IT_PERL_VERSION" >&6; }
4753 if test "x" != "xno-xml"; then
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML::Parser" >&5
4755 $as_echo_n "checking for XML::Parser... " >&6; }
4756 if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
4758 $as_echo "ok" >&6; }
4760 as_fn_error "XML::Parser perl module is required for intltool" "$LINENO" 5
4764 # Substitute ALL_LINGUAS so we can use it in po/Makefile
4767 # Set DATADIRNAME correctly if it is not set yet
4768 # (copied from glib-gettext.m4)
4769 if test -z "$DATADIRNAME"; then
4770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4771 /* end confdefs.h. */
4776 extern int _nl_msg_cat_cntr;
4777 return _nl_msg_cat_cntr
4782 if ac_fn_c_try_link "$LINENO"; then :
4787 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
4788 if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then :
4800 rm -f core conftest.err conftest.$ac_objext \
4801 conftest$ac_exeext conftest.$ac_ext
4809 GETTEXT_PACKAGE=lordsawar
4812 cat >>confdefs.h <<_ACEOF
4813 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
4817 ac_cpp='$CPP $CPPFLAGS'
4818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4822 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4823 # On Suns, sometimes $CPP names a directory.
4824 if test -n "$CPP" && test -d "$CPP"; then
4827 if test -z "$CPP"; then
4828 if test "${ac_cv_prog_CPP+set}" = set; then :
4829 $as_echo_n "(cached) " >&6
4831 # Double quotes because CPP needs to be expanded
4832 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4835 for ac_c_preproc_warn_flag in '' yes
4837 # Use a header file that comes with gcc, so configuring glibc
4838 # with a fresh cross-compiler works.
4839 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4840 # <limits.h> exists even on freestanding compilers.
4841 # On the NeXT, cc -E runs the code through the compiler's parser,
4842 # not just through cpp. "Syntax error" is here to catch this case.
4843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4844 /* end confdefs.h. */
4846 # include <limits.h>
4848 # include <assert.h>
4852 if ac_fn_c_try_cpp "$LINENO"; then :
4855 # Broken: fails on valid input.
4858 rm -f conftest.err conftest.$ac_ext
4860 # OK, works on sane cases. Now check whether nonexistent headers
4861 # can be detected and how.
4862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4863 /* end confdefs.h. */
4864 #include <ac_nonexistent.h>
4866 if ac_fn_c_try_cpp "$LINENO"; then :
4867 # Broken: success on invalid input.
4870 # Passes both tests.
4874 rm -f conftest.err conftest.$ac_ext
4877 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4878 rm -f conftest.err conftest.$ac_ext
4879 if $ac_preproc_ok; then :
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4892 $as_echo "$CPP" >&6; }
4894 for ac_c_preproc_warn_flag in '' yes
4896 # Use a header file that comes with gcc, so configuring glibc
4897 # with a fresh cross-compiler works.
4898 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4899 # <limits.h> exists even on freestanding compilers.
4900 # On the NeXT, cc -E runs the code through the compiler's parser,
4901 # not just through cpp. "Syntax error" is here to catch this case.
4902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4903 /* end confdefs.h. */
4905 # include <limits.h>
4907 # include <assert.h>
4911 if ac_fn_c_try_cpp "$LINENO"; then :
4914 # Broken: fails on valid input.
4917 rm -f conftest.err conftest.$ac_ext
4919 # OK, works on sane cases. Now check whether nonexistent headers
4920 # can be detected and how.
4921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4922 /* end confdefs.h. */
4923 #include <ac_nonexistent.h>
4925 if ac_fn_c_try_cpp "$LINENO"; then :
4926 # Broken: success on invalid input.
4929 # Passes both tests.
4933 rm -f conftest.err conftest.$ac_ext
4936 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4937 rm -f conftest.err conftest.$ac_ext
4938 if $ac_preproc_ok; then :
4941 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4943 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4944 See \`config.log' for more details." "$LINENO" 5; }
4948 ac_cpp='$CPP $CPPFLAGS'
4949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4955 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4956 if test "${ac_cv_path_GREP+set}" = set; then :
4957 $as_echo_n "(cached) " >&6
4959 if test -z "$GREP"; then
4960 ac_path_GREP_found=false
4961 # Loop through the user's path and test for each of PROGNAME-LIST
4962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4963 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4966 test -z "$as_dir" && as_dir=.
4967 for ac_prog in grep ggrep; do
4968 for ac_exec_ext in '' $ac_executable_extensions; do
4969 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4970 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4971 # Check for GNU ac_path_GREP and select it if it is found.
4972 # Check for GNU $ac_path_GREP
4973 case `"$ac_path_GREP" --version 2>&1` in
4975 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4978 $as_echo_n 0123456789 >"conftest.in"
4981 cat "conftest.in" "conftest.in" >"conftest.tmp"
4982 mv "conftest.tmp" "conftest.in"
4983 cp "conftest.in" "conftest.nl"
4984 $as_echo 'GREP' >> "conftest.nl"
4985 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4986 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4987 as_fn_arith $ac_count + 1 && ac_count=$as_val
4988 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4989 # Best one so far, save it but keep looking for a better one
4990 ac_cv_path_GREP="$ac_path_GREP"
4991 ac_path_GREP_max=$ac_count
4993 # 10*(2^10) chars as input seems more than enough
4994 test $ac_count -gt 10 && break
4996 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4999 $ac_path_GREP_found && break 3
5004 if test -z "$ac_cv_path_GREP"; then
5005 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5008 ac_cv_path_GREP=$GREP
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5013 $as_echo "$ac_cv_path_GREP" >&6; }
5014 GREP="$ac_cv_path_GREP"
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5018 $as_echo_n "checking for egrep... " >&6; }
5019 if test "${ac_cv_path_EGREP+set}" = set; then :
5020 $as_echo_n "(cached) " >&6
5022 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5023 then ac_cv_path_EGREP="$GREP -E"
5025 if test -z "$EGREP"; then
5026 ac_path_EGREP_found=false
5027 # Loop through the user's path and test for each of PROGNAME-LIST
5028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5029 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5032 test -z "$as_dir" && as_dir=.
5033 for ac_prog in egrep; do
5034 for ac_exec_ext in '' $ac_executable_extensions; do
5035 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5036 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5037 # Check for GNU ac_path_EGREP and select it if it is found.
5038 # Check for GNU $ac_path_EGREP
5039 case `"$ac_path_EGREP" --version 2>&1` in
5041 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5044 $as_echo_n 0123456789 >"conftest.in"
5047 cat "conftest.in" "conftest.in" >"conftest.tmp"
5048 mv "conftest.tmp" "conftest.in"
5049 cp "conftest.in" "conftest.nl"
5050 $as_echo 'EGREP' >> "conftest.nl"
5051 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5052 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5053 as_fn_arith $ac_count + 1 && ac_count=$as_val
5054 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5055 # Best one so far, save it but keep looking for a better one
5056 ac_cv_path_EGREP="$ac_path_EGREP"
5057 ac_path_EGREP_max=$ac_count
5059 # 10*(2^10) chars as input seems more than enough
5060 test $ac_count -gt 10 && break
5062 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5065 $ac_path_EGREP_found && break 3
5070 if test -z "$ac_cv_path_EGREP"; then
5071 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5074 ac_cv_path_EGREP=$EGREP
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5080 $as_echo "$ac_cv_path_EGREP" >&6; }
5081 EGREP="$ac_cv_path_EGREP"
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5085 $as_echo_n "checking for ANSI C header files... " >&6; }
5086 if test "${ac_cv_header_stdc+set}" = set; then :
5087 $as_echo_n "(cached) " >&6
5089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5090 /* end confdefs.h. */
5104 if ac_fn_c_try_compile "$LINENO"; then :
5105 ac_cv_header_stdc=yes
5107 ac_cv_header_stdc=no
5109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5111 if test $ac_cv_header_stdc = yes; then
5112 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5114 /* end confdefs.h. */
5118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5119 $EGREP "memchr" >/dev/null 2>&1; then :
5122 ac_cv_header_stdc=no
5128 if test $ac_cv_header_stdc = yes; then
5129 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5131 /* end confdefs.h. */
5135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5136 $EGREP "free" >/dev/null 2>&1; then :
5139 ac_cv_header_stdc=no
5145 if test $ac_cv_header_stdc = yes; then
5146 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5147 if test "$cross_compiling" = yes; then :
5150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5151 /* end confdefs.h. */
5154 #if ((' ' & 0x0FF) == 0x020)
5155 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5156 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5158 # define ISLOWER(c) \
5159 (('a' <= (c) && (c) <= 'i') \
5160 || ('j' <= (c) && (c) <= 'r') \
5161 || ('s' <= (c) && (c) <= 'z'))
5162 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5165 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5170 for (i = 0; i < 256; i++)
5171 if (XOR (islower (i), ISLOWER (i))
5172 || toupper (i) != TOUPPER (i))
5177 if ac_fn_c_try_run "$LINENO"; then :
5180 ac_cv_header_stdc=no
5182 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5183 conftest.$ac_objext conftest.beam conftest.$ac_ext
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5189 $as_echo "$ac_cv_header_stdc" >&6; }
5190 if test $ac_cv_header_stdc = yes; then
5192 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5196 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5197 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5198 inttypes.h stdint.h unistd.h
5200 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5201 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5203 eval as_val=\$$as_ac_Header
5204 if test "x$as_val" = x""yes; then :
5205 cat >>confdefs.h <<_ACEOF
5206 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5215 for ac_header in locale.h
5217 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
5218 if test "x$ac_cv_header_locale_h" = x""yes; then :
5219 cat >>confdefs.h <<_ACEOF
5220 #define HAVE_LOCALE_H 1
5227 if test $ac_cv_header_locale_h = yes; then
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
5229 $as_echo_n "checking for LC_MESSAGES... " >&6; }
5230 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
5231 $as_echo_n "(cached) " >&6
5233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5234 /* end confdefs.h. */
5244 if ac_fn_c_try_link "$LINENO"; then :
5245 am_cv_val_LC_MESSAGES=yes
5247 am_cv_val_LC_MESSAGES=no
5249 rm -f core conftest.err conftest.$ac_objext \
5250 conftest$ac_exeext conftest.$ac_ext
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
5253 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
5254 if test $am_cv_val_LC_MESSAGES = yes; then
5256 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
5263 gt_cv_have_gettext=no
5269 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
5270 if test "x$ac_cv_header_libintl_h" = x""yes; then :
5271 gt_cv_func_dgettext_libintl="no"
5272 libintl_extra_libs=""
5275 # First check in libc
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in libc" >&5
5278 $as_echo_n "checking for ngettext in libc... " >&6; }
5279 if test "${gt_cv_func_ngettext_libc+set}" = set; then :
5280 $as_echo_n "(cached) " >&6
5282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5283 /* end confdefs.h. */
5285 #include <libintl.h>
5290 return !ngettext ("","", 1)
5295 if ac_fn_c_try_link "$LINENO"; then :
5296 gt_cv_func_ngettext_libc=yes
5298 gt_cv_func_ngettext_libc=no
5300 rm -f core conftest.err conftest.$ac_objext \
5301 conftest$ac_exeext conftest.$ac_ext
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_ngettext_libc" >&5
5305 $as_echo "$gt_cv_func_ngettext_libc" >&6; }
5307 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in libc" >&5
5309 $as_echo_n "checking for dgettext in libc... " >&6; }
5310 if test "${gt_cv_func_dgettext_libc+set}" = set; then :
5311 $as_echo_n "(cached) " >&6
5313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5314 /* end confdefs.h. */
5316 #include <libintl.h>
5321 return !dgettext ("","")
5326 if ac_fn_c_try_link "$LINENO"; then :
5327 gt_cv_func_dgettext_libc=yes
5329 gt_cv_func_dgettext_libc=no
5331 rm -f core conftest.err conftest.$ac_objext \
5332 conftest$ac_exeext conftest.$ac_ext
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_dgettext_libc" >&5
5336 $as_echo "$gt_cv_func_dgettext_libc" >&6; }
5339 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
5340 for ac_func in bind_textdomain_codeset
5342 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
5343 if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then :
5344 cat >>confdefs.h <<_ACEOF
5345 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
5354 # If we don't have everything we want, check in libintl
5356 if test "$gt_cv_func_dgettext_libc" != "yes" \
5357 || test "$gt_cv_func_ngettext_libc" != "yes" \
5358 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5
5361 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
5362 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then :
5363 $as_echo_n "(cached) " >&6
5365 ac_check_lib_save_LIBS=$LIBS
5367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5368 /* end confdefs.h. */
5370 /* Override any GCC internal prototype to avoid an error.
5371 Use char because int might match the return type of a GCC
5372 builtin and then its argument prototype would still apply. */
5376 char bindtextdomain ();
5380 return bindtextdomain ();
5385 if ac_fn_c_try_link "$LINENO"; then :
5386 ac_cv_lib_intl_bindtextdomain=yes
5388 ac_cv_lib_intl_bindtextdomain=no
5390 rm -f core conftest.err conftest.$ac_objext \
5391 conftest$ac_exeext conftest.$ac_ext
5392 LIBS=$ac_check_lib_save_LIBS
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5
5395 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
5396 if test "x$ac_cv_lib_intl_bindtextdomain" = x""yes; then :
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
5398 $as_echo_n "checking for ngettext in -lintl... " >&6; }
5399 if test "${ac_cv_lib_intl_ngettext+set}" = set; then :
5400 $as_echo_n "(cached) " >&6
5402 ac_check_lib_save_LIBS=$LIBS
5404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5405 /* end confdefs.h. */
5407 /* Override any GCC internal prototype to avoid an error.
5408 Use char because int might match the return type of a GCC
5409 builtin and then its argument prototype would still apply. */
5422 if ac_fn_c_try_link "$LINENO"; then :
5423 ac_cv_lib_intl_ngettext=yes
5425 ac_cv_lib_intl_ngettext=no
5427 rm -f core conftest.err conftest.$ac_objext \
5428 conftest$ac_exeext conftest.$ac_ext
5429 LIBS=$ac_check_lib_save_LIBS
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
5432 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
5433 if test "x$ac_cv_lib_intl_ngettext" = x""yes; then :
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
5435 $as_echo_n "checking for dgettext in -lintl... " >&6; }
5436 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
5437 $as_echo_n "(cached) " >&6
5439 ac_check_lib_save_LIBS=$LIBS
5441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5442 /* end confdefs.h. */
5444 /* Override any GCC internal prototype to avoid an error.
5445 Use char because int might match the return type of a GCC
5446 builtin and then its argument prototype would still apply. */
5459 if ac_fn_c_try_link "$LINENO"; then :
5460 ac_cv_lib_intl_dgettext=yes
5462 ac_cv_lib_intl_dgettext=no
5464 rm -f core conftest.err conftest.$ac_objext \
5465 conftest$ac_exeext conftest.$ac_ext
5466 LIBS=$ac_check_lib_save_LIBS
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
5469 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
5470 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
5471 gt_cv_func_dgettext_libintl=yes
5479 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -liconv is needed to use gettext" >&5
5481 $as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
5485 $as_echo_n "checking for ngettext in -lintl... " >&6; }
5486 if test "${ac_cv_lib_intl_ngettext+set}" = set; then :
5487 $as_echo_n "(cached) " >&6
5489 ac_check_lib_save_LIBS=$LIBS
5490 LIBS="-lintl -liconv $LIBS"
5491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5492 /* end confdefs.h. */
5494 /* Override any GCC internal prototype to avoid an error.
5495 Use char because int might match the return type of a GCC
5496 builtin and then its argument prototype would still apply. */
5509 if ac_fn_c_try_link "$LINENO"; then :
5510 ac_cv_lib_intl_ngettext=yes
5512 ac_cv_lib_intl_ngettext=no
5514 rm -f core conftest.err conftest.$ac_objext \
5515 conftest$ac_exeext conftest.$ac_ext
5516 LIBS=$ac_check_lib_save_LIBS
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
5519 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
5520 if test "x$ac_cv_lib_intl_ngettext" = x""yes; then :
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dcgettext in -lintl" >&5
5522 $as_echo_n "checking for dcgettext in -lintl... " >&6; }
5523 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then :
5524 $as_echo_n "(cached) " >&6
5526 ac_check_lib_save_LIBS=$LIBS
5527 LIBS="-lintl -liconv $LIBS"
5528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5529 /* end confdefs.h. */
5531 /* Override any GCC internal prototype to avoid an error.
5532 Use char because int might match the return type of a GCC
5533 builtin and then its argument prototype would still apply. */
5541 return dcgettext ();
5546 if ac_fn_c_try_link "$LINENO"; then :
5547 ac_cv_lib_intl_dcgettext=yes
5549 ac_cv_lib_intl_dcgettext=no
5551 rm -f core conftest.err conftest.$ac_objext \
5552 conftest$ac_exeext conftest.$ac_ext
5553 LIBS=$ac_check_lib_save_LIBS
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dcgettext" >&5
5556 $as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
5557 if test "x$ac_cv_lib_intl_dcgettext" = x""yes; then :
5558 gt_cv_func_dgettext_libintl=yes
5559 libintl_extra_libs=-liconv
5571 # If we found libintl, then check in it for bind_textdomain_codeset();
5572 # we'll prefer libc if neither have bind_textdomain_codeset(),
5573 # and both have dgettext and ngettext
5575 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
5576 glib_save_LIBS="$LIBS"
5577 LIBS="$LIBS -lintl $libintl_extra_libs"
5578 unset ac_cv_func_bind_textdomain_codeset
5579 for ac_func in bind_textdomain_codeset
5581 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
5582 if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then :
5583 cat >>confdefs.h <<_ACEOF
5584 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
5590 LIBS="$glib_save_LIBS"
5592 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
5593 gt_cv_func_dgettext_libc=no
5595 if test "$gt_cv_func_dgettext_libc" = "yes" \
5596 && test "$gt_cv_func_ngettext_libc" = "yes"; then
5597 gt_cv_func_dgettext_libintl=no
5603 if test "$gt_cv_func_dgettext_libc" = "yes" \
5604 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
5605 gt_cv_have_gettext=yes
5608 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
5609 INTLLIBS="-lintl $libintl_extra_libs"
5612 if test "$gt_cv_have_gettext" = "yes"; then
5614 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
5616 # Extract the first word of "msgfmt", so it can be a program name with args.
5617 set dummy msgfmt; ac_word=$2
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5619 $as_echo_n "checking for $ac_word... " >&6; }
5620 if test "${ac_cv_path_MSGFMT+set}" = set; then :
5621 $as_echo_n "(cached) " >&6
5625 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5628 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5629 for ac_dir in $PATH; do
5630 test -z "$ac_dir" && ac_dir=.
5631 if test -f $ac_dir/$ac_word; then
5632 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5633 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5639 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
5643 MSGFMT="$ac_cv_path_MSGFMT"
5644 if test "$MSGFMT" != "no"; then
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5646 $as_echo "$MSGFMT" >&6; }
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5649 $as_echo "no" >&6; }
5651 if test "$MSGFMT" != "no"; then
5652 glib_save_LIBS="$LIBS"
5653 LIBS="$LIBS $INTLLIBS"
5654 for ac_func in dcgettext
5656 ac_fn_c_check_func "$LINENO" "dcgettext" "ac_cv_func_dcgettext"
5657 if test "x$ac_cv_func_dcgettext" = x""yes; then :
5658 cat >>confdefs.h <<_ACEOF
5659 #define HAVE_DCGETTEXT 1
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if msgfmt accepts -c" >&5
5667 $as_echo_n "checking if msgfmt accepts -c... " >&6; }
5668 cat >conftest.foo <<_ACEOF
5672 "Content-Type: text/plain; charset=UTF-8\n"
5673 "Project-Id-Version: test 1.0\n"
5674 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
5675 "Last-Translator: test <foo@bar.xx>\n"
5676 "Language-Team: C <LL@li.org>\n"
5677 "MIME-Version: 1.0\n"
5678 "Content-Transfer-Encoding: 8bit\n"
5681 if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$MSGFMT -c -o /dev/null conftest.foo"; } >&5
5682 ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
5684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5685 test $ac_status = 0; }; then
5686 MSGFMT_OPTS=-c; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5687 $as_echo "yes" >&6; }
5688 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5689 $as_echo "no" >&6; }
5690 echo "$as_me: failed input was:" >&5
5691 sed 's/^/| /' conftest.foo >&5
5694 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5695 set dummy gmsgfmt; ac_word=$2
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5697 $as_echo_n "checking for $ac_word... " >&6; }
5698 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
5699 $as_echo_n "(cached) " >&6
5703 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5710 test -z "$as_dir" && as_dir=.
5711 for ac_exec_ext in '' $ac_executable_extensions; do
5712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5713 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5721 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5725 GMSGFMT=$ac_cv_path_GMSGFMT
5726 if test -n "$GMSGFMT"; then
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5728 $as_echo "$GMSGFMT" >&6; }
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5731 $as_echo "no" >&6; }
5735 # Extract the first word of "xgettext", so it can be a program name with args.
5736 set dummy xgettext; ac_word=$2
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5738 $as_echo_n "checking for $ac_word... " >&6; }
5739 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
5740 $as_echo_n "(cached) " >&6
5744 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5747 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5748 for ac_dir in $PATH; do
5749 test -z "$ac_dir" && ac_dir=.
5750 if test -f $ac_dir/$ac_word; then
5751 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5752 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5758 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5762 XGETTEXT="$ac_cv_path_XGETTEXT"
5763 if test "$XGETTEXT" != ":"; then
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5765 $as_echo "$XGETTEXT" >&6; }
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5768 $as_echo "no" >&6; }
5771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5772 /* end confdefs.h. */
5777 extern int _nl_msg_cat_cntr;
5778 return _nl_msg_cat_cntr
5783 if ac_fn_c_try_link "$LINENO"; then :
5789 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
5790 if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then :
5805 rm -f core conftest.err conftest.$ac_objext \
5806 conftest$ac_exeext conftest.$ac_ext
5807 LIBS="$glib_save_LIBS"
5810 gt_cv_have_gettext=no
5818 if test "$gt_cv_have_gettext" = "yes" ; then
5820 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
5824 if test "$XGETTEXT" != ":"; then
5825 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
5829 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
5834 # We need to process the po/ directory.
5837 ac_config_commands="$ac_config_commands default-1"
5840 for lang in $ALL_LINGUAS; do
5841 GMOFILES="$GMOFILES $lang.gmo"
5842 POFILES="$POFILES $lang.po"
5857 if test "$gt_cv_have_gettext" = "yes"; then
5858 if test "x$ALL_LINGUAS" = "x"; then
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
5862 $as_echo_n "checking for catalogs to be installed... " >&6; }
5864 for presentlang in $ALL_LINGUAS; do
5866 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
5867 desiredlanguages="$LINGUAS"
5869 desiredlanguages="$ALL_LINGUAS"
5871 for desiredlang in $desiredlanguages; do
5872 # Use the presentlang catalog if desiredlang is
5873 # a. equal to presentlang, or
5874 # b. a variant of presentlang (because in this case,
5875 # presentlang can be used as a fallback for messages
5876 # which are not translated in the desiredlang catalog).
5877 case "$desiredlang" in
5878 "$presentlang"*) useit=yes;;
5881 if test $useit = yes; then
5882 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
5885 LINGUAS=$NEW_LINGUAS
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
5887 $as_echo "$LINGUAS" >&6; }
5890 if test -n "$LINGUAS"; then
5891 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
5896 if test -n "$ac_aux_dir"; then
5897 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
5899 if test -z "$MKINSTALLDIRS"; then
5900 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5904 test -d po || mkdir po
5905 if test "x$srcdir" != "x."; then
5906 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5907 posrcprefix="$srcdir/"
5909 posrcprefix="../$srcdir/"
5915 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5916 < $srcdir/po/POTFILES.in > po/POTFILES
5919 PROGRAMNAME_LOCALEDIR=${datadir}/locale
5923 ac_cpp='$CXXCPP $CPPFLAGS'
5924 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5925 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5926 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5927 if test -z "$CXX"; then
5928 if test -n "$CCC"; then
5931 if test -n "$ac_tool_prefix"; then
5932 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5934 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5935 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5937 $as_echo_n "checking for $ac_word... " >&6; }
5938 if test "${ac_cv_prog_CXX+set}" = set; then :
5939 $as_echo_n "(cached) " >&6
5941 if test -n "$CXX"; then
5942 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5948 test -z "$as_dir" && as_dir=.
5949 for ac_exec_ext in '' $ac_executable_extensions; do
5950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5951 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5962 if test -n "$CXX"; then
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5964 $as_echo "$CXX" >&6; }
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5967 $as_echo "no" >&6; }
5971 test -n "$CXX" && break
5974 if test -z "$CXX"; then
5976 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5978 # Extract the first word of "$ac_prog", so it can be a program name with args.
5979 set dummy $ac_prog; ac_word=$2
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5981 $as_echo_n "checking for $ac_word... " >&6; }
5982 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
5983 $as_echo_n "(cached) " >&6
5985 if test -n "$ac_ct_CXX"; then
5986 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5992 test -z "$as_dir" && as_dir=.
5993 for ac_exec_ext in '' $ac_executable_extensions; do
5994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5995 ac_cv_prog_ac_ct_CXX="$ac_prog"
5996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6005 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6006 if test -n "$ac_ct_CXX"; then
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6008 $as_echo "$ac_ct_CXX" >&6; }
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6011 $as_echo "no" >&6; }
6015 test -n "$ac_ct_CXX" && break
6018 if test "x$ac_ct_CXX" = x; then
6021 case $cross_compiling:$ac_tool_warned in
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6024 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6025 ac_tool_warned=yes ;;
6033 # Provide some information about the compiler.
6034 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6037 for ac_option in --version -v -V -qversion; do
6038 { { ac_try="$ac_compiler $ac_option >&5"
6040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6041 *) ac_try_echo=$ac_try;;
6043 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6044 $as_echo "$ac_try_echo"; } >&5
6045 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6047 if test -s conftest.err; then
6049 ... rest of stderr output deleted ...
6050 10q' conftest.err >conftest.er1
6051 cat conftest.er1 >&5
6052 rm -f conftest.er1 conftest.err
6054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6055 test $ac_status = 0; }
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6059 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6060 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
6061 $as_echo_n "(cached) " >&6
6063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6064 /* end confdefs.h. */
6077 if ac_fn_cxx_try_compile "$LINENO"; then :
6082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6083 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6087 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6088 if test $ac_compiler_gnu = yes; then
6093 ac_test_CXXFLAGS=${CXXFLAGS+set}
6094 ac_save_CXXFLAGS=$CXXFLAGS
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6096 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
6097 if test "${ac_cv_prog_cxx_g+set}" = set; then :
6098 $as_echo_n "(cached) " >&6
6100 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6101 ac_cxx_werror_flag=yes
6104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6105 /* end confdefs.h. */
6115 if ac_fn_cxx_try_compile "$LINENO"; then :
6116 ac_cv_prog_cxx_g=yes
6119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6120 /* end confdefs.h. */
6130 if ac_fn_cxx_try_compile "$LINENO"; then :
6133 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6136 /* end confdefs.h. */
6146 if ac_fn_cxx_try_compile "$LINENO"; then :
6147 ac_cv_prog_cxx_g=yes
6149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6154 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6157 $as_echo "$ac_cv_prog_cxx_g" >&6; }
6158 if test "$ac_test_CXXFLAGS" = set; then
6159 CXXFLAGS=$ac_save_CXXFLAGS
6160 elif test $ac_cv_prog_cxx_g = yes; then
6161 if test "$GXX" = yes; then
6167 if test "$GXX" = yes; then
6174 ac_cpp='$CPP $CPPFLAGS'
6175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6179 depcc="$CXX" am_compiler_list=
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6182 $as_echo_n "checking dependency style of $depcc... " >&6; }
6183 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
6184 $as_echo_n "(cached) " >&6
6186 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6187 # We make a subdir and do the tests there. Otherwise we can end up
6188 # making bogus files that we don't know about and never remove. For
6189 # instance it was reported that on HP-UX the gcc test will end up
6190 # making a dummy file named `D' -- because `-MD' means `put the output
6193 # Copy depcomp to subdir because otherwise we won't find it if we're
6194 # using a relative directory.
6195 cp "$am_depcomp" conftest.dir
6197 # We will build objects and dependencies in a subdirectory because
6198 # it helps to detect inapplicable dependency modes. For instance
6199 # both Tru64's cc and ICC support -MD to output dependencies as a
6200 # side effect of compilation, but ICC will put the dependencies in
6201 # the current directory while Tru64 will put them in the object
6205 am_cv_CXX_dependencies_compiler_type=none
6206 if test "$am_compiler_list" = ""; then
6207 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6210 case " $depcc " in #(
6211 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6214 for depmode in $am_compiler_list; do
6215 # Setup a source with many dependencies, because some compilers
6216 # like to wrap large dependency lists on column 80 (with \), and
6217 # we should not choose a depcomp mode which is confused by this.
6219 # We need to recreate these files for each test, as the compiler may
6220 # overwrite some of them when testing with obscure command lines.
6221 # This happens at least with the AIX C compiler.
6223 for i in 1 2 3 4 5 6; do
6224 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6225 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6226 # Solaris 8's {/usr,}/bin/sh.
6227 touch sub/conftst$i.h
6229 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6231 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6232 # mode. It turns out that the SunPro C++ compiler does not properly
6233 # handle `-M -o', and we need to detect this. Also, some Intel
6234 # versions had trouble with output in subdirs
6235 am__obj=sub/conftest.${OBJEXT-o}
6236 am__minus_obj="-o $am__obj"
6239 # This depmode causes a compiler race in universal mode.
6240 test "$am__universal" = false || continue
6243 # after this tag, mechanisms are not by side-effect, so they'll
6244 # only be used when explicitly requested
6245 if test "x$enable_dependency_tracking" = xyes; then
6251 msvisualcpp | msvcmsys)
6252 # This compiler won't grok `-c -o', but also, the minuso test has
6253 # not run yet. These depmodes are late enough in the game, and
6254 # so weak that their functioning should not be impacted.
6255 am__obj=conftest.${OBJEXT-o}
6260 if depmode=$depmode \
6261 source=sub/conftest.c object=$am__obj \
6262 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6263 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6264 >/dev/null 2>conftest.err &&
6265 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6266 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6267 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6268 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6269 # icc doesn't choke on unknown options, it will just issue warnings
6270 # or remarks (even with -Werror). So we grep stderr for any message
6271 # that says an option was ignored or not supported.
6272 # When given -MP, icc 7.0 and 7.1 complain thusly:
6273 # icc: Command line warning: ignoring option '-M'; no argument required
6274 # The diagnosis changed in icc 8.0:
6275 # icc: Command line remark: option '-MP' not supported
6276 if (grep 'ignoring option' conftest.err ||
6277 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6278 am_cv_CXX_dependencies_compiler_type=$depmode
6287 am_cv_CXX_dependencies_compiler_type=none
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6292 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6293 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6296 test "x$enable_dependency_tracking" != xno \
6297 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6298 am__fastdepCXX_TRUE=
6299 am__fastdepCXX_FALSE='#'
6301 am__fastdepCXX_TRUE='#'
6302 am__fastdepCXX_FALSE=
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6309 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6314 macro_version='2.2.6'
6315 macro_revision='1.3012'
6329 ltmain="$ac_aux_dir/ltmain.sh"
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6332 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6333 if test "${ac_cv_path_SED+set}" = set; then :
6334 $as_echo_n "(cached) " >&6
6336 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6337 for ac_i in 1 2 3 4 5 6 7; do
6338 ac_script="$ac_script$as_nl$ac_script"
6340 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6341 { ac_script=; unset ac_script;}
6342 if test -z "$SED"; then
6343 ac_path_SED_found=false
6344 # Loop through the user's path and test for each of PROGNAME-LIST
6345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6349 test -z "$as_dir" && as_dir=.
6350 for ac_prog in sed gsed; do
6351 for ac_exec_ext in '' $ac_executable_extensions; do
6352 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6353 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6354 # Check for GNU ac_path_SED and select it if it is found.
6355 # Check for GNU $ac_path_SED
6356 case `"$ac_path_SED" --version 2>&1` in
6358 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6361 $as_echo_n 0123456789 >"conftest.in"
6364 cat "conftest.in" "conftest.in" >"conftest.tmp"
6365 mv "conftest.tmp" "conftest.in"
6366 cp "conftest.in" "conftest.nl"
6367 $as_echo '' >> "conftest.nl"
6368 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6369 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6370 as_fn_arith $ac_count + 1 && ac_count=$as_val
6371 if test $ac_count -gt ${ac_path_SED_max-0}; then
6372 # Best one so far, save it but keep looking for a better one
6373 ac_cv_path_SED="$ac_path_SED"
6374 ac_path_SED_max=$ac_count
6376 # 10*(2^10) chars as input seems more than enough
6377 test $ac_count -gt 10 && break
6379 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6382 $ac_path_SED_found && break 3
6387 if test -z "$ac_cv_path_SED"; then
6388 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6396 $as_echo "$ac_cv_path_SED" >&6; }
6397 SED="$ac_cv_path_SED"
6400 test -z "$SED" && SED=sed
6401 Xsed="$SED -e 1s/^X//"
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6414 $as_echo_n "checking for fgrep... " >&6; }
6415 if test "${ac_cv_path_FGREP+set}" = set; then :
6416 $as_echo_n "(cached) " >&6
6418 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6419 then ac_cv_path_FGREP="$GREP -F"
6421 if test -z "$FGREP"; then
6422 ac_path_FGREP_found=false
6423 # Loop through the user's path and test for each of PROGNAME-LIST
6424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6425 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6428 test -z "$as_dir" && as_dir=.
6429 for ac_prog in fgrep; do
6430 for ac_exec_ext in '' $ac_executable_extensions; do
6431 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6432 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6433 # Check for GNU ac_path_FGREP and select it if it is found.
6434 # Check for GNU $ac_path_FGREP
6435 case `"$ac_path_FGREP" --version 2>&1` in
6437 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6440 $as_echo_n 0123456789 >"conftest.in"
6443 cat "conftest.in" "conftest.in" >"conftest.tmp"
6444 mv "conftest.tmp" "conftest.in"
6445 cp "conftest.in" "conftest.nl"
6446 $as_echo 'FGREP' >> "conftest.nl"
6447 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6448 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6449 as_fn_arith $ac_count + 1 && ac_count=$as_val
6450 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6451 # Best one so far, save it but keep looking for a better one
6452 ac_cv_path_FGREP="$ac_path_FGREP"
6453 ac_path_FGREP_max=$ac_count
6455 # 10*(2^10) chars as input seems more than enough
6456 test $ac_count -gt 10 && break
6458 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6461 $ac_path_FGREP_found && break 3
6466 if test -z "$ac_cv_path_FGREP"; then
6467 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6470 ac_cv_path_FGREP=$FGREP
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6476 $as_echo "$ac_cv_path_FGREP" >&6; }
6477 FGREP="$ac_cv_path_FGREP"
6480 test -z "$GREP" && GREP=grep
6500 # Check whether --with-gnu-ld was given.
6501 if test "${with_gnu_ld+set}" = set; then :
6502 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6508 if test "$GCC" = yes; then
6509 # Check if gcc -print-prog-name=ld gives a path.
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6511 $as_echo_n "checking for ld used by $CC... " >&6; }
6514 # gcc leaves a trailing carriage return which upsets mingw
6515 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6517 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6520 # Accept absolute paths.
6522 re_direlt='/[^/][^/]*/\.\./'
6523 # Canonicalize the pathname of ld
6524 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6525 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6526 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6528 test -z "$LD" && LD="$ac_prog"
6531 # If it fails, then pretend we aren't using GCC.
6535 # If it is relative, then search for the first ld in PATH.
6539 elif test "$with_gnu_ld" = yes; then
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6541 $as_echo_n "checking for GNU ld... " >&6; }
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6544 $as_echo_n "checking for non-GNU ld... " >&6; }
6546 if test "${lt_cv_path_LD+set}" = set; then :
6547 $as_echo_n "(cached) " >&6
6549 if test -z "$LD"; then
6550 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6551 for ac_dir in $PATH; do
6553 test -z "$ac_dir" && ac_dir=.
6554 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6555 lt_cv_path_LD="$ac_dir/$ac_prog"
6556 # Check to see if the program is GNU ld. I'd rather use --version,
6557 # but apparently some variants of GNU ld only accept -v.
6558 # Break only if it was the GNU/non-GNU ld that we prefer.
6559 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6560 *GNU* | *'with BFD'*)
6561 test "$with_gnu_ld" != no && break
6564 test "$with_gnu_ld" != yes && break
6571 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6576 if test -n "$LD"; then
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6578 $as_echo "$LD" >&6; }
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6581 $as_echo "no" >&6; }
6583 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6585 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6586 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6587 $as_echo_n "(cached) " >&6
6589 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6590 case `$LD -v 2>&1 </dev/null` in
6591 *GNU* | *'with BFD'*)
6592 lt_cv_prog_gnu_ld=yes
6595 lt_cv_prog_gnu_ld=no
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6600 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6601 with_gnu_ld=$lt_cv_prog_gnu_ld
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6612 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6613 if test "${lt_cv_path_NM+set}" = set; then :
6614 $as_echo_n "(cached) " >&6
6616 if test -n "$NM"; then
6617 # Let the user override the test.
6620 lt_nm_to_check="${ac_tool_prefix}nm"
6621 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6622 lt_nm_to_check="$lt_nm_to_check nm"
6624 for lt_tmp_nm in $lt_nm_to_check; do
6625 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6626 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6628 test -z "$ac_dir" && ac_dir=.
6629 tmp_nm="$ac_dir/$lt_tmp_nm"
6630 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6631 # Check to see if the nm accepts a BSD-compat flag.
6632 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6633 # nm: unknown option "B" ignored
6634 # Tru64's nm complains that /dev/null is an invalid object file
6635 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6636 */dev/null* | *'Invalid file or object type'*)
6637 lt_cv_path_NM="$tmp_nm -B"
6641 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6643 lt_cv_path_NM="$tmp_nm -p"
6647 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6648 continue # so that we can try to find one that supports BSD flags
6657 : ${lt_cv_path_NM=no}
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6661 $as_echo "$lt_cv_path_NM" >&6; }
6662 if test "$lt_cv_path_NM" != "no"; then
6665 # Didn't find any BSD compatible name lister, look for dumpbin.
6666 if test -n "$ac_tool_prefix"; then
6667 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6669 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6670 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6672 $as_echo_n "checking for $ac_word... " >&6; }
6673 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6674 $as_echo_n "(cached) " >&6
6676 if test -n "$DUMPBIN"; then
6677 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6683 test -z "$as_dir" && as_dir=.
6684 for ac_exec_ext in '' $ac_executable_extensions; do
6685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6686 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6696 DUMPBIN=$ac_cv_prog_DUMPBIN
6697 if test -n "$DUMPBIN"; then
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6699 $as_echo "$DUMPBIN" >&6; }
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6702 $as_echo "no" >&6; }
6706 test -n "$DUMPBIN" && break
6709 if test -z "$DUMPBIN"; then
6710 ac_ct_DUMPBIN=$DUMPBIN
6711 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6713 # Extract the first word of "$ac_prog", so it can be a program name with args.
6714 set dummy $ac_prog; ac_word=$2
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6716 $as_echo_n "checking for $ac_word... " >&6; }
6717 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6718 $as_echo_n "(cached) " >&6
6720 if test -n "$ac_ct_DUMPBIN"; then
6721 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727 test -z "$as_dir" && as_dir=.
6728 for ac_exec_ext in '' $ac_executable_extensions; do
6729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6730 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6740 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6741 if test -n "$ac_ct_DUMPBIN"; then
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6743 $as_echo "$ac_ct_DUMPBIN" >&6; }
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6746 $as_echo "no" >&6; }
6750 test -n "$ac_ct_DUMPBIN" && break
6753 if test "x$ac_ct_DUMPBIN" = x; then
6756 case $cross_compiling:$ac_tool_warned in
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6759 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6760 ac_tool_warned=yes ;;
6762 DUMPBIN=$ac_ct_DUMPBIN
6767 if test "$DUMPBIN" != ":"; then
6771 test -z "$NM" && NM=nm
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6779 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6780 if test "${lt_cv_nm_interface+set}" = set; then :
6781 $as_echo_n "(cached) " >&6
6783 lt_cv_nm_interface="BSD nm"
6784 echo "int some_variable = 0;" > conftest.$ac_ext
6785 (eval echo "\"\$as_me:6785: $ac_compile\"" >&5)
6786 (eval "$ac_compile" 2>conftest.err)
6787 cat conftest.err >&5
6788 (eval echo "\"\$as_me:6788: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6789 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6790 cat conftest.err >&5
6791 (eval echo "\"\$as_me:6791: output\"" >&5)
6792 cat conftest.out >&5
6793 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6794 lt_cv_nm_interface="MS dumpbin"
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6799 $as_echo "$lt_cv_nm_interface" >&6; }
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6802 $as_echo_n "checking whether ln -s works... " >&6; }
6804 if test "$LN_S" = "ln -s"; then
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6806 $as_echo "yes" >&6; }
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6809 $as_echo "no, using $LN_S" >&6; }
6812 # find the maximum length of command line arguments
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6814 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6815 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6816 $as_echo_n "(cached) " >&6
6823 # On DJGPP, this test can blow up pretty badly due to problems in libc
6824 # (any single argument exceeding 2000 bytes causes a buffer overrun
6825 # during glob expansion). Even if it were fixed, the result of this
6826 # check would be larger than it should be.
6827 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6831 # Under GNU Hurd, this test is not required because there is
6832 # no limit to the length of command line arguments.
6833 # Libtool will interpret -1 as no limit whatsoever
6834 lt_cv_sys_max_cmd_len=-1;
6837 cygwin* | mingw* | cegcc*)
6838 # On Win9x/ME, this test blows up -- it succeeds, but takes
6839 # about 5 minutes as the teststring grows exponentially.
6840 # Worse, since 9x/ME are not pre-emptively multitasking,
6841 # you end up with a "frozen" computer, even though with patience
6842 # the test eventually succeeds (with a max line length of 256k).
6843 # Instead, let's just punt: use the minimum linelength reported by
6844 # all of the supported platforms: 8192 (on NT/2K/XP).
6845 lt_cv_sys_max_cmd_len=8192;
6849 # On AmigaOS with pdksh, this test takes hours, literally.
6850 # So we just punt and use a minimum line length of 8192.
6851 lt_cv_sys_max_cmd_len=8192;
6854 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6855 # This has been around since 386BSD, at least. Likely further.
6856 if test -x /sbin/sysctl; then
6857 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6858 elif test -x /usr/sbin/sysctl; then
6859 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6861 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6863 # And add a safety zone
6864 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6865 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6869 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6870 lt_cv_sys_max_cmd_len=196608
6874 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6875 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6876 # nice to cause kernel panics so lets avoid the loop below.
6877 # First set a reasonable default.
6878 lt_cv_sys_max_cmd_len=16384
6880 if test -x /sbin/sysconfig; then
6881 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6882 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6887 lt_cv_sys_max_cmd_len=102400
6889 sysv5* | sco5v6* | sysv4.2uw2*)
6890 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6891 if test -n "$kargmax"; then
6892 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6894 lt_cv_sys_max_cmd_len=32768
6898 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6899 if test -n "$lt_cv_sys_max_cmd_len"; then
6900 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6901 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6903 # Make teststring a little bigger before we do anything with it.
6904 # a 1K string should be a reasonable start.
6905 for i in 1 2 3 4 5 6 7 8 ; do
6906 teststring=$teststring$teststring
6908 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6909 # If test is not a shell built-in, we'll probably end up computing a
6910 # maximum length that is only half of the actual maximum length, but
6912 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6913 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6914 test $i != 17 # 1/2 MB should be enough
6917 teststring=$teststring$teststring
6919 # Only check the string length outside the loop.
6920 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6922 # Add a significant safety factor because C++ compilers can tack on
6923 # massive amounts of additional arguments before passing them to the
6924 # linker. It appears as though 1/2 is a usable value.
6925 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6932 if test -n $lt_cv_sys_max_cmd_len ; then
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6934 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6937 $as_echo "none" >&6; }
6939 max_cmd_len=$lt_cv_sys_max_cmd_len
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6951 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6952 # Try some XSI features
6955 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6957 && eval 'test $(( 1 + 1 )) -eq 2 \
6958 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6961 $as_echo "$xsi_shell" >&6; }
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6965 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6967 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6969 && lt_shell_append=yes
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6971 $as_echo "$lt_shell_append" >&6; }
6974 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6984 # test EBCDIC or ASCII
6985 case `echo X|tr X '\101'` in
6986 A) # ASCII based system
6987 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6988 lt_SP2NL='tr \040 \012'
6989 lt_NL2SP='tr \015\012 \040\040'
6991 *) # EBCDIC based system
6992 lt_SP2NL='tr \100 \n'
6993 lt_NL2SP='tr \r\n \100\100'
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7006 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7007 if test "${lt_cv_ld_reload_flag+set}" = set; then :
7008 $as_echo_n "(cached) " >&6
7010 lt_cv_ld_reload_flag='-r'
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7013 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7014 reload_flag=$lt_cv_ld_reload_flag
7015 case $reload_flag in
7017 *) reload_flag=" $reload_flag" ;;
7019 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7022 if test "$GCC" = yes; then
7023 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7025 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7038 if test -n "$ac_tool_prefix"; then
7039 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7040 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7042 $as_echo_n "checking for $ac_word... " >&6; }
7043 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7044 $as_echo_n "(cached) " >&6
7046 if test -n "$OBJDUMP"; then
7047 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7053 test -z "$as_dir" && as_dir=.
7054 for ac_exec_ext in '' $ac_executable_extensions; do
7055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7056 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7066 OBJDUMP=$ac_cv_prog_OBJDUMP
7067 if test -n "$OBJDUMP"; then
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7069 $as_echo "$OBJDUMP" >&6; }
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7072 $as_echo "no" >&6; }
7077 if test -z "$ac_cv_prog_OBJDUMP"; then
7078 ac_ct_OBJDUMP=$OBJDUMP
7079 # Extract the first word of "objdump", so it can be a program name with args.
7080 set dummy objdump; ac_word=$2
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7082 $as_echo_n "checking for $ac_word... " >&6; }
7083 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7084 $as_echo_n "(cached) " >&6
7086 if test -n "$ac_ct_OBJDUMP"; then
7087 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7093 test -z "$as_dir" && as_dir=.
7094 for ac_exec_ext in '' $ac_executable_extensions; do
7095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7096 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7106 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7107 if test -n "$ac_ct_OBJDUMP"; then
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7109 $as_echo "$ac_ct_OBJDUMP" >&6; }
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7112 $as_echo "no" >&6; }
7115 if test "x$ac_ct_OBJDUMP" = x; then
7118 case $cross_compiling:$ac_tool_warned in
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7121 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7122 ac_tool_warned=yes ;;
7124 OBJDUMP=$ac_ct_OBJDUMP
7127 OBJDUMP="$ac_cv_prog_OBJDUMP"
7130 test -z "$OBJDUMP" && OBJDUMP=objdump
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7141 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7142 if test "${lt_cv_deplibs_check_method+set}" = set; then :
7143 $as_echo_n "(cached) " >&6
7145 lt_cv_file_magic_cmd='$MAGIC_CMD'
7146 lt_cv_file_magic_test_file=
7147 lt_cv_deplibs_check_method='unknown'
7148 # Need to set the preceding variable on all platforms that support
7149 # interlibrary dependencies.
7150 # 'none' -- dependencies not supported.
7151 # `unknown' -- same as none, but documents that we really don't know.
7152 # 'pass_all' -- all dependencies passed with no checks.
7153 # 'test_compile' -- check by making test program.
7154 # 'file_magic [[regex]]' -- check by looking for files in library path
7155 # which responds to the $file_magic_cmd with a given extended regex.
7156 # If you have `file' or equivalent on your system and you're not sure
7157 # whether `pass_all' will *always* work, you probably want this one.
7161 lt_cv_deplibs_check_method=pass_all
7165 lt_cv_deplibs_check_method=pass_all
7169 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7170 lt_cv_file_magic_cmd='/usr/bin/file -L'
7171 lt_cv_file_magic_test_file=/shlib/libc.so
7175 # func_win32_libid is a shell function defined in ltmain.sh
7176 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7177 lt_cv_file_magic_cmd='func_win32_libid'
7181 # Base MSYS/MinGW do not provide the 'file' command needed by
7182 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7183 # unless we find 'file', for example because we are cross-compiling.
7184 if ( file / ) >/dev/null 2>&1; then
7185 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7186 lt_cv_file_magic_cmd='func_win32_libid'
7188 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7189 lt_cv_file_magic_cmd='$OBJDUMP -f'
7194 # use the weaker test based on 'objdump'. See mingw*.
7195 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7196 lt_cv_file_magic_cmd='$OBJDUMP -f'
7199 darwin* | rhapsody*)
7200 lt_cv_deplibs_check_method=pass_all
7203 freebsd* | dragonfly*)
7204 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7207 # Not sure whether the presence of OpenBSD here was a mistake.
7208 # Let's accept both of them until this is cleared up.
7209 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7210 lt_cv_file_magic_cmd=/usr/bin/file
7211 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7215 lt_cv_deplibs_check_method=pass_all
7220 lt_cv_deplibs_check_method=pass_all
7223 hpux10.20* | hpux11*)
7224 lt_cv_file_magic_cmd=/usr/bin/file
7227 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7228 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7231 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]'
7232 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7235 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7236 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7242 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7243 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7246 irix5* | irix6* | nonstopux*)
7248 *-32|*"-32 ") libmagic=32-bit;;
7249 *-n32|*"-n32 ") libmagic=N32;;
7250 *-64|*"-64 ") libmagic=64-bit;;
7251 *) libmagic=never-match;;
7253 lt_cv_deplibs_check_method=pass_all
7256 # This must be Linux ELF.
7257 linux* | k*bsd*-gnu)
7258 lt_cv_deplibs_check_method=pass_all
7261 netbsd* | netbsdelf*-gnu)
7262 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7263 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7265 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7270 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7271 lt_cv_file_magic_cmd=/usr/bin/file
7272 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7276 lt_cv_deplibs_check_method=pass_all
7280 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7281 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7283 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7287 osf3* | osf4* | osf5*)
7288 lt_cv_deplibs_check_method=pass_all
7292 lt_cv_deplibs_check_method=pass_all
7296 lt_cv_deplibs_check_method=pass_all
7299 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7300 lt_cv_deplibs_check_method=pass_all
7304 case $host_vendor in
7306 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]'
7307 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7310 lt_cv_deplibs_check_method=pass_all
7313 lt_cv_file_magic_cmd='/bin/file'
7314 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7317 lt_cv_file_magic_cmd='/bin/file'
7318 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7319 lt_cv_file_magic_test_file=/lib/libc.so
7322 lt_cv_deplibs_check_method=pass_all
7325 lt_cv_deplibs_check_method=pass_all
7331 lt_cv_deplibs_check_method=pass_all
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7337 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7338 file_magic_cmd=$lt_cv_file_magic_cmd
7339 deplibs_check_method=$lt_cv_deplibs_check_method
7340 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7353 if test -n "$ac_tool_prefix"; then
7354 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7355 set dummy ${ac_tool_prefix}ar; ac_word=$2
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7357 $as_echo_n "checking for $ac_word... " >&6; }
7358 if test "${ac_cv_prog_AR+set}" = set; then :
7359 $as_echo_n "(cached) " >&6
7361 if test -n "$AR"; then
7362 ac_cv_prog_AR="$AR" # Let the user override the test.
7364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7368 test -z "$as_dir" && as_dir=.
7369 for ac_exec_ext in '' $ac_executable_extensions; do
7370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7371 ac_cv_prog_AR="${ac_tool_prefix}ar"
7372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7382 if test -n "$AR"; then
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7384 $as_echo "$AR" >&6; }
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7387 $as_echo "no" >&6; }
7392 if test -z "$ac_cv_prog_AR"; then
7394 # Extract the first word of "ar", so it can be a program name with args.
7395 set dummy ar; ac_word=$2
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7397 $as_echo_n "checking for $ac_word... " >&6; }
7398 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7399 $as_echo_n "(cached) " >&6
7401 if test -n "$ac_ct_AR"; then
7402 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7408 test -z "$as_dir" && as_dir=.
7409 for ac_exec_ext in '' $ac_executable_extensions; do
7410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7411 ac_cv_prog_ac_ct_AR="ar"
7412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7421 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7422 if test -n "$ac_ct_AR"; then
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7424 $as_echo "$ac_ct_AR" >&6; }
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7427 $as_echo "no" >&6; }
7430 if test "x$ac_ct_AR" = x; then
7433 case $cross_compiling:$ac_tool_warned in
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7436 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7437 ac_tool_warned=yes ;;
7445 test -z "$AR" && AR=ar
7446 test -z "$AR_FLAGS" && AR_FLAGS=cru
7458 if test -n "$ac_tool_prefix"; then
7459 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7460 set dummy ${ac_tool_prefix}strip; ac_word=$2
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7462 $as_echo_n "checking for $ac_word... " >&6; }
7463 if test "${ac_cv_prog_STRIP+set}" = set; then :
7464 $as_echo_n "(cached) " >&6
7466 if test -n "$STRIP"; then
7467 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7473 test -z "$as_dir" && as_dir=.
7474 for ac_exec_ext in '' $ac_executable_extensions; do
7475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7476 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7486 STRIP=$ac_cv_prog_STRIP
7487 if test -n "$STRIP"; then
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7489 $as_echo "$STRIP" >&6; }
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7492 $as_echo "no" >&6; }
7497 if test -z "$ac_cv_prog_STRIP"; then
7499 # Extract the first word of "strip", so it can be a program name with args.
7500 set dummy strip; ac_word=$2
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7502 $as_echo_n "checking for $ac_word... " >&6; }
7503 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7504 $as_echo_n "(cached) " >&6
7506 if test -n "$ac_ct_STRIP"; then
7507 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7513 test -z "$as_dir" && as_dir=.
7514 for ac_exec_ext in '' $ac_executable_extensions; do
7515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7516 ac_cv_prog_ac_ct_STRIP="strip"
7517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7526 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7527 if test -n "$ac_ct_STRIP"; then
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7529 $as_echo "$ac_ct_STRIP" >&6; }
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7532 $as_echo "no" >&6; }
7535 if test "x$ac_ct_STRIP" = x; then
7538 case $cross_compiling:$ac_tool_warned in
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7541 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7542 ac_tool_warned=yes ;;
7547 STRIP="$ac_cv_prog_STRIP"
7550 test -z "$STRIP" && STRIP=:
7557 if test -n "$ac_tool_prefix"; then
7558 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7559 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7561 $as_echo_n "checking for $ac_word... " >&6; }
7562 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7563 $as_echo_n "(cached) " >&6
7565 if test -n "$RANLIB"; then
7566 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7572 test -z "$as_dir" && as_dir=.
7573 for ac_exec_ext in '' $ac_executable_extensions; do
7574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7575 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7585 RANLIB=$ac_cv_prog_RANLIB
7586 if test -n "$RANLIB"; then
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7588 $as_echo "$RANLIB" >&6; }
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7591 $as_echo "no" >&6; }
7596 if test -z "$ac_cv_prog_RANLIB"; then
7597 ac_ct_RANLIB=$RANLIB
7598 # Extract the first word of "ranlib", so it can be a program name with args.
7599 set dummy ranlib; ac_word=$2
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7601 $as_echo_n "checking for $ac_word... " >&6; }
7602 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7603 $as_echo_n "(cached) " >&6
7605 if test -n "$ac_ct_RANLIB"; then
7606 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7612 test -z "$as_dir" && as_dir=.
7613 for ac_exec_ext in '' $ac_executable_extensions; do
7614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7615 ac_cv_prog_ac_ct_RANLIB="ranlib"
7616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7625 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7626 if test -n "$ac_ct_RANLIB"; then
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7628 $as_echo "$ac_ct_RANLIB" >&6; }
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7631 $as_echo "no" >&6; }
7634 if test "x$ac_ct_RANLIB" = x; then
7637 case $cross_compiling:$ac_tool_warned in
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7640 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7641 ac_tool_warned=yes ;;
7643 RANLIB=$ac_ct_RANLIB
7646 RANLIB="$ac_cv_prog_RANLIB"
7649 test -z "$RANLIB" && RANLIB=:
7656 # Determine commands to create old-style static archives.
7657 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7658 old_postinstall_cmds='chmod 644 $oldlib'
7659 old_postuninstall_cmds=
7661 if test -n "$RANLIB"; then
7664 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7667 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7670 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7706 # If no C compiler was specified, use CC.
7709 # If no C compiler flags were specified, use CFLAGS.
7710 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7712 # Allow CC to be a program name with arguments.
7716 # Check for command to grab the raw symbol name followed by C symbol from nm.
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7718 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7719 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7720 $as_echo_n "(cached) " >&6
7723 # These are sane defaults that work on at least a few old systems.
7724 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7726 # Character class describing NM global symbol codes.
7727 symcode='[BCDEGRST]'
7729 # Regexp to match symbols that can be accessed directly from C.
7730 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7732 # Define system-specific variables.
7737 cygwin* | mingw* | pw32* | cegcc*)
7738 symcode='[ABCDGISTW]'
7741 if test "$host_cpu" = ia64; then
7742 symcode='[ABCDEGRST]'
7746 symcode='[BCDEGRST]'
7749 symcode='[BCDEGQRST]'
7760 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7768 # If we're using GNU nm, then use its standard symbol codes.
7769 case `$NM -V 2>&1` in
7770 *GNU* | *'with BFD'*)
7771 symcode='[ABCDGIRSTW]' ;;
7774 # Transform an extracted symbol line into a proper C declaration.
7775 # Some systems (esp. on ia64) link data and code symbols differently,
7776 # so use this general approach.
7777 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7779 # Transform an extracted symbol line into symbol name and symbol address
7780 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7781 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7783 # Handle CRLF in mingw tool chain
7787 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7791 # Try without a prefix underscore, then with it.
7792 for ac_symprfx in "" "_"; do
7794 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7795 symxfrm="\\1 $ac_symprfx\\2 \\2"
7797 # Write the raw and C identifiers.
7798 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7799 # Fake it for dumpbin and say T for any non-static function
7800 # and D for any global variable.
7801 # Also find C++ and __fastcall symbols from MSVC++,
7802 # which start with @ or ?.
7803 lt_cv_sys_global_symbol_pipe="$AWK '"\
7804 " {last_section=section; section=\$ 3};"\
7805 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7806 " \$ 0!~/External *\|/{next};"\
7807 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7808 " {if(hide[section]) next};"\
7809 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7810 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7811 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7812 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7813 " ' prfx=^$ac_symprfx"
7815 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7818 # Check to see that the pipe works correctly.
7822 cat > conftest.$ac_ext <<_LT_EOF
7827 void nm_test_func(void);
7828 void nm_test_func(void){}
7832 int main(){nm_test_var='a';nm_test_func();return(0);}
7835 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7836 (eval $ac_compile) 2>&5
7838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7839 test $ac_status = 0; }; then
7840 # Now try to grab the symbols.
7842 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7843 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7846 test $ac_status = 0; } && test -s "$nlist"; then
7847 # Try sorting and uniquifying the output.
7848 if sort "$nlist" | uniq > "$nlist"T; then
7849 mv -f "$nlist"T "$nlist"
7854 # Make sure that we snagged all the symbols we need.
7855 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7856 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7857 cat <<_LT_EOF > conftest.$ac_ext
7863 # Now generate the symbol file.
7864 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7866 cat <<_LT_EOF >> conftest.$ac_ext
7868 /* The mapping between symbol names and symbols. */
7873 lt__PROGRAM__LTX_preloaded_symbols[] =
7875 { "@PROGRAM@", (void *) 0 },
7877 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7878 cat <<\_LT_EOF >> conftest.$ac_ext
7882 /* This works around a problem in FreeBSD linker */
7883 #ifdef FREEBSD_WORKAROUND
7884 static const void *lt_preloaded_setup() {
7885 return lt__PROGRAM__LTX_preloaded_symbols;
7893 # Now try linking the two files.
7894 mv conftest.$ac_objext conftstm.$ac_objext
7895 lt_save_LIBS="$LIBS"
7896 lt_save_CFLAGS="$CFLAGS"
7897 LIBS="conftstm.$ac_objext"
7898 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7899 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7900 (eval $ac_link) 2>&5
7902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7903 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7906 LIBS="$lt_save_LIBS"
7907 CFLAGS="$lt_save_CFLAGS"
7909 echo "cannot find nm_test_func in $nlist" >&5
7912 echo "cannot find nm_test_var in $nlist" >&5
7915 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7918 echo "$progname: failed program was:" >&5
7919 cat conftest.$ac_ext >&5
7921 rm -rf conftest* conftst*
7923 # Do not use the global_symbol_pipe unless it works.
7924 if test "$pipe_works" = yes; then
7927 lt_cv_sys_global_symbol_pipe=
7933 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7934 lt_cv_sys_global_symbol_to_cdecl=
7936 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7938 $as_echo "failed" >&6; }
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7941 $as_echo "ok" >&6; }
7965 # Check whether --enable-libtool-lock was given.
7966 if test "${enable_libtool_lock+set}" = set; then :
7967 enableval=$enable_libtool_lock;
7970 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7972 # Some flags need to be propagated to the compiler or linker for good
7976 # Find out which ABI we are using.
7977 echo 'int i;' > conftest.$ac_ext
7978 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7979 (eval $ac_compile) 2>&5
7981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7982 test $ac_status = 0; }; then
7983 case `/usr/bin/file conftest.$ac_objext` in
7995 # Find out which ABI we are using.
7996 echo '#line 7996 "configure"' > conftest.$ac_ext
7997 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7998 (eval $ac_compile) 2>&5
8000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8001 test $ac_status = 0; }; then
8002 if test "$lt_cv_prog_gnu_ld" = yes; then
8003 case `/usr/bin/file conftest.$ac_objext` in
8005 LD="${LD-ld} -melf32bsmip"
8008 LD="${LD-ld} -melf32bmipn32"
8011 LD="${LD-ld} -melf64bmip"
8015 case `/usr/bin/file conftest.$ac_objext` in
8031 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8032 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8033 # Find out which ABI we are using.
8034 echo 'int i;' > conftest.$ac_ext
8035 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8036 (eval $ac_compile) 2>&5
8038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8039 test $ac_status = 0; }; then
8040 case `/usr/bin/file conftest.o` in
8043 x86_64-*kfreebsd*-gnu)
8044 LD="${LD-ld} -m elf_i386_fbsd"
8047 LD="${LD-ld} -m elf_i386"
8049 ppc64-*linux*|powerpc64-*linux*)
8050 LD="${LD-ld} -m elf32ppclinux"
8053 LD="${LD-ld} -m elf_s390"
8056 LD="${LD-ld} -m elf32_sparc"
8062 x86_64-*kfreebsd*-gnu)
8063 LD="${LD-ld} -m elf_x86_64_fbsd"
8066 LD="${LD-ld} -m elf_x86_64"
8068 ppc*-*linux*|powerpc*-*linux*)
8069 LD="${LD-ld} -m elf64ppc"
8071 s390*-*linux*|s390*-*tpf*)
8072 LD="${LD-ld} -m elf64_s390"
8075 LD="${LD-ld} -m elf64_sparc"
8085 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8086 SAVE_CFLAGS="$CFLAGS"
8087 CFLAGS="$CFLAGS -belf"
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8089 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8090 if test "${lt_cv_cc_needs_belf+set}" = set; then :
8091 $as_echo_n "(cached) " >&6
8094 ac_cpp='$CPP $CPPFLAGS'
8095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8100 /* end confdefs.h. */
8110 if ac_fn_c_try_link "$LINENO"; then :
8111 lt_cv_cc_needs_belf=yes
8113 lt_cv_cc_needs_belf=no
8115 rm -f core conftest.err conftest.$ac_objext \
8116 conftest$ac_exeext conftest.$ac_ext
8118 ac_cpp='$CPP $CPPFLAGS'
8119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8125 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8126 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8127 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8128 CFLAGS="$SAVE_CFLAGS"
8132 # Find out which ABI we are using.
8133 echo 'int i;' > conftest.$ac_ext
8134 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8135 (eval $ac_compile) 2>&5
8137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8138 test $ac_status = 0; }; then
8139 case `/usr/bin/file conftest.o` in
8141 case $lt_cv_prog_gnu_ld in
8142 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8144 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8156 need_locks="$enable_libtool_lock"
8160 rhapsody* | darwin*)
8161 if test -n "$ac_tool_prefix"; then
8162 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8163 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8165 $as_echo_n "checking for $ac_word... " >&6; }
8166 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8167 $as_echo_n "(cached) " >&6
8169 if test -n "$DSYMUTIL"; then
8170 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8176 test -z "$as_dir" && as_dir=.
8177 for ac_exec_ext in '' $ac_executable_extensions; do
8178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8179 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8189 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8190 if test -n "$DSYMUTIL"; then
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8192 $as_echo "$DSYMUTIL" >&6; }
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8195 $as_echo "no" >&6; }
8200 if test -z "$ac_cv_prog_DSYMUTIL"; then
8201 ac_ct_DSYMUTIL=$DSYMUTIL
8202 # Extract the first word of "dsymutil", so it can be a program name with args.
8203 set dummy dsymutil; ac_word=$2
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8205 $as_echo_n "checking for $ac_word... " >&6; }
8206 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8207 $as_echo_n "(cached) " >&6
8209 if test -n "$ac_ct_DSYMUTIL"; then
8210 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8216 test -z "$as_dir" && as_dir=.
8217 for ac_exec_ext in '' $ac_executable_extensions; do
8218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8219 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8229 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8230 if test -n "$ac_ct_DSYMUTIL"; then
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8232 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8235 $as_echo "no" >&6; }
8238 if test "x$ac_ct_DSYMUTIL" = x; then
8241 case $cross_compiling:$ac_tool_warned in
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8244 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8245 ac_tool_warned=yes ;;
8247 DSYMUTIL=$ac_ct_DSYMUTIL
8250 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8253 if test -n "$ac_tool_prefix"; then
8254 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8255 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8257 $as_echo_n "checking for $ac_word... " >&6; }
8258 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8259 $as_echo_n "(cached) " >&6
8261 if test -n "$NMEDIT"; then
8262 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8268 test -z "$as_dir" && as_dir=.
8269 for ac_exec_ext in '' $ac_executable_extensions; do
8270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8271 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8281 NMEDIT=$ac_cv_prog_NMEDIT
8282 if test -n "$NMEDIT"; then
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8284 $as_echo "$NMEDIT" >&6; }
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8287 $as_echo "no" >&6; }
8292 if test -z "$ac_cv_prog_NMEDIT"; then
8293 ac_ct_NMEDIT=$NMEDIT
8294 # Extract the first word of "nmedit", so it can be a program name with args.
8295 set dummy nmedit; ac_word=$2
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8297 $as_echo_n "checking for $ac_word... " >&6; }
8298 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8299 $as_echo_n "(cached) " >&6
8301 if test -n "$ac_ct_NMEDIT"; then
8302 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8308 test -z "$as_dir" && as_dir=.
8309 for ac_exec_ext in '' $ac_executable_extensions; do
8310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8311 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8321 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8322 if test -n "$ac_ct_NMEDIT"; then
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8324 $as_echo "$ac_ct_NMEDIT" >&6; }
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8327 $as_echo "no" >&6; }
8330 if test "x$ac_ct_NMEDIT" = x; then
8333 case $cross_compiling:$ac_tool_warned in
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8336 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8337 ac_tool_warned=yes ;;
8339 NMEDIT=$ac_ct_NMEDIT
8342 NMEDIT="$ac_cv_prog_NMEDIT"
8345 if test -n "$ac_tool_prefix"; then
8346 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8347 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8349 $as_echo_n "checking for $ac_word... " >&6; }
8350 if test "${ac_cv_prog_LIPO+set}" = set; then :
8351 $as_echo_n "(cached) " >&6
8353 if test -n "$LIPO"; then
8354 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8360 test -z "$as_dir" && as_dir=.
8361 for ac_exec_ext in '' $ac_executable_extensions; do
8362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8363 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8373 LIPO=$ac_cv_prog_LIPO
8374 if test -n "$LIPO"; then
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8376 $as_echo "$LIPO" >&6; }
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8379 $as_echo "no" >&6; }
8384 if test -z "$ac_cv_prog_LIPO"; then
8386 # Extract the first word of "lipo", so it can be a program name with args.
8387 set dummy lipo; ac_word=$2
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8389 $as_echo_n "checking for $ac_word... " >&6; }
8390 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8391 $as_echo_n "(cached) " >&6
8393 if test -n "$ac_ct_LIPO"; then
8394 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8400 test -z "$as_dir" && as_dir=.
8401 for ac_exec_ext in '' $ac_executable_extensions; do
8402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8403 ac_cv_prog_ac_ct_LIPO="lipo"
8404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8413 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8414 if test -n "$ac_ct_LIPO"; then
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8416 $as_echo "$ac_ct_LIPO" >&6; }
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8419 $as_echo "no" >&6; }
8422 if test "x$ac_ct_LIPO" = x; then
8425 case $cross_compiling:$ac_tool_warned in
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8428 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8429 ac_tool_warned=yes ;;
8434 LIPO="$ac_cv_prog_LIPO"
8437 if test -n "$ac_tool_prefix"; then
8438 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8439 set dummy ${ac_tool_prefix}otool; ac_word=$2
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8441 $as_echo_n "checking for $ac_word... " >&6; }
8442 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8443 $as_echo_n "(cached) " >&6
8445 if test -n "$OTOOL"; then
8446 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8452 test -z "$as_dir" && as_dir=.
8453 for ac_exec_ext in '' $ac_executable_extensions; do
8454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8455 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8465 OTOOL=$ac_cv_prog_OTOOL
8466 if test -n "$OTOOL"; then
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8468 $as_echo "$OTOOL" >&6; }
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8471 $as_echo "no" >&6; }
8476 if test -z "$ac_cv_prog_OTOOL"; then
8478 # Extract the first word of "otool", so it can be a program name with args.
8479 set dummy otool; ac_word=$2
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8481 $as_echo_n "checking for $ac_word... " >&6; }
8482 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8483 $as_echo_n "(cached) " >&6
8485 if test -n "$ac_ct_OTOOL"; then
8486 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8492 test -z "$as_dir" && as_dir=.
8493 for ac_exec_ext in '' $ac_executable_extensions; do
8494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8495 ac_cv_prog_ac_ct_OTOOL="otool"
8496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8505 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8506 if test -n "$ac_ct_OTOOL"; then
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8508 $as_echo "$ac_ct_OTOOL" >&6; }
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8511 $as_echo "no" >&6; }
8514 if test "x$ac_ct_OTOOL" = x; then
8517 case $cross_compiling:$ac_tool_warned in
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8520 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8521 ac_tool_warned=yes ;;
8526 OTOOL="$ac_cv_prog_OTOOL"
8529 if test -n "$ac_tool_prefix"; then
8530 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8531 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8533 $as_echo_n "checking for $ac_word... " >&6; }
8534 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8535 $as_echo_n "(cached) " >&6
8537 if test -n "$OTOOL64"; then
8538 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8544 test -z "$as_dir" && as_dir=.
8545 for ac_exec_ext in '' $ac_executable_extensions; do
8546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8547 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8557 OTOOL64=$ac_cv_prog_OTOOL64
8558 if test -n "$OTOOL64"; then
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8560 $as_echo "$OTOOL64" >&6; }
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8563 $as_echo "no" >&6; }
8568 if test -z "$ac_cv_prog_OTOOL64"; then
8569 ac_ct_OTOOL64=$OTOOL64
8570 # Extract the first word of "otool64", so it can be a program name with args.
8571 set dummy otool64; ac_word=$2
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8573 $as_echo_n "checking for $ac_word... " >&6; }
8574 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8575 $as_echo_n "(cached) " >&6
8577 if test -n "$ac_ct_OTOOL64"; then
8578 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8584 test -z "$as_dir" && as_dir=.
8585 for ac_exec_ext in '' $ac_executable_extensions; do
8586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8587 ac_cv_prog_ac_ct_OTOOL64="otool64"
8588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8597 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8598 if test -n "$ac_ct_OTOOL64"; then
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8600 $as_echo "$ac_ct_OTOOL64" >&6; }
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8603 $as_echo "no" >&6; }
8606 if test "x$ac_ct_OTOOL64" = x; then
8609 case $cross_compiling:$ac_tool_warned in
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8612 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8613 ac_tool_warned=yes ;;
8615 OTOOL64=$ac_ct_OTOOL64
8618 OTOOL64="$ac_cv_prog_OTOOL64"
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8648 $as_echo_n "checking for -single_module linker flag... " >&6; }
8649 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8650 $as_echo_n "(cached) " >&6
8652 lt_cv_apple_cc_single_mod=no
8653 if test -z "${LT_MULTI_MODULE}"; then
8654 # By default we will add the -single_module flag. You can override
8655 # by either setting the environment variable LT_MULTI_MODULE
8656 # non-empty at configure time, or by adding -multi_module to the
8658 rm -rf libconftest.dylib*
8659 echo "int foo(void){return 1;}" > conftest.c
8660 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8661 -dynamiclib -Wl,-single_module conftest.c" >&5
8662 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8663 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8665 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8666 lt_cv_apple_cc_single_mod=yes
8668 cat conftest.err >&5
8670 rm -rf libconftest.dylib*
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8675 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8677 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8678 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8679 $as_echo_n "(cached) " >&6
8681 lt_cv_ld_exported_symbols_list=no
8682 save_LDFLAGS=$LDFLAGS
8683 echo "_main" > conftest.sym
8684 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8686 /* end confdefs.h. */
8696 if ac_fn_c_try_link "$LINENO"; then :
8697 lt_cv_ld_exported_symbols_list=yes
8699 lt_cv_ld_exported_symbols_list=no
8701 rm -f core conftest.err conftest.$ac_objext \
8702 conftest$ac_exeext conftest.$ac_ext
8703 LDFLAGS="$save_LDFLAGS"
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8707 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8709 rhapsody* | darwin1.[012])
8710 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8712 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8713 darwin*) # darwin 5.x on
8714 # if running on 10.5 or later, the deployment target defaults
8715 # to the OS version, if on x86, and 10.4, the deployment
8716 # target defaults to 10.4. Don't you love it?
8717 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8718 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8719 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8721 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8723 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8727 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8728 _lt_dar_single_mod='$single_module'
8730 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8731 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8733 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8735 if test "$DSYMUTIL" != ":"; then
8736 _lt_dsymutil='~$DSYMUTIL $lib || :'
8743 for ac_header in dlfcn.h
8745 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8747 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8748 cat >>confdefs.h <<_ACEOF
8749 #define HAVE_DLFCN_H 1
8759 ac_cpp='$CXXCPP $CPPFLAGS'
8760 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8761 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8762 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8763 if test -z "$CXX"; then
8764 if test -n "$CCC"; then
8767 if test -n "$ac_tool_prefix"; then
8768 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8770 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8771 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8773 $as_echo_n "checking for $ac_word... " >&6; }
8774 if test "${ac_cv_prog_CXX+set}" = set; then :
8775 $as_echo_n "(cached) " >&6
8777 if test -n "$CXX"; then
8778 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8784 test -z "$as_dir" && as_dir=.
8785 for ac_exec_ext in '' $ac_executable_extensions; do
8786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8787 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8798 if test -n "$CXX"; then
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
8800 $as_echo "$CXX" >&6; }
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8803 $as_echo "no" >&6; }
8807 test -n "$CXX" && break
8810 if test -z "$CXX"; then
8812 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8814 # Extract the first word of "$ac_prog", so it can be a program name with args.
8815 set dummy $ac_prog; ac_word=$2
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8817 $as_echo_n "checking for $ac_word... " >&6; }
8818 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
8819 $as_echo_n "(cached) " >&6
8821 if test -n "$ac_ct_CXX"; then
8822 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8828 test -z "$as_dir" && as_dir=.
8829 for ac_exec_ext in '' $ac_executable_extensions; do
8830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8831 ac_cv_prog_ac_ct_CXX="$ac_prog"
8832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8841 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8842 if test -n "$ac_ct_CXX"; then
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
8844 $as_echo "$ac_ct_CXX" >&6; }
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8847 $as_echo "no" >&6; }
8851 test -n "$ac_ct_CXX" && break
8854 if test "x$ac_ct_CXX" = x; then
8857 case $cross_compiling:$ac_tool_warned in
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8860 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8861 ac_tool_warned=yes ;;
8869 # Provide some information about the compiler.
8870 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
8873 for ac_option in --version -v -V -qversion; do
8874 { { ac_try="$ac_compiler $ac_option >&5"
8876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8877 *) ac_try_echo=$ac_try;;
8879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8880 $as_echo "$ac_try_echo"; } >&5
8881 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8883 if test -s conftest.err; then
8885 ... rest of stderr output deleted ...
8886 10q' conftest.err >conftest.er1
8887 cat conftest.er1 >&5
8888 rm -f conftest.er1 conftest.err
8890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8891 test $ac_status = 0; }
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
8895 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
8896 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
8897 $as_echo_n "(cached) " >&6
8899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8900 /* end confdefs.h. */
8913 if ac_fn_cxx_try_compile "$LINENO"; then :
8918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8919 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
8923 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
8924 if test $ac_compiler_gnu = yes; then
8929 ac_test_CXXFLAGS=${CXXFLAGS+set}
8930 ac_save_CXXFLAGS=$CXXFLAGS
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
8932 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
8933 if test "${ac_cv_prog_cxx_g+set}" = set; then :
8934 $as_echo_n "(cached) " >&6
8936 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8937 ac_cxx_werror_flag=yes
8940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8941 /* end confdefs.h. */
8951 if ac_fn_cxx_try_compile "$LINENO"; then :
8952 ac_cv_prog_cxx_g=yes
8955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8956 /* end confdefs.h. */
8966 if ac_fn_cxx_try_compile "$LINENO"; then :
8969 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8972 /* end confdefs.h. */
8982 if ac_fn_cxx_try_compile "$LINENO"; then :
8983 ac_cv_prog_cxx_g=yes
8985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8990 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
8993 $as_echo "$ac_cv_prog_cxx_g" >&6; }
8994 if test "$ac_test_CXXFLAGS" = set; then
8995 CXXFLAGS=$ac_save_CXXFLAGS
8996 elif test $ac_cv_prog_cxx_g = yes; then
8997 if test "$GXX" = yes; then
9003 if test "$GXX" = yes; then
9010 ac_cpp='$CPP $CPPFLAGS'
9011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9015 depcc="$CXX" am_compiler_list=
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9018 $as_echo_n "checking dependency style of $depcc... " >&6; }
9019 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9020 $as_echo_n "(cached) " >&6
9022 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
9023 # We make a subdir and do the tests there. Otherwise we can end up
9024 # making bogus files that we don't know about and never remove. For
9025 # instance it was reported that on HP-UX the gcc test will end up
9026 # making a dummy file named `D' -- because `-MD' means `put the output
9029 # Copy depcomp to subdir because otherwise we won't find it if we're
9030 # using a relative directory.
9031 cp "$am_depcomp" conftest.dir
9033 # We will build objects and dependencies in a subdirectory because
9034 # it helps to detect inapplicable dependency modes. For instance
9035 # both Tru64's cc and ICC support -MD to output dependencies as a
9036 # side effect of compilation, but ICC will put the dependencies in
9037 # the current directory while Tru64 will put them in the object
9041 am_cv_CXX_dependencies_compiler_type=none
9042 if test "$am_compiler_list" = ""; then
9043 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9046 case " $depcc " in #(
9047 *\ -arch\ *\ -arch\ *) am__universal=true ;;
9050 for depmode in $am_compiler_list; do
9051 # Setup a source with many dependencies, because some compilers
9052 # like to wrap large dependency lists on column 80 (with \), and
9053 # we should not choose a depcomp mode which is confused by this.
9055 # We need to recreate these files for each test, as the compiler may
9056 # overwrite some of them when testing with obscure command lines.
9057 # This happens at least with the AIX C compiler.
9059 for i in 1 2 3 4 5 6; do
9060 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9061 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9062 # Solaris 8's {/usr,}/bin/sh.
9063 touch sub/conftst$i.h
9065 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9067 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9068 # mode. It turns out that the SunPro C++ compiler does not properly
9069 # handle `-M -o', and we need to detect this. Also, some Intel
9070 # versions had trouble with output in subdirs
9071 am__obj=sub/conftest.${OBJEXT-o}
9072 am__minus_obj="-o $am__obj"
9075 # This depmode causes a compiler race in universal mode.
9076 test "$am__universal" = false || continue
9079 # after this tag, mechanisms are not by side-effect, so they'll
9080 # only be used when explicitly requested
9081 if test "x$enable_dependency_tracking" = xyes; then
9087 msvisualcpp | msvcmsys)
9088 # This compiler won't grok `-c -o', but also, the minuso test has
9089 # not run yet. These depmodes are late enough in the game, and
9090 # so weak that their functioning should not be impacted.
9091 am__obj=conftest.${OBJEXT-o}
9096 if depmode=$depmode \
9097 source=sub/conftest.c object=$am__obj \
9098 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9099 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
9100 >/dev/null 2>conftest.err &&
9101 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
9102 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
9103 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
9104 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9105 # icc doesn't choke on unknown options, it will just issue warnings
9106 # or remarks (even with -Werror). So we grep stderr for any message
9107 # that says an option was ignored or not supported.
9108 # When given -MP, icc 7.0 and 7.1 complain thusly:
9109 # icc: Command line warning: ignoring option '-M'; no argument required
9110 # The diagnosis changed in icc 8.0:
9111 # icc: Command line remark: option '-MP' not supported
9112 if (grep 'ignoring option' conftest.err ||
9113 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9114 am_cv_CXX_dependencies_compiler_type=$depmode
9123 am_cv_CXX_dependencies_compiler_type=none
9127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9128 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9129 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9132 test "x$enable_dependency_tracking" != xno \
9133 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
9134 am__fastdepCXX_TRUE=
9135 am__fastdepCXX_FALSE='#'
9137 am__fastdepCXX_TRUE='#'
9138 am__fastdepCXX_FALSE=
9142 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9143 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9144 (test "X$CXX" != "Xg++"))) ; then
9146 ac_cpp='$CXXCPP $CPPFLAGS'
9147 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9148 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9149 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9151 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9152 if test -z "$CXXCPP"; then
9153 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
9154 $as_echo_n "(cached) " >&6
9156 # Double quotes because CXXCPP needs to be expanded
9157 for CXXCPP in "$CXX -E" "/lib/cpp"
9160 for ac_cxx_preproc_warn_flag in '' yes
9162 # Use a header file that comes with gcc, so configuring glibc
9163 # with a fresh cross-compiler works.
9164 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9165 # <limits.h> exists even on freestanding compilers.
9166 # On the NeXT, cc -E runs the code through the compiler's parser,
9167 # not just through cpp. "Syntax error" is here to catch this case.
9168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9169 /* end confdefs.h. */
9171 # include <limits.h>
9173 # include <assert.h>
9177 if ac_fn_cxx_try_cpp "$LINENO"; then :
9180 # Broken: fails on valid input.
9183 rm -f conftest.err conftest.$ac_ext
9185 # OK, works on sane cases. Now check whether nonexistent headers
9186 # can be detected and how.
9187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9188 /* end confdefs.h. */
9189 #include <ac_nonexistent.h>
9191 if ac_fn_cxx_try_cpp "$LINENO"; then :
9192 # Broken: success on invalid input.
9195 # Passes both tests.
9199 rm -f conftest.err conftest.$ac_ext
9202 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9203 rm -f conftest.err conftest.$ac_ext
9204 if $ac_preproc_ok; then :
9209 ac_cv_prog_CXXCPP=$CXXCPP
9212 CXXCPP=$ac_cv_prog_CXXCPP
9214 ac_cv_prog_CXXCPP=$CXXCPP
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9217 $as_echo "$CXXCPP" >&6; }
9219 for ac_cxx_preproc_warn_flag in '' yes
9221 # Use a header file that comes with gcc, so configuring glibc
9222 # with a fresh cross-compiler works.
9223 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9224 # <limits.h> exists even on freestanding compilers.
9225 # On the NeXT, cc -E runs the code through the compiler's parser,
9226 # not just through cpp. "Syntax error" is here to catch this case.
9227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9228 /* end confdefs.h. */
9230 # include <limits.h>
9232 # include <assert.h>
9236 if ac_fn_cxx_try_cpp "$LINENO"; then :
9239 # Broken: fails on valid input.
9242 rm -f conftest.err conftest.$ac_ext
9244 # OK, works on sane cases. Now check whether nonexistent headers
9245 # can be detected and how.
9246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9247 /* end confdefs.h. */
9248 #include <ac_nonexistent.h>
9250 if ac_fn_cxx_try_cpp "$LINENO"; then :
9251 # Broken: success on invalid input.
9254 # Passes both tests.
9258 rm -f conftest.err conftest.$ac_ext
9261 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9262 rm -f conftest.err conftest.$ac_ext
9263 if $ac_preproc_ok; then :
9266 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9267 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9268 _lt_caught_CXX_error=yes; }
9272 ac_cpp='$CPP $CPPFLAGS'
9273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9278 _lt_caught_CXX_error=yes
9295 # Check whether --enable-shared was given.
9296 if test "${enable_shared+set}" = set; then :
9297 enableval=$enable_shared; p=${PACKAGE-default}
9299 yes) enable_shared=yes ;;
9300 no) enable_shared=no ;;
9303 # Look at the argument we got. We use all the common list separators.
9304 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9305 for pkg in $enableval; do
9307 if test "X$pkg" = "X$p"; then
9326 # Check whether --enable-static was given.
9327 if test "${enable_static+set}" = set; then :
9328 enableval=$enable_static; p=${PACKAGE-default}
9330 yes) enable_static=yes ;;
9331 no) enable_static=no ;;
9334 # Look at the argument we got. We use all the common list separators.
9335 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9336 for pkg in $enableval; do
9338 if test "X$pkg" = "X$p"; then
9358 # Check whether --with-pic was given.
9359 if test "${with_pic+set}" = set; then :
9360 withval=$with_pic; pic_mode="$withval"
9366 test -z "$pic_mode" && pic_mode=default
9374 # Check whether --enable-fast-install was given.
9375 if test "${enable_fast_install+set}" = set; then :
9376 enableval=$enable_fast_install; p=${PACKAGE-default}
9378 yes) enable_fast_install=yes ;;
9379 no) enable_fast_install=no ;;
9381 enable_fast_install=no
9382 # Look at the argument we got. We use all the common list separators.
9383 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9384 for pkg in $enableval; do
9386 if test "X$pkg" = "X$p"; then
9387 enable_fast_install=yes
9394 enable_fast_install=yes
9407 # This can be used to rebuild libtool when needed
9408 LIBTOOL_DEPS="$ltmain"
9410 # Always use our own libtool.
9411 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9437 test -z "$LN_S" && LN_S="ln -s"
9452 if test -n "${ZSH_VERSION+set}" ; then
9453 setopt NO_GLOB_SUBST
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9457 $as_echo_n "checking for objdir... " >&6; }
9458 if test "${lt_cv_objdir+set}" = set; then :
9459 $as_echo_n "(cached) " >&6
9461 rm -f .libs 2>/dev/null
9462 mkdir .libs 2>/dev/null
9463 if test -d .libs; then
9466 # MS-DOS does not allow filenames that begin with a dot.
9469 rmdir .libs 2>/dev/null
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9472 $as_echo "$lt_cv_objdir" >&6; }
9473 objdir=$lt_cv_objdir
9479 cat >>confdefs.h <<_ACEOF
9480 #define LT_OBJDIR "$lt_cv_objdir/"
9501 # AIX sometimes has problems with the GCC collect2 program. For some
9502 # reason, if we set the COLLECT_NAMES environment variable, the problems
9503 # vanish in a puff of smoke.
9504 if test "X${COLLECT_NAMES+set}" != Xset; then
9506 export COLLECT_NAMES
9511 # Sed substitution that helps us do robust quoting. It backslashifies
9512 # metacharacters that are still active within double-quoted strings.
9513 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9515 # Same as above, but do not quote variable references.
9516 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9518 # Sed substitution to delay expansion of an escaped shell variable in a
9519 # double_quote_subst'ed string.
9520 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9522 # Sed substitution to delay expansion of an escaped single quote.
9523 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9525 # Sed substitution to avoid accidental globbing in evaled expressions
9526 no_glob_subst='s/\*/\\\*/g'
9530 can_build_shared=yes
9532 # All known linkers require a `.a' archive for static linking (except MSVC,
9533 # which needs '.lib').
9536 with_gnu_ld="$lt_cv_prog_gnu_ld"
9539 old_CFLAGS="$CFLAGS"
9541 # Set sane defaults for various variables
9542 test -z "$CC" && CC=cc
9543 test -z "$LTCC" && LTCC=$CC
9544 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9545 test -z "$LD" && LD=ld
9546 test -z "$ac_objext" && ac_objext=o
9548 for cc_temp in $compiler""; do
9550 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9551 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9556 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9559 # Only perform the check for file, if the check method requires it
9560 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9561 case $deplibs_check_method in
9563 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9565 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9566 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9567 $as_echo_n "(cached) " >&6
9571 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9574 lt_save_MAGIC_CMD="$MAGIC_CMD"
9575 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9576 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9577 for ac_dir in $ac_dummy; do
9579 test -z "$ac_dir" && ac_dir=.
9580 if test -f $ac_dir/${ac_tool_prefix}file; then
9581 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9582 if test -n "$file_magic_test_file"; then
9583 case $deplibs_check_method in
9585 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9586 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9587 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9588 $EGREP "$file_magic_regex" > /dev/null; then
9593 *** Warning: the command libtool uses to detect shared libraries,
9594 *** $file_magic_cmd, produces output that libtool cannot recognize.
9595 *** The result is that libtool may fail to recognize shared libraries
9596 *** as such. This will affect the creation of libtool libraries that
9597 *** depend on shared libraries, but programs linked with such libtool
9598 *** libraries will work regardless of this problem. Nevertheless, you
9599 *** may want to report the problem to your system manager and/or to
9600 *** bug-libtool@gnu.org
9610 MAGIC_CMD="$lt_save_MAGIC_CMD"
9615 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9616 if test -n "$MAGIC_CMD"; then
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9618 $as_echo "$MAGIC_CMD" >&6; }
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9621 $as_echo "no" >&6; }
9628 if test -z "$lt_cv_path_MAGIC_CMD"; then
9629 if test -n "$ac_tool_prefix"; then
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9631 $as_echo_n "checking for file... " >&6; }
9632 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9633 $as_echo_n "(cached) " >&6
9637 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9640 lt_save_MAGIC_CMD="$MAGIC_CMD"
9641 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9642 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9643 for ac_dir in $ac_dummy; do
9645 test -z "$ac_dir" && ac_dir=.
9646 if test -f $ac_dir/file; then
9647 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9648 if test -n "$file_magic_test_file"; then
9649 case $deplibs_check_method in
9651 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9652 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9653 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9654 $EGREP "$file_magic_regex" > /dev/null; then
9659 *** Warning: the command libtool uses to detect shared libraries,
9660 *** $file_magic_cmd, produces output that libtool cannot recognize.
9661 *** The result is that libtool may fail to recognize shared libraries
9662 *** as such. This will affect the creation of libtool libraries that
9663 *** depend on shared libraries, but programs linked with such libtool
9664 *** libraries will work regardless of this problem. Nevertheless, you
9665 *** may want to report the problem to your system manager and/or to
9666 *** bug-libtool@gnu.org
9676 MAGIC_CMD="$lt_save_MAGIC_CMD"
9681 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9682 if test -n "$MAGIC_CMD"; then
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9684 $as_echo "$MAGIC_CMD" >&6; }
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9687 $as_echo "no" >&6; }
9700 # Use C for the default configuration in the libtool script
9704 ac_cpp='$CPP $CPPFLAGS'
9705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9710 # Source file extension for C test sources.
9713 # Object file extension for compiled C test sources.
9717 # Code to be used in simple compile tests
9718 lt_simple_compile_test_code="int some_variable = 0;"
9720 # Code to be used in simple link tests
9721 lt_simple_link_test_code='int main(){return(0);}'
9729 # If no C compiler was specified, use CC.
9732 # If no C compiler flags were specified, use CFLAGS.
9733 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9735 # Allow CC to be a program name with arguments.
9738 # Save the default compiler, since it gets overwritten when the other
9739 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9740 compiler_DEFAULT=$CC
9742 # save warnings/boilerplate of simple test code
9743 ac_outfile=conftest.$ac_objext
9744 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9745 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9746 _lt_compiler_boilerplate=`cat conftest.err`
9749 ac_outfile=conftest.$ac_objext
9750 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9751 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9752 _lt_linker_boilerplate=`cat conftest.err`
9757 ## There is no encapsulation within the following macros, do not change
9758 ## the running order or otherwise move them around unless you know exactly
9759 ## what you are doing...
9760 if test -n "$compiler"; then
9762 lt_prog_compiler_no_builtin_flag=
9764 if test "$GCC" = yes; then
9765 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9768 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9769 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9770 $as_echo_n "(cached) " >&6
9772 lt_cv_prog_compiler_rtti_exceptions=no
9773 ac_outfile=conftest.$ac_objext
9774 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9775 lt_compiler_flag="-fno-rtti -fno-exceptions"
9776 # Insert the option either (1) after the last *FLAGS variable, or
9777 # (2) before a word containing "conftest.", or (3) at the end.
9778 # Note that $ac_compile itself does not contain backslashes and begins
9779 # with a dollar sign (not a hyphen), so the echo should work correctly.
9780 # The option is referenced via a variable to avoid confusing sed.
9781 lt_compile=`echo "$ac_compile" | $SED \
9782 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9783 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9784 -e 's:$: $lt_compiler_flag:'`
9785 (eval echo "\"\$as_me:9785: $lt_compile\"" >&5)
9786 (eval "$lt_compile" 2>conftest.err)
9788 cat conftest.err >&5
9789 echo "$as_me:9789: \$? = $ac_status" >&5
9790 if (exit $ac_status) && test -s "$ac_outfile"; then
9791 # The compiler can only warn and ignore the option if not recognized
9792 # So say no if there are warnings other than the usual output.
9793 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9794 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9795 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9796 lt_cv_prog_compiler_rtti_exceptions=yes
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9803 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9805 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9806 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9818 lt_prog_compiler_wl=
9819 lt_prog_compiler_pic=
9820 lt_prog_compiler_static=
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9823 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9825 if test "$GCC" = yes; then
9826 lt_prog_compiler_wl='-Wl,'
9827 lt_prog_compiler_static='-static'
9831 # All AIX code is PIC.
9832 if test "$host_cpu" = ia64; then
9833 # AIX 5 now supports IA64 processor
9834 lt_prog_compiler_static='-Bstatic'
9841 # see comment about AmigaOS4 .so support
9842 lt_prog_compiler_pic='-fPIC'
9845 # FIXME: we need at least 68020 code to build shared libraries, but
9846 # adding the `-m68020' flag to GCC prevents building anything better,
9848 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9853 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9854 # PIC is the default for these OSes.
9857 mingw* | cygwin* | pw32* | os2* | cegcc*)
9858 # This hack is so that the source file can tell whether it is being
9859 # built for inclusion in a dll (and should export symbols for example).
9860 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9861 # (--disable-auto-import) libraries
9862 lt_prog_compiler_pic='-DDLL_EXPORT'
9865 darwin* | rhapsody*)
9866 # PIC is the default on this platform
9867 # Common symbols not allowed in MH_DYLIB files
9868 lt_prog_compiler_pic='-fno-common'
9872 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9873 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9874 # sets the default TLS model and affects inlining.
9880 lt_prog_compiler_pic='-fPIC'
9886 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9887 # Instead, we relocate shared libraries at runtime.
9891 # Just because we use GCC doesn't mean we suddenly get shared libraries
9892 # on systems that don't support them.
9893 lt_prog_compiler_can_build_shared=no
9898 # QNX uses GNU C++, but need to define -shared option too, otherwise
9900 lt_prog_compiler_pic='-fPIC -shared'
9904 if test -d /usr/nec; then
9905 lt_prog_compiler_pic=-Kconform_pic
9910 lt_prog_compiler_pic='-fPIC'
9914 # PORTME Check for flag to pass linker flags through the system compiler.
9917 lt_prog_compiler_wl='-Wl,'
9918 if test "$host_cpu" = ia64; then
9919 # AIX 5 now supports IA64 processor
9920 lt_prog_compiler_static='-Bstatic'
9922 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9926 mingw* | cygwin* | pw32* | os2* | cegcc*)
9927 # This hack is so that the source file can tell whether it is being
9928 # built for inclusion in a dll (and should export symbols for example).
9929 lt_prog_compiler_pic='-DDLL_EXPORT'
9932 hpux9* | hpux10* | hpux11*)
9933 lt_prog_compiler_wl='-Wl,'
9934 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9941 lt_prog_compiler_pic='+Z'
9944 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9945 lt_prog_compiler_static='${wl}-a ${wl}archive'
9948 irix5* | irix6* | nonstopux*)
9949 lt_prog_compiler_wl='-Wl,'
9950 # PIC (with -KPIC) is the default.
9951 lt_prog_compiler_static='-non_shared'
9954 linux* | k*bsd*-gnu)
9955 case $cc_basename in
9956 # old Intel for x86_64 which still supported -KPIC.
9958 lt_prog_compiler_wl='-Wl,'
9959 lt_prog_compiler_pic='-KPIC'
9960 lt_prog_compiler_static='-static'
9962 # icc used to be incompatible with GCC.
9963 # ICC 10 doesn't accept -KPIC any more.
9965 lt_prog_compiler_wl='-Wl,'
9966 lt_prog_compiler_pic='-fPIC'
9967 lt_prog_compiler_static='-static'
9969 # Lahey Fortran 8.1.
9971 lt_prog_compiler_wl='-Wl,'
9972 lt_prog_compiler_pic='--shared'
9973 lt_prog_compiler_static='--static'
9975 pgcc* | pgf77* | pgf90* | pgf95*)
9976 # Portland Group compilers (*not* the Pentium gcc compiler,
9977 # which looks to be a dead project)
9978 lt_prog_compiler_wl='-Wl,'
9979 lt_prog_compiler_pic='-fpic'
9980 lt_prog_compiler_static='-Bstatic'
9983 lt_prog_compiler_wl='-Wl,'
9984 # All Alpha code is PIC.
9985 lt_prog_compiler_static='-non_shared'
9988 # IBM XL C 8.0/Fortran 10.1 on PPC
9989 lt_prog_compiler_wl='-Wl,'
9990 lt_prog_compiler_pic='-qpic'
9991 lt_prog_compiler_static='-qstaticlink'
9994 case `$CC -V 2>&1 | sed 5q` in
9997 lt_prog_compiler_pic='-KPIC'
9998 lt_prog_compiler_static='-Bstatic'
9999 lt_prog_compiler_wl='-Wl,'
10002 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10003 lt_prog_compiler_pic='-KPIC'
10004 lt_prog_compiler_static='-Bstatic'
10005 lt_prog_compiler_wl=''
10013 lt_prog_compiler_pic='-KPIC'
10014 lt_prog_compiler_static='-Bstatic'
10018 # QNX uses GNU C++, but need to define -shared option too, otherwise
10019 # it will coredump.
10020 lt_prog_compiler_pic='-fPIC -shared'
10023 osf3* | osf4* | osf5*)
10024 lt_prog_compiler_wl='-Wl,'
10025 # All OSF/1 code is PIC.
10026 lt_prog_compiler_static='-non_shared'
10030 lt_prog_compiler_static='-non_shared'
10034 lt_prog_compiler_pic='-KPIC'
10035 lt_prog_compiler_static='-Bstatic'
10036 case $cc_basename in
10037 f77* | f90* | f95*)
10038 lt_prog_compiler_wl='-Qoption ld ';;
10040 lt_prog_compiler_wl='-Wl,';;
10045 lt_prog_compiler_wl='-Qoption ld '
10046 lt_prog_compiler_pic='-PIC'
10047 lt_prog_compiler_static='-Bstatic'
10050 sysv4 | sysv4.2uw2* | sysv4.3*)
10051 lt_prog_compiler_wl='-Wl,'
10052 lt_prog_compiler_pic='-KPIC'
10053 lt_prog_compiler_static='-Bstatic'
10057 if test -d /usr/nec ;then
10058 lt_prog_compiler_pic='-Kconform_pic'
10059 lt_prog_compiler_static='-Bstatic'
10063 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10064 lt_prog_compiler_wl='-Wl,'
10065 lt_prog_compiler_pic='-KPIC'
10066 lt_prog_compiler_static='-Bstatic'
10070 lt_prog_compiler_wl='-Wl,'
10071 lt_prog_compiler_can_build_shared=no
10075 lt_prog_compiler_pic='-pic'
10076 lt_prog_compiler_static='-Bstatic'
10080 lt_prog_compiler_can_build_shared=no
10086 # For platforms which do not support PIC, -DPIC is meaningless:
10088 lt_prog_compiler_pic=
10091 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10095 $as_echo "$lt_prog_compiler_pic" >&6; }
10103 # Check to make sure the PIC flag actually works.
10105 if test -n "$lt_prog_compiler_pic"; then
10106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10107 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10108 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
10109 $as_echo_n "(cached) " >&6
10111 lt_cv_prog_compiler_pic_works=no
10112 ac_outfile=conftest.$ac_objext
10113 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10114 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10115 # Insert the option either (1) after the last *FLAGS variable, or
10116 # (2) before a word containing "conftest.", or (3) at the end.
10117 # Note that $ac_compile itself does not contain backslashes and begins
10118 # with a dollar sign (not a hyphen), so the echo should work correctly.
10119 # The option is referenced via a variable to avoid confusing sed.
10120 lt_compile=`echo "$ac_compile" | $SED \
10121 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10122 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10123 -e 's:$: $lt_compiler_flag:'`
10124 (eval echo "\"\$as_me:10124: $lt_compile\"" >&5)
10125 (eval "$lt_compile" 2>conftest.err)
10127 cat conftest.err >&5
10128 echo "$as_me:10128: \$? = $ac_status" >&5
10129 if (exit $ac_status) && test -s "$ac_outfile"; then
10130 # The compiler can only warn and ignore the option if not recognized
10131 # So say no if there are warnings other than the usual output.
10132 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10133 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10134 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10135 lt_cv_prog_compiler_pic_works=yes
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10142 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10144 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10145 case $lt_prog_compiler_pic in
10147 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10150 lt_prog_compiler_pic=
10151 lt_prog_compiler_can_build_shared=no
10162 # Check to make sure the static flag actually works.
10164 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10166 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10167 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
10168 $as_echo_n "(cached) " >&6
10170 lt_cv_prog_compiler_static_works=no
10171 save_LDFLAGS="$LDFLAGS"
10172 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10173 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10174 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10175 # The linker can only warn and ignore the option if not recognized
10176 # So say no if there are warnings
10177 if test -s conftest.err; then
10178 # Append any errors to the config.log.
10179 cat conftest.err 1>&5
10180 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
10181 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10182 if diff conftest.exp conftest.er2 >/dev/null; then
10183 lt_cv_prog_compiler_static_works=yes
10186 lt_cv_prog_compiler_static_works=yes
10190 LDFLAGS="$save_LDFLAGS"
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10194 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10196 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10199 lt_prog_compiler_static=
10208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10209 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10210 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10211 $as_echo_n "(cached) " >&6
10213 lt_cv_prog_compiler_c_o=no
10214 $RM -r conftest 2>/dev/null
10218 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10220 lt_compiler_flag="-o out/conftest2.$ac_objext"
10221 # Insert the option either (1) after the last *FLAGS variable, or
10222 # (2) before a word containing "conftest.", or (3) at the end.
10223 # Note that $ac_compile itself does not contain backslashes and begins
10224 # with a dollar sign (not a hyphen), so the echo should work correctly.
10225 lt_compile=`echo "$ac_compile" | $SED \
10226 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10227 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10228 -e 's:$: $lt_compiler_flag:'`
10229 (eval echo "\"\$as_me:10229: $lt_compile\"" >&5)
10230 (eval "$lt_compile" 2>out/conftest.err)
10232 cat out/conftest.err >&5
10233 echo "$as_me:10233: \$? = $ac_status" >&5
10234 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10236 # The compiler can only warn and ignore the option if not recognized
10237 # So say no if there are warnings
10238 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10239 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10240 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10241 lt_cv_prog_compiler_c_o=yes
10246 # SGI C++ compiler will create directory out/ii_files/ for
10247 # template instantiation
10248 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10249 $RM out/* && rmdir out
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10256 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10264 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10265 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10266 $as_echo_n "(cached) " >&6
10268 lt_cv_prog_compiler_c_o=no
10269 $RM -r conftest 2>/dev/null
10273 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10275 lt_compiler_flag="-o out/conftest2.$ac_objext"
10276 # Insert the option either (1) after the last *FLAGS variable, or
10277 # (2) before a word containing "conftest.", or (3) at the end.
10278 # Note that $ac_compile itself does not contain backslashes and begins
10279 # with a dollar sign (not a hyphen), so the echo should work correctly.
10280 lt_compile=`echo "$ac_compile" | $SED \
10281 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10282 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10283 -e 's:$: $lt_compiler_flag:'`
10284 (eval echo "\"\$as_me:10284: $lt_compile\"" >&5)
10285 (eval "$lt_compile" 2>out/conftest.err)
10287 cat out/conftest.err >&5
10288 echo "$as_me:10288: \$? = $ac_status" >&5
10289 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10291 # The compiler can only warn and ignore the option if not recognized
10292 # So say no if there are warnings
10293 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10294 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10295 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10296 lt_cv_prog_compiler_c_o=yes
10301 # SGI C++ compiler will create directory out/ii_files/ for
10302 # template instantiation
10303 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10304 $RM out/* && rmdir out
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10311 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10316 hard_links="nottested"
10317 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10318 # do not overwrite the value of need_locks provided by the user
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10320 $as_echo_n "checking if we can lock with hard links... " >&6; }
10323 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10325 ln conftest.a conftest.b 2>&5 || hard_links=no
10326 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10328 $as_echo "$hard_links" >&6; }
10329 if test "$hard_links" = no; then
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10331 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10344 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10347 allow_undefined_flag=
10348 always_export_symbols=no
10350 archive_expsym_cmds=
10351 compiler_needs_object=no
10352 enable_shared_with_static_runtimes=no
10353 export_dynamic_flag_spec=
10354 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10355 hardcode_automatic=no
10357 hardcode_direct_absolute=no
10358 hardcode_libdir_flag_spec=
10359 hardcode_libdir_flag_spec_ld=
10360 hardcode_libdir_separator=
10361 hardcode_minus_L=no
10362 hardcode_shlibpath_var=unsupported
10364 link_all_deplibs=unknown
10366 module_expsym_cmds=
10367 old_archive_from_new_cmds=
10368 old_archive_from_expsyms_cmds=
10369 thread_safe_flag_spec=
10370 whole_archive_flag_spec=
10371 # include_expsyms should be a list of space-separated symbols to be *always*
10372 # included in the symbol list
10374 # exclude_expsyms can be an extended regexp of symbols to exclude
10375 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10376 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10377 # as well as any symbol that contains `d'.
10378 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10379 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10380 # platforms (ab)use it in PIC code, but their linkers get confused if
10381 # the symbol is explicitly referenced. Since portable code cannot
10382 # rely on this symbol name, it's probably fine to never include it in
10383 # preloaded symbol tables.
10384 # Exclude shared library initialization/finalization symbols.
10385 extract_expsyms_cmds=
10388 cygwin* | mingw* | pw32* | cegcc*)
10389 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10390 # When not using gcc, we currently assume that we are using
10391 # Microsoft Visual C++.
10392 if test "$GCC" != yes; then
10397 # we just hope/assume this is gcc and not c89 (= MSVC++)
10403 linux* | k*bsd*-gnu)
10404 link_all_deplibs=no
10409 if test "$with_gnu_ld" = yes; then
10410 # If archive_cmds runs LD, not CC, wlarc should be empty
10413 # Set some defaults for GNU ld with shared library support. These
10414 # are reset later if shared libraries are not supported. Putting them
10415 # here allows them to be overridden if necessary.
10416 runpath_var=LD_RUN_PATH
10417 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10418 export_dynamic_flag_spec='${wl}--export-dynamic'
10419 # ancient GNU ld didn't support --whole-archive et. al.
10420 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10421 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10423 whole_archive_flag_spec=
10425 supports_anon_versioning=no
10426 case `$LD -v 2>&1` in
10427 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10428 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10429 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10430 *\ 2.11.*) ;; # other 2.11 versions
10431 *) supports_anon_versioning=yes ;;
10434 # See if GNU ld supports shared libraries.
10437 # On AIX/PPC, the GNU linker is very broken
10438 if test "$host_cpu" != ia64; then
10442 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10443 *** to be unable to reliably create shared libraries on AIX.
10444 *** Therefore, libtool is disabling shared libraries support. If you
10445 *** really care for shared libraries, you may want to modify your PATH
10446 *** so that a non-GNU linker is found, and then restart.
10455 # see comment about AmigaOS4 .so support
10456 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10457 archive_expsym_cmds=''
10460 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)'
10461 hardcode_libdir_flag_spec='-L$libdir'
10462 hardcode_minus_L=yes
10468 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10469 allow_undefined_flag=unsupported
10470 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10471 # support --undefined. This deserves some investigation. FIXME
10472 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10478 cygwin* | mingw* | pw32* | cegcc*)
10479 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10480 # as there is no search path for DLLs.
10481 hardcode_libdir_flag_spec='-L$libdir'
10482 allow_undefined_flag=unsupported
10483 always_export_symbols=no
10484 enable_shared_with_static_runtimes=yes
10485 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10487 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10488 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10489 # If the export-symbols file already is a .def file (1st line
10490 # is EXPORTS), use it as is; otherwise, prepend...
10491 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10492 cp $export_symbols $output_objdir/$soname.def;
10494 echo EXPORTS > $output_objdir/$soname.def;
10495 cat $export_symbols >> $output_objdir/$soname.def;
10497 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10505 hardcode_shlibpath_var=no
10506 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10507 export_dynamic_flag_spec='${wl}-E'
10508 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10509 # Instead, shared libraries are loaded at an image base (0x10000000 by
10510 # default) and relocated if they conflict, which is a slow very memory
10511 # consuming and fragmenting process. To avoid this, we pick a random,
10512 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10513 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10514 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10515 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10518 gnu* | linux* | tpf* | k*bsd*-gnu)
10520 if test "$host_os" = linux-dietlibc; then
10521 case $cc_basename in
10522 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10525 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10526 && test "$tmp_diet" = no
10529 tmp_sharedflag='-shared'
10530 case $cc_basename,$host_cpu in
10531 pgcc*) # Portland Group C compiler
10532 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10533 tmp_addflag=' $pic_flag'
10535 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
10536 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10537 tmp_addflag=' $pic_flag -Mnomain' ;;
10538 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10539 tmp_addflag=' -i_dynamic' ;;
10540 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10541 tmp_addflag=' -i_dynamic -nofor_main' ;;
10542 ifc* | ifort*) # Intel Fortran compiler
10543 tmp_addflag=' -nofor_main' ;;
10544 lf95*) # Lahey Fortran 8.1
10545 whole_archive_flag_spec=
10546 tmp_sharedflag='--shared' ;;
10547 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10548 tmp_sharedflag='-qmkshrobj'
10551 case `$CC -V 2>&1 | sed 5q` in
10552 *Sun\ C*) # Sun C 5.9
10553 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10554 compiler_needs_object=yes
10555 tmp_sharedflag='-G' ;;
10556 *Sun\ F*) # Sun Fortran 8.3
10557 tmp_sharedflag='-G' ;;
10559 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10561 if test "x$supports_anon_versioning" = xyes; then
10562 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10563 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10564 echo "local: *; };" >> $output_objdir/$libname.ver~
10565 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10568 case $cc_basename in
10570 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10571 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10572 hardcode_libdir_flag_spec=
10573 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10574 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10575 if test "x$supports_anon_versioning" = xyes; then
10576 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10577 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10578 echo "local: *; };" >> $output_objdir/$libname.ver~
10579 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10588 netbsd* | netbsdelf*-gnu)
10589 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10590 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10593 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10594 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10599 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10603 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10604 *** create shared libraries on Solaris systems. Therefore, libtool
10605 *** is disabling shared libraries support. We urge you to upgrade GNU
10606 *** binutils to release 2.9.1 or newer. Another option is to modify
10607 *** your PATH or compiler configuration so that the native linker is
10608 *** used, and then restart.
10611 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10612 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10613 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10619 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10620 case `$LD -v 2>&1` in
10621 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10625 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10626 *** reliably create shared libraries on SCO systems. Therefore, libtool
10627 *** is disabling shared libraries support. We urge you to upgrade GNU
10628 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10629 *** your PATH or compiler configuration so that the native linker is
10630 *** used, and then restart.
10635 # For security reasons, it is highly recommended that you always
10636 # use absolute paths for naming shared libraries, and exclude the
10637 # DT_RUNPATH tag from executables and libraries. But doing so
10638 # requires that you compile everything twice, which is a pain.
10639 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10640 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10641 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10642 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10651 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10653 hardcode_direct=yes
10654 hardcode_shlibpath_var=no
10658 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10659 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10660 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10667 if test "$ld_shlibs" = no; then
10669 hardcode_libdir_flag_spec=
10670 export_dynamic_flag_spec=
10671 whole_archive_flag_spec=
10674 # PORTME fill in a description of your system's linker (not GNU ld)
10677 allow_undefined_flag=unsupported
10678 always_export_symbols=yes
10679 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'
10680 # Note: this linker hardcodes the directories in LIBPATH if there
10681 # are no directories specified by -L.
10682 hardcode_minus_L=yes
10683 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10684 # Neither direct hardcoding nor static linking is supported with a
10686 hardcode_direct=unsupported
10691 if test "$host_cpu" = ia64; then
10692 # On IA64, the linker does run time linking by default, so we don't
10693 # have to do anything special.
10694 aix_use_runtimelinking=no
10695 exp_sym_flag='-Bexport'
10698 # If we're using GNU nm, then we don't want the "-C" option.
10699 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10700 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10701 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'
10703 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'
10705 aix_use_runtimelinking=no
10707 # Test if we are trying to use run time linking or normal
10708 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10709 # need to do runtime linking.
10710 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10711 for ld_flag in $LDFLAGS; do
10712 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10713 aix_use_runtimelinking=yes
10720 exp_sym_flag='-bexport'
10721 no_entry_flag='-bnoentry'
10724 # When large executables or shared objects are built, AIX ld can
10725 # have problems creating the table of contents. If linking a library
10726 # or program results in "error TOC overflow" add -mminimal-toc to
10727 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10728 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10731 hardcode_direct=yes
10732 hardcode_direct_absolute=yes
10733 hardcode_libdir_separator=':'
10734 link_all_deplibs=yes
10735 file_list_spec='${wl}-f,'
10737 if test "$GCC" = yes; then
10738 case $host_os in aix4.[012]|aix4.[012].*)
10739 # We only want to do this on AIX 4.2 and lower, the check
10740 # below for broken collect2 doesn't work under 4.3+
10741 collect2name=`${CC} -print-prog-name=collect2`
10742 if test -f "$collect2name" &&
10743 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10745 # We have reworked collect2
10748 # We have old collect2
10749 hardcode_direct=unsupported
10750 # It fails to find uninstalled libraries when the uninstalled
10751 # path is not listed in the libpath. Setting hardcode_minus_L
10752 # to unsupported forces relinking
10753 hardcode_minus_L=yes
10754 hardcode_libdir_flag_spec='-L$libdir'
10755 hardcode_libdir_separator=
10759 shared_flag='-shared'
10760 if test "$aix_use_runtimelinking" = yes; then
10761 shared_flag="$shared_flag "'${wl}-G'
10763 link_all_deplibs=no
10766 if test "$host_cpu" = ia64; then
10767 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10768 # chokes on -Wl,-G. The following line is correct:
10771 if test "$aix_use_runtimelinking" = yes; then
10772 shared_flag='${wl}-G'
10774 shared_flag='${wl}-bM:SRE'
10779 export_dynamic_flag_spec='${wl}-bexpall'
10780 # It seems that -bexpall does not export symbols beginning with
10781 # underscore (_), so it is better to generate a list of symbols to export.
10782 always_export_symbols=yes
10783 if test "$aix_use_runtimelinking" = yes; then
10784 # Warning - without using the other runtime loading flags (-brtl),
10785 # -berok will link without error, but may produce a broken library.
10786 allow_undefined_flag='-berok'
10787 # Determine the default libpath from the value encoded in an
10788 # empty executable.
10789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10790 /* end confdefs.h. */
10800 if ac_fn_c_try_link "$LINENO"; then :
10802 lt_aix_libpath_sed='
10803 /Import File Strings/,/^$/ {
10809 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10810 # Check for a 64-bit object if we didn't find anything.
10811 if test -z "$aix_libpath"; then
10812 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10815 rm -f core conftest.err conftest.$ac_objext \
10816 conftest$ac_exeext conftest.$ac_ext
10817 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10819 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10820 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10822 if test "$host_cpu" = ia64; then
10823 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10824 allow_undefined_flag="-z nodefs"
10825 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10827 # Determine the default libpath from the value encoded in an
10828 # empty executable.
10829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10830 /* end confdefs.h. */
10840 if ac_fn_c_try_link "$LINENO"; then :
10842 lt_aix_libpath_sed='
10843 /Import File Strings/,/^$/ {
10849 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10850 # Check for a 64-bit object if we didn't find anything.
10851 if test -z "$aix_libpath"; then
10852 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10855 rm -f core conftest.err conftest.$ac_objext \
10856 conftest$ac_exeext conftest.$ac_ext
10857 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10859 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10860 # Warning - without using the other run time loading flags,
10861 # -berok will link without error, but may produce a broken library.
10862 no_undefined_flag=' ${wl}-bernotok'
10863 allow_undefined_flag=' ${wl}-berok'
10864 # Exported symbols can be pulled into shared objects from archives
10865 whole_archive_flag_spec='$convenience'
10866 archive_cmds_need_lc=yes
10867 # This is similar to how AIX traditionally builds its shared libraries.
10868 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10876 # see comment about AmigaOS4 .so support
10877 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10878 archive_expsym_cmds=''
10881 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)'
10882 hardcode_libdir_flag_spec='-L$libdir'
10883 hardcode_minus_L=yes
10889 export_dynamic_flag_spec=-rdynamic
10892 cygwin* | mingw* | pw32* | cegcc*)
10893 # When not using gcc, we currently assume that we are using
10894 # Microsoft Visual C++.
10895 # hardcode_libdir_flag_spec is actually meaningless, as there is
10896 # no search path for DLLs.
10897 hardcode_libdir_flag_spec=' '
10898 allow_undefined_flag=unsupported
10899 # Tell ltmain to make .lib files, not .a files.
10901 # Tell ltmain to make .dll files, not .so files.
10903 # FIXME: Setting linknames here is a bad hack.
10904 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10905 # The linker will automatically build a .lib file if we build a DLL.
10906 old_archive_from_new_cmds='true'
10907 # FIXME: Should let the user specify the lib program.
10908 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10909 fix_srcfile_path='`cygpath -w "$srcfile"`'
10910 enable_shared_with_static_runtimes=yes
10913 darwin* | rhapsody*)
10916 archive_cmds_need_lc=no
10918 hardcode_automatic=yes
10919 hardcode_shlibpath_var=unsupported
10920 whole_archive_flag_spec=''
10921 link_all_deplibs=yes
10922 allow_undefined_flag="$_lt_dar_allow_undefined"
10923 case $cc_basename in
10924 ifort*) _lt_dar_can_shared=yes ;;
10925 *) _lt_dar_can_shared=$GCC ;;
10927 if test "$_lt_dar_can_shared" = "yes"; then
10928 output_verbose_link_cmd=echo
10929 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10930 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10931 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10932 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10941 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10942 hardcode_libdir_flag_spec='-L$libdir'
10943 hardcode_shlibpath_var=no
10950 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10951 # support. Future versions do this automatically, but an explicit c++rt0.o
10952 # does not break anything, and helps significantly (at the cost of a little
10955 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10956 hardcode_libdir_flag_spec='-R$libdir'
10957 hardcode_direct=yes
10958 hardcode_shlibpath_var=no
10961 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10963 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10964 hardcode_direct=yes
10965 hardcode_minus_L=yes
10966 hardcode_shlibpath_var=no
10969 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10970 freebsd* | dragonfly*)
10971 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10972 hardcode_libdir_flag_spec='-R$libdir'
10973 hardcode_direct=yes
10974 hardcode_shlibpath_var=no
10978 if test "$GCC" = yes; then
10979 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10981 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'
10983 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10984 hardcode_libdir_separator=:
10985 hardcode_direct=yes
10987 # hardcode_minus_L: Not really in the search PATH,
10988 # but as the default location of the library.
10989 hardcode_minus_L=yes
10990 export_dynamic_flag_spec='${wl}-E'
10994 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10995 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10997 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10999 if test "$with_gnu_ld" = no; then
11000 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11001 hardcode_libdir_flag_spec_ld='+b $libdir'
11002 hardcode_libdir_separator=:
11003 hardcode_direct=yes
11004 hardcode_direct_absolute=yes
11005 export_dynamic_flag_spec='${wl}-E'
11006 # hardcode_minus_L: Not really in the search PATH,
11007 # but as the default location of the library.
11008 hardcode_minus_L=yes
11013 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11016 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11019 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11022 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11028 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11031 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11034 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11038 if test "$with_gnu_ld" = no; then
11039 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11040 hardcode_libdir_separator=:
11045 hardcode_shlibpath_var=no
11048 hardcode_direct=yes
11049 hardcode_direct_absolute=yes
11050 export_dynamic_flag_spec='${wl}-E'
11052 # hardcode_minus_L: Not really in the search PATH,
11053 # but as the default location of the library.
11054 hardcode_minus_L=yes
11060 irix5* | irix6* | nonstopux*)
11061 if test "$GCC" = yes; then
11062 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11063 # Try to use the -exported_symbol ld option, if it does not
11064 # work, assume that -exports_file does not work either and
11065 # implicitly export all symbols.
11066 save_LDFLAGS="$LDFLAGS"
11067 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11069 /* end confdefs.h. */
11072 if ac_fn_c_try_link "$LINENO"; then :
11073 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
11076 rm -f core conftest.err conftest.$ac_objext \
11077 conftest$ac_exeext conftest.$ac_ext
11078 LDFLAGS="$save_LDFLAGS"
11080 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
11081 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
11083 archive_cmds_need_lc='no'
11084 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11085 hardcode_libdir_separator=:
11087 link_all_deplibs=yes
11090 netbsd* | netbsdelf*-gnu)
11091 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11092 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11094 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11096 hardcode_libdir_flag_spec='-R$libdir'
11097 hardcode_direct=yes
11098 hardcode_shlibpath_var=no
11102 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11103 hardcode_direct=yes
11104 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11105 hardcode_libdir_separator=:
11106 hardcode_shlibpath_var=no
11113 if test -f /usr/libexec/ld.so; then
11114 hardcode_direct=yes
11115 hardcode_shlibpath_var=no
11116 hardcode_direct_absolute=yes
11117 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11118 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11119 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11120 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11121 export_dynamic_flag_spec='${wl}-E'
11124 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11125 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11126 hardcode_libdir_flag_spec='-R$libdir'
11129 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11130 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11140 hardcode_libdir_flag_spec='-L$libdir'
11141 hardcode_minus_L=yes
11142 allow_undefined_flag=unsupported
11143 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
11144 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11148 if test "$GCC" = yes; then
11149 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11150 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11152 allow_undefined_flag=' -expect_unresolved \*'
11153 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
11155 archive_cmds_need_lc='no'
11156 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11157 hardcode_libdir_separator=:
11160 osf4* | osf5*) # as osf3* with the addition of -msym flag
11161 if test "$GCC" = yes; then
11162 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11163 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11164 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11166 allow_undefined_flag=' -expect_unresolved \*'
11167 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
11168 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
11169 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
11171 # Both c and cxx compiler support -rpath directly
11172 hardcode_libdir_flag_spec='-rpath $libdir'
11174 archive_cmds_need_lc='no'
11175 hardcode_libdir_separator=:
11179 no_undefined_flag=' -z defs'
11180 if test "$GCC" = yes; then
11182 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11183 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11184 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11186 case `$CC -V 2>&1` in
11189 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11190 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11191 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11195 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11196 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11197 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11201 hardcode_libdir_flag_spec='-R$libdir'
11202 hardcode_shlibpath_var=no
11204 solaris2.[0-5] | solaris2.[0-5].*) ;;
11206 # The compiler driver will combine and reorder linker options,
11207 # but understands `-z linker_flag'. GCC discards it without `$wl',
11208 # but is careful enough not to reorder.
11209 # Supported since Solaris 2.6 (maybe 2.5.1?)
11210 if test "$GCC" = yes; then
11211 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11213 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11217 link_all_deplibs=yes
11221 if test "x$host_vendor" = xsequent; then
11222 # Use $CC to link under sequent, because it throws in some extra .o
11223 # files that make .init and .fini sections work.
11224 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11226 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11228 hardcode_libdir_flag_spec='-L$libdir'
11229 hardcode_direct=yes
11230 hardcode_minus_L=yes
11231 hardcode_shlibpath_var=no
11235 case $host_vendor in
11237 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11238 hardcode_direct=yes # is this really true???
11241 ## LD is ld it makes a PLAMLIB
11242 ## CC just makes a GrossModule.
11243 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11244 reload_cmds='$CC -r -o $output$reload_objs'
11248 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11249 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11252 runpath_var='LD_RUN_PATH'
11253 hardcode_shlibpath_var=no
11257 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11258 hardcode_shlibpath_var=no
11259 export_dynamic_flag_spec='-Bexport'
11263 if test -d /usr/nec; then
11264 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11265 hardcode_shlibpath_var=no
11266 runpath_var=LD_RUN_PATH
11267 hardcode_runpath_var=yes
11272 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11273 no_undefined_flag='${wl}-z,text'
11274 archive_cmds_need_lc=no
11275 hardcode_shlibpath_var=no
11276 runpath_var='LD_RUN_PATH'
11278 if test "$GCC" = yes; then
11279 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11280 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11282 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11283 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11287 sysv5* | sco3.2v5* | sco5v6*)
11288 # Note: We can NOT use -z defs as we might desire, because we do not
11289 # link with -lc, and that would cause any symbols used from libc to
11290 # always be unresolved, which means just about no library would
11291 # ever link correctly. If we're not using GNU ld we use -z text
11292 # though, which does catch some bad symbols but isn't as heavy-handed
11294 no_undefined_flag='${wl}-z,text'
11295 allow_undefined_flag='${wl}-z,nodefs'
11296 archive_cmds_need_lc=no
11297 hardcode_shlibpath_var=no
11298 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11299 hardcode_libdir_separator=':'
11300 link_all_deplibs=yes
11301 export_dynamic_flag_spec='${wl}-Bexport'
11302 runpath_var='LD_RUN_PATH'
11304 if test "$GCC" = yes; then
11305 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11306 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11308 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11309 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11314 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11315 hardcode_libdir_flag_spec='-L$libdir'
11316 hardcode_shlibpath_var=no
11324 if test x$host_vendor = xsni; then
11326 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11327 export_dynamic_flag_spec='${wl}-Blargedynsym'
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11334 $as_echo "$ld_shlibs" >&6; }
11335 test "$ld_shlibs" = no && can_build_shared=no
11337 with_gnu_ld=$with_gnu_ld
11354 # Do we need to explicitly link libc?
11356 case "x$archive_cmds_need_lc" in
11358 # Assume -lc should be added
11359 archive_cmds_need_lc=yes
11361 if test "$enable_shared" = yes && test "$GCC" = yes; then
11362 case $archive_cmds in
11364 # FIXME: we may have to deal with multi-command sequences.
11367 # Test whether the compiler implicitly links with -lc since on some
11368 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11369 # to ld, don't add -lc before -lgcc.
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11371 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11373 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11375 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11376 (eval $ac_compile) 2>&5
11378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11379 test $ac_status = 0; } 2>conftest.err; then
11382 libobjs=conftest.$ac_objext
11384 wl=$lt_prog_compiler_wl
11385 pic_flag=$lt_prog_compiler_pic
11391 lt_save_allow_undefined_flag=$allow_undefined_flag
11392 allow_undefined_flag=
11393 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11394 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11397 test $ac_status = 0; }
11399 archive_cmds_need_lc=no
11401 archive_cmds_need_lc=yes
11403 allow_undefined_flag=$lt_save_allow_undefined_flag
11405 cat conftest.err 1>&5
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
11409 $as_echo "$archive_cmds_need_lc" >&6; }
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11573 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11575 if test "$GCC" = yes; then
11577 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11578 *) lt_awk_arg="/^libraries:/" ;;
11580 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11581 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11582 # if the path contains ";" then we assume it to be the separator
11583 # otherwise default to the standard path separator (i.e. ":") - it is
11584 # assumed that no part of a normal pathname contains ";" but that should
11585 # okay in the real world where ";" in dirpaths is itself problematic.
11586 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11588 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11590 # Ok, now we have the path, separated by spaces, we can step through it
11591 # and add multilib dir if necessary.
11592 lt_tmp_lt_search_path_spec=
11593 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11594 for lt_sys_path in $lt_search_path_spec; do
11595 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11596 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11598 test -d "$lt_sys_path" && \
11599 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11602 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11603 BEGIN {RS=" "; FS="/|\n";} {
11606 for (lt_i = NF; lt_i > 0; lt_i--) {
11607 if ($lt_i != "" && $lt_i != ".") {
11608 if ($lt_i == "..") {
11611 if (lt_count == 0) {
11612 lt_foo="/" $lt_i lt_foo;
11619 if (lt_foo != "") { lt_freq[lt_foo]++; }
11620 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11622 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11624 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11626 library_names_spec=
11627 libname_spec='lib$name'
11631 postuninstall_cmds=
11635 shlibpath_overrides_runpath=unknown
11637 dynamic_linker="$host_os ld.so"
11638 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11639 need_lib_prefix=unknown
11640 hardcode_into_libs=no
11642 # when you set need_version to no, make sure it does not cause -set_version
11643 # flags to be left without arguments
11644 need_version=unknown
11649 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11650 shlibpath_var=LIBPATH
11652 # AIX 3 has no versioning support, so we append a major version to the name.
11653 soname_spec='${libname}${release}${shared_ext}$major'
11660 hardcode_into_libs=yes
11661 if test "$host_cpu" = ia64; then
11662 # AIX 5 supports IA64
11663 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11664 shlibpath_var=LD_LIBRARY_PATH
11666 # With GCC up to 2.95.x, collect2 would create an import file
11667 # for dependence libraries. The import file would start with
11668 # the line `#! .'. This would cause the generated library to
11669 # depend on `.', always an invalid library. This was fixed in
11670 # development snapshots of GCC prior to 3.0.
11672 aix4 | aix4.[01] | aix4.[01].*)
11673 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11675 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11678 can_build_shared=no
11682 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11683 # soname into executable. Probably we can add versioning support to
11684 # collect2, so additional links can be useful in future.
11685 if test "$aix_use_runtimelinking" = yes; then
11686 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11687 # instead of lib<name>.a to let people know that these are not
11688 # typical AIX shared libraries.
11689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11691 # We preserve .a as extension for shared libraries through AIX4.2
11692 # and later when we are not doing run time linking.
11693 library_names_spec='${libname}${release}.a $libname.a'
11694 soname_spec='${libname}${release}${shared_ext}$major'
11696 shlibpath_var=LIBPATH
11703 # Since July 2007 AmigaOS4 officially supports .so libraries.
11704 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11708 library_names_spec='$libname.ixlibrary $libname.a'
11709 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11710 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'
11716 library_names_spec='${libname}${shared_ext}'
11717 dynamic_linker="$host_os ld.so"
11718 shlibpath_var=LIBRARY_PATH
11724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11725 soname_spec='${libname}${release}${shared_ext}$major'
11726 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11727 shlibpath_var=LD_LIBRARY_PATH
11728 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11729 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11730 # the default ld.so.conf also contains /usr/contrib/lib and
11731 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11732 # libtool to hard-code these into programs
11735 cygwin* | mingw* | pw32* | cegcc*)
11736 version_type=windows
11741 case $GCC,$host_os in
11742 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11743 library_names_spec='$libname.dll.a'
11744 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11745 postinstall_cmds='base_file=`basename \${file}`~
11746 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11747 dldir=$destdir/`dirname \$dlpath`~
11748 test -d \$dldir || mkdir -p \$dldir~
11749 $install_prog $dir/$dlname \$dldir/$dlname~
11750 chmod a+x \$dldir/$dlname~
11751 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11752 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11754 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11755 dlpath=$dir/\$dldll~
11757 shlibpath_overrides_runpath=yes
11761 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11762 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11763 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11766 # MinGW DLLs use traditional 'lib' prefix
11767 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11768 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11769 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11770 # It is most probably a Windows format PATH printed by
11771 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11772 # path with ; separators, and with drive letters. We can handle the
11773 # drive letters (cygwin fileutils understands them), so leave them,
11774 # especially as we might pass files found there to a mingw objdump,
11775 # which wouldn't understand a cygwinified path. Ahh.
11776 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11778 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11782 # pw32 DLLs use 'pw' prefix rather than 'lib'
11783 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11789 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11792 dynamic_linker='Win32 ld.exe'
11793 # FIXME: first we should search . and the directory the executable is in
11797 darwin* | rhapsody*)
11798 dynamic_linker="$host_os dyld"
11799 version_type=darwin
11802 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11803 soname_spec='${libname}${release}${major}$shared_ext'
11804 shlibpath_overrides_runpath=yes
11805 shlibpath_var=DYLD_LIBRARY_PATH
11806 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11808 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11809 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11817 soname_spec='${libname}${release}${shared_ext}$major'
11818 shlibpath_var=LD_LIBRARY_PATH
11825 freebsd* | dragonfly*)
11826 # DragonFly does not have aout. When/if they implement a new
11827 # versioning mechanism, adjust this.
11828 if test -x /usr/bin/objformat; then
11829 objformat=`/usr/bin/objformat`
11832 freebsd[123]*) objformat=aout ;;
11833 *) objformat=elf ;;
11836 version_type=freebsd-$objformat
11837 case $version_type in
11839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11844 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11848 shlibpath_var=LD_LIBRARY_PATH
11851 shlibpath_overrides_runpath=yes
11853 freebsd3.[01]* | freebsdelf3.[01]*)
11854 shlibpath_overrides_runpath=yes
11855 hardcode_into_libs=yes
11857 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11858 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11859 shlibpath_overrides_runpath=no
11860 hardcode_into_libs=yes
11862 *) # from 4.6 on, and DragonFly
11863 shlibpath_overrides_runpath=yes
11864 hardcode_into_libs=yes
11873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11874 soname_spec='${libname}${release}${shared_ext}$major'
11875 shlibpath_var=LD_LIBRARY_PATH
11876 hardcode_into_libs=yes
11879 hpux9* | hpux10* | hpux11*)
11880 # Give a soname corresponding to the major version so that dld.sl refuses to
11881 # link against other versions.
11888 hardcode_into_libs=yes
11889 dynamic_linker="$host_os dld.so"
11890 shlibpath_var=LD_LIBRARY_PATH
11891 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11893 soname_spec='${libname}${release}${shared_ext}$major'
11894 if test "X$HPUX_IA64_MODE" = X32; then
11895 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11897 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11899 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11903 hardcode_into_libs=yes
11904 dynamic_linker="$host_os dld.sl"
11905 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11906 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11908 soname_spec='${libname}${release}${shared_ext}$major'
11909 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11910 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11914 dynamic_linker="$host_os dld.sl"
11915 shlibpath_var=SHLIB_PATH
11916 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11918 soname_spec='${libname}${release}${shared_ext}$major'
11921 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11922 postinstall_cmds='chmod 555 $lib'
11929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11930 soname_spec='${libname}${release}${shared_ext}$major'
11931 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11932 shlibpath_var=LD_LIBRARY_PATH
11933 shlibpath_overrides_runpath=no
11934 hardcode_into_libs=yes
11937 irix5* | irix6* | nonstopux*)
11939 nonstopux*) version_type=nonstopux ;;
11941 if test "$lt_cv_prog_gnu_ld" = yes; then
11949 soname_spec='${libname}${release}${shared_ext}$major'
11950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11952 irix5* | nonstopux*)
11953 libsuff= shlibsuff=
11956 case $LD in # libtool.m4 will add one of these switches to LD
11957 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11958 libsuff= shlibsuff= libmagic=32-bit;;
11959 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11960 libsuff=32 shlibsuff=N32 libmagic=N32;;
11961 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11962 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11963 *) libsuff= shlibsuff= libmagic=never-match;;
11967 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11968 shlibpath_overrides_runpath=no
11969 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11970 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11971 hardcode_into_libs=yes
11974 # No shared lib support for Linux oldld, aout, or coff.
11975 linux*oldld* | linux*aout* | linux*coff*)
11979 # This must be Linux ELF.
11980 linux* | k*bsd*-gnu)
11984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11985 soname_spec='${libname}${release}${shared_ext}$major'
11986 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11987 shlibpath_var=LD_LIBRARY_PATH
11988 shlibpath_overrides_runpath=no
11989 # Some binutils ld are patched to set DT_RUNPATH
11990 save_LDFLAGS=$LDFLAGS
11991 save_libdir=$libdir
11992 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11993 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11995 /* end confdefs.h. */
12005 if ac_fn_c_try_link "$LINENO"; then :
12006 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12007 shlibpath_overrides_runpath=yes
12010 rm -f core conftest.err conftest.$ac_objext \
12011 conftest$ac_exeext conftest.$ac_ext
12012 LDFLAGS=$save_LDFLAGS
12013 libdir=$save_libdir
12015 # This implies no fast_install, which is unacceptable.
12016 # Some rework will be needed to allow for fast_install
12017 # before this can be enabled.
12018 hardcode_into_libs=yes
12020 # Append ld.so.conf contents to the search path
12021 if test -f /etc/ld.so.conf; then
12022 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12023 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12026 # We used to test for /lib/ld.so.1 and disable shared libraries on
12027 # powerpc, because MkLinux only supported shared libraries with the
12028 # GNU dynamic linker. Since this was broken with cross compilers,
12029 # most powerpc-linux boxes support dynamic linking these days and
12030 # people can always --disable-shared, the test was removed, and we
12031 # assume the GNU/Linux dynamic linker is in use.
12032 dynamic_linker='GNU/Linux ld.so'
12039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12040 soname_spec='${libname}${release}${shared_ext}$major'
12041 shlibpath_var=LD_LIBRARY_PATH
12042 shlibpath_overrides_runpath=no
12043 hardcode_into_libs=yes
12044 dynamic_linker='NetBSD ld.elf_so'
12051 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12053 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12054 dynamic_linker='NetBSD (a.out) ld.so'
12056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12057 soname_spec='${libname}${release}${shared_ext}$major'
12058 dynamic_linker='NetBSD ld.elf_so'
12060 shlibpath_var=LD_LIBRARY_PATH
12061 shlibpath_overrides_runpath=yes
12062 hardcode_into_libs=yes
12067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12068 shlibpath_var=LD_LIBRARY_PATH
12069 shlibpath_overrides_runpath=yes
12076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12077 soname_spec='${libname}${release}${shared_ext}$major'
12078 shlibpath_var=LD_LIBRARY_PATH
12079 shlibpath_overrides_runpath=no
12080 hardcode_into_libs=yes
12081 dynamic_linker='ldqnx.so'
12086 sys_lib_dlsearch_path_spec="/usr/lib"
12088 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12090 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12091 *) need_version=no ;;
12093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12094 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12095 shlibpath_var=LD_LIBRARY_PATH
12096 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12098 openbsd2.[89] | openbsd2.[89].*)
12099 shlibpath_overrides_runpath=no
12102 shlibpath_overrides_runpath=yes
12106 shlibpath_overrides_runpath=yes
12111 libname_spec='$name'
12114 library_names_spec='$libname${shared_ext} $libname.a'
12115 dynamic_linker='OS/2 ld.exe'
12116 shlibpath_var=LIBPATH
12119 osf3* | osf4* | osf5*)
12123 soname_spec='${libname}${release}${shared_ext}$major'
12124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12125 shlibpath_var=LD_LIBRARY_PATH
12126 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12127 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12139 soname_spec='${libname}${release}${shared_ext}$major'
12140 shlibpath_var=LD_LIBRARY_PATH
12141 shlibpath_overrides_runpath=yes
12142 hardcode_into_libs=yes
12143 # ldd complains unless libraries are executable
12144 postinstall_cmds='chmod +x $lib'
12149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12150 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12151 shlibpath_var=LD_LIBRARY_PATH
12152 shlibpath_overrides_runpath=yes
12153 if test "$with_gnu_ld" = yes; then
12161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12162 soname_spec='${libname}${release}${shared_ext}$major'
12163 shlibpath_var=LD_LIBRARY_PATH
12164 case $host_vendor in
12166 shlibpath_overrides_runpath=no
12168 runpath_var=LD_RUN_PATH
12176 shlibpath_overrides_runpath=no
12177 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12183 if test -d /usr/nec ;then
12185 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12186 soname_spec='$libname${shared_ext}.$major'
12187 shlibpath_var=LD_LIBRARY_PATH
12191 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12192 version_type=freebsd-elf
12195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12196 soname_spec='${libname}${release}${shared_ext}$major'
12197 shlibpath_var=LD_LIBRARY_PATH
12198 shlibpath_overrides_runpath=yes
12199 hardcode_into_libs=yes
12200 if test "$with_gnu_ld" = yes; then
12201 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12203 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12206 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12210 sys_lib_dlsearch_path_spec='/usr/lib'
12214 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12219 shlibpath_var=LD_LIBRARY_PATH
12220 shlibpath_overrides_runpath=no
12221 hardcode_into_libs=yes
12226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12227 soname_spec='${libname}${release}${shared_ext}$major'
12228 shlibpath_var=LD_LIBRARY_PATH
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12236 $as_echo "$dynamic_linker" >&6; }
12237 test "$dynamic_linker" = no && can_build_shared=no
12239 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12240 if test "$GCC" = yes; then
12241 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12244 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12245 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12247 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12248 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12338 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12340 if test -n "$hardcode_libdir_flag_spec" ||
12341 test -n "$runpath_var" ||
12342 test "X$hardcode_automatic" = "Xyes" ; then
12344 # We can hardcode non-existent directories.
12345 if test "$hardcode_direct" != no &&
12346 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12347 # have to relink, otherwise we might link with an installed library
12348 # when we should be linking with a yet-to-be-installed one
12349 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12350 test "$hardcode_minus_L" != no; then
12351 # Linking always hardcodes the temporary library directory.
12352 hardcode_action=relink
12354 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12355 hardcode_action=immediate
12358 # We cannot hardcode anything, or else we can only hardcode existing
12360 hardcode_action=unsupported
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12363 $as_echo "$hardcode_action" >&6; }
12365 if test "$hardcode_action" = relink ||
12366 test "$inherit_rpath" = yes; then
12367 # Fast installation is not supported
12368 enable_fast_install=no
12369 elif test "$shlibpath_overrides_runpath" = yes ||
12370 test "$enable_shared" = no; then
12371 # Fast installation is not necessary
12372 enable_fast_install=needless
12380 if test "x$enable_dlopen" != xyes; then
12381 enable_dlopen=unknown
12382 enable_dlopen_self=unknown
12383 enable_dlopen_self_static=unknown
12390 lt_cv_dlopen="load_add_on"
12392 lt_cv_dlopen_self=yes
12395 mingw* | pw32* | cegcc*)
12396 lt_cv_dlopen="LoadLibrary"
12401 lt_cv_dlopen="dlopen"
12406 # if libdl is installed we need to link against it
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12408 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12409 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12410 $as_echo_n "(cached) " >&6
12412 ac_check_lib_save_LIBS=$LIBS
12414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12415 /* end confdefs.h. */
12417 /* Override any GCC internal prototype to avoid an error.
12418 Use char because int might match the return type of a GCC
12419 builtin and then its argument prototype would still apply. */
12432 if ac_fn_c_try_link "$LINENO"; then :
12433 ac_cv_lib_dl_dlopen=yes
12435 ac_cv_lib_dl_dlopen=no
12437 rm -f core conftest.err conftest.$ac_objext \
12438 conftest$ac_exeext conftest.$ac_ext
12439 LIBS=$ac_check_lib_save_LIBS
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12442 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12443 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12444 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12447 lt_cv_dlopen="dyld"
12449 lt_cv_dlopen_self=yes
12456 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12457 if test "x$ac_cv_func_shl_load" = x""yes; then :
12458 lt_cv_dlopen="shl_load"
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12461 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12462 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12463 $as_echo_n "(cached) " >&6
12465 ac_check_lib_save_LIBS=$LIBS
12467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12468 /* end confdefs.h. */
12470 /* Override any GCC internal prototype to avoid an error.
12471 Use char because int might match the return type of a GCC
12472 builtin and then its argument prototype would still apply. */
12480 return shl_load ();
12485 if ac_fn_c_try_link "$LINENO"; then :
12486 ac_cv_lib_dld_shl_load=yes
12488 ac_cv_lib_dld_shl_load=no
12490 rm -f core conftest.err conftest.$ac_objext \
12491 conftest$ac_exeext conftest.$ac_ext
12492 LIBS=$ac_check_lib_save_LIBS
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12495 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12496 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
12497 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12499 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12500 if test "x$ac_cv_func_dlopen" = x""yes; then :
12501 lt_cv_dlopen="dlopen"
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12504 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12505 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12506 $as_echo_n "(cached) " >&6
12508 ac_check_lib_save_LIBS=$LIBS
12510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12511 /* end confdefs.h. */
12513 /* Override any GCC internal prototype to avoid an error.
12514 Use char because int might match the return type of a GCC
12515 builtin and then its argument prototype would still apply. */
12528 if ac_fn_c_try_link "$LINENO"; then :
12529 ac_cv_lib_dl_dlopen=yes
12531 ac_cv_lib_dl_dlopen=no
12533 rm -f core conftest.err conftest.$ac_objext \
12534 conftest$ac_exeext conftest.$ac_ext
12535 LIBS=$ac_check_lib_save_LIBS
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12538 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12539 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12540 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12543 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12544 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12545 $as_echo_n "(cached) " >&6
12547 ac_check_lib_save_LIBS=$LIBS
12548 LIBS="-lsvld $LIBS"
12549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12550 /* end confdefs.h. */
12552 /* Override any GCC internal prototype to avoid an error.
12553 Use char because int might match the return type of a GCC
12554 builtin and then its argument prototype would still apply. */
12567 if ac_fn_c_try_link "$LINENO"; then :
12568 ac_cv_lib_svld_dlopen=yes
12570 ac_cv_lib_svld_dlopen=no
12572 rm -f core conftest.err conftest.$ac_objext \
12573 conftest$ac_exeext conftest.$ac_ext
12574 LIBS=$ac_check_lib_save_LIBS
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12577 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12578 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12579 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12582 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12583 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12584 $as_echo_n "(cached) " >&6
12586 ac_check_lib_save_LIBS=$LIBS
12588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12589 /* end confdefs.h. */
12591 /* Override any GCC internal prototype to avoid an error.
12592 Use char because int might match the return type of a GCC
12593 builtin and then its argument prototype would still apply. */
12601 return dld_link ();
12606 if ac_fn_c_try_link "$LINENO"; then :
12607 ac_cv_lib_dld_dld_link=yes
12609 ac_cv_lib_dld_dld_link=no
12611 rm -f core conftest.err conftest.$ac_objext \
12612 conftest$ac_exeext conftest.$ac_ext
12613 LIBS=$ac_check_lib_save_LIBS
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12616 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12617 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12618 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12639 if test "x$lt_cv_dlopen" != xno; then
12645 case $lt_cv_dlopen in
12647 save_CPPFLAGS="$CPPFLAGS"
12648 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12650 save_LDFLAGS="$LDFLAGS"
12651 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12654 LIBS="$lt_cv_dlopen_libs $LIBS"
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12657 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12658 if test "${lt_cv_dlopen_self+set}" = set; then :
12659 $as_echo_n "(cached) " >&6
12661 if test "$cross_compiling" = yes; then :
12662 lt_cv_dlopen_self=cross
12664 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12665 lt_status=$lt_dlunknown
12666 cat > conftest.$ac_ext <<_LT_EOF
12667 #line 12667 "configure"
12668 #include "confdefs.h"
12677 # define LT_DLGLOBAL RTLD_GLOBAL
12680 # define LT_DLGLOBAL DL_GLOBAL
12682 # define LT_DLGLOBAL 0
12686 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12687 find out it does not work in some platform. */
12688 #ifndef LT_DLLAZY_OR_NOW
12690 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12693 # define LT_DLLAZY_OR_NOW DL_LAZY
12696 # define LT_DLLAZY_OR_NOW RTLD_NOW
12699 # define LT_DLLAZY_OR_NOW DL_NOW
12701 # define LT_DLLAZY_OR_NOW 0
12708 void fnord() { int i=42;}
12711 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12712 int status = $lt_dlunknown;
12716 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12717 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12718 /* dlclose (self); */
12726 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12727 (eval $ac_link) 2>&5
12729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12730 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12731 (./conftest; exit; ) >&5 2>/dev/null
12733 case x$lt_status in
12734 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12735 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12736 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12739 # compilation failed
12740 lt_cv_dlopen_self=no
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12748 $as_echo "$lt_cv_dlopen_self" >&6; }
12750 if test "x$lt_cv_dlopen_self" = xyes; then
12751 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12753 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12754 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12755 $as_echo_n "(cached) " >&6
12757 if test "$cross_compiling" = yes; then :
12758 lt_cv_dlopen_self_static=cross
12760 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12761 lt_status=$lt_dlunknown
12762 cat > conftest.$ac_ext <<_LT_EOF
12763 #line 12763 "configure"
12764 #include "confdefs.h"
12773 # define LT_DLGLOBAL RTLD_GLOBAL
12776 # define LT_DLGLOBAL DL_GLOBAL
12778 # define LT_DLGLOBAL 0
12782 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12783 find out it does not work in some platform. */
12784 #ifndef LT_DLLAZY_OR_NOW
12786 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12789 # define LT_DLLAZY_OR_NOW DL_LAZY
12792 # define LT_DLLAZY_OR_NOW RTLD_NOW
12795 # define LT_DLLAZY_OR_NOW DL_NOW
12797 # define LT_DLLAZY_OR_NOW 0
12804 void fnord() { int i=42;}
12807 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12808 int status = $lt_dlunknown;
12812 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12813 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12814 /* dlclose (self); */
12822 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12823 (eval $ac_link) 2>&5
12825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12826 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12827 (./conftest; exit; ) >&5 2>/dev/null
12829 case x$lt_status in
12830 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12831 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12832 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12835 # compilation failed
12836 lt_cv_dlopen_self_static=no
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12844 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12847 CPPFLAGS="$save_CPPFLAGS"
12848 LDFLAGS="$save_LDFLAGS"
12853 case $lt_cv_dlopen_self in
12854 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12855 *) enable_dlopen_self=unknown ;;
12858 case $lt_cv_dlopen_self_static in
12859 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12860 *) enable_dlopen_self_static=unknown ;;
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12883 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12884 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12885 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12886 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12888 $as_echo "yes" >&6; }
12890 # FIXME - insert some real tests, host_os isn't really good enough
12893 if test -n "$STRIP" ; then
12894 striplib="$STRIP -x"
12895 old_striplib="$STRIP -S"
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12897 $as_echo "yes" >&6; }
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12900 $as_echo "no" >&6; }
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12905 $as_echo "no" >&6; }
12921 # Report which library types will actually be built
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12923 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12925 $as_echo "$can_build_shared" >&6; }
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12928 $as_echo_n "checking whether to build shared libraries... " >&6; }
12929 test "$can_build_shared" = "no" && enable_shared=no
12931 # On AIX, shared libraries and static libraries use the same namespace, and
12932 # are all built from PIC.
12935 test "$enable_shared" = yes && enable_static=no
12936 if test -n "$RANLIB"; then
12937 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12938 postinstall_cmds='$RANLIB $lib'
12943 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12944 test "$enable_shared" = yes && enable_static=no
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12949 $as_echo "$enable_shared" >&6; }
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12952 $as_echo_n "checking whether to build static libraries... " >&6; }
12953 # Make sure either enable_shared or enable_static is yes.
12954 test "$enable_shared" = yes || enable_static=yes
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12956 $as_echo "$enable_static" >&6; }
12963 ac_cpp='$CPP $CPPFLAGS'
12964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12972 ac_cpp='$CXXCPP $CPPFLAGS'
12973 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12974 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12975 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12977 archive_cmds_need_lc_CXX=no
12978 allow_undefined_flag_CXX=
12979 always_export_symbols_CXX=no
12980 archive_expsym_cmds_CXX=
12981 compiler_needs_object_CXX=no
12982 export_dynamic_flag_spec_CXX=
12983 hardcode_direct_CXX=no
12984 hardcode_direct_absolute_CXX=no
12985 hardcode_libdir_flag_spec_CXX=
12986 hardcode_libdir_flag_spec_ld_CXX=
12987 hardcode_libdir_separator_CXX=
12988 hardcode_minus_L_CXX=no
12989 hardcode_shlibpath_var_CXX=unsupported
12990 hardcode_automatic_CXX=no
12991 inherit_rpath_CXX=no
12993 module_expsym_cmds_CXX=
12994 link_all_deplibs_CXX=unknown
12995 old_archive_cmds_CXX=$old_archive_cmds
12996 no_undefined_flag_CXX=
12997 whole_archive_flag_spec_CXX=
12998 enable_shared_with_static_runtimes_CXX=no
13000 # Source file extension for C++ test sources.
13003 # Object file extension for compiled C++ test sources.
13007 # No sense in running all these tests if we already determined that
13008 # the CXX compiler isn't working. Some variables (like enable_shared)
13009 # are currently assumed to apply to all compilers on this platform,
13010 # and will be corrupted by setting them based on a non-working compiler.
13011 if test "$_lt_caught_CXX_error" != yes; then
13012 # Code to be used in simple compile tests
13013 lt_simple_compile_test_code="int some_variable = 0;"
13015 # Code to be used in simple link tests
13016 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13018 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13025 # If no C compiler was specified, use CC.
13028 # If no C compiler flags were specified, use CFLAGS.
13029 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13031 # Allow CC to be a program name with arguments.
13035 # save warnings/boilerplate of simple test code
13036 ac_outfile=conftest.$ac_objext
13037 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13038 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13039 _lt_compiler_boilerplate=`cat conftest.err`
13042 ac_outfile=conftest.$ac_objext
13043 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13044 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13045 _lt_linker_boilerplate=`cat conftest.err`
13049 # Allow CC to be a program name with arguments.
13054 lt_save_with_gnu_ld=$with_gnu_ld
13055 lt_save_path_LD=$lt_cv_path_LD
13056 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13057 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13059 $as_unset lt_cv_prog_gnu_ld
13061 if test -n "${lt_cv_path_LDCXX+set}"; then
13062 lt_cv_path_LD=$lt_cv_path_LDCXX
13064 $as_unset lt_cv_path_LD
13066 test -z "${LDCXX+set}" || LD=$LDCXX
13070 for cc_temp in $compiler""; do
13072 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13073 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13078 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13081 if test -n "$compiler"; then
13082 # We don't want -fno-exception when compiling C++ code, so set the
13083 # no_builtin_flag separately
13084 if test "$GXX" = yes; then
13085 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13087 lt_prog_compiler_no_builtin_flag_CXX=
13090 if test "$GXX" = yes; then
13091 # Set up default GNU C++ configuration
13095 # Check whether --with-gnu-ld was given.
13096 if test "${with_gnu_ld+set}" = set; then :
13097 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13103 if test "$GCC" = yes; then
13104 # Check if gcc -print-prog-name=ld gives a path.
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13106 $as_echo_n "checking for ld used by $CC... " >&6; }
13109 # gcc leaves a trailing carriage return which upsets mingw
13110 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13112 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13115 # Accept absolute paths.
13117 re_direlt='/[^/][^/]*/\.\./'
13118 # Canonicalize the pathname of ld
13119 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13120 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13121 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13123 test -z "$LD" && LD="$ac_prog"
13126 # If it fails, then pretend we aren't using GCC.
13130 # If it is relative, then search for the first ld in PATH.
13131 with_gnu_ld=unknown
13134 elif test "$with_gnu_ld" = yes; then
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13136 $as_echo_n "checking for GNU ld... " >&6; }
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13139 $as_echo_n "checking for non-GNU ld... " >&6; }
13141 if test "${lt_cv_path_LD+set}" = set; then :
13142 $as_echo_n "(cached) " >&6
13144 if test -z "$LD"; then
13145 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13146 for ac_dir in $PATH; do
13148 test -z "$ac_dir" && ac_dir=.
13149 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13150 lt_cv_path_LD="$ac_dir/$ac_prog"
13151 # Check to see if the program is GNU ld. I'd rather use --version,
13152 # but apparently some variants of GNU ld only accept -v.
13153 # Break only if it was the GNU/non-GNU ld that we prefer.
13154 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13155 *GNU* | *'with BFD'*)
13156 test "$with_gnu_ld" != no && break
13159 test "$with_gnu_ld" != yes && break
13166 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13170 LD="$lt_cv_path_LD"
13171 if test -n "$LD"; then
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13173 $as_echo "$LD" >&6; }
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13176 $as_echo "no" >&6; }
13178 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13180 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13181 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
13182 $as_echo_n "(cached) " >&6
13184 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13185 case `$LD -v 2>&1 </dev/null` in
13186 *GNU* | *'with BFD'*)
13187 lt_cv_prog_gnu_ld=yes
13190 lt_cv_prog_gnu_ld=no
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13195 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13196 with_gnu_ld=$lt_cv_prog_gnu_ld
13204 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13205 # archiving commands below assume that GNU ld is being used.
13206 if test "$with_gnu_ld" = yes; then
13207 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13208 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13210 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13211 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13213 # If archive_cmds runs LD, not CC, wlarc should be empty
13214 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13215 # investigate it a little bit more. (MM)
13218 # ancient GNU ld didn't support --whole-archive et. al.
13219 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13220 $GREP 'no-whole-archive' > /dev/null; then
13221 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13223 whole_archive_flag_spec_CXX=
13229 # A generic and very simple default shared library creation
13230 # command for GNU C++ for the case where it uses the native
13231 # linker, instead of GNU ld. If possible, this setting should
13232 # overridden to take advantage of the native linker features on
13233 # the platform it is being used on.
13234 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13237 # Commands to make compiler produce verbose output that lists
13238 # what "hidden" libraries, object files and flags are used when
13239 # linking a shared library.
13240 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13248 # PORTME: fill in a description of your system's C++ link characteristics
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13250 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13254 # FIXME: insert proper C++ library support
13258 if test "$host_cpu" = ia64; then
13259 # On IA64, the linker does run time linking by default, so we don't
13260 # have to do anything special.
13261 aix_use_runtimelinking=no
13262 exp_sym_flag='-Bexport'
13265 aix_use_runtimelinking=no
13267 # Test if we are trying to use run time linking or normal
13268 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13269 # need to do runtime linking.
13270 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13271 for ld_flag in $LDFLAGS; do
13274 aix_use_runtimelinking=yes
13282 exp_sym_flag='-bexport'
13283 no_entry_flag='-bnoentry'
13286 # When large executables or shared objects are built, AIX ld can
13287 # have problems creating the table of contents. If linking a library
13288 # or program results in "error TOC overflow" add -mminimal-toc to
13289 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13290 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13292 archive_cmds_CXX=''
13293 hardcode_direct_CXX=yes
13294 hardcode_direct_absolute_CXX=yes
13295 hardcode_libdir_separator_CXX=':'
13296 link_all_deplibs_CXX=yes
13297 file_list_spec_CXX='${wl}-f,'
13299 if test "$GXX" = yes; then
13300 case $host_os in aix4.[012]|aix4.[012].*)
13301 # We only want to do this on AIX 4.2 and lower, the check
13302 # below for broken collect2 doesn't work under 4.3+
13303 collect2name=`${CC} -print-prog-name=collect2`
13304 if test -f "$collect2name" &&
13305 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13307 # We have reworked collect2
13310 # We have old collect2
13311 hardcode_direct_CXX=unsupported
13312 # It fails to find uninstalled libraries when the uninstalled
13313 # path is not listed in the libpath. Setting hardcode_minus_L
13314 # to unsupported forces relinking
13315 hardcode_minus_L_CXX=yes
13316 hardcode_libdir_flag_spec_CXX='-L$libdir'
13317 hardcode_libdir_separator_CXX=
13320 shared_flag='-shared'
13321 if test "$aix_use_runtimelinking" = yes; then
13322 shared_flag="$shared_flag "'${wl}-G'
13326 if test "$host_cpu" = ia64; then
13327 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13328 # chokes on -Wl,-G. The following line is correct:
13331 if test "$aix_use_runtimelinking" = yes; then
13332 shared_flag='${wl}-G'
13334 shared_flag='${wl}-bM:SRE'
13339 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13340 # It seems that -bexpall does not export symbols beginning with
13341 # underscore (_), so it is better to generate a list of symbols to
13343 always_export_symbols_CXX=yes
13344 if test "$aix_use_runtimelinking" = yes; then
13345 # Warning - without using the other runtime loading flags (-brtl),
13346 # -berok will link without error, but may produce a broken library.
13347 allow_undefined_flag_CXX='-berok'
13348 # Determine the default libpath from the value encoded in an empty
13350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13351 /* end confdefs.h. */
13361 if ac_fn_cxx_try_link "$LINENO"; then :
13363 lt_aix_libpath_sed='
13364 /Import File Strings/,/^$/ {
13370 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13371 # Check for a 64-bit object if we didn't find anything.
13372 if test -z "$aix_libpath"; then
13373 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13376 rm -f core conftest.err conftest.$ac_objext \
13377 conftest$ac_exeext conftest.$ac_ext
13378 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13380 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13382 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13384 if test "$host_cpu" = ia64; then
13385 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13386 allow_undefined_flag_CXX="-z nodefs"
13387 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
13389 # Determine the default libpath from the value encoded in an
13390 # empty executable.
13391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13392 /* end confdefs.h. */
13402 if ac_fn_cxx_try_link "$LINENO"; then :
13404 lt_aix_libpath_sed='
13405 /Import File Strings/,/^$/ {
13411 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13412 # Check for a 64-bit object if we didn't find anything.
13413 if test -z "$aix_libpath"; then
13414 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13417 rm -f core conftest.err conftest.$ac_objext \
13418 conftest$ac_exeext conftest.$ac_ext
13419 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13421 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13422 # Warning - without using the other run time loading flags,
13423 # -berok will link without error, but may produce a broken library.
13424 no_undefined_flag_CXX=' ${wl}-bernotok'
13425 allow_undefined_flag_CXX=' ${wl}-berok'
13426 # Exported symbols can be pulled into shared objects from archives
13427 whole_archive_flag_spec_CXX='$convenience'
13428 archive_cmds_need_lc_CXX=yes
13429 # This is similar to how AIX traditionally builds its shared
13431 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13437 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13438 allow_undefined_flag_CXX=unsupported
13439 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13440 # support --undefined. This deserves some investigation. FIXME
13441 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13448 case $cc_basename in
13450 # FIXME: insert proper C++ library support
13456 cygwin* | mingw* | pw32* | cegcc*)
13457 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13458 # as there is no search path for DLLs.
13459 hardcode_libdir_flag_spec_CXX='-L$libdir'
13460 allow_undefined_flag_CXX=unsupported
13461 always_export_symbols_CXX=no
13462 enable_shared_with_static_runtimes_CXX=yes
13464 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13465 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13466 # If the export-symbols file already is a .def file (1st line
13467 # is EXPORTS), use it as is; otherwise, prepend...
13468 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13469 cp $export_symbols $output_objdir/$soname.def;
13471 echo EXPORTS > $output_objdir/$soname.def;
13472 cat $export_symbols >> $output_objdir/$soname.def;
13474 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13479 darwin* | rhapsody*)
13482 archive_cmds_need_lc_CXX=no
13483 hardcode_direct_CXX=no
13484 hardcode_automatic_CXX=yes
13485 hardcode_shlibpath_var_CXX=unsupported
13486 whole_archive_flag_spec_CXX=''
13487 link_all_deplibs_CXX=yes
13488 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13489 case $cc_basename in
13490 ifort*) _lt_dar_can_shared=yes ;;
13491 *) _lt_dar_can_shared=$GCC ;;
13493 if test "$_lt_dar_can_shared" = "yes"; then
13494 output_verbose_link_cmd=echo
13495 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13496 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13497 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13498 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
13499 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13500 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13501 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13511 case $cc_basename in
13513 # FIXME: insert proper C++ library support
13517 # Green Hills C++ Compiler
13518 # FIXME: insert proper C++ library support
13522 # FIXME: insert proper C++ library support
13529 # C++ shared libraries reported to be fairly broken before
13535 archive_cmds_need_lc_CXX=no
13538 freebsd* | dragonfly*)
13539 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13548 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13549 hardcode_libdir_separator_CXX=:
13550 export_dynamic_flag_spec_CXX='${wl}-E'
13551 hardcode_direct_CXX=yes
13552 hardcode_minus_L_CXX=yes # Not in the search PATH,
13553 # but as the default
13554 # location of the library.
13556 case $cc_basename in
13558 # FIXME: insert proper C++ library support
13562 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13563 # Commands to make compiler produce verbose output that lists
13564 # what "hidden" libraries, object files and flags are used when
13565 # linking a shared library.
13567 # There doesn't appear to be a way to prevent this compiler from
13568 # explicitly linking system object files so we need to strip them
13569 # from the output so that they don't get included in the library
13571 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 "X$list" | $Xsed'
13574 if test "$GXX" = yes; then
13575 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13577 # FIXME: insert proper C++ library support
13585 if test $with_gnu_ld = no; then
13586 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13587 hardcode_libdir_separator_CXX=:
13593 export_dynamic_flag_spec_CXX='${wl}-E'
13599 hardcode_direct_CXX=no
13600 hardcode_shlibpath_var_CXX=no
13603 hardcode_direct_CXX=yes
13604 hardcode_direct_absolute_CXX=yes
13605 hardcode_minus_L_CXX=yes # Not in the search PATH,
13606 # but as the default
13607 # location of the library.
13611 case $cc_basename in
13613 # FIXME: insert proper C++ library support
13619 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13622 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13625 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13628 # Commands to make compiler produce verbose output that lists
13629 # what "hidden" libraries, object files and flags are used when
13630 # linking a shared library.
13632 # There doesn't appear to be a way to prevent this compiler from
13633 # explicitly linking system object files so we need to strip them
13634 # from the output so that they don't get included in the library
13636 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 "X$list" | $Xsed'
13639 if test "$GXX" = yes; then
13640 if test $with_gnu_ld = no; then
13643 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13646 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13649 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13654 # FIXME: insert proper C++ library support
13662 hardcode_direct_CXX=no
13663 hardcode_shlibpath_var_CXX=no
13664 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13665 export_dynamic_flag_spec_CXX='${wl}-E'
13666 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13667 # Instead, shared libraries are loaded at an image base (0x10000000 by
13668 # default) and relocated if they conflict, which is a slow very memory
13669 # consuming and fragmenting process. To avoid this, we pick a random,
13670 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13671 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13672 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13673 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13676 case $cc_basename in
13679 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13681 # Archives containing C++ object files must be created using
13682 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13683 # necessary to make sure instantiated templates are included
13685 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13688 if test "$GXX" = yes; then
13689 if test "$with_gnu_ld" = no; then
13690 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13692 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
13695 link_all_deplibs_CXX=yes
13698 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13699 hardcode_libdir_separator_CXX=:
13700 inherit_rpath_CXX=yes
13703 linux* | k*bsd*-gnu)
13704 case $cc_basename in
13706 # Kuck and Associates, Inc. (KAI) C++ Compiler
13708 # KCC will only create a shared library if the output file
13709 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13710 # to its proper name (with version) after linking.
13711 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13712 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
13713 # Commands to make compiler produce verbose output that lists
13714 # what "hidden" libraries, object files and flags are used when
13715 # linking a shared library.
13717 # There doesn't appear to be a way to prevent this compiler from
13718 # explicitly linking system object files so we need to strip them
13719 # from the output so that they don't get included in the library
13721 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 "X$list" | $Xsed'
13723 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13724 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13726 # Archives containing C++ object files must be created using
13727 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13728 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13733 # version 8.0 and above of icpc choke on multiply defined symbols
13734 # if we add $predep_objects and $postdep_objects, however 7.1 and
13735 # earlier do not add the objects themselves.
13736 case `$CC -V 2>&1` in
13738 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13739 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13741 *) # Version 8.0 or newer
13744 ia64*) tmp_idyn=' -i_dynamic';;
13746 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13747 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13750 archive_cmds_need_lc_CXX=no
13751 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13752 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13753 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13756 # Portland Group C++ compiler
13758 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13759 prelink_cmds_CXX='tpldir=Template.dir~
13761 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13762 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13763 old_archive_cmds_CXX='tpldir=Template.dir~
13765 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13766 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13768 archive_cmds_CXX='tpldir=Template.dir~
13770 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13771 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13772 archive_expsym_cmds_CXX='tpldir=Template.dir~
13774 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13775 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13777 *) # Version 6 will use weak symbols
13778 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13779 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13783 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13784 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13785 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13789 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13790 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13792 runpath_var=LD_RUN_PATH
13793 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13794 hardcode_libdir_separator_CXX=:
13796 # Commands to make compiler produce verbose output that lists
13797 # what "hidden" libraries, object files and flags are used when
13798 # linking a shared library.
13800 # There doesn't appear to be a way to prevent this compiler from
13801 # explicitly linking system object files so we need to strip them
13802 # from the output so that they don't get included in the library
13804 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
13807 # IBM XL 8.0 on PPC, with GNU ld
13808 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13809 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13810 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13811 if test "x$supports_anon_versioning" = xyes; then
13812 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13813 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13814 echo "local: *; };" >> $output_objdir/$libname.ver~
13815 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13819 case `$CC -V 2>&1 | sed 5q` in
13822 no_undefined_flag_CXX=' -zdefs'
13823 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13824 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13825 hardcode_libdir_flag_spec_CXX='-R$libdir'
13826 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13827 compiler_needs_object_CXX=yes
13829 # Not sure whether something based on
13830 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13832 output_verbose_link_cmd='echo'
13834 # Archives containing C++ object files must be created using
13835 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13836 # necessary to make sure instantiated templates are included
13838 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13846 # FIXME: insert proper C++ library support
13851 # FIXME: insert proper C++ library support
13856 case $cc_basename in
13858 # FIXME: insert proper C++ library support
13862 # FIXME: insert proper C++ library support
13869 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13870 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13872 hardcode_libdir_flag_spec_CXX='-R$libdir'
13873 hardcode_direct_CXX=yes
13874 hardcode_shlibpath_var_CXX=no
13876 # Workaround some broken pre-1.5 toolchains
13877 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13885 # C++ shared libraries are fairly broken
13890 if test -f /usr/libexec/ld.so; then
13891 hardcode_direct_CXX=yes
13892 hardcode_shlibpath_var_CXX=no
13893 hardcode_direct_absolute_CXX=yes
13894 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13895 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13896 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13897 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13898 export_dynamic_flag_spec_CXX='${wl}-E'
13899 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13901 output_verbose_link_cmd=echo
13907 osf3* | osf4* | osf5*)
13908 case $cc_basename in
13910 # Kuck and Associates, Inc. (KAI) C++ Compiler
13912 # KCC will only create a shared library if the output file
13913 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13914 # to its proper name (with version) after linking.
13915 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13917 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13918 hardcode_libdir_separator_CXX=:
13920 # Archives containing C++ object files must be created using
13921 # the KAI C++ compiler.
13923 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13924 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13928 # Rational C++ 2.4.1
13929 # FIXME: insert proper C++ library support
13935 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13936 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13937 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13940 allow_undefined_flag_CXX=' -expect_unresolved \*'
13941 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13942 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13943 echo "-hidden">> $lib.exp~
13944 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
13946 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13950 hardcode_libdir_separator_CXX=:
13952 # Commands to make compiler produce verbose output that lists
13953 # what "hidden" libraries, object files and flags are used when
13954 # linking a shared library.
13956 # There doesn't appear to be a way to prevent this compiler from
13957 # explicitly linking system object files so we need to strip them
13958 # from the output so that they don't get included in the library
13960 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
13963 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13964 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13967 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13970 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13974 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13975 hardcode_libdir_separator_CXX=:
13977 # Commands to make compiler produce verbose output that lists
13978 # what "hidden" libraries, object files and flags are used when
13979 # linking a shared library.
13980 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13983 # FIXME: insert proper C++ library support
13991 # FIXME: insert proper C++ library support
13996 case $cc_basename in
13999 # FIXME: insert proper C++ library support
14004 # FIXME: insert proper C++ library support
14008 # FIXME: insert proper C++ library support
14015 case $cc_basename in
14017 # Sun C++ 4.2, 5.x and Centerline C++
14018 archive_cmds_need_lc_CXX=yes
14019 no_undefined_flag_CXX=' -zdefs'
14020 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14021 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14022 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14024 hardcode_libdir_flag_spec_CXX='-R$libdir'
14025 hardcode_shlibpath_var_CXX=no
14027 solaris2.[0-5] | solaris2.[0-5].*) ;;
14029 # The compiler driver will combine and reorder linker options,
14030 # but understands `-z linker_flag'.
14031 # Supported since Solaris 2.6 (maybe 2.5.1?)
14032 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14035 link_all_deplibs_CXX=yes
14037 output_verbose_link_cmd='echo'
14039 # Archives containing C++ object files must be created using
14040 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14041 # necessary to make sure instantiated templates are included
14043 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14046 # Green Hills C++ Compiler
14047 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14049 # The C++ compiler must be used to create the archive.
14050 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14053 # GNU C++ compiler with Solaris linker
14054 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14055 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14056 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14057 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14058 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14059 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14061 # Commands to make compiler produce verbose output that lists
14062 # what "hidden" libraries, object files and flags are used when
14063 # linking a shared library.
14064 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14066 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14068 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14069 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14070 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14072 # Commands to make compiler produce verbose output that lists
14073 # what "hidden" libraries, object files and flags are used when
14074 # linking a shared library.
14075 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14078 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14080 solaris2.[0-5] | solaris2.[0-5].*) ;;
14082 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14090 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14091 no_undefined_flag_CXX='${wl}-z,text'
14092 archive_cmds_need_lc_CXX=no
14093 hardcode_shlibpath_var_CXX=no
14094 runpath_var='LD_RUN_PATH'
14096 case $cc_basename in
14098 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14099 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14102 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14103 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14108 sysv5* | sco3.2v5* | sco5v6*)
14109 # Note: We can NOT use -z defs as we might desire, because we do not
14110 # link with -lc, and that would cause any symbols used from libc to
14111 # always be unresolved, which means just about no library would
14112 # ever link correctly. If we're not using GNU ld we use -z text
14113 # though, which does catch some bad symbols but isn't as heavy-handed
14115 no_undefined_flag_CXX='${wl}-z,text'
14116 allow_undefined_flag_CXX='${wl}-z,nodefs'
14117 archive_cmds_need_lc_CXX=no
14118 hardcode_shlibpath_var_CXX=no
14119 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14120 hardcode_libdir_separator_CXX=':'
14121 link_all_deplibs_CXX=yes
14122 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14123 runpath_var='LD_RUN_PATH'
14125 case $cc_basename in
14127 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14128 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14131 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14132 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14138 case $cc_basename in
14140 # NonStop-UX NCC 3.20
14141 # FIXME: insert proper C++ library support
14145 # FIXME: insert proper C++ library support
14152 # FIXME: insert proper C++ library support
14157 # FIXME: insert proper C++ library support
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14163 $as_echo "$ld_shlibs_CXX" >&6; }
14164 test "$ld_shlibs_CXX" = no && can_build_shared=no
14170 ## There is no encapsulation within the following macros, do not change
14171 ## the running order or otherwise move them around unless you know exactly
14172 ## what you are doing...
14173 # Dependencies to place before and after the object being linked:
14174 predep_objects_CXX=
14175 postdep_objects_CXX=
14178 compiler_lib_search_path_CXX=
14180 cat > conftest.$ac_ext <<_LT_EOF
14184 Foo (void) { a = 0; }
14190 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14191 (eval $ac_compile) 2>&5
14193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14194 test $ac_status = 0; }; then
14195 # Parse the compiler output and extract the necessary
14196 # objects, libraries and library flags.
14198 # Sentinel used to keep track of whether or not we are before
14199 # the conftest object file.
14200 pre_test_object_deps_done=no
14202 for p in `eval "$output_verbose_link_cmd"`; do
14206 # Some compilers place space between "-{L,R}" and the path.
14207 # Remove the space.
14208 if test $p = "-L" ||
14209 test $p = "-R"; then
14216 if test "$pre_test_object_deps_done" = no; then
14219 # Internal compiler library paths should come after those
14220 # provided the user. The postdeps already come after the
14221 # user supplied libs so there is no need to process them.
14222 if test -z "$compiler_lib_search_path_CXX"; then
14223 compiler_lib_search_path_CXX="${prev}${p}"
14225 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14228 # The "-l" case would never come before the object being
14229 # linked, so don't bother handling this case.
14232 if test -z "$postdeps_CXX"; then
14233 postdeps_CXX="${prev}${p}"
14235 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14241 # This assumes that the test object file only shows up
14242 # once in the compiler output.
14243 if test "$p" = "conftest.$objext"; then
14244 pre_test_object_deps_done=yes
14248 if test "$pre_test_object_deps_done" = no; then
14249 if test -z "$predep_objects_CXX"; then
14250 predep_objects_CXX="$p"
14252 predep_objects_CXX="$predep_objects_CXX $p"
14255 if test -z "$postdep_objects_CXX"; then
14256 postdep_objects_CXX="$p"
14258 postdep_objects_CXX="$postdep_objects_CXX $p"
14263 *) ;; # Ignore the rest.
14271 echo "libtool.m4: error: problem compiling CXX test program"
14274 $RM -f confest.$objext
14276 # PORTME: override above test on systems where it is broken
14279 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14280 # hack all around it, let's just trust "g++" to DTRT.
14281 predep_objects_CXX=
14282 postdep_objects_CXX=
14287 case `$CC -V 2>&1 | sed 5q` in
14291 # The more standards-conforming stlport4 library is
14292 # incompatible with the Cstd library. Avoid specifying
14293 # it if it's in CXXFLAGS. Ignore libCrun as
14294 # -library=stlport4 depends on it.
14295 case " $CXX $CXXFLAGS " in
14296 *" -library=stlport4 "*)
14297 solaris_use_stlport4=yes
14301 if test "$solaris_use_stlport4" != yes; then
14302 postdeps_CXX='-library=Cstd -library=Crun'
14309 case $cc_basename in
14311 # The more standards-conforming stlport4 library is
14312 # incompatible with the Cstd library. Avoid specifying
14313 # it if it's in CXXFLAGS. Ignore libCrun as
14314 # -library=stlport4 depends on it.
14315 case " $CXX $CXXFLAGS " in
14316 *" -library=stlport4 "*)
14317 solaris_use_stlport4=yes
14321 # Adding this requires a known-good setup of shared libraries for
14322 # Sun compiler versions before 5.6, else PIC objects from an old
14323 # archive will be linked into the output, leading to subtle bugs.
14324 if test "$solaris_use_stlport4" != yes; then
14325 postdeps_CXX='-library=Cstd -library=Crun'
14333 case " $postdeps_CXX " in
14334 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14336 compiler_lib_search_dirs_CXX=
14337 if test -n "${compiler_lib_search_path_CXX}"; then
14338 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14371 lt_prog_compiler_wl_CXX=
14372 lt_prog_compiler_pic_CXX=
14373 lt_prog_compiler_static_CXX=
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14376 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14378 # C++ specific cases for pic, static, wl, etc.
14379 if test "$GXX" = yes; then
14380 lt_prog_compiler_wl_CXX='-Wl,'
14381 lt_prog_compiler_static_CXX='-static'
14385 # All AIX code is PIC.
14386 if test "$host_cpu" = ia64; then
14387 # AIX 5 now supports IA64 processor
14388 lt_prog_compiler_static_CXX='-Bstatic'
14395 # see comment about AmigaOS4 .so support
14396 lt_prog_compiler_pic_CXX='-fPIC'
14399 # FIXME: we need at least 68020 code to build shared libraries, but
14400 # adding the `-m68020' flag to GCC prevents building anything better,
14402 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14407 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14408 # PIC is the default for these OSes.
14410 mingw* | cygwin* | os2* | pw32* | cegcc*)
14411 # This hack is so that the source file can tell whether it is being
14412 # built for inclusion in a dll (and should export symbols for example).
14413 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14414 # (--disable-auto-import) libraries
14415 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14417 darwin* | rhapsody*)
14418 # PIC is the default on this platform
14419 # Common symbols not allowed in MH_DYLIB files
14420 lt_prog_compiler_pic_CXX='-fno-common'
14423 # DJGPP does not support shared libraries at all
14424 lt_prog_compiler_pic_CXX=
14427 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14428 # Instead, we relocate shared libraries at runtime.
14431 if test -d /usr/nec; then
14432 lt_prog_compiler_pic_CXX=-Kconform_pic
14436 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14437 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14438 # sets the default TLS model and affects inlining.
14443 lt_prog_compiler_pic_CXX='-fPIC'
14448 # QNX uses GNU C++, but need to define -shared option too, otherwise
14449 # it will coredump.
14450 lt_prog_compiler_pic_CXX='-fPIC -shared'
14453 lt_prog_compiler_pic_CXX='-fPIC'
14459 # All AIX code is PIC.
14460 if test "$host_cpu" = ia64; then
14461 # AIX 5 now supports IA64 processor
14462 lt_prog_compiler_static_CXX='-Bstatic'
14464 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14468 case $cc_basename in
14470 # Green Hills C++ Compiler
14471 # _LT_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"
14476 case $cc_basename in
14478 lt_prog_compiler_pic_CXX='-KPIC'
14481 # Green Hills C++ Compiler
14482 lt_prog_compiler_pic_CXX='-pic'
14488 freebsd* | dragonfly*)
14489 # FreeBSD uses GNU C++
14491 hpux9* | hpux10* | hpux11*)
14492 case $cc_basename in
14494 lt_prog_compiler_wl_CXX='-Wl,'
14495 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14496 if test "$host_cpu" != ia64; then
14497 lt_prog_compiler_pic_CXX='+Z'
14501 lt_prog_compiler_wl_CXX='-Wl,'
14502 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14508 lt_prog_compiler_pic_CXX='+Z'
14517 # This is c89, which is MS Visual C++ (no shared libs)
14518 # Anyone wants to do a port?
14520 irix5* | irix6* | nonstopux*)
14521 case $cc_basename in
14523 lt_prog_compiler_wl_CXX='-Wl,'
14524 lt_prog_compiler_static_CXX='-non_shared'
14525 # CC pic flag -KPIC is the default.
14531 linux* | k*bsd*-gnu)
14532 case $cc_basename in
14535 lt_prog_compiler_wl_CXX='--backend -Wl,'
14536 lt_prog_compiler_pic_CXX='-fPIC'
14539 # old Intel C++ for x86_64 which still supported -KPIC.
14540 lt_prog_compiler_wl_CXX='-Wl,'
14541 lt_prog_compiler_pic_CXX='-KPIC'
14542 lt_prog_compiler_static_CXX='-static'
14545 # Intel C++, used to be incompatible with GCC.
14546 # ICC 10 doesn't accept -KPIC any more.
14547 lt_prog_compiler_wl_CXX='-Wl,'
14548 lt_prog_compiler_pic_CXX='-fPIC'
14549 lt_prog_compiler_static_CXX='-static'
14552 # Portland Group C++ compiler
14553 lt_prog_compiler_wl_CXX='-Wl,'
14554 lt_prog_compiler_pic_CXX='-fpic'
14555 lt_prog_compiler_static_CXX='-Bstatic'
14559 # Make sure the PIC flag is empty. It appears that all Alpha
14560 # Linux and Compaq Tru64 Unix objects are PIC.
14561 lt_prog_compiler_pic_CXX=
14562 lt_prog_compiler_static_CXX='-non_shared'
14565 # IBM XL 8.0 on PPC
14566 lt_prog_compiler_wl_CXX='-Wl,'
14567 lt_prog_compiler_pic_CXX='-qpic'
14568 lt_prog_compiler_static_CXX='-qstaticlink'
14571 case `$CC -V 2>&1 | sed 5q` in
14574 lt_prog_compiler_pic_CXX='-KPIC'
14575 lt_prog_compiler_static_CXX='-Bstatic'
14576 lt_prog_compiler_wl_CXX='-Qoption ld '
14587 case $cc_basename in
14589 lt_prog_compiler_pic_CXX='-W c,exportall'
14595 netbsd* | netbsdelf*-gnu)
14598 # QNX uses GNU C++, but need to define -shared option too, otherwise
14599 # it will coredump.
14600 lt_prog_compiler_pic_CXX='-fPIC -shared'
14602 osf3* | osf4* | osf5*)
14603 case $cc_basename in
14605 lt_prog_compiler_wl_CXX='--backend -Wl,'
14608 # Rational C++ 2.4.1
14609 lt_prog_compiler_pic_CXX='-pic'
14612 # Digital/Compaq C++
14613 lt_prog_compiler_wl_CXX='-Wl,'
14614 # Make sure the PIC flag is empty. It appears that all Alpha
14615 # Linux and Compaq Tru64 Unix objects are PIC.
14616 lt_prog_compiler_pic_CXX=
14617 lt_prog_compiler_static_CXX='-non_shared'
14626 case $cc_basename in
14628 # Sun C++ 4.2, 5.x and Centerline C++
14629 lt_prog_compiler_pic_CXX='-KPIC'
14630 lt_prog_compiler_static_CXX='-Bstatic'
14631 lt_prog_compiler_wl_CXX='-Qoption ld '
14634 # Green Hills C++ Compiler
14635 lt_prog_compiler_pic_CXX='-PIC'
14642 case $cc_basename in
14645 lt_prog_compiler_pic_CXX='-pic'
14646 lt_prog_compiler_static_CXX='-Bstatic'
14650 lt_prog_compiler_pic_CXX='-pic'
14656 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14657 case $cc_basename in
14659 lt_prog_compiler_wl_CXX='-Wl,'
14660 lt_prog_compiler_pic_CXX='-KPIC'
14661 lt_prog_compiler_static_CXX='-Bstatic'
14666 case $cc_basename in
14668 # NonStop-UX NCC 3.20
14669 lt_prog_compiler_pic_CXX='-KPIC'
14678 lt_prog_compiler_can_build_shared_CXX=no
14684 # For platforms which do not support PIC, -DPIC is meaningless:
14686 lt_prog_compiler_pic_CXX=
14689 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14693 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14698 # Check to make sure the PIC flag actually works.
14700 if test -n "$lt_prog_compiler_pic_CXX"; then
14701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14702 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14703 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14704 $as_echo_n "(cached) " >&6
14706 lt_cv_prog_compiler_pic_works_CXX=no
14707 ac_outfile=conftest.$ac_objext
14708 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14709 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14710 # Insert the option either (1) after the last *FLAGS variable, or
14711 # (2) before a word containing "conftest.", or (3) at the end.
14712 # Note that $ac_compile itself does not contain backslashes and begins
14713 # with a dollar sign (not a hyphen), so the echo should work correctly.
14714 # The option is referenced via a variable to avoid confusing sed.
14715 lt_compile=`echo "$ac_compile" | $SED \
14716 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14717 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14718 -e 's:$: $lt_compiler_flag:'`
14719 (eval echo "\"\$as_me:14719: $lt_compile\"" >&5)
14720 (eval "$lt_compile" 2>conftest.err)
14722 cat conftest.err >&5
14723 echo "$as_me:14723: \$? = $ac_status" >&5
14724 if (exit $ac_status) && test -s "$ac_outfile"; then
14725 # The compiler can only warn and ignore the option if not recognized
14726 # So say no if there are warnings other than the usual output.
14727 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14728 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14729 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14730 lt_cv_prog_compiler_pic_works_CXX=yes
14736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14737 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14739 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14740 case $lt_prog_compiler_pic_CXX in
14742 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14745 lt_prog_compiler_pic_CXX=
14746 lt_prog_compiler_can_build_shared_CXX=no
14754 # Check to make sure the static flag actually works.
14756 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14758 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14759 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14760 $as_echo_n "(cached) " >&6
14762 lt_cv_prog_compiler_static_works_CXX=no
14763 save_LDFLAGS="$LDFLAGS"
14764 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14765 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14766 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14767 # The linker can only warn and ignore the option if not recognized
14768 # So say no if there are warnings
14769 if test -s conftest.err; then
14770 # Append any errors to the config.log.
14771 cat conftest.err 1>&5
14772 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14773 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14774 if diff conftest.exp conftest.er2 >/dev/null; then
14775 lt_cv_prog_compiler_static_works_CXX=yes
14778 lt_cv_prog_compiler_static_works_CXX=yes
14782 LDFLAGS="$save_LDFLAGS"
14785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14786 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14788 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14791 lt_prog_compiler_static_CXX=
14797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14798 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14799 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14800 $as_echo_n "(cached) " >&6
14802 lt_cv_prog_compiler_c_o_CXX=no
14803 $RM -r conftest 2>/dev/null
14807 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14809 lt_compiler_flag="-o out/conftest2.$ac_objext"
14810 # Insert the option either (1) after the last *FLAGS variable, or
14811 # (2) before a word containing "conftest.", or (3) at the end.
14812 # Note that $ac_compile itself does not contain backslashes and begins
14813 # with a dollar sign (not a hyphen), so the echo should work correctly.
14814 lt_compile=`echo "$ac_compile" | $SED \
14815 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14816 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14817 -e 's:$: $lt_compiler_flag:'`
14818 (eval echo "\"\$as_me:14818: $lt_compile\"" >&5)
14819 (eval "$lt_compile" 2>out/conftest.err)
14821 cat out/conftest.err >&5
14822 echo "$as_me:14822: \$? = $ac_status" >&5
14823 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14825 # The compiler can only warn and ignore the option if not recognized
14826 # So say no if there are warnings
14827 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14828 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14829 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14830 lt_cv_prog_compiler_c_o_CXX=yes
14835 # SGI C++ compiler will create directory out/ii_files/ for
14836 # template instantiation
14837 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14838 $RM out/* && rmdir out
14844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14845 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14850 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14851 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14852 $as_echo_n "(cached) " >&6
14854 lt_cv_prog_compiler_c_o_CXX=no
14855 $RM -r conftest 2>/dev/null
14859 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14861 lt_compiler_flag="-o out/conftest2.$ac_objext"
14862 # Insert the option either (1) after the last *FLAGS variable, or
14863 # (2) before a word containing "conftest.", or (3) at the end.
14864 # Note that $ac_compile itself does not contain backslashes and begins
14865 # with a dollar sign (not a hyphen), so the echo should work correctly.
14866 lt_compile=`echo "$ac_compile" | $SED \
14867 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14868 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14869 -e 's:$: $lt_compiler_flag:'`
14870 (eval echo "\"\$as_me:14870: $lt_compile\"" >&5)
14871 (eval "$lt_compile" 2>out/conftest.err)
14873 cat out/conftest.err >&5
14874 echo "$as_me:14874: \$? = $ac_status" >&5
14875 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14877 # The compiler can only warn and ignore the option if not recognized
14878 # So say no if there are warnings
14879 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14880 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14881 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14882 lt_cv_prog_compiler_c_o_CXX=yes
14887 # SGI C++ compiler will create directory out/ii_files/ for
14888 # template instantiation
14889 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14890 $RM out/* && rmdir out
14896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14897 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14902 hard_links="nottested"
14903 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14904 # do not overwrite the value of need_locks provided by the user
14905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14906 $as_echo_n "checking if we can lock with hard links... " >&6; }
14909 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14911 ln conftest.a conftest.b 2>&5 || hard_links=no
14912 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14914 $as_echo "$hard_links" >&6; }
14915 if test "$hard_links" = no; then
14916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14917 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14927 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14929 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14932 # If we're using GNU nm, then we don't want the "-C" option.
14933 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14934 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14935 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'
14937 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'
14941 export_symbols_cmds_CXX="$ltdll_cmds"
14943 cygwin* | mingw* | cegcc*)
14944 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14946 linux* | k*bsd*-gnu)
14947 link_all_deplibs_CXX=no
14950 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14953 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14956 $as_echo "$ld_shlibs_CXX" >&6; }
14957 test "$ld_shlibs_CXX" = no && can_build_shared=no
14959 with_gnu_ld_CXX=$with_gnu_ld
14967 # Do we need to explicitly link libc?
14969 case "x$archive_cmds_need_lc_CXX" in
14971 # Assume -lc should be added
14972 archive_cmds_need_lc_CXX=yes
14974 if test "$enable_shared" = yes && test "$GCC" = yes; then
14975 case $archive_cmds_CXX in
14977 # FIXME: we may have to deal with multi-command sequences.
14980 # Test whether the compiler implicitly links with -lc since on some
14981 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14982 # to ld, don't add -lc before -lgcc.
14983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14984 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14986 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14988 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14989 (eval $ac_compile) 2>&5
14991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14992 test $ac_status = 0; } 2>conftest.err; then
14995 libobjs=conftest.$ac_objext
14997 wl=$lt_prog_compiler_wl_CXX
14998 pic_flag=$lt_prog_compiler_pic_CXX
15004 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15005 allow_undefined_flag_CXX=
15006 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15007 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15010 test $ac_status = 0; }
15012 archive_cmds_need_lc_CXX=no
15014 archive_cmds_need_lc_CXX=yes
15016 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15018 cat conftest.err 1>&5
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
15022 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
15092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15093 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15095 library_names_spec=
15096 libname_spec='lib$name'
15100 postuninstall_cmds=
15104 shlibpath_overrides_runpath=unknown
15106 dynamic_linker="$host_os ld.so"
15107 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15108 need_lib_prefix=unknown
15109 hardcode_into_libs=no
15111 # when you set need_version to no, make sure it does not cause -set_version
15112 # flags to be left without arguments
15113 need_version=unknown
15118 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15119 shlibpath_var=LIBPATH
15121 # AIX 3 has no versioning support, so we append a major version to the name.
15122 soname_spec='${libname}${release}${shared_ext}$major'
15129 hardcode_into_libs=yes
15130 if test "$host_cpu" = ia64; then
15131 # AIX 5 supports IA64
15132 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15133 shlibpath_var=LD_LIBRARY_PATH
15135 # With GCC up to 2.95.x, collect2 would create an import file
15136 # for dependence libraries. The import file would start with
15137 # the line `#! .'. This would cause the generated library to
15138 # depend on `.', always an invalid library. This was fixed in
15139 # development snapshots of GCC prior to 3.0.
15141 aix4 | aix4.[01] | aix4.[01].*)
15142 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15144 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15147 can_build_shared=no
15151 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15152 # soname into executable. Probably we can add versioning support to
15153 # collect2, so additional links can be useful in future.
15154 if test "$aix_use_runtimelinking" = yes; then
15155 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15156 # instead of lib<name>.a to let people know that these are not
15157 # typical AIX shared libraries.
15158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15160 # We preserve .a as extension for shared libraries through AIX4.2
15161 # and later when we are not doing run time linking.
15162 library_names_spec='${libname}${release}.a $libname.a'
15163 soname_spec='${libname}${release}${shared_ext}$major'
15165 shlibpath_var=LIBPATH
15172 # Since July 2007 AmigaOS4 officially supports .so libraries.
15173 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15177 library_names_spec='$libname.ixlibrary $libname.a'
15178 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15179 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'
15185 library_names_spec='${libname}${shared_ext}'
15186 dynamic_linker="$host_os ld.so"
15187 shlibpath_var=LIBRARY_PATH
15193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15194 soname_spec='${libname}${release}${shared_ext}$major'
15195 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15196 shlibpath_var=LD_LIBRARY_PATH
15197 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15198 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15199 # the default ld.so.conf also contains /usr/contrib/lib and
15200 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15201 # libtool to hard-code these into programs
15204 cygwin* | mingw* | pw32* | cegcc*)
15205 version_type=windows
15210 case $GCC,$host_os in
15211 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15212 library_names_spec='$libname.dll.a'
15213 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15214 postinstall_cmds='base_file=`basename \${file}`~
15215 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15216 dldir=$destdir/`dirname \$dlpath`~
15217 test -d \$dldir || mkdir -p \$dldir~
15218 $install_prog $dir/$dlname \$dldir/$dlname~
15219 chmod a+x \$dldir/$dlname~
15220 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15221 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15223 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15224 dlpath=$dir/\$dldll~
15226 shlibpath_overrides_runpath=yes
15230 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15231 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15232 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15235 # MinGW DLLs use traditional 'lib' prefix
15236 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15237 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15238 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15239 # It is most probably a Windows format PATH printed by
15240 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15241 # path with ; separators, and with drive letters. We can handle the
15242 # drive letters (cygwin fileutils understands them), so leave them,
15243 # especially as we might pass files found there to a mingw objdump,
15244 # which wouldn't understand a cygwinified path. Ahh.
15245 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15247 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15251 # pw32 DLLs use 'pw' prefix rather than 'lib'
15252 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15258 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15261 dynamic_linker='Win32 ld.exe'
15262 # FIXME: first we should search . and the directory the executable is in
15266 darwin* | rhapsody*)
15267 dynamic_linker="$host_os dyld"
15268 version_type=darwin
15271 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15272 soname_spec='${libname}${release}${major}$shared_ext'
15273 shlibpath_overrides_runpath=yes
15274 shlibpath_var=DYLD_LIBRARY_PATH
15275 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15277 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15285 soname_spec='${libname}${release}${shared_ext}$major'
15286 shlibpath_var=LD_LIBRARY_PATH
15293 freebsd* | dragonfly*)
15294 # DragonFly does not have aout. When/if they implement a new
15295 # versioning mechanism, adjust this.
15296 if test -x /usr/bin/objformat; then
15297 objformat=`/usr/bin/objformat`
15300 freebsd[123]*) objformat=aout ;;
15301 *) objformat=elf ;;
15304 version_type=freebsd-$objformat
15305 case $version_type in
15307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15312 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15316 shlibpath_var=LD_LIBRARY_PATH
15319 shlibpath_overrides_runpath=yes
15321 freebsd3.[01]* | freebsdelf3.[01]*)
15322 shlibpath_overrides_runpath=yes
15323 hardcode_into_libs=yes
15325 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15326 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15327 shlibpath_overrides_runpath=no
15328 hardcode_into_libs=yes
15330 *) # from 4.6 on, and DragonFly
15331 shlibpath_overrides_runpath=yes
15332 hardcode_into_libs=yes
15341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15342 soname_spec='${libname}${release}${shared_ext}$major'
15343 shlibpath_var=LD_LIBRARY_PATH
15344 hardcode_into_libs=yes
15347 hpux9* | hpux10* | hpux11*)
15348 # Give a soname corresponding to the major version so that dld.sl refuses to
15349 # link against other versions.
15356 hardcode_into_libs=yes
15357 dynamic_linker="$host_os dld.so"
15358 shlibpath_var=LD_LIBRARY_PATH
15359 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15361 soname_spec='${libname}${release}${shared_ext}$major'
15362 if test "X$HPUX_IA64_MODE" = X32; then
15363 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15365 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15367 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15371 hardcode_into_libs=yes
15372 dynamic_linker="$host_os dld.sl"
15373 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15374 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15376 soname_spec='${libname}${release}${shared_ext}$major'
15377 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15378 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15382 dynamic_linker="$host_os dld.sl"
15383 shlibpath_var=SHLIB_PATH
15384 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15386 soname_spec='${libname}${release}${shared_ext}$major'
15389 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15390 postinstall_cmds='chmod 555 $lib'
15397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15398 soname_spec='${libname}${release}${shared_ext}$major'
15399 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15400 shlibpath_var=LD_LIBRARY_PATH
15401 shlibpath_overrides_runpath=no
15402 hardcode_into_libs=yes
15405 irix5* | irix6* | nonstopux*)
15407 nonstopux*) version_type=nonstopux ;;
15409 if test "$lt_cv_prog_gnu_ld" = yes; then
15417 soname_spec='${libname}${release}${shared_ext}$major'
15418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15420 irix5* | nonstopux*)
15421 libsuff= shlibsuff=
15424 case $LD in # libtool.m4 will add one of these switches to LD
15425 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15426 libsuff= shlibsuff= libmagic=32-bit;;
15427 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15428 libsuff=32 shlibsuff=N32 libmagic=N32;;
15429 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15430 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15431 *) libsuff= shlibsuff= libmagic=never-match;;
15435 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15436 shlibpath_overrides_runpath=no
15437 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15438 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15439 hardcode_into_libs=yes
15442 # No shared lib support for Linux oldld, aout, or coff.
15443 linux*oldld* | linux*aout* | linux*coff*)
15447 # This must be Linux ELF.
15448 linux* | k*bsd*-gnu)
15452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15453 soname_spec='${libname}${release}${shared_ext}$major'
15454 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15455 shlibpath_var=LD_LIBRARY_PATH
15456 shlibpath_overrides_runpath=no
15457 # Some binutils ld are patched to set DT_RUNPATH
15458 save_LDFLAGS=$LDFLAGS
15459 save_libdir=$libdir
15460 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15461 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15463 /* end confdefs.h. */
15473 if ac_fn_cxx_try_link "$LINENO"; then :
15474 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15475 shlibpath_overrides_runpath=yes
15478 rm -f core conftest.err conftest.$ac_objext \
15479 conftest$ac_exeext conftest.$ac_ext
15480 LDFLAGS=$save_LDFLAGS
15481 libdir=$save_libdir
15483 # This implies no fast_install, which is unacceptable.
15484 # Some rework will be needed to allow for fast_install
15485 # before this can be enabled.
15486 hardcode_into_libs=yes
15488 # Append ld.so.conf contents to the search path
15489 if test -f /etc/ld.so.conf; then
15490 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15491 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15494 # We used to test for /lib/ld.so.1 and disable shared libraries on
15495 # powerpc, because MkLinux only supported shared libraries with the
15496 # GNU dynamic linker. Since this was broken with cross compilers,
15497 # most powerpc-linux boxes support dynamic linking these days and
15498 # people can always --disable-shared, the test was removed, and we
15499 # assume the GNU/Linux dynamic linker is in use.
15500 dynamic_linker='GNU/Linux ld.so'
15507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15508 soname_spec='${libname}${release}${shared_ext}$major'
15509 shlibpath_var=LD_LIBRARY_PATH
15510 shlibpath_overrides_runpath=no
15511 hardcode_into_libs=yes
15512 dynamic_linker='NetBSD ld.elf_so'
15519 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15521 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15522 dynamic_linker='NetBSD (a.out) ld.so'
15524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15525 soname_spec='${libname}${release}${shared_ext}$major'
15526 dynamic_linker='NetBSD ld.elf_so'
15528 shlibpath_var=LD_LIBRARY_PATH
15529 shlibpath_overrides_runpath=yes
15530 hardcode_into_libs=yes
15535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15536 shlibpath_var=LD_LIBRARY_PATH
15537 shlibpath_overrides_runpath=yes
15544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15545 soname_spec='${libname}${release}${shared_ext}$major'
15546 shlibpath_var=LD_LIBRARY_PATH
15547 shlibpath_overrides_runpath=no
15548 hardcode_into_libs=yes
15549 dynamic_linker='ldqnx.so'
15554 sys_lib_dlsearch_path_spec="/usr/lib"
15556 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15558 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15559 *) need_version=no ;;
15561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15562 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15563 shlibpath_var=LD_LIBRARY_PATH
15564 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15566 openbsd2.[89] | openbsd2.[89].*)
15567 shlibpath_overrides_runpath=no
15570 shlibpath_overrides_runpath=yes
15574 shlibpath_overrides_runpath=yes
15579 libname_spec='$name'
15582 library_names_spec='$libname${shared_ext} $libname.a'
15583 dynamic_linker='OS/2 ld.exe'
15584 shlibpath_var=LIBPATH
15587 osf3* | osf4* | osf5*)
15591 soname_spec='${libname}${release}${shared_ext}$major'
15592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15593 shlibpath_var=LD_LIBRARY_PATH
15594 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15595 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15607 soname_spec='${libname}${release}${shared_ext}$major'
15608 shlibpath_var=LD_LIBRARY_PATH
15609 shlibpath_overrides_runpath=yes
15610 hardcode_into_libs=yes
15611 # ldd complains unless libraries are executable
15612 postinstall_cmds='chmod +x $lib'
15617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15618 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15619 shlibpath_var=LD_LIBRARY_PATH
15620 shlibpath_overrides_runpath=yes
15621 if test "$with_gnu_ld" = yes; then
15629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15630 soname_spec='${libname}${release}${shared_ext}$major'
15631 shlibpath_var=LD_LIBRARY_PATH
15632 case $host_vendor in
15634 shlibpath_overrides_runpath=no
15636 runpath_var=LD_RUN_PATH
15644 shlibpath_overrides_runpath=no
15645 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15651 if test -d /usr/nec ;then
15653 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15654 soname_spec='$libname${shared_ext}.$major'
15655 shlibpath_var=LD_LIBRARY_PATH
15659 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15660 version_type=freebsd-elf
15663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15664 soname_spec='${libname}${release}${shared_ext}$major'
15665 shlibpath_var=LD_LIBRARY_PATH
15666 shlibpath_overrides_runpath=yes
15667 hardcode_into_libs=yes
15668 if test "$with_gnu_ld" = yes; then
15669 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15671 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15674 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15678 sys_lib_dlsearch_path_spec='/usr/lib'
15682 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15687 shlibpath_var=LD_LIBRARY_PATH
15688 shlibpath_overrides_runpath=no
15689 hardcode_into_libs=yes
15694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15695 soname_spec='${libname}${release}${shared_ext}$major'
15696 shlibpath_var=LD_LIBRARY_PATH
15703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15704 $as_echo "$dynamic_linker" >&6; }
15705 test "$dynamic_linker" = no && can_build_shared=no
15707 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15708 if test "$GCC" = yes; then
15709 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15712 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15713 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15715 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15716 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15755 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15756 hardcode_action_CXX=
15757 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15758 test -n "$runpath_var_CXX" ||
15759 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15761 # We can hardcode non-existent directories.
15762 if test "$hardcode_direct_CXX" != no &&
15763 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15764 # have to relink, otherwise we might link with an installed library
15765 # when we should be linking with a yet-to-be-installed one
15766 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15767 test "$hardcode_minus_L_CXX" != no; then
15768 # Linking always hardcodes the temporary library directory.
15769 hardcode_action_CXX=relink
15771 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15772 hardcode_action_CXX=immediate
15775 # We cannot hardcode anything, or else we can only hardcode existing
15777 hardcode_action_CXX=unsupported
15779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15780 $as_echo "$hardcode_action_CXX" >&6; }
15782 if test "$hardcode_action_CXX" = relink ||
15783 test "$inherit_rpath_CXX" = yes; then
15784 # Fast installation is not supported
15785 enable_fast_install=no
15786 elif test "$shlibpath_overrides_runpath" = yes ||
15787 test "$enable_shared" = no; then
15788 # Fast installation is not necessary
15789 enable_fast_install=needless
15798 fi # test -n "$compiler"
15804 with_gnu_ld=$lt_save_with_gnu_ld
15805 lt_cv_path_LDCXX=$lt_cv_path_LD
15806 lt_cv_path_LD=$lt_save_path_LD
15807 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15808 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15809 fi # test "$_lt_caught_CXX_error" != yes
15812 ac_cpp='$CPP $CPPFLAGS'
15813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15829 ac_config_commands="$ac_config_commands libtool"
15834 # Only expand once:
15840 ac_save_ldflags=$LDFLAGS
15842 # Check whether --with-sdl-prefix was given.
15843 if test "${with_sdl_prefix+set}" = set; then :
15844 withval=$with_sdl_prefix; sdl_prefix="$withval"
15850 # Check whether --with-sdl-exec-prefix was given.
15851 if test "${with_sdl_exec_prefix+set}" = set; then :
15852 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
15857 # Check whether --enable-sdltest was given.
15858 if test "${enable_sdltest+set}" = set; then :
15859 enableval=$enable_sdltest;
15865 if test x$sdl_exec_prefix != x ; then
15866 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
15867 if test x${SDL_CONFIG+set} != xset ; then
15868 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
15871 if test x$sdl_prefix != x ; then
15872 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
15873 if test x${SDL_CONFIG+set} != xset ; then
15874 SDL_CONFIG=$sdl_prefix/bin/sdl-config
15878 if test "x$prefix" != xNONE; then
15879 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
15881 # Extract the first word of "sdl-config", so it can be a program name with args.
15882 set dummy sdl-config; ac_word=$2
15883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15884 $as_echo_n "checking for $ac_word... " >&6; }
15885 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then :
15886 $as_echo_n "(cached) " >&6
15888 case $SDL_CONFIG in
15890 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
15893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15894 for as_dir in $PATH
15897 test -z "$as_dir" && as_dir=.
15898 for ac_exec_ext in '' $ac_executable_extensions; do
15899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15900 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15908 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
15912 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
15913 if test -n "$SDL_CONFIG"; then
15914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
15915 $as_echo "$SDL_CONFIG" >&6; }
15917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15918 $as_echo "no" >&6; }
15922 min_sdl_version=$SDL_VERSION
15923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
15924 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
15926 if test "$SDL_CONFIG" = "no" ; then
15929 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
15930 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
15932 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
15933 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
15934 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
15935 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
15936 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
15937 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
15938 if test "x$enable_sdltest" = "xyes" ; then
15939 ac_save_CFLAGS="$CFLAGS"
15940 ac_save_CXXFLAGS="$CXXFLAGS"
15941 ac_save_LIBS="$LIBS"
15942 CFLAGS="$CFLAGS $SDL_CFLAGS"
15943 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
15944 LIBS="$LIBS $SDL_LIBS"
15946 if test "$cross_compiling" = yes; then :
15947 echo $ac_n "cross compiling; assumed OK... $ac_c"
15949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15950 /* end confdefs.h. */
15953 #include <stdlib.h>
15954 #include <string.h>
15958 my_strdup (char *str)
15964 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
15965 strcpy (new_str, str);
15973 int main (int argc, char *argv[])
15975 int major, minor, micro;
15978 /* This hangs on some systems (?)
15979 system ("touch conf.sdltest");
15981 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
15983 /* HP/UX 9 (%@#!) writes to sscanf strings */
15984 tmp_version = my_strdup("$min_sdl_version");
15985 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
15986 printf("%s, bad version string\n", "$min_sdl_version");
15990 if (($sdl_major_version > major) ||
15991 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
15992 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
15998 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
15999 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
16000 printf("*** best to upgrade to the required version.\n");
16001 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
16002 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
16003 printf("*** config.cache before re-running configure\n");
16010 if ac_fn_c_try_run "$LINENO"; then :
16015 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16016 conftest.$ac_objext conftest.beam conftest.$ac_ext
16019 CFLAGS="$ac_save_CFLAGS"
16020 CXXFLAGS="$ac_save_CXXFLAGS"
16021 LIBS="$ac_save_LIBS"
16024 if test "x$no_sdl" = x ; then
16025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16026 $as_echo "yes" >&6; }
16029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16030 $as_echo "no" >&6; }
16031 if test "$SDL_CONFIG" = "no" ; then
16032 echo "*** The sdl-config script installed by SDL could not be found"
16033 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
16034 echo "*** your path, or set the SDL_CONFIG environment variable to the"
16035 echo "*** full path to sdl-config."
16037 if test -f conf.sdltest ; then
16040 echo "*** Could not run SDL test program, checking why..."
16041 CFLAGS="$CFLAGS $SDL_CFLAGS"
16042 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
16043 LIBS="$LIBS $SDL_LIBS"
16044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16045 /* end confdefs.h. */
16050 int main(int argc, char *argv[])
16053 #define main K_and_R_C_main
16063 if ac_fn_c_try_link "$LINENO"; then :
16064 echo "*** The test program compiled, but did not run. This usually means"
16065 echo "*** that the run-time linker is not finding SDL or finding the wrong"
16066 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
16067 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
16068 echo "*** to the installed location Also, make sure you have run ldconfig if that"
16069 echo "*** is required on your system"
16071 echo "*** If you have an old version installed, it is best to remove it, although"
16072 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
16074 echo "*** The test program failed to compile or link. See the file config.log for the"
16075 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
16076 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
16077 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
16079 rm -f core conftest.err conftest.$ac_objext \
16080 conftest$ac_exeext conftest.$ac_ext
16081 CFLAGS="$ac_save_CFLAGS"
16082 CXXFLAGS="$ac_save_CXXFLAGS"
16083 LIBS="$ac_save_LIBS"
16088 as_fn_error "*** SDL version $SDL_VERSION not found!" "$LINENO" 5
16096 LDFLAGS=$ac_save_ldflags
16099 ac_save_cflags=$CFLAGS
16100 ac_save_ldflags=$LDFLAGS
16104 # Check whether --enable-sound was given.
16105 if test "${enable_sound+set}" = set; then :
16106 enableval=$enable_sound; use_sound="$enableval"
16113 if test $use_sound = yes; then
16115 CFLAGS="$CFLAGS $SDL_CFLAGS"
16116 LDFLAGS="$LDFLAGS -lSDL_mixer"
16117 LIBS="-lSDL_mixer $LIBS"
16119 if test $CC = "gcc" || test $CXX = "g++"; then
16121 if test "$cross_compiling" = yes; then :
16122 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16123 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16124 as_fn_error "cannot run test program while cross compiling
16125 See \`config.log' for more details." "$LINENO" 5; }
16127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16128 /* end confdefs.h. */
16130 #include <SDL/SDL_mixer.h>
16135 if (!Mix_LoadMUS("${srcdir}" "/dat/music/victory.ogg"))
16141 if ac_fn_c_try_run "$LINENO"; then :
16144 as_fn_error "*** SDL_mixer is not installed or has not been compiled
16145 *** with ogg vorbis support" "$LINENO" 5
16147 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16148 conftest.$ac_objext conftest.beam conftest.$ac_ext
16152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Test SDL_Mixer Run OK." >&5
16153 $as_echo "Test SDL_Mixer Run OK." >&6; }
16155 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Skipping SDL_Mixer Run. We are cross-compiling for windows!" >&5
16156 $as_echo "$as_me: WARNING: Skipping SDL_Mixer Run. We are cross-compiling for windows!" >&2;}
16160 $as_echo "#define FL_SOUND 1" >>confdefs.h
16163 SDLSOUND_LIBS="-lSDL_mixer"
16165 CFLAGS=$ac_save_CFLAGS
16166 LDFLAGS="$ac_save_LDFLAGS"
16167 LIBS="$ac_save_libs"
16174 # Check whether --with-expat was given.
16175 if test "${with_expat+set}" = set; then :
16176 withval=$with_expat;
16178 CPPFLAGS="$CPPFLAGS -I$withval/include"
16179 LDFLAGS="$LDFLAGS -L$withval/lib"
16180 LIBS="$LIBS -lexpat"
16185 #echo "EXPAT=$expat"
16186 if test $expat = 0 ; then
16187 for ac_header in expat.h
16189 ac_fn_c_check_header_mongrel "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default"
16190 if test "x$ac_cv_header_expat_h" = x""yes; then :
16191 cat >>confdefs.h <<_ACEOF
16192 #define HAVE_EXPAT_H 1
16196 as_fn_error "*** Expat not found!" "$LINENO" 5
16201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_ParserCreate in -lexpat" >&5
16202 $as_echo_n "checking for XML_ParserCreate in -lexpat... " >&6; }
16203 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then :
16204 $as_echo_n "(cached) " >&6
16206 ac_check_lib_save_LIBS=$LIBS
16207 LIBS="-lexpat $LIBS"
16208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16209 /* end confdefs.h. */
16211 /* Override any GCC internal prototype to avoid an error.
16212 Use char because int might match the return type of a GCC
16213 builtin and then its argument prototype would still apply. */
16217 char XML_ParserCreate ();
16221 return XML_ParserCreate ();
16226 if ac_fn_c_try_link "$LINENO"; then :
16227 ac_cv_lib_expat_XML_ParserCreate=yes
16229 ac_cv_lib_expat_XML_ParserCreate=no
16231 rm -f core conftest.err conftest.$ac_objext \
16232 conftest$ac_exeext conftest.$ac_ext
16233 LIBS=$ac_check_lib_save_LIBS
16235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
16236 $as_echo "$ac_cv_lib_expat_XML_ParserCreate" >&6; }
16237 if test "x$ac_cv_lib_expat_XML_ParserCreate" = x""yes; then :
16238 cat >>confdefs.h <<_ACEOF
16239 #define HAVE_LIBEXPAT 1
16242 LIBS="-lexpat $LIBS"
16245 as_fn_error "*** Expat not found!" "$LINENO" 5
16252 # Check whether --with-libtar was given.
16253 if test "${with_libtar+set}" = set; then :
16254 withval=$with_libtar;
16256 CPPFLAGS="$CPPFLAGS -I$withval/include"
16257 LDFLAGS="$LDFLAGS -L$withval/lib"
16263 if test $libtar = 0 ; then
16264 for ac_header in libtar.h
16266 ac_fn_c_check_header_mongrel "$LINENO" "libtar.h" "ac_cv_header_libtar_h" "$ac_includes_default"
16267 if test "x$ac_cv_header_libtar_h" = x""yes; then :
16268 cat >>confdefs.h <<_ACEOF
16269 #define HAVE_LIBTAR_H 1
16273 as_fn_error "*** Libtar not found!" "$LINENO" 5
16278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tar_open in -ltar" >&5
16279 $as_echo_n "checking for tar_open in -ltar... " >&6; }
16280 if test "${ac_cv_lib_tar_tar_open+set}" = set; then :
16281 $as_echo_n "(cached) " >&6
16283 ac_check_lib_save_LIBS=$LIBS
16285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16286 /* end confdefs.h. */
16288 /* Override any GCC internal prototype to avoid an error.
16289 Use char because int might match the return type of a GCC
16290 builtin and then its argument prototype would still apply. */
16298 return tar_open ();
16303 if ac_fn_c_try_link "$LINENO"; then :
16304 ac_cv_lib_tar_tar_open=yes
16306 ac_cv_lib_tar_tar_open=no
16308 rm -f core conftest.err conftest.$ac_objext \
16309 conftest$ac_exeext conftest.$ac_ext
16310 LIBS=$ac_check_lib_save_LIBS
16312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tar_tar_open" >&5
16313 $as_echo "$ac_cv_lib_tar_tar_open" >&6; }
16314 if test "x$ac_cv_lib_tar_tar_open" = x""yes; then :
16315 cat >>confdefs.h <<_ACEOF
16316 #define HAVE_LIBTAR 1
16322 as_fn_error "*** Libtar not found!" "$LINENO" 5
16327 # Check whether --enable-winlibs was given.
16328 if test "${enable_winlibs+set}" = set; then :
16329 enableval=$enable_winlibs; LIBS="-lmingw32 -lws2_32 -lintl -lz -lpthreadGC2 -lpthreadGCE2 $LIBS"
16338 if test x$flrc = xtrue; then
16348 #AC_ARG_ENABLE(winnls,
16349 # [ --enable-winnls enable windows cross-compiling nls],
16352 # AC_SUBST(USE_NLS)
16355 #if test $winnls = no ; then
16359 GETTEXT_MACRO_VERSION=0.17
16364 # Prepare PATH_SEPARATOR.
16365 # The user is always right.
16366 if test "${PATH_SEPARATOR+set}" != set; then
16367 echo "#! /bin/sh" >conf$$.sh
16368 echo "exit 0" >>conf$$.sh
16370 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16378 # Find out how to test for executable files. Don't use a zero-byte file,
16379 # as systems may use methods other than mode bits to determine executability.
16380 cat >conf$$.file <<_ASEOF
16384 chmod +x conf$$.file
16385 if test -x conf$$.file >/dev/null 2>&1; then
16386 ac_executable_p="test -x"
16388 ac_executable_p="test -f"
16392 # Extract the first word of "msgfmt", so it can be a program name with args.
16393 set dummy msgfmt; ac_word=$2
16394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16395 $as_echo_n "checking for $ac_word... " >&6; }
16396 if test "${ac_cv_path_MSGFMT+set}" = set; then :
16397 $as_echo_n "(cached) " >&6
16401 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16404 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16405 for ac_dir in $PATH; do
16407 test -z "$ac_dir" && ac_dir=.
16408 for ac_exec_ext in '' $ac_executable_extensions; do
16409 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16410 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16411 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16412 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16413 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16420 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16424 MSGFMT="$ac_cv_path_MSGFMT"
16425 if test "$MSGFMT" != ":"; then
16426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
16427 $as_echo "$MSGFMT" >&6; }
16429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16430 $as_echo "no" >&6; }
16433 # Extract the first word of "gmsgfmt", so it can be a program name with args.
16434 set dummy gmsgfmt; ac_word=$2
16435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16436 $as_echo_n "checking for $ac_word... " >&6; }
16437 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
16438 $as_echo_n "(cached) " >&6
16442 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16446 for as_dir in $PATH
16449 test -z "$as_dir" && as_dir=.
16450 for ac_exec_ext in '' $ac_executable_extensions; do
16451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16452 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16460 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16464 GMSGFMT=$ac_cv_path_GMSGFMT
16465 if test -n "$GMSGFMT"; then
16466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
16467 $as_echo "$GMSGFMT" >&6; }
16469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16470 $as_echo "no" >&6; }
16475 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
16476 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
16477 *) MSGFMT_015=$MSGFMT ;;
16480 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
16481 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
16482 *) GMSGFMT_015=$GMSGFMT ;;
16487 # Prepare PATH_SEPARATOR.
16488 # The user is always right.
16489 if test "${PATH_SEPARATOR+set}" != set; then
16490 echo "#! /bin/sh" >conf$$.sh
16491 echo "exit 0" >>conf$$.sh
16493 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16501 # Find out how to test for executable files. Don't use a zero-byte file,
16502 # as systems may use methods other than mode bits to determine executability.
16503 cat >conf$$.file <<_ASEOF
16507 chmod +x conf$$.file
16508 if test -x conf$$.file >/dev/null 2>&1; then
16509 ac_executable_p="test -x"
16511 ac_executable_p="test -f"
16515 # Extract the first word of "xgettext", so it can be a program name with args.
16516 set dummy xgettext; ac_word=$2
16517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16518 $as_echo_n "checking for $ac_word... " >&6; }
16519 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
16520 $as_echo_n "(cached) " >&6
16522 case "$XGETTEXT" in
16524 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16527 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16528 for ac_dir in $PATH; do
16530 test -z "$ac_dir" && ac_dir=.
16531 for ac_exec_ext in '' $ac_executable_extensions; do
16532 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16533 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16534 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16535 (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
16536 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16543 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16547 XGETTEXT="$ac_cv_path_XGETTEXT"
16548 if test "$XGETTEXT" != ":"; then
16549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
16550 $as_echo "$XGETTEXT" >&6; }
16552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16553 $as_echo "no" >&6; }
16558 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
16559 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
16560 *) XGETTEXT_015=$XGETTEXT ;;
16565 # Prepare PATH_SEPARATOR.
16566 # The user is always right.
16567 if test "${PATH_SEPARATOR+set}" != set; then
16568 echo "#! /bin/sh" >conf$$.sh
16569 echo "exit 0" >>conf$$.sh
16571 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16579 # Find out how to test for executable files. Don't use a zero-byte file,
16580 # as systems may use methods other than mode bits to determine executability.
16581 cat >conf$$.file <<_ASEOF
16585 chmod +x conf$$.file
16586 if test -x conf$$.file >/dev/null 2>&1; then
16587 ac_executable_p="test -x"
16589 ac_executable_p="test -f"
16593 # Extract the first word of "msgmerge", so it can be a program name with args.
16594 set dummy msgmerge; ac_word=$2
16595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16596 $as_echo_n "checking for $ac_word... " >&6; }
16597 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
16598 $as_echo_n "(cached) " >&6
16600 case "$MSGMERGE" in
16602 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16605 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16606 for ac_dir in $PATH; do
16608 test -z "$ac_dir" && ac_dir=.
16609 for ac_exec_ext in '' $ac_executable_extensions; do
16610 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16611 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16612 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16613 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16620 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16624 MSGMERGE="$ac_cv_path_MSGMERGE"
16625 if test "$MSGMERGE" != ":"; then
16626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16627 $as_echo "$MSGMERGE" >&6; }
16629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16630 $as_echo "no" >&6; }
16634 test -n "$localedir" || localedir='${datadir}/locale'
16637 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
16640 ac_config_commands="$ac_config_commands po-directories"
16644 if test "X$prefix" = "XNONE"; then
16645 acl_final_prefix="$ac_default_prefix"
16647 acl_final_prefix="$prefix"
16649 if test "X$exec_prefix" = "XNONE"; then
16650 acl_final_exec_prefix='${prefix}'
16652 acl_final_exec_prefix="$exec_prefix"
16654 acl_save_prefix="$prefix"
16655 prefix="$acl_final_prefix"
16656 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16657 prefix="$acl_save_prefix"
16660 # Check whether --with-gnu-ld was given.
16661 if test "${with_gnu_ld+set}" = set; then :
16662 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16667 # Prepare PATH_SEPARATOR.
16668 # The user is always right.
16669 if test "${PATH_SEPARATOR+set}" != set; then
16670 echo "#! /bin/sh" >conf$$.sh
16671 echo "exit 0" >>conf$$.sh
16673 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16681 if test "$GCC" = yes; then
16682 # Check if gcc -print-prog-name=ld gives a path.
16683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
16684 $as_echo_n "checking for ld used by GCC... " >&6; }
16687 # gcc leaves a trailing carriage return which upsets mingw
16688 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16690 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16693 # Accept absolute paths.
16694 [\\/]* | [A-Za-z]:[\\/]*)
16695 re_direlt='/[^/][^/]*/\.\./'
16696 # Canonicalize the path of ld
16697 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16698 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16699 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16701 test -z "$LD" && LD="$ac_prog"
16704 # If it fails, then pretend we aren't using GCC.
16708 # If it is relative, then search for the first ld in PATH.
16709 with_gnu_ld=unknown
16712 elif test "$with_gnu_ld" = yes; then
16713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16714 $as_echo_n "checking for GNU ld... " >&6; }
16716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16717 $as_echo_n "checking for non-GNU ld... " >&6; }
16719 if test "${acl_cv_path_LD+set}" = set; then :
16720 $as_echo_n "(cached) " >&6
16722 if test -z "$LD"; then
16723 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16724 for ac_dir in $PATH; do
16725 test -z "$ac_dir" && ac_dir=.
16726 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16727 acl_cv_path_LD="$ac_dir/$ac_prog"
16728 # Check to see if the program is GNU ld. I'd rather use --version,
16729 # but apparently some GNU ld's only accept -v.
16730 # Break only if it was the GNU/non-GNU ld that we prefer.
16731 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16732 *GNU* | *'with BFD'*)
16733 test "$with_gnu_ld" != no && break ;;
16735 test "$with_gnu_ld" != yes && break ;;
16741 acl_cv_path_LD="$LD" # Let the user override the test with a path.
16745 LD="$acl_cv_path_LD"
16746 if test -n "$LD"; then
16747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16748 $as_echo "$LD" >&6; }
16750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16751 $as_echo "no" >&6; }
16753 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
16754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16755 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16756 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
16757 $as_echo_n "(cached) " >&6
16759 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16760 case `$LD -v 2>&1 </dev/null` in
16761 *GNU* | *'with BFD'*)
16762 acl_cv_prog_gnu_ld=yes ;;
16764 acl_cv_prog_gnu_ld=no ;;
16767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
16768 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
16769 with_gnu_ld=$acl_cv_prog_gnu_ld
16774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
16775 $as_echo_n "checking for shared library run path origin... " >&6; }
16776 if test "${acl_cv_rpath+set}" = set; then :
16777 $as_echo_n "(cached) " >&6
16780 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16781 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16783 rm -f ./conftest.sh
16787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
16788 $as_echo "$acl_cv_rpath" >&6; }
16790 acl_libext="$acl_cv_libext"
16791 acl_shlibext="$acl_cv_shlibext"
16792 acl_libname_spec="$acl_cv_libname_spec"
16793 acl_library_names_spec="$acl_cv_library_names_spec"
16794 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16795 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16796 acl_hardcode_direct="$acl_cv_hardcode_direct"
16797 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
16798 # Check whether --enable-rpath was given.
16799 if test "${enable_rpath+set}" = set; then :
16800 enableval=$enable_rpath; :
16808 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
16809 if test -n "$searchpath"; then
16810 acl_save_IFS="${IFS= }"; IFS=":"
16811 for searchdir in $searchpath; do
16812 if test -d "$searchdir"; then
16813 case "$searchdir" in
16814 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
16815 *) searchdir=`cd "$searchdir" && pwd`
16816 case "$searchdir" in
16817 */lib64 ) acl_libdirstem=lib64 ;;
16822 IFS="$acl_save_IFS"
16835 acl_save_prefix="$prefix"
16836 prefix="$acl_final_prefix"
16837 acl_save_exec_prefix="$exec_prefix"
16838 exec_prefix="$acl_final_exec_prefix"
16840 eval additional_includedir=\"$includedir\"
16841 eval additional_libdir=\"$libdir\"
16843 exec_prefix="$acl_save_exec_prefix"
16844 prefix="$acl_save_prefix"
16847 # Check whether --with-libiconv-prefix was given.
16848 if test "${with_libiconv_prefix+set}" = set; then :
16849 withval=$with_libiconv_prefix;
16850 if test "X$withval" = "Xno"; then
16853 if test "X$withval" = "X"; then
16855 acl_save_prefix="$prefix"
16856 prefix="$acl_final_prefix"
16857 acl_save_exec_prefix="$exec_prefix"
16858 exec_prefix="$acl_final_exec_prefix"
16860 eval additional_includedir=\"$includedir\"
16861 eval additional_libdir=\"$libdir\"
16863 exec_prefix="$acl_save_exec_prefix"
16864 prefix="$acl_save_prefix"
16867 additional_includedir="$withval/include"
16868 additional_libdir="$withval/$acl_libdirstem"
16880 names_already_handled=
16881 names_next_round='iconv '
16882 while test -n "$names_next_round"; do
16883 names_this_round="$names_next_round"
16885 for name in $names_this_round; do
16887 for n in $names_already_handled; do
16888 if test "$n" = "$name"; then
16889 already_handled=yes
16893 if test -z "$already_handled"; then
16894 names_already_handled="$names_already_handled $name"
16895 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16896 eval value=\"\$HAVE_LIB$uppername\"
16897 if test -n "$value"; then
16898 if test "$value" = yes; then
16899 eval value=\"\$LIB$uppername\"
16900 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16901 eval value=\"\$LTLIB$uppername\"
16902 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16911 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
16912 if test -n "$acl_shlibext"; then
16913 shrext=".$acl_shlibext" # typically: shrext=.so
16917 if test $use_additional = yes; then
16918 dir="$additional_libdir"
16919 if test -n "$acl_shlibext"; then
16920 if test -f "$dir/$libname$shrext"; then
16922 found_so="$dir/$libname$shrext"
16924 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16925 ver=`(cd "$dir" && \
16926 for f in "$libname$shrext".*; do echo "$f"; done \
16927 | sed -e "s,^$libname$shrext\\\\.,," \
16928 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16929 | sed 1q ) 2>/dev/null`
16930 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16932 found_so="$dir/$libname$shrext.$ver"
16935 eval library_names=\"$acl_library_names_spec\"
16936 for f in $library_names; do
16937 if test -f "$dir/$f"; then
16946 if test "X$found_dir" = "X"; then
16947 if test -f "$dir/$libname.$acl_libext"; then
16949 found_a="$dir/$libname.$acl_libext"
16952 if test "X$found_dir" != "X"; then
16953 if test -f "$dir/$libname.la"; then
16954 found_la="$dir/$libname.la"
16958 if test "X$found_dir" = "X"; then
16959 for x in $LDFLAGS $LTLIBICONV; do
16961 acl_save_prefix="$prefix"
16962 prefix="$acl_final_prefix"
16963 acl_save_exec_prefix="$exec_prefix"
16964 exec_prefix="$acl_final_exec_prefix"
16966 exec_prefix="$acl_save_exec_prefix"
16967 prefix="$acl_save_prefix"
16971 dir=`echo "X$x" | sed -e 's/^X-L//'`
16972 if test -n "$acl_shlibext"; then
16973 if test -f "$dir/$libname$shrext"; then
16975 found_so="$dir/$libname$shrext"
16977 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16978 ver=`(cd "$dir" && \
16979 for f in "$libname$shrext".*; do echo "$f"; done \
16980 | sed -e "s,^$libname$shrext\\\\.,," \
16981 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16982 | sed 1q ) 2>/dev/null`
16983 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16985 found_so="$dir/$libname$shrext.$ver"
16988 eval library_names=\"$acl_library_names_spec\"
16989 for f in $library_names; do
16990 if test -f "$dir/$f"; then
16999 if test "X$found_dir" = "X"; then
17000 if test -f "$dir/$libname.$acl_libext"; then
17002 found_a="$dir/$libname.$acl_libext"
17005 if test "X$found_dir" != "X"; then
17006 if test -f "$dir/$libname.la"; then
17007 found_la="$dir/$libname.la"
17012 if test "X$found_dir" != "X"; then
17017 if test "X$found_dir" != "X"; then
17018 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17019 if test "X$found_so" != "X"; then
17020 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
17021 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17024 for x in $ltrpathdirs; do
17025 if test "X$x" = "X$found_dir"; then
17030 if test -z "$haveit"; then
17031 ltrpathdirs="$ltrpathdirs $found_dir"
17033 if test "$acl_hardcode_direct" = yes; then
17034 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17036 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
17037 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17039 for x in $rpathdirs; do
17040 if test "X$x" = "X$found_dir"; then
17045 if test -z "$haveit"; then
17046 rpathdirs="$rpathdirs $found_dir"
17050 for x in $LDFLAGS $LIBICONV; do
17052 acl_save_prefix="$prefix"
17053 prefix="$acl_final_prefix"
17054 acl_save_exec_prefix="$exec_prefix"
17055 exec_prefix="$acl_final_exec_prefix"
17057 exec_prefix="$acl_save_exec_prefix"
17058 prefix="$acl_save_prefix"
17060 if test "X$x" = "X-L$found_dir"; then
17065 if test -z "$haveit"; then
17066 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17068 if test "$acl_hardcode_minus_L" != no; then
17069 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17071 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17077 if test "X$found_a" != "X"; then
17078 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17080 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17083 additional_includedir=
17084 case "$found_dir" in
17085 */$acl_libdirstem | */$acl_libdirstem/)
17086 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
17087 LIBICONV_PREFIX="$basedir"
17088 additional_includedir="$basedir/include"
17091 if test "X$additional_includedir" != "X"; then
17092 if test "X$additional_includedir" != "X/usr/include"; then
17094 if test "X$additional_includedir" = "X/usr/local/include"; then
17095 if test -n "$GCC"; then
17097 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17101 if test -z "$haveit"; then
17102 for x in $CPPFLAGS $INCICONV; do
17104 acl_save_prefix="$prefix"
17105 prefix="$acl_final_prefix"
17106 acl_save_exec_prefix="$exec_prefix"
17107 exec_prefix="$acl_final_exec_prefix"
17109 exec_prefix="$acl_save_exec_prefix"
17110 prefix="$acl_save_prefix"
17112 if test "X$x" = "X-I$additional_includedir"; then
17117 if test -z "$haveit"; then
17118 if test -d "$additional_includedir"; then
17119 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17125 if test -n "$found_la"; then
17126 save_libdir="$libdir"
17127 case "$found_la" in
17128 */* | *\\*) . "$found_la" ;;
17129 *) . "./$found_la" ;;
17131 libdir="$save_libdir"
17132 for dep in $dependency_libs; do
17135 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17136 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
17138 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
17139 if test -n "$GCC"; then
17141 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17145 if test -z "$haveit"; then
17147 for x in $LDFLAGS $LIBICONV; do
17149 acl_save_prefix="$prefix"
17150 prefix="$acl_final_prefix"
17151 acl_save_exec_prefix="$exec_prefix"
17152 exec_prefix="$acl_final_exec_prefix"
17154 exec_prefix="$acl_save_exec_prefix"
17155 prefix="$acl_save_prefix"
17157 if test "X$x" = "X-L$additional_libdir"; then
17162 if test -z "$haveit"; then
17163 if test -d "$additional_libdir"; then
17164 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17168 for x in $LDFLAGS $LTLIBICONV; do
17170 acl_save_prefix="$prefix"
17171 prefix="$acl_final_prefix"
17172 acl_save_exec_prefix="$exec_prefix"
17173 exec_prefix="$acl_final_exec_prefix"
17175 exec_prefix="$acl_save_exec_prefix"
17176 prefix="$acl_save_prefix"
17178 if test "X$x" = "X-L$additional_libdir"; then
17183 if test -z "$haveit"; then
17184 if test -d "$additional_libdir"; then
17185 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17192 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17193 if test "$enable_rpath" != no; then
17195 for x in $rpathdirs; do
17196 if test "X$x" = "X$dir"; then
17201 if test -z "$haveit"; then
17202 rpathdirs="$rpathdirs $dir"
17205 for x in $ltrpathdirs; do
17206 if test "X$x" = "X$dir"; then
17211 if test -z "$haveit"; then
17212 ltrpathdirs="$ltrpathdirs $dir"
17217 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17220 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17223 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17224 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17230 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17231 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17237 if test "X$rpathdirs" != "X"; then
17238 if test -n "$acl_hardcode_libdir_separator"; then
17240 for found_dir in $rpathdirs; do
17241 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
17243 acl_save_libdir="$libdir"
17245 eval flag=\"$acl_hardcode_libdir_flag_spec\"
17246 libdir="$acl_save_libdir"
17247 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17249 for found_dir in $rpathdirs; do
17250 acl_save_libdir="$libdir"
17251 libdir="$found_dir"
17252 eval flag=\"$acl_hardcode_libdir_flag_spec\"
17253 libdir="$acl_save_libdir"
17254 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17258 if test "X$ltrpathdirs" != "X"; then
17259 for found_dir in $ltrpathdirs; do
17260 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
17289 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
17290 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
17291 $as_echo_n "(cached) " >&6
17293 gt_save_LIBS="$LIBS"
17294 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
17295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17296 /* end confdefs.h. */
17297 #include <CoreFoundation/CFPreferences.h>
17301 CFPreferencesCopyAppValue(NULL, NULL)
17306 if ac_fn_c_try_link "$LINENO"; then :
17307 gt_cv_func_CFPreferencesCopyAppValue=yes
17309 gt_cv_func_CFPreferencesCopyAppValue=no
17311 rm -f core conftest.err conftest.$ac_objext \
17312 conftest$ac_exeext conftest.$ac_ext
17313 LIBS="$gt_save_LIBS"
17315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17316 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17317 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17319 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
17322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
17323 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
17324 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
17325 $as_echo_n "(cached) " >&6
17327 gt_save_LIBS="$LIBS"
17328 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
17329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17330 /* end confdefs.h. */
17331 #include <CoreFoundation/CFLocale.h>
17335 CFLocaleCopyCurrent();
17340 if ac_fn_c_try_link "$LINENO"; then :
17341 gt_cv_func_CFLocaleCopyCurrent=yes
17343 gt_cv_func_CFLocaleCopyCurrent=no
17345 rm -f core conftest.err conftest.$ac_objext \
17346 conftest$ac_exeext conftest.$ac_ext
17347 LIBS="$gt_save_LIBS"
17349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17350 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17351 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17353 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
17357 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17358 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17370 case " $gt_needs " in
17371 *" need-formatstring-macros "*) gt_api_version=3 ;;
17372 *" need-ngettext "*) gt_api_version=2 ;;
17373 *) gt_api_version=1 ;;
17375 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
17376 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
17378 if test "$USE_NLS" = "yes"; then
17379 gt_use_preinstalled_gnugettext=no
17382 if test $gt_api_version -ge 3; then
17383 gt_revision_test_code='
17384 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
17385 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
17387 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
17390 gt_revision_test_code=
17392 if test $gt_api_version -ge 2; then
17393 gt_expression_test_code=' + * ngettext ("", "", 0)'
17395 gt_expression_test_code=
17398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
17399 $as_echo_n "checking for GNU gettext in libc... " >&6; }
17400 if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then :
17401 $as_echo_n "(cached) " >&6
17403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17404 /* end confdefs.h. */
17405 #include <libintl.h>
17406 $gt_revision_test_code
17407 extern int _nl_msg_cat_cntr;
17408 extern int *_nl_domain_bindings;
17412 bindtextdomain ("", "");
17413 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
17418 if ac_fn_c_try_link "$LINENO"; then :
17419 eval "$gt_func_gnugettext_libc=yes"
17421 eval "$gt_func_gnugettext_libc=no"
17423 rm -f core conftest.err conftest.$ac_objext \
17424 conftest$ac_exeext conftest.$ac_ext
17426 eval ac_res=\$$gt_func_gnugettext_libc
17427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17428 $as_echo "$ac_res" >&6; }
17430 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
17436 am_save_CPPFLAGS="$CPPFLAGS"
17438 for element in $INCICONV; do
17440 for x in $CPPFLAGS; do
17442 acl_save_prefix="$prefix"
17443 prefix="$acl_final_prefix"
17444 acl_save_exec_prefix="$exec_prefix"
17445 exec_prefix="$acl_final_exec_prefix"
17447 exec_prefix="$acl_save_exec_prefix"
17448 prefix="$acl_save_prefix"
17450 if test "X$x" = "X$element"; then
17455 if test -z "$haveit"; then
17456 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
17462 $as_echo_n "checking for iconv... " >&6; }
17463 if test "${am_cv_func_iconv+set}" = set; then :
17464 $as_echo_n "(cached) " >&6
17467 am_cv_func_iconv="no, consider installing GNU libiconv"
17469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17470 /* end confdefs.h. */
17471 #include <stdlib.h>
17476 iconv_t cd = iconv_open("","");
17477 iconv(cd,NULL,NULL,NULL,NULL);
17483 if ac_fn_c_try_link "$LINENO"; then :
17484 am_cv_func_iconv=yes
17486 rm -f core conftest.err conftest.$ac_objext \
17487 conftest$ac_exeext conftest.$ac_ext
17488 if test "$am_cv_func_iconv" != yes; then
17489 am_save_LIBS="$LIBS"
17490 LIBS="$LIBS $LIBICONV"
17491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17492 /* end confdefs.h. */
17493 #include <stdlib.h>
17498 iconv_t cd = iconv_open("","");
17499 iconv(cd,NULL,NULL,NULL,NULL);
17505 if ac_fn_c_try_link "$LINENO"; then :
17506 am_cv_lib_iconv=yes
17507 am_cv_func_iconv=yes
17509 rm -f core conftest.err conftest.$ac_objext \
17510 conftest$ac_exeext conftest.$ac_ext
17511 LIBS="$am_save_LIBS"
17515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
17516 $as_echo "$am_cv_func_iconv" >&6; }
17517 if test "$am_cv_func_iconv" = yes; then
17518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
17519 $as_echo_n "checking for working iconv... " >&6; }
17520 if test "${am_cv_func_iconv_works+set}" = set; then :
17521 $as_echo_n "(cached) " >&6
17524 am_save_LIBS="$LIBS"
17525 if test $am_cv_lib_iconv = yes; then
17526 LIBS="$LIBS $LIBICONV"
17528 if test "$cross_compiling" = yes; then :
17530 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
17531 *) am_cv_func_iconv_works="guessing yes" ;;
17534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17535 /* end confdefs.h. */
17538 #include <string.h>
17541 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
17544 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
17545 if (cd_utf8_to_88591 != (iconv_t)(-1))
17547 static const char input[] = "\342\202\254"; /* EURO SIGN */
17549 const char *inptr = input;
17550 size_t inbytesleft = strlen (input);
17551 char *outptr = buf;
17552 size_t outbytesleft = sizeof (buf);
17553 size_t res = iconv (cd_utf8_to_88591,
17554 (char **) &inptr, &inbytesleft,
17555 &outptr, &outbytesleft);
17560 #if 0 /* This bug could be worked around by the caller. */
17561 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
17563 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
17564 if (cd_88591_to_utf8 != (iconv_t)(-1))
17566 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
17568 const char *inptr = input;
17569 size_t inbytesleft = strlen (input);
17570 char *outptr = buf;
17571 size_t outbytesleft = sizeof (buf);
17572 size_t res = iconv (cd_88591_to_utf8,
17573 (char **) &inptr, &inbytesleft,
17574 &outptr, &outbytesleft);
17580 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
17582 if (/* Try standardized names. */
17583 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
17584 /* Try IRIX, OSF/1 names. */
17585 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
17586 /* Try AIX names. */
17587 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
17588 /* Try HP-UX names. */
17589 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
17594 if ac_fn_c_try_run "$LINENO"; then :
17595 am_cv_func_iconv_works=yes
17597 am_cv_func_iconv_works=no
17599 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17600 conftest.$ac_objext conftest.beam conftest.$ac_ext
17603 LIBS="$am_save_LIBS"
17606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
17607 $as_echo "$am_cv_func_iconv_works" >&6; }
17608 case "$am_cv_func_iconv_works" in
17609 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
17610 *) am_func_iconv=yes ;;
17613 am_func_iconv=no am_cv_lib_iconv=no
17615 if test "$am_func_iconv" = yes; then
17617 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
17620 if test "$am_cv_lib_iconv" = yes; then
17621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
17622 $as_echo_n "checking how to link with libiconv... " >&6; }
17623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
17624 $as_echo "$LIBICONV" >&6; }
17626 CPPFLAGS="$am_save_CPPFLAGS"
17640 acl_save_prefix="$prefix"
17641 prefix="$acl_final_prefix"
17642 acl_save_exec_prefix="$exec_prefix"
17643 exec_prefix="$acl_final_exec_prefix"
17645 eval additional_includedir=\"$includedir\"
17646 eval additional_libdir=\"$libdir\"
17648 exec_prefix="$acl_save_exec_prefix"
17649 prefix="$acl_save_prefix"
17652 # Check whether --with-libintl-prefix was given.
17653 if test "${with_libintl_prefix+set}" = set; then :
17654 withval=$with_libintl_prefix;
17655 if test "X$withval" = "Xno"; then
17658 if test "X$withval" = "X"; then
17660 acl_save_prefix="$prefix"
17661 prefix="$acl_final_prefix"
17662 acl_save_exec_prefix="$exec_prefix"
17663 exec_prefix="$acl_final_exec_prefix"
17665 eval additional_includedir=\"$includedir\"
17666 eval additional_libdir=\"$libdir\"
17668 exec_prefix="$acl_save_exec_prefix"
17669 prefix="$acl_save_prefix"
17672 additional_includedir="$withval/include"
17673 additional_libdir="$withval/$acl_libdirstem"
17685 names_already_handled=
17686 names_next_round='intl '
17687 while test -n "$names_next_round"; do
17688 names_this_round="$names_next_round"
17690 for name in $names_this_round; do
17692 for n in $names_already_handled; do
17693 if test "$n" = "$name"; then
17694 already_handled=yes
17698 if test -z "$already_handled"; then
17699 names_already_handled="$names_already_handled $name"
17700 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17701 eval value=\"\$HAVE_LIB$uppername\"
17702 if test -n "$value"; then
17703 if test "$value" = yes; then
17704 eval value=\"\$LIB$uppername\"
17705 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17706 eval value=\"\$LTLIB$uppername\"
17707 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17716 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
17717 if test -n "$acl_shlibext"; then
17718 shrext=".$acl_shlibext" # typically: shrext=.so
17722 if test $use_additional = yes; then
17723 dir="$additional_libdir"
17724 if test -n "$acl_shlibext"; then
17725 if test -f "$dir/$libname$shrext"; then
17727 found_so="$dir/$libname$shrext"
17729 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
17730 ver=`(cd "$dir" && \
17731 for f in "$libname$shrext".*; do echo "$f"; done \
17732 | sed -e "s,^$libname$shrext\\\\.,," \
17733 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
17734 | sed 1q ) 2>/dev/null`
17735 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
17737 found_so="$dir/$libname$shrext.$ver"
17740 eval library_names=\"$acl_library_names_spec\"
17741 for f in $library_names; do
17742 if test -f "$dir/$f"; then
17751 if test "X$found_dir" = "X"; then
17752 if test -f "$dir/$libname.$acl_libext"; then
17754 found_a="$dir/$libname.$acl_libext"
17757 if test "X$found_dir" != "X"; then
17758 if test -f "$dir/$libname.la"; then
17759 found_la="$dir/$libname.la"
17763 if test "X$found_dir" = "X"; then
17764 for x in $LDFLAGS $LTLIBINTL; do
17766 acl_save_prefix="$prefix"
17767 prefix="$acl_final_prefix"
17768 acl_save_exec_prefix="$exec_prefix"
17769 exec_prefix="$acl_final_exec_prefix"
17771 exec_prefix="$acl_save_exec_prefix"
17772 prefix="$acl_save_prefix"
17776 dir=`echo "X$x" | sed -e 's/^X-L//'`
17777 if test -n "$acl_shlibext"; then
17778 if test -f "$dir/$libname$shrext"; then
17780 found_so="$dir/$libname$shrext"
17782 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
17783 ver=`(cd "$dir" && \
17784 for f in "$libname$shrext".*; do echo "$f"; done \
17785 | sed -e "s,^$libname$shrext\\\\.,," \
17786 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
17787 | sed 1q ) 2>/dev/null`
17788 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
17790 found_so="$dir/$libname$shrext.$ver"
17793 eval library_names=\"$acl_library_names_spec\"
17794 for f in $library_names; do
17795 if test -f "$dir/$f"; then
17804 if test "X$found_dir" = "X"; then
17805 if test -f "$dir/$libname.$acl_libext"; then
17807 found_a="$dir/$libname.$acl_libext"
17810 if test "X$found_dir" != "X"; then
17811 if test -f "$dir/$libname.la"; then
17812 found_la="$dir/$libname.la"
17817 if test "X$found_dir" != "X"; then
17822 if test "X$found_dir" != "X"; then
17823 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17824 if test "X$found_so" != "X"; then
17825 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
17826 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17829 for x in $ltrpathdirs; do
17830 if test "X$x" = "X$found_dir"; then
17835 if test -z "$haveit"; then
17836 ltrpathdirs="$ltrpathdirs $found_dir"
17838 if test "$acl_hardcode_direct" = yes; then
17839 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17841 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
17842 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17844 for x in $rpathdirs; do
17845 if test "X$x" = "X$found_dir"; then
17850 if test -z "$haveit"; then
17851 rpathdirs="$rpathdirs $found_dir"
17855 for x in $LDFLAGS $LIBINTL; do
17857 acl_save_prefix="$prefix"
17858 prefix="$acl_final_prefix"
17859 acl_save_exec_prefix="$exec_prefix"
17860 exec_prefix="$acl_final_exec_prefix"
17862 exec_prefix="$acl_save_exec_prefix"
17863 prefix="$acl_save_prefix"
17865 if test "X$x" = "X-L$found_dir"; then
17870 if test -z "$haveit"; then
17871 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17873 if test "$acl_hardcode_minus_L" != no; then
17874 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17876 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17882 if test "X$found_a" != "X"; then
17883 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17885 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17888 additional_includedir=
17889 case "$found_dir" in
17890 */$acl_libdirstem | */$acl_libdirstem/)
17891 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
17892 LIBINTL_PREFIX="$basedir"
17893 additional_includedir="$basedir/include"
17896 if test "X$additional_includedir" != "X"; then
17897 if test "X$additional_includedir" != "X/usr/include"; then
17899 if test "X$additional_includedir" = "X/usr/local/include"; then
17900 if test -n "$GCC"; then
17902 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17906 if test -z "$haveit"; then
17907 for x in $CPPFLAGS $INCINTL; do
17909 acl_save_prefix="$prefix"
17910 prefix="$acl_final_prefix"
17911 acl_save_exec_prefix="$exec_prefix"
17912 exec_prefix="$acl_final_exec_prefix"
17914 exec_prefix="$acl_save_exec_prefix"
17915 prefix="$acl_save_prefix"
17917 if test "X$x" = "X-I$additional_includedir"; then
17922 if test -z "$haveit"; then
17923 if test -d "$additional_includedir"; then
17924 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17930 if test -n "$found_la"; then
17931 save_libdir="$libdir"
17932 case "$found_la" in
17933 */* | *\\*) . "$found_la" ;;
17934 *) . "./$found_la" ;;
17936 libdir="$save_libdir"
17937 for dep in $dependency_libs; do
17940 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17941 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
17943 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
17944 if test -n "$GCC"; then
17946 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17950 if test -z "$haveit"; then
17952 for x in $LDFLAGS $LIBINTL; do
17954 acl_save_prefix="$prefix"
17955 prefix="$acl_final_prefix"
17956 acl_save_exec_prefix="$exec_prefix"
17957 exec_prefix="$acl_final_exec_prefix"
17959 exec_prefix="$acl_save_exec_prefix"
17960 prefix="$acl_save_prefix"
17962 if test "X$x" = "X-L$additional_libdir"; then
17967 if test -z "$haveit"; then
17968 if test -d "$additional_libdir"; then
17969 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17973 for x in $LDFLAGS $LTLIBINTL; do
17975 acl_save_prefix="$prefix"
17976 prefix="$acl_final_prefix"
17977 acl_save_exec_prefix="$exec_prefix"
17978 exec_prefix="$acl_final_exec_prefix"
17980 exec_prefix="$acl_save_exec_prefix"
17981 prefix="$acl_save_prefix"
17983 if test "X$x" = "X-L$additional_libdir"; then
17988 if test -z "$haveit"; then
17989 if test -d "$additional_libdir"; then
17990 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17997 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17998 if test "$enable_rpath" != no; then
18000 for x in $rpathdirs; do
18001 if test "X$x" = "X$dir"; then
18006 if test -z "$haveit"; then
18007 rpathdirs="$rpathdirs $dir"
18010 for x in $ltrpathdirs; do
18011 if test "X$x" = "X$dir"; then
18016 if test -z "$haveit"; then
18017 ltrpathdirs="$ltrpathdirs $dir"
18022 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18025 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18028 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18029 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18035 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18036 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18042 if test "X$rpathdirs" != "X"; then
18043 if test -n "$acl_hardcode_libdir_separator"; then
18045 for found_dir in $rpathdirs; do
18046 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
18048 acl_save_libdir="$libdir"
18050 eval flag=\"$acl_hardcode_libdir_flag_spec\"
18051 libdir="$acl_save_libdir"
18052 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18054 for found_dir in $rpathdirs; do
18055 acl_save_libdir="$libdir"
18056 libdir="$found_dir"
18057 eval flag=\"$acl_hardcode_libdir_flag_spec\"
18058 libdir="$acl_save_libdir"
18059 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18063 if test "X$ltrpathdirs" != "X"; then
18064 for found_dir in $ltrpathdirs; do
18065 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
18070 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
18071 if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then :
18072 $as_echo_n "(cached) " >&6
18074 gt_save_CPPFLAGS="$CPPFLAGS"
18075 CPPFLAGS="$CPPFLAGS $INCINTL"
18076 gt_save_LIBS="$LIBS"
18077 LIBS="$LIBS $LIBINTL"
18078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18079 /* end confdefs.h. */
18080 #include <libintl.h>
18081 $gt_revision_test_code
18082 extern int _nl_msg_cat_cntr;
18087 const char *_nl_expand_alias (const char *);
18091 bindtextdomain ("", "");
18092 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18097 if ac_fn_c_try_link "$LINENO"; then :
18098 eval "$gt_func_gnugettext_libintl=yes"
18100 eval "$gt_func_gnugettext_libintl=no"
18102 rm -f core conftest.err conftest.$ac_objext \
18103 conftest$ac_exeext conftest.$ac_ext
18104 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
18105 LIBS="$LIBS $LIBICONV"
18106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18107 /* end confdefs.h. */
18108 #include <libintl.h>
18109 $gt_revision_test_code
18110 extern int _nl_msg_cat_cntr;
18115 const char *_nl_expand_alias (const char *);
18119 bindtextdomain ("", "");
18120 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18125 if ac_fn_c_try_link "$LINENO"; then :
18126 LIBINTL="$LIBINTL $LIBICONV"
18127 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18128 eval "$gt_func_gnugettext_libintl=yes"
18131 rm -f core conftest.err conftest.$ac_objext \
18132 conftest$ac_exeext conftest.$ac_ext
18134 CPPFLAGS="$gt_save_CPPFLAGS"
18135 LIBS="$gt_save_LIBS"
18137 eval ac_res=\$$gt_func_gnugettext_libintl
18138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18139 $as_echo "$ac_res" >&6; }
18142 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
18143 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
18144 && test "$PACKAGE" != gettext-runtime \
18145 && test "$PACKAGE" != gettext-tools; }; then
18146 gt_use_preinstalled_gnugettext=yes
18155 if test -n "$INTL_MACOSX_LIBS"; then
18156 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18157 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18158 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18159 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18163 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18164 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18166 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
18173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
18174 $as_echo_n "checking whether to use NLS... " >&6; }
18175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18176 $as_echo "$USE_NLS" >&6; }
18177 if test "$USE_NLS" = "yes"; then
18178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
18179 $as_echo_n "checking where the gettext function comes from... " >&6; }
18180 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18181 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
18182 gt_source="external libintl"
18187 gt_source="included intl directory"
18189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
18190 $as_echo "$gt_source" >&6; }
18193 if test "$USE_NLS" = "yes"; then
18195 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18196 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
18197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
18198 $as_echo_n "checking how to link with libintl... " >&6; }
18199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
18200 $as_echo "$LIBINTL" >&6; }
18202 for element in $INCINTL; do
18204 for x in $CPPFLAGS; do
18206 acl_save_prefix="$prefix"
18207 prefix="$acl_final_prefix"
18208 acl_save_exec_prefix="$exec_prefix"
18209 exec_prefix="$acl_final_exec_prefix"
18211 exec_prefix="$acl_save_exec_prefix"
18212 prefix="$acl_save_prefix"
18214 if test "X$x" = "X$element"; then
18219 if test -z "$haveit"; then
18220 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18227 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
18230 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
18239 INTLLIBS="$LIBINTL"
18251 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18252 if test -n "$ac_tool_prefix"; then
18253 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18254 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18256 $as_echo_n "checking for $ac_word... " >&6; }
18257 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
18258 $as_echo_n "(cached) " >&6
18260 case $PKG_CONFIG in
18262 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18266 for as_dir in $PATH
18269 test -z "$as_dir" && as_dir=.
18270 for ac_exec_ext in '' $ac_executable_extensions; do
18271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18272 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18283 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18284 if test -n "$PKG_CONFIG"; then
18285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18286 $as_echo "$PKG_CONFIG" >&6; }
18288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18289 $as_echo "no" >&6; }
18294 if test -z "$ac_cv_path_PKG_CONFIG"; then
18295 ac_pt_PKG_CONFIG=$PKG_CONFIG
18296 # Extract the first word of "pkg-config", so it can be a program name with args.
18297 set dummy pkg-config; ac_word=$2
18298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18299 $as_echo_n "checking for $ac_word... " >&6; }
18300 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
18301 $as_echo_n "(cached) " >&6
18303 case $ac_pt_PKG_CONFIG in
18305 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18309 for as_dir in $PATH
18312 test -z "$as_dir" && as_dir=.
18313 for ac_exec_ext in '' $ac_executable_extensions; do
18314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18315 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18326 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18327 if test -n "$ac_pt_PKG_CONFIG"; then
18328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
18329 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
18331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18332 $as_echo "no" >&6; }
18335 if test "x$ac_pt_PKG_CONFIG" = x; then
18338 case $cross_compiling:$ac_tool_warned in
18340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18341 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18342 ac_tool_warned=yes ;;
18344 PKG_CONFIG=$ac_pt_PKG_CONFIG
18347 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18351 if test -n "$PKG_CONFIG"; then
18352 _pkg_min_version=0.9.0
18353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
18354 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
18355 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18357 $as_echo "yes" >&6; }
18359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18360 $as_echo "no" >&6; }
18367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIBMM" >&5
18368 $as_echo_n "checking for GLIBMM... " >&6; }
18370 if test -n "$PKG_CONFIG"; then
18371 if test -n "$GLIBMM_CFLAGS"; then
18372 pkg_cv_GLIBMM_CFLAGS="$GLIBMM_CFLAGS"
18374 if test -n "$PKG_CONFIG" && \
18375 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glibmm-2.4\""; } >&5
18376 ($PKG_CONFIG --exists --print-errors "glibmm-2.4") 2>&5
18378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18379 test $ac_status = 0; }; then
18380 pkg_cv_GLIBMM_CFLAGS=`$PKG_CONFIG --cflags "glibmm-2.4" 2>/dev/null`
18388 if test -n "$PKG_CONFIG"; then
18389 if test -n "$GLIBMM_LIBS"; then
18390 pkg_cv_GLIBMM_LIBS="$GLIBMM_LIBS"
18392 if test -n "$PKG_CONFIG" && \
18393 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glibmm-2.4\""; } >&5
18394 ($PKG_CONFIG --exists --print-errors "glibmm-2.4") 2>&5
18396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18397 test $ac_status = 0; }; then
18398 pkg_cv_GLIBMM_LIBS=`$PKG_CONFIG --libs "glibmm-2.4" 2>/dev/null`
18409 if test $pkg_failed = yes; then
18411 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18412 _pkg_short_errors_supported=yes
18414 _pkg_short_errors_supported=no
18416 if test $_pkg_short_errors_supported = yes; then
18417 GLIBMM_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glibmm-2.4"`
18419 GLIBMM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glibmm-2.4"`
18421 # Put the nasty error message in config.log where it belongs
18422 echo "$GLIBMM_PKG_ERRORS" >&5
18424 as_fn_error "Package requirements (glibmm-2.4) were not met:
18428 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18429 installed software in a non-standard prefix.
18431 Alternatively, you may set the environment variables GLIBMM_CFLAGS
18432 and GLIBMM_LIBS to avoid the need to call pkg-config.
18433 See the pkg-config man page for more details.
18435 elif test $pkg_failed = untried; then
18436 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18437 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18438 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
18439 is in your PATH or set the PKG_CONFIG environment variable to the full
18440 path to pkg-config.
18442 Alternatively, you may set the environment variables GLIBMM_CFLAGS
18443 and GLIBMM_LIBS to avoid the need to call pkg-config.
18444 See the pkg-config man page for more details.
18446 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18447 See \`config.log' for more details." "$LINENO" 5; }
18449 GLIBMM_CFLAGS=$pkg_cv_GLIBMM_CFLAGS
18450 GLIBMM_LIBS=$pkg_cv_GLIBMM_LIBS
18451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18452 $as_echo "yes" >&6; }
18462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKMM" >&5
18463 $as_echo_n "checking for GTKMM... " >&6; }
18465 if test -n "$PKG_CONFIG"; then
18466 if test -n "$GTKMM_CFLAGS"; then
18467 pkg_cv_GTKMM_CFLAGS="$GTKMM_CFLAGS"
18469 if test -n "$PKG_CONFIG" && \
18470 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtkmm-2.4\""; } >&5
18471 ($PKG_CONFIG --exists --print-errors "gtkmm-2.4") 2>&5
18473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18474 test $ac_status = 0; }; then
18475 pkg_cv_GTKMM_CFLAGS=`$PKG_CONFIG --cflags "gtkmm-2.4" 2>/dev/null`
18483 if test -n "$PKG_CONFIG"; then
18484 if test -n "$GTKMM_LIBS"; then
18485 pkg_cv_GTKMM_LIBS="$GTKMM_LIBS"
18487 if test -n "$PKG_CONFIG" && \
18488 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtkmm-2.4\""; } >&5
18489 ($PKG_CONFIG --exists --print-errors "gtkmm-2.4") 2>&5
18491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18492 test $ac_status = 0; }; then
18493 pkg_cv_GTKMM_LIBS=`$PKG_CONFIG --libs "gtkmm-2.4" 2>/dev/null`
18504 if test $pkg_failed = yes; then
18506 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18507 _pkg_short_errors_supported=yes
18509 _pkg_short_errors_supported=no
18511 if test $_pkg_short_errors_supported = yes; then
18512 GTKMM_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtkmm-2.4"`
18514 GTKMM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtkmm-2.4"`
18516 # Put the nasty error message in config.log where it belongs
18517 echo "$GTKMM_PKG_ERRORS" >&5
18519 as_fn_error "Package requirements (gtkmm-2.4) were not met:
18523 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18524 installed software in a non-standard prefix.
18526 Alternatively, you may set the environment variables GTKMM_CFLAGS
18527 and GTKMM_LIBS to avoid the need to call pkg-config.
18528 See the pkg-config man page for more details.
18530 elif test $pkg_failed = untried; then
18531 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18532 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18533 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
18534 is in your PATH or set the PKG_CONFIG environment variable to the full
18535 path to pkg-config.
18537 Alternatively, you may set the environment variables GTKMM_CFLAGS
18538 and GTKMM_LIBS to avoid the need to call pkg-config.
18539 See the pkg-config man page for more details.
18541 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18542 See \`config.log' for more details." "$LINENO" 5; }
18544 GTKMM_CFLAGS=$pkg_cv_GTKMM_CFLAGS
18545 GTKMM_LIBS=$pkg_cv_GTKMM_LIBS
18546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18547 $as_echo "yes" >&6; }
18557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGNET" >&5
18558 $as_echo_n "checking for LIBGNET... " >&6; }
18560 if test -n "$PKG_CONFIG"; then
18561 if test -n "$LIBGNET_CFLAGS"; then
18562 pkg_cv_LIBGNET_CFLAGS="$LIBGNET_CFLAGS"
18564 if test -n "$PKG_CONFIG" && \
18565 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnet-2.0\""; } >&5
18566 ($PKG_CONFIG --exists --print-errors "gnet-2.0") 2>&5
18568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18569 test $ac_status = 0; }; then
18570 pkg_cv_LIBGNET_CFLAGS=`$PKG_CONFIG --cflags "gnet-2.0" 2>/dev/null`
18578 if test -n "$PKG_CONFIG"; then
18579 if test -n "$LIBGNET_LIBS"; then
18580 pkg_cv_LIBGNET_LIBS="$LIBGNET_LIBS"
18582 if test -n "$PKG_CONFIG" && \
18583 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnet-2.0\""; } >&5
18584 ($PKG_CONFIG --exists --print-errors "gnet-2.0") 2>&5
18586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18587 test $ac_status = 0; }; then
18588 pkg_cv_LIBGNET_LIBS=`$PKG_CONFIG --libs "gnet-2.0" 2>/dev/null`
18599 if test $pkg_failed = yes; then
18601 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18602 _pkg_short_errors_supported=yes
18604 _pkg_short_errors_supported=no
18606 if test $_pkg_short_errors_supported = yes; then
18607 LIBGNET_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnet-2.0"`
18609 LIBGNET_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnet-2.0"`
18611 # Put the nasty error message in config.log where it belongs
18612 echo "$LIBGNET_PKG_ERRORS" >&5
18614 as_fn_error "Package requirements (gnet-2.0) were not met:
18616 $LIBGNET_PKG_ERRORS
18618 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18619 installed software in a non-standard prefix.
18621 Alternatively, you may set the environment variables LIBGNET_CFLAGS
18622 and LIBGNET_LIBS to avoid the need to call pkg-config.
18623 See the pkg-config man page for more details.
18625 elif test $pkg_failed = untried; then
18626 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18627 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18628 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
18629 is in your PATH or set the PKG_CONFIG environment variable to the full
18630 path to pkg-config.
18632 Alternatively, you may set the environment variables LIBGNET_CFLAGS
18633 and LIBGNET_LIBS to avoid the need to call pkg-config.
18634 See the pkg-config man page for more details.
18636 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18637 See \`config.log' for more details." "$LINENO" 5; }
18639 LIBGNET_CFLAGS=$pkg_cv_LIBGNET_CFLAGS
18640 LIBGNET_LIBS=$pkg_cv_LIBGNET_LIBS
18641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18642 $as_echo "yes" >&6; }
18652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBSIGC" >&5
18653 $as_echo_n "checking for LIBSIGC... " >&6; }
18655 if test -n "$PKG_CONFIG"; then
18656 if test -n "$LIBSIGC_CFLAGS"; then
18657 pkg_cv_LIBSIGC_CFLAGS="$LIBSIGC_CFLAGS"
18659 if test -n "$PKG_CONFIG" && \
18660 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sigc++-2.0\""; } >&5
18661 ($PKG_CONFIG --exists --print-errors "sigc++-2.0") 2>&5
18663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18664 test $ac_status = 0; }; then
18665 pkg_cv_LIBSIGC_CFLAGS=`$PKG_CONFIG --cflags "sigc++-2.0" 2>/dev/null`
18673 if test -n "$PKG_CONFIG"; then
18674 if test -n "$LIBSIGC_LIBS"; then
18675 pkg_cv_LIBSIGC_LIBS="$LIBSIGC_LIBS"
18677 if test -n "$PKG_CONFIG" && \
18678 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sigc++-2.0\""; } >&5
18679 ($PKG_CONFIG --exists --print-errors "sigc++-2.0") 2>&5
18681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18682 test $ac_status = 0; }; then
18683 pkg_cv_LIBSIGC_LIBS=`$PKG_CONFIG --libs "sigc++-2.0" 2>/dev/null`
18694 if test $pkg_failed = yes; then
18696 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18697 _pkg_short_errors_supported=yes
18699 _pkg_short_errors_supported=no
18701 if test $_pkg_short_errors_supported = yes; then
18702 LIBSIGC_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "sigc++-2.0"`
18704 LIBSIGC_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sigc++-2.0"`
18706 # Put the nasty error message in config.log where it belongs
18707 echo "$LIBSIGC_PKG_ERRORS" >&5
18709 as_fn_error "Package requirements (sigc++-2.0) were not met:
18711 $LIBSIGC_PKG_ERRORS
18713 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18714 installed software in a non-standard prefix.
18716 Alternatively, you may set the environment variables LIBSIGC_CFLAGS
18717 and LIBSIGC_LIBS to avoid the need to call pkg-config.
18718 See the pkg-config man page for more details.
18720 elif test $pkg_failed = untried; then
18721 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18722 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18723 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
18724 is in your PATH or set the PKG_CONFIG environment variable to the full
18725 path to pkg-config.
18727 Alternatively, you may set the environment variables LIBSIGC_CFLAGS
18728 and LIBSIGC_LIBS to avoid the need to call pkg-config.
18729 See the pkg-config man page for more details.
18731 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18732 See \`config.log' for more details." "$LINENO" 5; }
18734 LIBSIGC_CFLAGS=$pkg_cv_LIBSIGC_CFLAGS
18735 LIBSIGC_LIBS=$pkg_cv_LIBSIGC_LIBS
18736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18737 $as_echo "yes" >&6; }
18747 # Check whether --enable-editor was given.
18748 if test "${enable_editor+set}" = set; then :
18749 enableval=$enable_editor; use_editor="$enableval"
18754 if test $use_editor = "yes"; then
18756 WANT_EDITOR_FALSE='#'
18758 WANT_EDITOR_TRUE='#'
18763 # Check whether --enable-pbm was given.
18764 if test "${enable_pbm+set}" = set; then :
18765 enableval=$enable_pbm; use_pbm="$enableval"
18770 if test $use_pbm = "yes"; then
18780 # Check whether --with-resolution was given.
18781 if test "${with_resolution+set}" = set; then :
18782 withval=$with_resolution; SCREEN_RESOLUTION="$withval"
18784 SCREEN_RESOLUTION="800x600"
18789 # Check whether --enable-zipfiles was given.
18790 if test "${enable_zipfiles+set}" = set; then :
18791 enableval=$enable_zipfiles; zipfiles="$enableval"
18798 if test x$zipfiles = xyes; then
18804 # Check whether --enable-optimizations was given.
18805 if test "${enable_optimizations+set}" = set; then :
18806 enableval=$enable_optimizations; use_opts="$enableval"
18812 if test x$use_opts = xno; then
18813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Optimizations have been disabled" >&5
18814 $as_echo "$as_me: WARNING: Optimizations have been disabled" >&2;}
18823 am_boost_dir_default=/usr/include
18826 # Check whether --with-boost_includedir was given.
18827 if test "${with_boost_includedir+set}" = set; then :
18828 withval=$with_boost_includedir; am_boost_dir=$withval
18830 am_boost_dir=$am_boost_dir_default
18834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boost directory" >&5
18835 $as_echo_n "checking for boost directory... " >&6; }
18836 if test -d $am_boost_dir/boost; then
18837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_boost_dir/boost" >&5
18838 $as_echo "$am_boost_dir/boost" >&6; }
18839 BOOST_CPPFLAGS="-I$am_boost_dir"
18840 old_CPPFLAGS=$CPPFLAGS
18841 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
18843 ac_cpp='$CXXCPP $CPPFLAGS'
18844 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18845 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18846 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18848 for ac_header in boost/version.hpp
18850 ac_fn_cxx_check_header_mongrel "$LINENO" "boost/version.hpp" "ac_cv_header_boost_version_hpp" "$ac_includes_default"
18851 if test "x$ac_cv_header_boost_version_hpp" = x""yes; then :
18852 cat >>confdefs.h <<_ACEOF
18853 #define HAVE_BOOST_VERSION_HPP 1
18857 as_fn_error "*** Boost library not found! Install it." "$LINENO" 5
18863 ac_cpp='$CPP $CPPFLAGS'
18864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18868 CPPFLAGS=$old_CPPFLAGS
18871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18872 $as_echo "not found" >&6; }
18873 as_fn_error "*** Can't find directory $am_boost_dir/boost" "$LINENO" 5
18874 as_fn_error "*** Boost library not found! Install it." "$LINENO" 5
18879 if test x$prefix = xNONE; then
18880 prefix="/usr/local"
18885 LORDSAWAR_DATADIR="$datadir/lordsawar"
18886 LORDSAWAR_DATADIR=${LORDSAWAR_DATADIR/'${prefix}'/$prefix}
18889 ac_config_files="$ac_config_files dat/Makefile dat/army/Makefile dat/army/default/Makefile dat/army/bigdefault/Makefile dat/tilesets/Makefile dat/tilesets/default/Makefile dat/tilesets/bigdefault/Makefile dat/tilesets/stark/Makefile dat/tilesets/bigstark/Makefile dat/tilesets/wesnoth/Makefile dat/tilesets/bigwesnoth/Makefile dat/shield/Makefile dat/shield/default/Makefile dat/shield/plain/Makefile dat/shield/dol/Makefile dat/citysets/Makefile dat/citysets/default/Makefile dat/citysets/bigdefault/Makefile dat/citysets/dol/Makefile dat/citysets/bigdol/Makefile dat/various/Makefile dat/various/items/Makefile dat/various/editor/Makefile dat/map/Makefile dat/music/Makefile dat/glade/Makefile dat/glade/editor/Makefile po/Makefile.in Makefile src/Makefile doc/Makefile help/Makefile help/figures/Makefile src/editor/Makefile src/pbm/Makefile src/gui/Makefile"
18891 cat >confcache <<\_ACEOF
18892 # This file is a shell script that caches the results of configure
18893 # tests run on this system so they can be shared between configure
18894 # scripts and configure runs, see configure's option --config-cache.
18895 # It is not useful on other systems. If it contains results you don't
18896 # want to keep, you may remove or edit it.
18898 # config.status only pays attention to the cache file if you give it
18899 # the --recheck option to rerun configure.
18901 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18902 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18903 # following values.
18907 # The following way of writing the cache mishandles newlines in values,
18908 # but we know of no workaround that is simple, portable, and efficient.
18909 # So, we kill variables containing newlines.
18910 # Ultrix sh set writes to stderr and can't be redirected directly,
18911 # and sets the high bit in the cache file unless we assign to the vars.
18913 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18914 eval ac_val=\$$ac_var
18918 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18919 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18922 _ | IFS | as_nl) ;; #(
18923 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18924 *) { eval $ac_var=; unset $ac_var;} ;;
18930 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18931 *${as_nl}ac_space=\ *)
18932 # `set' does not quote correctly, so add quotes: double-quote
18933 # substitution turns \\\\ into \\, and sed turns \\ into \.
18936 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18939 # `set' quotes correctly as required by POSIX, so do not add quotes.
18940 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18949 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18951 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18953 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18954 if test -w "$cache_file"; then
18955 test "x$cache_file" != "x/dev/null" &&
18956 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18957 $as_echo "$as_me: updating cache $cache_file" >&6;}
18958 cat confcache >$cache_file
18960 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18961 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18966 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18967 # Let make expand exec_prefix.
18968 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18970 DEFS=-DHAVE_CONFIG_H
18974 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18975 # 1. Remove the extension, and $U if already installed.
18976 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18977 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18978 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18979 # will be set to the directory where LIBOBJS objects are built.
18980 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18981 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18983 LIBOBJS=$ac_libobjs
18985 LTLIBOBJS=$ac_ltlibobjs
18988 if test -n "$EXEEXT"; then
18990 am__EXEEXT_FALSE='#'
18992 am__EXEEXT_TRUE='#'
18996 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18997 as_fn_error "conditional \"AMDEP\" was never defined.
18998 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19000 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19001 as_fn_error "conditional \"am__fastdepCC\" was never defined.
19002 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19005 ac_config_commands="$ac_config_commands po/stamp-it"
19008 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19009 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
19010 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19012 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19013 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
19014 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19016 if test -z "${FL_RESRC_TRUE}" && test -z "${FL_RESRC_FALSE}"; then
19017 as_fn_error "conditional \"FL_RESRC\" was never defined.
19018 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19020 if test -z "${WANT_EDITOR_TRUE}" && test -z "${WANT_EDITOR_FALSE}"; then
19021 as_fn_error "conditional \"WANT_EDITOR\" was never defined.
19022 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19024 if test -z "${WANT_PBM_TRUE}" && test -z "${WANT_PBM_FALSE}"; then
19025 as_fn_error "conditional \"WANT_PBM\" was never defined.
19026 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19029 : ${CONFIG_STATUS=./config.status}
19031 ac_clean_files_save=$ac_clean_files
19032 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19033 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19034 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19036 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19038 # Generated by $as_me.
19039 # Run this file to recreate the current configuration.
19040 # Compiler output produced by configure, useful for debugging
19041 # configure, is in config.log if it exists.
19044 ac_cs_recheck=false
19047 SHELL=\${CONFIG_SHELL-$SHELL}
19050 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19051 ## -------------------- ##
19052 ## M4sh Initialization. ##
19053 ## -------------------- ##
19055 # Be more Bourne compatible
19056 DUALCASE=1; export DUALCASE # for MKS sh
19057 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19060 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19061 # is contrary to our usage. Disable this feature.
19062 alias -g '${1+"$@"}'='"$@"'
19063 setopt NO_GLOB_SUBST
19065 case `(set -o) 2>/dev/null` in #(
19077 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19078 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19079 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19080 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19081 # Prefer a ksh shell builtin over an external printf program on Solaris,
19082 # but without wasting forks for bash or zsh.
19083 if test -z "$BASH_VERSION$ZSH_VERSION" \
19084 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19085 as_echo='print -r --'
19086 as_echo_n='print -rn --'
19087 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19088 as_echo='printf %s\n'
19089 as_echo_n='printf %s'
19091 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19092 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19093 as_echo_n='/usr/ucb/echo -n'
19095 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19096 as_echo_n_body='eval
19100 expr "X$arg" : "X\\(.*\\)$as_nl";
19101 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19103 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19105 export as_echo_n_body
19106 as_echo_n='sh -c $as_echo_n_body as_echo'
19108 export as_echo_body
19109 as_echo='sh -c $as_echo_body as_echo'
19112 # The user is always right.
19113 if test "${PATH_SEPARATOR+set}" != set; then
19115 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19116 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19123 # We need space, tab and new line, in precisely that order. Quoting is
19124 # there to prevent editors from complaining about space-tab.
19125 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19126 # splitting by setting IFS to empty value.)
19129 # Find who we are. Look in the path if we contain no directory separator.
19131 *[\\/]* ) as_myself=$0 ;;
19132 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19133 for as_dir in $PATH
19136 test -z "$as_dir" && as_dir=.
19137 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19143 # We did not find ourselves, most probably we were run as `sh COMMAND'
19144 # in which case we are not to be found in the path.
19145 if test "x$as_myself" = x; then
19148 if test ! -f "$as_myself"; then
19149 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19153 # Unset variables that we do not need and which cause bugs (e.g. in
19154 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19155 # suppresses any "Segmentation fault" message there. '((' could
19156 # trigger a bug in pdksh 5.2.14.
19157 for as_var in BASH_ENV ENV MAIL MAILPATH
19158 do eval test x\${$as_var+set} = xset \
19159 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19172 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19175 # as_fn_error ERROR [LINENO LOG_FD]
19176 # ---------------------------------
19177 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19178 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19179 # script with status $?, using 1 if that was 0.
19182 as_status=$?; test $as_status -eq 0 && as_status=1
19184 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19185 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
19187 $as_echo "$as_me: error: $1" >&2
19188 as_fn_exit $as_status
19192 # as_fn_set_status STATUS
19193 # -----------------------
19194 # Set $? to STATUS, without forking.
19195 as_fn_set_status ()
19198 } # as_fn_set_status
19200 # as_fn_exit STATUS
19201 # -----------------
19202 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19206 as_fn_set_status $1
19212 # Portably unset VAR.
19215 { eval $1=; unset $1;}
19217 as_unset=as_fn_unset
19218 # as_fn_append VAR VALUE
19219 # ----------------------
19220 # Append the text in VALUE to the end of the definition contained in VAR. Take
19221 # advantage of any shell optimizations that allow amortized linear growth over
19222 # repeated appends, instead of the typical quadratic growth present in naive
19224 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19225 eval 'as_fn_append ()
19236 # as_fn_arith ARG...
19237 # ------------------
19238 # Perform arithmetic evaluation on the ARGs, and store the result in the
19239 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19240 # must be portable across $(()) and expr.
19241 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19242 eval 'as_fn_arith ()
19249 as_val=`expr "$@" || test $? -eq 1`
19254 if expr a : '\(a\)' >/dev/null 2>&1 &&
19255 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19261 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19262 as_basename=basename
19267 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19273 as_me=`$as_basename -- "$0" ||
19274 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19275 X"$0" : 'X\(//\)$' \| \
19276 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19278 sed '/^.*\/\([^/][^/]*\)\/*$/{
19292 # Avoid depending upon Character Ranges.
19293 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19294 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19295 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19296 as_cr_digits='0123456789'
19297 as_cr_alnum=$as_cr_Letters$as_cr_digits
19299 ECHO_C= ECHO_N= ECHO_T=
19300 case `echo -n x` in #(((((
19302 case `echo 'xy\c'` in
19303 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19305 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19312 rm -f conf$$ conf$$.exe conf$$.file
19313 if test -d conf$$.dir; then
19314 rm -f conf$$.dir/conf$$.file
19317 mkdir conf$$.dir 2>/dev/null
19319 if (echo >conf$$.file) 2>/dev/null; then
19320 if ln -s conf$$.file conf$$ 2>/dev/null; then
19322 # ... but there are two gotchas:
19323 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19324 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19325 # In both cases, we have to default to `cp -p'.
19326 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19328 elif ln conf$$.file conf$$ 2>/dev/null; then
19336 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19337 rmdir conf$$.dir 2>/dev/null
19342 # Create "$as_dir" as a directory, including parents if necessary.
19347 -*) as_dir=./$as_dir;;
19349 test -d "$as_dir" || eval $as_mkdir_p || {
19353 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19354 *) as_qdir=$as_dir;;
19356 as_dirs="'$as_qdir' $as_dirs"
19357 as_dir=`$as_dirname -- "$as_dir" ||
19358 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19359 X"$as_dir" : 'X\(//\)[^/]' \| \
19360 X"$as_dir" : 'X\(//\)$' \| \
19361 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19362 $as_echo X"$as_dir" |
19363 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19367 /^X\(\/\/\)[^/].*/{
19380 test -d "$as_dir" && break
19382 test -z "$as_dirs" || eval "mkdir $as_dirs"
19383 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
19387 if mkdir -p . 2>/dev/null; then
19388 as_mkdir_p='mkdir -p "$as_dir"'
19390 test -d ./-p && rmdir ./-p
19394 if test -x / >/dev/null 2>&1; then
19395 as_test_x='test -x'
19397 if ls -dL / >/dev/null 2>&1; then
19404 if test -d "$1"; then
19410 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
19411 ???[sx]*):;;*)false;;esac;fi
19415 as_executable_p=$as_test_x
19417 # Sed expression to map a string onto a valid CPP name.
19418 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19420 # Sed expression to map a string onto a valid variable name.
19421 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19425 ## ----------------------------------- ##
19426 ## Main body of $CONFIG_STATUS script. ##
19427 ## ----------------------------------- ##
19429 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19431 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19432 # Save the log message, to keep $0 and so on meaningful, and to
19433 # report actual input values of CONFIG_FILES etc. instead of their
19434 # values after options handling.
19436 This file was extended by lordsawar $as_me 0.1.7-pre2, which was
19437 generated by GNU Autoconf 2.64. Invocation command line was
19439 CONFIG_FILES = $CONFIG_FILES
19440 CONFIG_HEADERS = $CONFIG_HEADERS
19441 CONFIG_LINKS = $CONFIG_LINKS
19442 CONFIG_COMMANDS = $CONFIG_COMMANDS
19445 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19450 case $ac_config_files in *"
19451 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19454 case $ac_config_headers in *"
19455 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19459 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19460 # Files that config.status was made for.
19461 config_files="$ac_config_files"
19462 config_headers="$ac_config_headers"
19463 config_commands="$ac_config_commands"
19467 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19469 \`$as_me' instantiates files and other configuration actions
19470 from templates according to the current configuration. Unless the files
19471 and actions are specified as TAGs, all are instantiated by default.
19473 Usage: $0 [OPTION]... [TAG]...
19475 -h, --help print this help, then exit
19476 -V, --version print version number and configuration settings, then exit
19477 -q, --quiet, --silent
19478 do not print progress messages
19479 -d, --debug don't remove temporary files
19480 --recheck update $as_me by reconfiguring in the same conditions
19481 --file=FILE[:TEMPLATE]
19482 instantiate the configuration file FILE
19483 --header=FILE[:TEMPLATE]
19484 instantiate the configuration header FILE
19486 Configuration files:
19489 Configuration headers:
19492 Configuration commands:
19495 Report bugs to <http://sv.nongnu.org/bugs/?group=lordsawar>."
19498 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19500 lordsawar config.status 0.1.7-pre2
19501 configured by $0, generated by GNU Autoconf 2.64,
19502 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
19504 Copyright (C) 2009 Free Software Foundation, Inc.
19505 This config.status script is free software; the Free Software Foundation
19506 gives unlimited permission to copy, distribute and modify it."
19513 test -n "\$AWK" || AWK=awk
19516 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19517 # The default lists apply if the user does not specify any file.
19523 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19524 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19535 # Handling of the options.
19536 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19538 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19539 $as_echo "$ac_cs_version"; exit ;;
19540 --debug | --debu | --deb | --de | --d | -d )
19542 --file | --fil | --fi | --f )
19545 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19547 as_fn_append CONFIG_FILES " '$ac_optarg'"
19548 ac_need_defaults=false;;
19549 --header | --heade | --head | --hea )
19552 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19554 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19555 ac_need_defaults=false;;
19557 # Conflict between --help and --header
19558 as_fn_error "ambiguous option: \`$1'
19559 Try \`$0 --help' for more information.";;
19560 --help | --hel | -h )
19561 $as_echo "$ac_cs_usage"; exit ;;
19562 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19563 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19566 # This is an error.
19567 -*) as_fn_error "unrecognized option: \`$1'
19568 Try \`$0 --help' for more information." ;;
19570 *) as_fn_append ac_config_targets " $1"
19571 ac_need_defaults=false ;;
19577 ac_configure_extra_args=
19579 if $ac_cs_silent; then
19581 ac_configure_extra_args="$ac_configure_extra_args --silent"
19585 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19586 if \$ac_cs_recheck; then
19587 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19589 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19590 CONFIG_SHELL='$SHELL'
19591 export CONFIG_SHELL
19596 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19600 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19601 ## Running $as_me. ##
19607 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19611 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19615 # The HP-UX ksh and POSIX shell print the target directory to stdout
19616 # if CDPATH is set.
19617 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19619 sed_quote_subst='$sed_quote_subst'
19620 double_quote_subst='$double_quote_subst'
19621 delay_variable_subst='$delay_variable_subst'
19622 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
19623 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
19624 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
19625 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
19626 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
19627 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
19628 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
19629 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
19630 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
19631 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
19632 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
19633 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
19634 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
19635 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
19636 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
19637 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
19638 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
19639 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
19640 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
19641 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
19642 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
19643 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
19644 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
19645 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
19646 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
19647 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
19648 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
19649 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19650 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
19651 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
19652 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
19653 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
19654 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
19655 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
19656 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
19657 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19658 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19659 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19660 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
19661 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
19662 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
19663 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
19664 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
19665 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
19666 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
19667 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
19668 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
19669 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
19670 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
19671 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
19672 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
19673 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
19674 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
19675 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
19676 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
19677 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
19678 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
19679 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
19680 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
19681 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
19682 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
19683 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
19684 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19685 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19686 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
19687 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
19688 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19689 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19690 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
19691 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19692 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19693 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19694 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19695 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19696 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19697 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
19698 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
19699 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
19700 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19701 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
19702 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
19703 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
19704 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
19705 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
19706 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19707 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
19708 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
19709 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
19710 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
19711 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
19712 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19713 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
19714 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
19715 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19716 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
19717 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
19718 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
19719 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
19720 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
19721 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19722 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19723 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
19724 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
19725 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
19726 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
19727 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19728 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19729 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19730 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
19731 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
19732 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
19733 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
19734 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
19735 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
19736 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
19737 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
19738 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
19739 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
19740 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
19741 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
19742 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
19743 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
19744 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
19745 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
19746 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19747 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19748 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19749 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19750 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19751 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19752 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19753 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19754 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19755 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19756 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19757 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19758 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19759 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19760 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19761 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19762 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19763 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19764 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19765 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19766 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19767 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19768 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19769 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19770 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19771 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19772 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19773 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19774 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19775 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19776 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19777 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19778 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19779 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19780 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19781 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19782 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19783 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19784 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19785 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19786 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19787 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19788 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19789 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19790 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19791 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19792 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19795 LTCFLAGS='$LTCFLAGS'
19796 compiler='$compiler_DEFAULT'
19798 # Quote evaled strings.
19810 deplibs_check_method \
19819 lt_cv_sys_global_symbol_pipe \
19820 lt_cv_sys_global_symbol_to_cdecl \
19821 lt_cv_sys_global_symbol_to_c_name_address \
19822 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19825 lt_prog_compiler_no_builtin_flag \
19826 lt_prog_compiler_wl \
19827 lt_prog_compiler_pic \
19828 lt_prog_compiler_static \
19829 lt_cv_prog_compiler_c_o \
19837 export_dynamic_flag_spec \
19838 whole_archive_flag_spec \
19839 compiler_needs_object \
19841 allow_undefined_flag \
19842 no_undefined_flag \
19843 hardcode_libdir_flag_spec \
19844 hardcode_libdir_flag_spec_ld \
19845 hardcode_libdir_separator \
19850 variables_saved_for_relink \
19852 library_names_spec \
19857 compiler_lib_search_dirs \
19862 compiler_lib_search_path \
19865 lt_prog_compiler_no_builtin_flag_CXX \
19866 lt_prog_compiler_wl_CXX \
19867 lt_prog_compiler_pic_CXX \
19868 lt_prog_compiler_static_CXX \
19869 lt_cv_prog_compiler_c_o_CXX \
19870 export_dynamic_flag_spec_CXX \
19871 whole_archive_flag_spec_CXX \
19872 compiler_needs_object_CXX \
19874 allow_undefined_flag_CXX \
19875 no_undefined_flag_CXX \
19876 hardcode_libdir_flag_spec_CXX \
19877 hardcode_libdir_flag_spec_ld_CXX \
19878 hardcode_libdir_separator_CXX \
19879 fix_srcfile_path_CXX \
19880 exclude_expsyms_CXX \
19881 include_expsyms_CXX \
19882 file_list_spec_CXX \
19883 compiler_lib_search_dirs_CXX \
19884 predep_objects_CXX \
19885 postdep_objects_CXX \
19888 compiler_lib_search_path_CXX; do
19889 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
19890 *[\\\\\\\`\\"\\\$]*)
19891 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19894 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19899 # Double-quote double-evaled strings.
19900 for var in reload_cmds \
19901 old_postinstall_cmds \
19902 old_postuninstall_cmds \
19904 extract_expsyms_cmds \
19905 old_archive_from_new_cmds \
19906 old_archive_from_expsyms_cmds \
19908 archive_expsym_cmds \
19910 module_expsym_cmds \
19911 export_symbols_cmds \
19914 postuninstall_cmds \
19916 sys_lib_search_path_spec \
19917 sys_lib_dlsearch_path_spec \
19918 old_archive_cmds_CXX \
19919 old_archive_from_new_cmds_CXX \
19920 old_archive_from_expsyms_cmds_CXX \
19922 archive_expsym_cmds_CXX \
19924 module_expsym_cmds_CXX \
19925 export_symbols_cmds_CXX \
19926 prelink_cmds_CXX; do
19927 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
19928 *[\\\\\\\`\\"\\\$]*)
19929 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19932 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19937 # Fix-up fallback echo if it was mangled by the above quoting rules.
19939 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
19943 ac_aux_dir='$ac_aux_dir'
19944 xsi_shell='$xsi_shell'
19945 lt_shell_append='$lt_shell_append'
19947 # See if we are running on zsh, and set the options which allow our
19948 # commands through without removal of \ escapes INIT.
19949 if test -n "\${ZSH_VERSION+set}" ; then
19950 setopt NO_GLOB_SUBST
19956 TIMESTAMP='$TIMESTAMP'
19964 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
19965 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
19966 # from automake < 1.5.
19967 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
19968 # Capture the value of LINGUAS because we need it to compute CATALOGS.
19969 LINGUAS="${LINGUAS-%UNSET%}"
19974 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19976 # Handling of arguments.
19977 for ac_config_target in $ac_config_targets
19979 case $ac_config_target in
19980 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19981 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19982 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
19983 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19984 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
19985 "dat/Makefile") CONFIG_FILES="$CONFIG_FILES dat/Makefile" ;;
19986 "dat/army/Makefile") CONFIG_FILES="$CONFIG_FILES dat/army/Makefile" ;;
19987 "dat/army/default/Makefile") CONFIG_FILES="$CONFIG_FILES dat/army/default/Makefile" ;;
19988 "dat/army/bigdefault/Makefile") CONFIG_FILES="$CONFIG_FILES dat/army/bigdefault/Makefile" ;;
19989 "dat/tilesets/Makefile") CONFIG_FILES="$CONFIG_FILES dat/tilesets/Makefile" ;;
19990 "dat/tilesets/default/Makefile") CONFIG_FILES="$CONFIG_FILES dat/tilesets/default/Makefile" ;;
19991 "dat/tilesets/bigdefault/Makefile") CONFIG_FILES="$CONFIG_FILES dat/tilesets/bigdefault/Makefile" ;;
19992 "dat/tilesets/stark/Makefile") CONFIG_FILES="$CONFIG_FILES dat/tilesets/stark/Makefile" ;;
19993 "dat/tilesets/bigstark/Makefile") CONFIG_FILES="$CONFIG_FILES dat/tilesets/bigstark/Makefile" ;;
19994 "dat/tilesets/wesnoth/Makefile") CONFIG_FILES="$CONFIG_FILES dat/tilesets/wesnoth/Makefile" ;;
19995 "dat/tilesets/bigwesnoth/Makefile") CONFIG_FILES="$CONFIG_FILES dat/tilesets/bigwesnoth/Makefile" ;;
19996 "dat/shield/Makefile") CONFIG_FILES="$CONFIG_FILES dat/shield/Makefile" ;;
19997 "dat/shield/default/Makefile") CONFIG_FILES="$CONFIG_FILES dat/shield/default/Makefile" ;;
19998 "dat/shield/plain/Makefile") CONFIG_FILES="$CONFIG_FILES dat/shield/plain/Makefile" ;;
19999 "dat/shield/dol/Makefile") CONFIG_FILES="$CONFIG_FILES dat/shield/dol/Makefile" ;;
20000 "dat/citysets/Makefile") CONFIG_FILES="$CONFIG_FILES dat/citysets/Makefile" ;;
20001 "dat/citysets/default/Makefile") CONFIG_FILES="$CONFIG_FILES dat/citysets/default/Makefile" ;;
20002 "dat/citysets/bigdefault/Makefile") CONFIG_FILES="$CONFIG_FILES dat/citysets/bigdefault/Makefile" ;;
20003 "dat/citysets/dol/Makefile") CONFIG_FILES="$CONFIG_FILES dat/citysets/dol/Makefile" ;;
20004 "dat/citysets/bigdol/Makefile") CONFIG_FILES="$CONFIG_FILES dat/citysets/bigdol/Makefile" ;;
20005 "dat/various/Makefile") CONFIG_FILES="$CONFIG_FILES dat/various/Makefile" ;;
20006 "dat/various/items/Makefile") CONFIG_FILES="$CONFIG_FILES dat/various/items/Makefile" ;;
20007 "dat/various/editor/Makefile") CONFIG_FILES="$CONFIG_FILES dat/various/editor/Makefile" ;;
20008 "dat/map/Makefile") CONFIG_FILES="$CONFIG_FILES dat/map/Makefile" ;;
20009 "dat/music/Makefile") CONFIG_FILES="$CONFIG_FILES dat/music/Makefile" ;;
20010 "dat/glade/Makefile") CONFIG_FILES="$CONFIG_FILES dat/glade/Makefile" ;;
20011 "dat/glade/editor/Makefile") CONFIG_FILES="$CONFIG_FILES dat/glade/editor/Makefile" ;;
20012 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
20013 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20014 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20015 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20016 "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
20017 "help/figures/Makefile") CONFIG_FILES="$CONFIG_FILES help/figures/Makefile" ;;
20018 "src/editor/Makefile") CONFIG_FILES="$CONFIG_FILES src/editor/Makefile" ;;
20019 "src/pbm/Makefile") CONFIG_FILES="$CONFIG_FILES src/pbm/Makefile" ;;
20020 "src/gui/Makefile") CONFIG_FILES="$CONFIG_FILES src/gui/Makefile" ;;
20021 "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
20023 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20028 # If the user did not use the arguments to specify the items to instantiate,
20029 # then the envvar interface is used. Set only those that are not.
20030 # We use the long form for the default assignment because of an extremely
20031 # bizarre bug on SunOS 4.1.3.
20032 if $ac_need_defaults; then
20033 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20034 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20035 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20038 # Have a temporary directory for convenience. Make it in the build tree
20039 # simply because there is no reason against having it here, and in addition,
20040 # creating and moving files from /tmp can sometimes cause problems.
20041 # Hook for its removal unless debugging.
20042 # Note that there is a small window in which the directory will not be cleaned:
20043 # after its creation but before its name has been assigned to `$tmp'.
20047 trap 'exit_status=$?
20048 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20050 trap 'as_fn_exit 1' 1 2 13 15
20052 # Create a (secure) tmp directory for tmp files.
20055 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20056 test -n "$tmp" && test -d "$tmp"
20059 tmp=./conf$$-$RANDOM
20060 (umask 077 && mkdir "$tmp")
20061 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
20063 # Set up the scripts for CONFIG_FILES section.
20064 # No need to generate them if there are no CONFIG_FILES.
20065 # This happens for instance with `./config.status config.h'.
20066 if test -n "$CONFIG_FILES"; then
20069 ac_cr=`echo X | tr X '\015'`
20070 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20071 # But we know of no other shell where ac_cr would be empty at this
20072 # point, so we can use a bashism as a fallback.
20073 if test "x$ac_cr" = x; then
20074 eval ac_cr=\$\'\\r\'
20076 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20077 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20080 ac_cs_awk_cr=$ac_cr
20083 echo 'BEGIN {' >"$tmp/subs1.awk" &&
20088 echo "cat >conf$$subs.awk <<_ACEOF" &&
20089 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20091 } >conf$$subs.sh ||
20092 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20093 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
20095 for ac_last_try in false false false false false :; do
20096 . ./conf$$subs.sh ||
20097 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20099 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20100 if test $ac_delim_n = $ac_delim_num; then
20102 elif $ac_last_try; then
20103 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20105 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20108 rm -f conf$$subs.sh
20110 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20111 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
20115 s/^/S["/; s/!.*/"]=/
20125 s/\(.\{148\}\).*/\1/
20127 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20132 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20139 s/\(.\{148\}\).*/\1/
20141 s/["\\]/\\&/g; s/^/"/; s/$/"/
20145 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20150 ' <conf$$subs.awk | sed '
20155 ' >>$CONFIG_STATUS || ac_write_fail=1
20156 rm -f conf$$subs.awk
20157 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20159 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
20160 for (key in S) S_is_set[key] = 1
20166 nfields = split(line, field, "@")
20168 len = length(field[1])
20169 for (i = 2; i < nfields; i++) {
20171 keylen = length(key)
20172 if (S_is_set[key]) {
20174 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20175 len += length(value) + length(field[++i])
20186 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20187 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20188 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20191 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
20192 || as_fn_error "could not setup config files machinery" "$LINENO" 5
20195 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20196 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20197 # trailing colons and then remove the whole line if VPATH becomes empty
20198 # (actually we leave an empty line to preserve line numbers).
20199 if test "x$srcdir" = x.; then
20200 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20201 s/:*\$(srcdir):*/:/
20202 s/:*\${srcdir}:*/:/
20204 s/^\([^=]*=[ ]*\):*/\1/
20210 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20211 fi # test -n "$CONFIG_FILES"
20213 # Set up the scripts for CONFIG_HEADERS section.
20214 # No need to generate them if there are no CONFIG_HEADERS.
20215 # This happens for instance with `./config.status Makefile'.
20216 if test -n "$CONFIG_HEADERS"; then
20217 cat >"$tmp/defines.awk" <<\_ACAWK ||
20221 # Transform confdefs.h into an awk script `defines.awk', embedded as
20222 # here-document in config.status, that substitutes the proper values into
20223 # config.h.in to produce config.h.
20225 # Create a delimiter string that does not exist in confdefs.h, to ease
20226 # handling of long lines.
20228 for ac_last_try in false false :; do
20229 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
20230 if test -z "$ac_t"; then
20232 elif $ac_last_try; then
20233 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
20235 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20239 # For the awk script, D is an array of macro values keyed by name,
20240 # likewise P contains macro parameters if any. Preserve backslash
20241 # newline sequences.
20243 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20245 s/.\{148\}/&'"$ac_delim"'/g
20248 s/^[ ]*#[ ]*define[ ][ ]*/ /
20255 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20257 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20261 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20262 D["\1"]=" \3\\\\\\n"\\/p
20264 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20269 s/.\{148\}/&'"$ac_delim"'/g
20274 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20277 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20279 ' <confdefs.h | sed '
20280 s/'"$ac_delim"'/"\\\
20281 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20283 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20284 for (key in D) D_is_set[key] = 1
20287 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20289 split(line, arg, " ")
20290 if (arg[1] == "#") {
20294 defundef = substr(arg[1], 2)
20297 split(mac1, mac2, "(") #)
20299 prefix = substr(line, 1, index(line, defundef) - 1)
20300 if (D_is_set[macro]) {
20301 # Preserve the white space surrounding the "#".
20302 print prefix "define", macro P[macro] D[macro]
20305 # Replace #undef with comments. This is necessary, for example,
20306 # in the case of _POSIX_SOURCE, which is predefined and required
20307 # on some systems where configure will not decide to define it.
20308 if (defundef == "undef") {
20309 print "/*", prefix defundef, macro, "*/"
20317 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20318 as_fn_error "could not setup config headers machinery" "$LINENO" 5
20319 fi # test -n "$CONFIG_HEADERS"
20322 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20327 :[FHLC]) ac_mode=$ac_tag; continue;;
20329 case $ac_mode$ac_tag in
20331 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
20332 :[FH]-) ac_tag=-:-;;
20333 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20350 -) ac_f="$tmp/stdin";;
20351 *) # Look for the file first in the build tree, then in the source tree
20352 # (if the path is not absolute). The absolute path cannot be DOS-style,
20353 # because $ac_f cannot contain `:'.
20357 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20359 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20361 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20362 as_fn_append ac_file_inputs " '$ac_f'"
20365 # Let's still pretend it is `configure' which instantiates (i.e., don't
20366 # use $as_me), people would be surprised to read:
20367 # /* config.h. Generated by config.status. */
20368 configure_input='Generated from '`
20369 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20371 if test x"$ac_file" != x-; then
20372 configure_input="$ac_file. $configure_input"
20373 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20374 $as_echo "$as_me: creating $ac_file" >&6;}
20376 # Neutralize special characters interpreted by sed in replacement strings.
20377 case $configure_input in #(
20378 *\&* | *\|* | *\\* )
20379 ac_sed_conf_input=`$as_echo "$configure_input" |
20380 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20381 *) ac_sed_conf_input=$configure_input;;
20385 *:-:* | *:-) cat >"$tmp/stdin" \
20386 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
20391 ac_dir=`$as_dirname -- "$ac_file" ||
20392 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20393 X"$ac_file" : 'X\(//\)[^/]' \| \
20394 X"$ac_file" : 'X\(//\)$' \| \
20395 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20396 $as_echo X"$ac_file" |
20397 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20401 /^X\(\/\/\)[^/].*/{
20414 as_dir="$ac_dir"; as_fn_mkdir_p
20418 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20420 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20421 # A ".." for each directory in $ac_dir_suffix.
20422 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20423 case $ac_top_builddir_sub in
20424 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20425 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20428 ac_abs_top_builddir=$ac_pwd
20429 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20430 # for backward compatibility:
20431 ac_top_builddir=$ac_top_build_prefix
20434 .) # We are building in place.
20436 ac_top_srcdir=$ac_top_builddir_sub
20437 ac_abs_top_srcdir=$ac_pwd ;;
20438 [\\/]* | ?:[\\/]* ) # Absolute name.
20439 ac_srcdir=$srcdir$ac_dir_suffix;
20440 ac_top_srcdir=$srcdir
20441 ac_abs_top_srcdir=$srcdir ;;
20442 *) # Relative name.
20443 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20444 ac_top_srcdir=$ac_top_build_prefix$srcdir
20445 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20447 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20457 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20458 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20460 ac_MKDIR_P=$MKDIR_P
20462 [\\/$]* | ?:[\\/]* ) ;;
20463 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20467 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20468 # If the template does not know about datarootdir, expand it.
20469 # FIXME: This hack should be removed a few years after 2.60.
20470 ac_datarootdir_hack=; ac_datarootdir_seen=
20481 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20482 *datarootdir*) ac_datarootdir_seen=yes;;
20483 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20485 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20487 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20488 ac_datarootdir_hack='
20489 s&@datadir@&$datadir&g
20490 s&@docdir@&$docdir&g
20491 s&@infodir@&$infodir&g
20492 s&@localedir@&$localedir&g
20493 s&@mandir@&$mandir&g
20494 s&\\\${datarootdir}&$datarootdir&g' ;;
20498 # Neutralize VPATH when `$srcdir' = `.'.
20499 # Shell code in configure.ac might set extrasub.
20500 # FIXME: do we really want to maintain this feature?
20501 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20502 ac_sed_extra="$ac_vpsub
20505 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20507 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20508 s|@configure_input@|$ac_sed_conf_input|;t t
20509 s&@top_builddir@&$ac_top_builddir_sub&;t t
20510 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20511 s&@srcdir@&$ac_srcdir&;t t
20512 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20513 s&@top_srcdir@&$ac_top_srcdir&;t t
20514 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20515 s&@builddir@&$ac_builddir&;t t
20516 s&@abs_builddir@&$ac_abs_builddir&;t t
20517 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20518 s&@INSTALL@&$ac_INSTALL&;t t
20519 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20520 $ac_datarootdir_hack
20522 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
20523 || as_fn_error "could not create $ac_file" "$LINENO" 5
20525 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20526 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20527 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20529 which seems to be undefined. Please make sure it is defined." >&5
20530 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20531 which seems to be undefined. Please make sure it is defined." >&2;}
20535 -) cat "$tmp/out" && rm -f "$tmp/out";;
20536 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
20538 || as_fn_error "could not create $ac_file" "$LINENO" 5
20544 if test x"$ac_file" != x-; then
20546 $as_echo "/* $configure_input */" \
20547 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
20548 } >"$tmp/config.h" \
20549 || as_fn_error "could not create $ac_file" "$LINENO" 5
20550 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
20551 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20552 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20555 mv "$tmp/config.h" "$ac_file" \
20556 || as_fn_error "could not create $ac_file" "$LINENO" 5
20559 $as_echo "/* $configure_input */" \
20560 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
20561 || as_fn_error "could not create -" "$LINENO" 5
20563 # Compute "$ac_file"'s index in $config_headers.
20566 for _am_header in $config_headers :; do
20567 case $_am_header in
20568 $_am_arg | $_am_arg:* )
20571 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20574 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20575 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20576 X"$_am_arg" : 'X\(//\)[^/]' \| \
20577 X"$_am_arg" : 'X\(//\)$' \| \
20578 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20579 $as_echo X"$_am_arg" |
20580 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20584 /^X\(\/\/\)[^/].*/{
20596 s/.*/./; q'`/stamp-h$_am_stamp_count
20599 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20600 $as_echo "$as_me: executing $ac_file commands" >&6;}
20605 case $ac_file$ac_mode in
20606 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20607 # Autoconf 2.62 quotes --file arguments for eval, but not when files
20608 # are listed without --file. Let's play safe and only enable the eval
20609 # if we detect the quoting.
20610 case $CONFIG_FILES in
20611 *\'*) eval set x "$CONFIG_FILES" ;;
20612 *) set x $CONFIG_FILES ;;
20617 # Strip MF so we end up with the name of the file.
20618 mf=`echo "$mf" | sed -e 's/:.*$//'`
20619 # Check whether this is an Automake generated Makefile or not.
20620 # We used to match only the files named `Makefile.in', but
20621 # some people rename them; so instead we look at the file content.
20622 # Grep'ing the first line is not enough: some people post-process
20623 # each Makefile.in and add a new line on top of each file to say so.
20624 # Grep'ing the whole file is not good either: AIX grep has a line
20625 # limit of 2048, but all sed's we know have understand at least 4000.
20626 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20627 dirpart=`$as_dirname -- "$mf" ||
20628 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20629 X"$mf" : 'X\(//\)[^/]' \| \
20630 X"$mf" : 'X\(//\)$' \| \
20631 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20633 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20637 /^X\(\/\/\)[^/].*/{
20653 # Extract the definition of DEPDIR, am__include, and am__quote
20654 # from the Makefile without running `make'.
20655 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20656 test -z "$DEPDIR" && continue
20657 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20658 test -z "am__include" && continue
20659 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20660 # When using ansi2knr, U may be empty or an underscore; expand it
20661 U=`sed -n 's/^U = //p' < "$mf"`
20662 # Find all dependency output files, they are included files with
20663 # $(DEPDIR) in their names. We invoke sed twice because it is the
20664 # simplest approach to changing $(DEPDIR) to its actual value in the
20666 for file in `sed -n "
20667 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20668 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20669 # Make sure the directory exists.
20670 test -f "$dirpart/$file" && continue
20671 fdir=`$as_dirname -- "$file" ||
20672 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20673 X"$file" : 'X\(//\)[^/]' \| \
20674 X"$file" : 'X\(//\)$' \| \
20675 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20676 $as_echo X"$file" |
20677 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20681 /^X\(\/\/\)[^/].*/{
20694 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20695 # echo "creating $dirpart/$file"
20696 echo '# dummy' > "$dirpart/$file"
20701 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
20702 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
20706 # See if we are running on zsh, and set the options which allow our
20707 # commands through without removal of \ escapes.
20708 if test -n "${ZSH_VERSION+set}" ; then
20709 setopt NO_GLOB_SUBST
20712 cfgfile="${ofile}T"
20713 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20716 cat <<_LT_EOF >> "$cfgfile"
20719 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20720 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20721 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20722 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20724 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20725 # 2006, 2007, 2008 Free Software Foundation, Inc.
20726 # Written by Gordon Matzigkeit, 1996
20728 # This file is part of GNU Libtool.
20730 # GNU Libtool is free software; you can redistribute it and/or
20731 # modify it under the terms of the GNU General Public License as
20732 # published by the Free Software Foundation; either version 2 of
20733 # the License, or (at your option) any later version.
20735 # As a special exception to the GNU General Public License,
20736 # if you distribute this file as part of a program or library that
20737 # is built using GNU Libtool, you may include this file under the
20738 # same distribution terms that you use for the rest of that program.
20740 # GNU Libtool is distributed in the hope that it will be useful,
20741 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20742 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20743 # GNU General Public License for more details.
20745 # You should have received a copy of the GNU General Public License
20746 # along with GNU Libtool; see the file COPYING. If not, a copy
20747 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20748 # obtained by writing to the Free Software Foundation, Inc.,
20749 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20752 # The names of the tagged configurations supported by this script.
20753 available_tags="CXX "
20755 # ### BEGIN LIBTOOL CONFIG
20757 # Which release of libtool.m4 was used?
20758 macro_version=$macro_version
20759 macro_revision=$macro_revision
20761 # Whether or not to build shared libraries.
20762 build_libtool_libs=$enable_shared
20764 # Whether or not to build static libraries.
20765 build_old_libs=$enable_static
20767 # What type of objects to build.
20770 # Whether or not to optimize for fast installation.
20771 fast_install=$enable_fast_install
20774 host_alias=$host_alias
20778 # The build system.
20779 build_alias=$build_alias
20783 # A sed program that does not truncate output.
20786 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20787 Xsed="\$SED -e 1s/^X//"
20789 # A grep program that handles long lines.
20795 # A literal string matcher.
20798 # A BSD- or MS-compatible name lister.
20801 # Whether we need soft or hard links.
20804 # What is the maximum length of a command?
20805 max_cmd_len=$max_cmd_len
20807 # Object file suffix (normally "o").
20810 # Executable file suffix (normally "").
20813 # whether the shell understands "unset".
20816 # turn spaces into newlines.
20819 # turn newlines into spaces.
20822 # How to create reloadable object files.
20823 reload_flag=$lt_reload_flag
20824 reload_cmds=$lt_reload_cmds
20826 # An object symbol dumper.
20827 OBJDUMP=$lt_OBJDUMP
20829 # Method to check whether dependent libraries are shared objects.
20830 deplibs_check_method=$lt_deplibs_check_method
20832 # Command to use when deplibs_check_method == "file_magic".
20833 file_magic_cmd=$lt_file_magic_cmd
20837 AR_FLAGS=$lt_AR_FLAGS
20839 # A symbol stripping program.
20842 # Commands used to install an old-style archive.
20844 old_postinstall_cmds=$lt_old_postinstall_cmds
20845 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20850 # LTCC compiler flags.
20851 LTCFLAGS=$lt_CFLAGS
20853 # Take the output of nm and produce a listing of raw symbols and C names.
20854 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20856 # Transform the output of nm in a proper C declaration.
20857 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20859 # Transform the output of nm in a C name address pair.
20860 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20862 # Transform the output of nm in a C name address pair when lib prefix is needed.
20863 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20865 # The name of the directory that contains temporary libtool files.
20868 # Shell to use when invoking shell scripts.
20871 # An echo program that does not interpret backslashes.
20874 # Used to examine libraries when file_magic_cmd begins with "file".
20875 MAGIC_CMD=$MAGIC_CMD
20877 # Must we lock files when doing compilation?
20878 need_locks=$lt_need_locks
20880 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20881 DSYMUTIL=$lt_DSYMUTIL
20883 # Tool to change global to local symbols on Mac OS X.
20886 # Tool to manipulate fat objects and archives on Mac OS X.
20889 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20892 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20893 OTOOL64=$lt_OTOOL64
20895 # Old archive suffix (normally "a").
20898 # Shared library suffix (normally ".so").
20899 shrext_cmds=$lt_shrext_cmds
20901 # The commands to extract the exported symbol list from a shared archive.
20902 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20904 # Variables whose values should be saved in libtool wrapper scripts and
20905 # restored at link time.
20906 variables_saved_for_relink=$lt_variables_saved_for_relink
20908 # Do we need the "lib" prefix for modules?
20909 need_lib_prefix=$need_lib_prefix
20911 # Do we need a version for libraries?
20912 need_version=$need_version
20914 # Library versioning type.
20915 version_type=$version_type
20917 # Shared library runtime path variable.
20918 runpath_var=$runpath_var
20920 # Shared library path variable.
20921 shlibpath_var=$shlibpath_var
20923 # Is shlibpath searched before the hard-coded library search path?
20924 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20926 # Format of library name prefix.
20927 libname_spec=$lt_libname_spec
20929 # List of archive names. First name is the real one, the rest are links.
20930 # The last name is the one that the linker finds with -lNAME
20931 library_names_spec=$lt_library_names_spec
20933 # The coded name of the library, if different from the real name.
20934 soname_spec=$lt_soname_spec
20936 # Command to use after installation of a shared archive.
20937 postinstall_cmds=$lt_postinstall_cmds
20939 # Command to use after uninstallation of a shared archive.
20940 postuninstall_cmds=$lt_postuninstall_cmds
20942 # Commands used to finish a libtool library installation in a directory.
20943 finish_cmds=$lt_finish_cmds
20945 # As "finish_cmds", except a single script fragment to be evaled but
20947 finish_eval=$lt_finish_eval
20949 # Whether we should hardcode library paths into libraries.
20950 hardcode_into_libs=$hardcode_into_libs
20952 # Compile-time system search path for libraries.
20953 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20955 # Run-time system search path for libraries.
20956 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20958 # Whether dlopen is supported.
20959 dlopen_support=$enable_dlopen
20961 # Whether dlopen of programs is supported.
20962 dlopen_self=$enable_dlopen_self
20964 # Whether dlopen of statically linked programs is supported.
20965 dlopen_self_static=$enable_dlopen_self_static
20967 # Commands to strip libraries.
20968 old_striplib=$lt_old_striplib
20969 striplib=$lt_striplib
20972 # The linker used to build libraries.
20975 # Commands used to build an old-style archive.
20976 old_archive_cmds=$lt_old_archive_cmds
20978 # A language specific compiler.
20981 # Is the compiler the GNU compiler?
20984 # Compiler flag to turn off builtin functions.
20985 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20987 # How to pass a linker flag through the compiler.
20988 wl=$lt_lt_prog_compiler_wl
20990 # Additional compiler flags for building library objects.
20991 pic_flag=$lt_lt_prog_compiler_pic
20993 # Compiler flag to prevent dynamic linking.
20994 link_static_flag=$lt_lt_prog_compiler_static
20996 # Does compiler simultaneously support -c and -o options?
20997 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20999 # Whether or not to add -lc for building shared libraries.
21000 build_libtool_need_lc=$archive_cmds_need_lc
21002 # Whether or not to disallow shared libs when runtime libs are static.
21003 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21005 # Compiler flag to allow reflexive dlopens.
21006 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21008 # Compiler flag to generate shared objects directly from archives.
21009 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21011 # Whether the compiler copes with passing no objects directly.
21012 compiler_needs_object=$lt_compiler_needs_object
21014 # Create an old-style archive from a shared archive.
21015 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21017 # Create a temporary old-style archive to link instead of a shared archive.
21018 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21020 # Commands used to build a shared archive.
21021 archive_cmds=$lt_archive_cmds
21022 archive_expsym_cmds=$lt_archive_expsym_cmds
21024 # Commands used to build a loadable module if different from building
21025 # a shared archive.
21026 module_cmds=$lt_module_cmds
21027 module_expsym_cmds=$lt_module_expsym_cmds
21029 # Whether we are building with GNU ld or not.
21030 with_gnu_ld=$lt_with_gnu_ld
21032 # Flag that allows shared libraries with undefined symbols to be built.
21033 allow_undefined_flag=$lt_allow_undefined_flag
21035 # Flag that enforces no undefined symbols.
21036 no_undefined_flag=$lt_no_undefined_flag
21038 # Flag to hardcode \$libdir into a binary during linking.
21039 # This must work even if \$libdir does not exist
21040 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21042 # If ld is used when linking, flag to hardcode \$libdir into a binary
21043 # during linking. This must work even if \$libdir does not exist.
21044 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
21046 # Whether we need a single "-rpath" flag with a separated argument.
21047 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21049 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21050 # DIR into the resulting binary.
21051 hardcode_direct=$hardcode_direct
21053 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21054 # DIR into the resulting binary and the resulting library dependency is
21055 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21056 # library is relocated.
21057 hardcode_direct_absolute=$hardcode_direct_absolute
21059 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21060 # into the resulting binary.
21061 hardcode_minus_L=$hardcode_minus_L
21063 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21064 # into the resulting binary.
21065 hardcode_shlibpath_var=$hardcode_shlibpath_var
21067 # Set to "yes" if building a shared library automatically hardcodes DIR
21068 # into the library and all subsequent libraries and executables linked
21070 hardcode_automatic=$hardcode_automatic
21072 # Set to yes if linker adds runtime paths of dependent libraries
21073 # to runtime path list.
21074 inherit_rpath=$inherit_rpath
21076 # Whether libtool must link a program against all its dependency libraries.
21077 link_all_deplibs=$link_all_deplibs
21079 # Fix the shell variable \$srcfile for the compiler.
21080 fix_srcfile_path=$lt_fix_srcfile_path
21082 # Set to "yes" if exported symbols are required.
21083 always_export_symbols=$always_export_symbols
21085 # The commands to list exported symbols.
21086 export_symbols_cmds=$lt_export_symbols_cmds
21088 # Symbols that should not be listed in the preloaded symbols.
21089 exclude_expsyms=$lt_exclude_expsyms
21091 # Symbols that must always be exported.
21092 include_expsyms=$lt_include_expsyms
21094 # Commands necessary for linking programs (against libraries) with templates.
21095 prelink_cmds=$lt_prelink_cmds
21097 # Specify filename containing input files.
21098 file_list_spec=$lt_file_list_spec
21100 # How to hardcode a shared library path into an executable.
21101 hardcode_action=$hardcode_action
21103 # The directories searched by this compiler when creating a shared library.
21104 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21106 # Dependencies to place before and after the objects being linked to
21107 # create a shared library.
21108 predep_objects=$lt_predep_objects
21109 postdep_objects=$lt_postdep_objects
21110 predeps=$lt_predeps
21111 postdeps=$lt_postdeps
21113 # The library search path used internally by the compiler when linking
21114 # a shared library.
21115 compiler_lib_search_path=$lt_compiler_lib_search_path
21117 # ### END LIBTOOL CONFIG
21123 cat <<\_LT_EOF >> "$cfgfile"
21124 # AIX sometimes has problems with the GCC collect2 program. For some
21125 # reason, if we set the COLLECT_NAMES environment variable, the problems
21126 # vanish in a puff of smoke.
21127 if test "X${COLLECT_NAMES+set}" != Xset; then
21129 export COLLECT_NAMES
21136 ltmain="$ac_aux_dir/ltmain.sh"
21139 # We use sed instead of cat because bash on DJGPP gets confused if
21140 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21141 # text mode, it properly converts lines to CR/LF. This bash problem
21142 # is reportedly fixed, but why not run on old versions too?
21143 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
21144 || (rm -f "$cfgfile"; exit 1)
21148 cat << \_LT_EOF >> "$cfgfile"
21150 # func_dirname file append nondir_replacement
21151 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
21152 # otherwise set result to NONDIR_REPLACEMENT.
21156 */*) func_dirname_result="${1%/*}${2}" ;;
21157 * ) func_dirname_result="${3}" ;;
21161 # func_basename file
21164 func_basename_result="${1##*/}"
21167 # func_dirname_and_basename file append nondir_replacement
21168 # perform func_basename and func_dirname in a single function
21170 # dirname: Compute the dirname of FILE. If nonempty,
21171 # add APPEND to the result, otherwise set result
21172 # to NONDIR_REPLACEMENT.
21173 # value returned in "$func_dirname_result"
21174 # basename: Compute filename of FILE.
21175 # value retuned in "$func_basename_result"
21176 # Implementation must be kept synchronized with func_dirname
21177 # and func_basename. For efficiency, we do not delegate to
21178 # those functions but instead duplicate the functionality here.
21179 func_dirname_and_basename ()
21182 */*) func_dirname_result="${1%/*}${2}" ;;
21183 * ) func_dirname_result="${3}" ;;
21185 func_basename_result="${1##*/}"
21188 # func_stripname prefix suffix name
21189 # strip PREFIX and SUFFIX off of NAME.
21190 # PREFIX and SUFFIX must not contain globbing or regex special
21191 # characters, hashes, percent signs, but SUFFIX may contain a leading
21192 # dot (in which case that matches only a dot).
21195 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
21196 # positional parameters, so assign one to ordinary parameter first.
21197 func_stripname_result=${3}
21198 func_stripname_result=${func_stripname_result#"${1}"}
21199 func_stripname_result=${func_stripname_result%"${2}"}
21205 func_opt_split_opt=${1%%=*}
21206 func_opt_split_arg=${1#*=}
21213 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
21214 *) func_lo2o_result=${1} ;;
21218 # func_xform libobj-or-source
21221 func_xform_result=${1%.*}.lo
21224 # func_arith arithmetic-term...
21227 func_arith_result=$(( $* ))
21231 # STRING may not start with a hyphen.
21234 func_len_result=${#1}
21239 *) # Bourne compatible functions.
21240 cat << \_LT_EOF >> "$cfgfile"
21242 # func_dirname file append nondir_replacement
21243 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
21244 # otherwise set result to NONDIR_REPLACEMENT.
21247 # Extract subdirectory from the argument.
21248 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
21249 if test "X$func_dirname_result" = "X${1}"; then
21250 func_dirname_result="${3}"
21252 func_dirname_result="$func_dirname_result${2}"
21256 # func_basename file
21259 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
21263 # func_stripname prefix suffix name
21264 # strip PREFIX and SUFFIX off of NAME.
21265 # PREFIX and SUFFIX must not contain globbing or regex special
21266 # characters, hashes, percent signs, but SUFFIX may contain a leading
21267 # dot (in which case that matches only a dot).
21268 # func_strip_suffix prefix name
21272 .*) func_stripname_result=`$ECHO "X${3}" \
21273 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
21274 *) func_stripname_result=`$ECHO "X${3}" \
21275 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
21280 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
21281 my_sed_long_arg='1s/^-[^=]*=//'
21286 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
21287 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
21293 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
21296 # func_xform libobj-or-source
21299 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
21302 # func_arith arithmetic-term...
21305 func_arith_result=`expr "$@"`
21309 # STRING may not start with a hyphen.
21312 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
21318 case $lt_shell_append in
21320 cat << \_LT_EOF >> "$cfgfile"
21322 # func_append var value
21323 # Append VALUE to the end of shell variable VAR.
21331 cat << \_LT_EOF >> "$cfgfile"
21333 # func_append var value
21334 # Append VALUE to the end of shell variable VAR.
21345 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
21346 || (rm -f "$cfgfile"; exit 1)
21348 mv -f "$cfgfile" "$ofile" ||
21349 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21353 cat <<_LT_EOF >> "$ofile"
21355 # ### BEGIN LIBTOOL TAG CONFIG: CXX
21357 # The linker used to build libraries.
21360 # Commands used to build an old-style archive.
21361 old_archive_cmds=$lt_old_archive_cmds_CXX
21363 # A language specific compiler.
21364 CC=$lt_compiler_CXX
21366 # Is the compiler the GNU compiler?
21369 # Compiler flag to turn off builtin functions.
21370 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21372 # How to pass a linker flag through the compiler.
21373 wl=$lt_lt_prog_compiler_wl_CXX
21375 # Additional compiler flags for building library objects.
21376 pic_flag=$lt_lt_prog_compiler_pic_CXX
21378 # Compiler flag to prevent dynamic linking.
21379 link_static_flag=$lt_lt_prog_compiler_static_CXX
21381 # Does compiler simultaneously support -c and -o options?
21382 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21384 # Whether or not to add -lc for building shared libraries.
21385 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21387 # Whether or not to disallow shared libs when runtime libs are static.
21388 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21390 # Compiler flag to allow reflexive dlopens.
21391 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21393 # Compiler flag to generate shared objects directly from archives.
21394 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21396 # Whether the compiler copes with passing no objects directly.
21397 compiler_needs_object=$lt_compiler_needs_object_CXX
21399 # Create an old-style archive from a shared archive.
21400 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21402 # Create a temporary old-style archive to link instead of a shared archive.
21403 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21405 # Commands used to build a shared archive.
21406 archive_cmds=$lt_archive_cmds_CXX
21407 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21409 # Commands used to build a loadable module if different from building
21410 # a shared archive.
21411 module_cmds=$lt_module_cmds_CXX
21412 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21414 # Whether we are building with GNU ld or not.
21415 with_gnu_ld=$lt_with_gnu_ld_CXX
21417 # Flag that allows shared libraries with undefined symbols to be built.
21418 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21420 # Flag that enforces no undefined symbols.
21421 no_undefined_flag=$lt_no_undefined_flag_CXX
21423 # Flag to hardcode \$libdir into a binary during linking.
21424 # This must work even if \$libdir does not exist
21425 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21427 # If ld is used when linking, flag to hardcode \$libdir into a binary
21428 # during linking. This must work even if \$libdir does not exist.
21429 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21431 # Whether we need a single "-rpath" flag with a separated argument.
21432 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21434 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21435 # DIR into the resulting binary.
21436 hardcode_direct=$hardcode_direct_CXX
21438 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21439 # DIR into the resulting binary and the resulting library dependency is
21440 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21441 # library is relocated.
21442 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21444 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21445 # into the resulting binary.
21446 hardcode_minus_L=$hardcode_minus_L_CXX
21448 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21449 # into the resulting binary.
21450 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21452 # Set to "yes" if building a shared library automatically hardcodes DIR
21453 # into the library and all subsequent libraries and executables linked
21455 hardcode_automatic=$hardcode_automatic_CXX
21457 # Set to yes if linker adds runtime paths of dependent libraries
21458 # to runtime path list.
21459 inherit_rpath=$inherit_rpath_CXX
21461 # Whether libtool must link a program against all its dependency libraries.
21462 link_all_deplibs=$link_all_deplibs_CXX
21464 # Fix the shell variable \$srcfile for the compiler.
21465 fix_srcfile_path=$lt_fix_srcfile_path_CXX
21467 # Set to "yes" if exported symbols are required.
21468 always_export_symbols=$always_export_symbols_CXX
21470 # The commands to list exported symbols.
21471 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21473 # Symbols that should not be listed in the preloaded symbols.
21474 exclude_expsyms=$lt_exclude_expsyms_CXX
21476 # Symbols that must always be exported.
21477 include_expsyms=$lt_include_expsyms_CXX
21479 # Commands necessary for linking programs (against libraries) with templates.
21480 prelink_cmds=$lt_prelink_cmds_CXX
21482 # Specify filename containing input files.
21483 file_list_spec=$lt_file_list_spec_CXX
21485 # How to hardcode a shared library path into an executable.
21486 hardcode_action=$hardcode_action_CXX
21488 # The directories searched by this compiler when creating a shared library.
21489 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21491 # Dependencies to place before and after the objects being linked to
21492 # create a shared library.
21493 predep_objects=$lt_predep_objects_CXX
21494 postdep_objects=$lt_postdep_objects_CXX
21495 predeps=$lt_predeps_CXX
21496 postdeps=$lt_postdeps_CXX
21498 # The library search path used internally by the compiler when linking
21499 # a shared library.
21500 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21502 # ### END LIBTOOL TAG CONFIG: CXX
21506 "po-directories":C)
21507 for ac_file in $CONFIG_FILES; do
21508 # Support "outfile[:infile[:infile...]]"
21510 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21512 # PO directories have a Makefile.in generated from Makefile.in.in.
21513 case "$ac_file" in */Makefile.in)
21514 # Adjust a relative srcdir.
21515 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
21516 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
21517 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
21518 # In autoconf-2.13 it is called $ac_given_srcdir.
21519 # In autoconf-2.50 it is called $srcdir.
21520 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
21521 case "$ac_given_srcdir" in
21522 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
21523 /*) top_srcdir="$ac_given_srcdir" ;;
21524 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
21526 # Treat a directory as a PO directory if and only if it has a
21527 # POTFILES.in file. This allows packages to have multiple PO
21528 # directories under different names or in different locations.
21529 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
21530 rm -f "$ac_dir/POTFILES"
21531 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
21532 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
21533 POMAKEFILEDEPS="POTFILES.in"
21534 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
21535 # on $ac_dir but don't depend on user-specified configuration
21537 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
21538 # The LINGUAS file contains the set of available languages.
21539 if test -n "$OBSOLETE_ALL_LINGUAS"; then
21540 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
21542 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
21543 # Hide the ALL_LINGUAS assigment from automake < 1.5.
21544 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
21545 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
21547 # The set of available languages was given in configure.in.
21548 # Hide the ALL_LINGUAS assigment from automake < 1.5.
21549 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
21552 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
21553 # Compute UPDATEPOFILES
21554 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
21555 # Compute DUMMYPOFILES
21556 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
21558 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
21559 case "$ac_given_srcdir" in
21561 *) srcdirpre='$(srcdir)/' ;;
21567 for lang in $ALL_LINGUAS; do
21568 POFILES="$POFILES $srcdirpre$lang.po"
21569 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
21570 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
21571 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
21573 # CATALOGS depends on both $ac_dir and the user's LINGUAS
21574 # environment variable.
21576 if test -n "$ALL_LINGUAS"; then
21577 for presentlang in $ALL_LINGUAS; do
21579 if test "%UNSET%" != "$LINGUAS"; then
21580 desiredlanguages="$LINGUAS"
21582 desiredlanguages="$ALL_LINGUAS"
21584 for desiredlang in $desiredlanguages; do
21585 # Use the presentlang catalog if desiredlang is
21586 # a. equal to presentlang, or
21587 # b. a variant of presentlang (because in this case,
21588 # presentlang can be used as a fallback for messages
21589 # which are not translated in the desiredlang catalog).
21590 case "$desiredlang" in
21591 "$presentlang"*) useit=yes;;
21594 if test $useit = yes; then
21595 INST_LINGUAS="$INST_LINGUAS $presentlang"
21600 if test -n "$INST_LINGUAS"; then
21601 for lang in $INST_LINGUAS; do
21602 CATALOGS="$CATALOGS $lang.gmo"
21605 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
21606 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"
21607 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
21608 if test -f "$f"; then
21610 *.orig | *.bak | *~) ;;
21611 *) cat "$f" >> "$ac_dir/Makefile" ;;
21620 if ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" > /dev/null ; then
21621 as_fn_error "po/Makefile.in.in was not created by intltoolize." "$LINENO" 5
21623 rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
21628 '"s|^| $ac_top_srcdir/|" \
21629 "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
21631 sed '/^POTFILES =/,/[^\\]$/ {
21635 ' "po/Makefile.in" >"po/Makefile"
21636 rm -f "po/Makefile.tmp"
21637 mv "po/stamp-it.tmp" "po/stamp-it"
21646 ac_clean_files=$ac_clean_files_save
21648 test $ac_write_fail = 0 ||
21649 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
21652 # configure is writing to config.log, and then calls config.status.
21653 # config.status does its own redirection, appending to config.log.
21654 # Unfortunately, on DOS this fails, as config.log is still kept open
21655 # by configure, so config.status won't be able to write to it; its
21656 # output is simply discarded. So we exec the FD to /dev/null,
21657 # effectively closing config.log, so it can be properly (re)opened and
21658 # appended to by config.status. When coming back to configure, we
21659 # need to make the FD available again.
21660 if test "$no_create" != yes; then
21662 ac_config_status_args=
21663 test "$silent" = yes &&
21664 ac_config_status_args="$ac_config_status_args --quiet"
21666 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21668 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21669 # would make configure fail if this is the last instruction.
21670 $ac_cs_success || as_fn_exit $?
21672 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21674 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21678 echo "LordsAWar is now configured. Type 'make' to compile it."
21680 echo "Configuration:"
21681 echo " Installation location : $prefix"
21682 echo " Editor compilation : $use_editor"
21683 echo " Play-by-mail : $use_pbm"
21684 echo " Sound support : $use_sound"
21686 echo "Extra Options:"
21687 echo " Compiler Optimizations: $use_opts"