2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for scim-unikey 0.3.1.
5 # Report bugs to <mr.lequoctuan@gmail.com>.
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: mr.lequoctuan@gmail.com about your system, including
233 $0: any error possibly output before this message. Then
234 $0: install a modern shell, or manually run the script
235 $0: 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='scim-unikey'
700 PACKAGE_TARNAME='scim-unikey'
701 PACKAGE_VERSION='0.3.1'
702 PACKAGE_STRING='scim-unikey 0.3.1'
703 PACKAGE_BUGREPORT='mr.lequoctuan@gmail.com'
706 ac_unique_file="src/scim_unikey_const.h"
708 # Factoring default headers for most tests.
709 ac_includes_default="\
711 #ifdef HAVE_SYS_TYPES_H
712 # include <sys/types.h>
714 #ifdef HAVE_SYS_STAT_H
715 # include <sys/stat.h>
721 # ifdef HAVE_STDLIB_H
726 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
731 #ifdef HAVE_STRINGS_H
732 # include <strings.h>
734 #ifdef HAVE_INTTYPES_H
735 # include <inttypes.h>
744 ac_subst_vars='am__EXEEXT_FALSE
750 LIBTOOL_EXPORT_OPTIONS
753 SCIM_BUILD_SETUP_FALSE
754 SCIM_BUILD_SETUP_TRUE
826 XGETTEXT_EXTRA_OPTIONS
834 GETTEXT_MACRO_VERSION
844 INSTALL_STRIP_PROGRAM
886 program_transform_name
899 enable_option_checking
901 enable_dependency_tracking
912 ac_precious_vars='build_alias
934 # Initialize some variables set by options.
936 ac_init_version=false
937 ac_unrecognized_opts=
939 # The variables have the same names as the options, with
940 # dashes changed to underlines.
948 program_transform_name=s,x,x,
956 # Installation directory options.
957 # These are left unexpanded so users can "make install exec_prefix=/foo"
958 # and all the variables that are supposed to be based on exec_prefix
959 # by default will actually change.
960 # Use braces instead of parens because sh, perl, etc. also accept them.
961 # (The list follows the same order as the GNU Coding Standards.)
962 bindir='${exec_prefix}/bin'
963 sbindir='${exec_prefix}/sbin'
964 libexecdir='${exec_prefix}/libexec'
965 datarootdir='${prefix}/share'
966 datadir='${datarootdir}'
967 sysconfdir='${prefix}/etc'
968 sharedstatedir='${prefix}/com'
969 localstatedir='${prefix}/var'
970 includedir='${prefix}/include'
971 oldincludedir='/usr/include'
972 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
973 infodir='${datarootdir}/info'
978 libdir='${exec_prefix}/lib'
979 localedir='${datarootdir}/locale'
980 mandir='${datarootdir}/man'
986 # If the previous option needs an argument, assign it.
987 if test -n "$ac_prev"; then
988 eval $ac_prev=\$ac_option
994 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
998 # Accept the important Cygnus configure options, so we can diagnose typos.
1000 case $ac_dashdash$ac_option in
1004 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1006 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1007 bindir=$ac_optarg ;;
1009 -build | --build | --buil | --bui | --bu)
1010 ac_prev=build_alias ;;
1011 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1012 build_alias=$ac_optarg ;;
1014 -cache-file | --cache-file | --cache-fil | --cache-fi \
1015 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1016 ac_prev=cache_file ;;
1017 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1018 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1019 cache_file=$ac_optarg ;;
1021 --config-cache | -C)
1022 cache_file=config.cache ;;
1024 -datadir | --datadir | --datadi | --datad)
1026 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1027 datadir=$ac_optarg ;;
1029 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1030 | --dataroo | --dataro | --datar)
1031 ac_prev=datarootdir ;;
1032 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1033 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1034 datarootdir=$ac_optarg ;;
1036 -disable-* | --disable-*)
1037 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1038 # Reject names that are not valid shell variable names.
1039 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1040 as_fn_error "invalid feature name: $ac_useropt"
1041 ac_useropt_orig=$ac_useropt
1042 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1043 case $ac_user_opts in
1045 "enable_$ac_useropt"
1047 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1048 ac_unrecognized_sep=', ';;
1050 eval enable_$ac_useropt=no ;;
1052 -docdir | --docdir | --docdi | --doc | --do)
1054 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1055 docdir=$ac_optarg ;;
1057 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1059 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1060 dvidir=$ac_optarg ;;
1062 -enable-* | --enable-*)
1063 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1064 # Reject names that are not valid shell variable names.
1065 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1066 as_fn_error "invalid feature name: $ac_useropt"
1067 ac_useropt_orig=$ac_useropt
1068 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1069 case $ac_user_opts in
1071 "enable_$ac_useropt"
1073 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1074 ac_unrecognized_sep=', ';;
1076 eval enable_$ac_useropt=\$ac_optarg ;;
1078 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1079 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1080 | --exec | --exe | --ex)
1081 ac_prev=exec_prefix ;;
1082 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1083 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1084 | --exec=* | --exe=* | --ex=*)
1085 exec_prefix=$ac_optarg ;;
1087 -gas | --gas | --ga | --g)
1088 # Obsolete; use --with-gas.
1091 -help | --help | --hel | --he | -h)
1092 ac_init_help=long ;;
1093 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1094 ac_init_help=recursive ;;
1095 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1096 ac_init_help=short ;;
1098 -host | --host | --hos | --ho)
1099 ac_prev=host_alias ;;
1100 -host=* | --host=* | --hos=* | --ho=*)
1101 host_alias=$ac_optarg ;;
1103 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1105 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1107 htmldir=$ac_optarg ;;
1109 -includedir | --includedir | --includedi | --included | --include \
1110 | --includ | --inclu | --incl | --inc)
1111 ac_prev=includedir ;;
1112 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1113 | --includ=* | --inclu=* | --incl=* | --inc=*)
1114 includedir=$ac_optarg ;;
1116 -infodir | --infodir | --infodi | --infod | --info | --inf)
1118 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1119 infodir=$ac_optarg ;;
1121 -libdir | --libdir | --libdi | --libd)
1123 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1124 libdir=$ac_optarg ;;
1126 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1127 | --libexe | --libex | --libe)
1128 ac_prev=libexecdir ;;
1129 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1130 | --libexe=* | --libex=* | --libe=*)
1131 libexecdir=$ac_optarg ;;
1133 -localedir | --localedir | --localedi | --localed | --locale)
1134 ac_prev=localedir ;;
1135 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1136 localedir=$ac_optarg ;;
1138 -localstatedir | --localstatedir | --localstatedi | --localstated \
1139 | --localstate | --localstat | --localsta | --localst | --locals)
1140 ac_prev=localstatedir ;;
1141 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1142 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1143 localstatedir=$ac_optarg ;;
1145 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1147 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1148 mandir=$ac_optarg ;;
1150 -nfp | --nfp | --nf)
1151 # Obsolete; use --without-fp.
1154 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1155 | --no-cr | --no-c | -n)
1158 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1159 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1162 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1163 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1164 | --oldin | --oldi | --old | --ol | --o)
1165 ac_prev=oldincludedir ;;
1166 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1167 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1168 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1169 oldincludedir=$ac_optarg ;;
1171 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1173 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1174 prefix=$ac_optarg ;;
1176 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1177 | --program-pre | --program-pr | --program-p)
1178 ac_prev=program_prefix ;;
1179 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1180 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1181 program_prefix=$ac_optarg ;;
1183 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1184 | --program-suf | --program-su | --program-s)
1185 ac_prev=program_suffix ;;
1186 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1187 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1188 program_suffix=$ac_optarg ;;
1190 -program-transform-name | --program-transform-name \
1191 | --program-transform-nam | --program-transform-na \
1192 | --program-transform-n | --program-transform- \
1193 | --program-transform | --program-transfor \
1194 | --program-transfo | --program-transf \
1195 | --program-trans | --program-tran \
1196 | --progr-tra | --program-tr | --program-t)
1197 ac_prev=program_transform_name ;;
1198 -program-transform-name=* | --program-transform-name=* \
1199 | --program-transform-nam=* | --program-transform-na=* \
1200 | --program-transform-n=* | --program-transform-=* \
1201 | --program-transform=* | --program-transfor=* \
1202 | --program-transfo=* | --program-transf=* \
1203 | --program-trans=* | --program-tran=* \
1204 | --progr-tra=* | --program-tr=* | --program-t=*)
1205 program_transform_name=$ac_optarg ;;
1207 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1209 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1210 pdfdir=$ac_optarg ;;
1212 -psdir | --psdir | --psdi | --psd | --ps)
1214 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1217 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1218 | -silent | --silent | --silen | --sile | --sil)
1221 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1223 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1225 sbindir=$ac_optarg ;;
1227 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1228 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1229 | --sharedst | --shareds | --shared | --share | --shar \
1231 ac_prev=sharedstatedir ;;
1232 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1233 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1234 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1236 sharedstatedir=$ac_optarg ;;
1238 -site | --site | --sit)
1240 -site=* | --site=* | --sit=*)
1243 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1245 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1246 srcdir=$ac_optarg ;;
1248 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1249 | --syscon | --sysco | --sysc | --sys | --sy)
1250 ac_prev=sysconfdir ;;
1251 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1252 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1253 sysconfdir=$ac_optarg ;;
1255 -target | --target | --targe | --targ | --tar | --ta | --t)
1256 ac_prev=target_alias ;;
1257 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1258 target_alias=$ac_optarg ;;
1260 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1263 -version | --version | --versio | --versi | --vers | -V)
1264 ac_init_version=: ;;
1267 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1268 # Reject names that are not valid shell variable names.
1269 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1270 as_fn_error "invalid package name: $ac_useropt"
1271 ac_useropt_orig=$ac_useropt
1272 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1273 case $ac_user_opts in
1277 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1278 ac_unrecognized_sep=', ';;
1280 eval with_$ac_useropt=\$ac_optarg ;;
1282 -without-* | --without-*)
1283 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1284 # Reject names that are not valid shell variable names.
1285 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1286 as_fn_error "invalid package name: $ac_useropt"
1287 ac_useropt_orig=$ac_useropt
1288 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1289 case $ac_user_opts in
1293 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1294 ac_unrecognized_sep=', ';;
1296 eval with_$ac_useropt=no ;;
1299 # Obsolete; use --with-x.
1302 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1303 | --x-incl | --x-inc | --x-in | --x-i)
1304 ac_prev=x_includes ;;
1305 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1306 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1307 x_includes=$ac_optarg ;;
1309 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1310 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1311 ac_prev=x_libraries ;;
1312 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1313 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1314 x_libraries=$ac_optarg ;;
1316 -*) as_fn_error "unrecognized option: \`$ac_option'
1317 Try \`$0 --help' for more information."
1321 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1322 # Reject names that are not valid shell variable names.
1323 case $ac_envvar in #(
1324 '' | [0-9]* | *[!_$as_cr_alnum]* )
1325 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1327 eval $ac_envvar=\$ac_optarg
1328 export $ac_envvar ;;
1331 # FIXME: should be removed in autoconf 3.0.
1332 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1333 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1334 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1335 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1341 if test -n "$ac_prev"; then
1342 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1343 as_fn_error "missing argument to $ac_option"
1346 if test -n "$ac_unrecognized_opts"; then
1347 case $enable_option_checking in
1349 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1350 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1354 # Check all directory arguments for consistency.
1355 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1356 datadir sysconfdir sharedstatedir localstatedir includedir \
1357 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1358 libdir localedir mandir
1360 eval ac_val=\$$ac_var
1361 # Remove trailing slashes.
1364 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1365 eval $ac_var=\$ac_val;;
1367 # Be sure to have absolute directory names.
1369 [\\/$]* | ?:[\\/]* ) continue;;
1370 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1372 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1375 # There might be people who depend on the old broken behavior: `$host'
1376 # used to hold the argument of --host etc.
1377 # FIXME: To remove some day.
1380 target=$target_alias
1382 # FIXME: To remove some day.
1383 if test "x$host_alias" != x; then
1384 if test "x$build_alias" = x; then
1385 cross_compiling=maybe
1386 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1387 If a cross compiler is detected then cross compile mode will be used." >&2
1388 elif test "x$build_alias" != "x$host_alias"; then
1394 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1396 test "$silent" = yes && exec 6>/dev/null
1399 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1400 ac_ls_di=`ls -di .` &&
1401 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1402 as_fn_error "working directory cannot be determined"
1403 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1404 as_fn_error "pwd does not report name of working directory"
1407 # Find the source files, if location was not specified.
1408 if test -z "$srcdir"; then
1409 ac_srcdir_defaulted=yes
1410 # Try the directory containing this script, then the parent directory.
1411 ac_confdir=`$as_dirname -- "$as_myself" ||
1412 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1413 X"$as_myself" : 'X\(//\)[^/]' \| \
1414 X"$as_myself" : 'X\(//\)$' \| \
1415 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1416 $as_echo X"$as_myself" |
1417 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1435 if test ! -r "$srcdir/$ac_unique_file"; then
1439 ac_srcdir_defaulted=no
1441 if test ! -r "$srcdir/$ac_unique_file"; then
1442 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1443 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1445 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1447 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1449 # When building in place, set srcdir=.
1450 if test "$ac_abs_confdir" = "$ac_pwd"; then
1453 # Remove unnecessary trailing slashes from srcdir.
1454 # Double slashes in file names in object file debugging info
1455 # mess up M-x gdb in Emacs.
1457 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1459 for ac_var in $ac_precious_vars; do
1460 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1461 eval ac_env_${ac_var}_value=\$${ac_var}
1462 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1463 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1467 # Report the --help message.
1469 if test "$ac_init_help" = "long"; then
1470 # Omit some internal or obsolete options to make the list less imposing.
1471 # This message is too long to be a string in the A/UX 3.1 sh.
1473 \`configure' configures scim-unikey 0.3.1 to adapt to many kinds of systems.
1475 Usage: $0 [OPTION]... [VAR=VALUE]...
1477 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1478 VAR=VALUE. See below for descriptions of some of the useful variables.
1480 Defaults for the options are specified in brackets.
1483 -h, --help display this help and exit
1484 --help=short display options specific to this package
1485 --help=recursive display the short help of all the included packages
1486 -V, --version display version information and exit
1487 -q, --quiet, --silent do not print \`checking...' messages
1488 --cache-file=FILE cache test results in FILE [disabled]
1489 -C, --config-cache alias for \`--cache-file=config.cache'
1490 -n, --no-create do not create output files
1491 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1493 Installation directories:
1494 --prefix=PREFIX install architecture-independent files in PREFIX
1495 [$ac_default_prefix]
1496 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1499 By default, \`make install' will install all the files in
1500 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1501 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1502 for instance \`--prefix=\$HOME'.
1504 For better control, use the options below.
1506 Fine tuning of the installation directories:
1507 --bindir=DIR user executables [EPREFIX/bin]
1508 --sbindir=DIR system admin executables [EPREFIX/sbin]
1509 --libexecdir=DIR program executables [EPREFIX/libexec]
1510 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1511 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1512 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1513 --libdir=DIR object code libraries [EPREFIX/lib]
1514 --includedir=DIR C header files [PREFIX/include]
1515 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1516 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1517 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1518 --infodir=DIR info documentation [DATAROOTDIR/info]
1519 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1520 --mandir=DIR man documentation [DATAROOTDIR/man]
1521 --docdir=DIR documentation root [DATAROOTDIR/doc/scim-unikey]
1522 --htmldir=DIR html documentation [DOCDIR]
1523 --dvidir=DIR dvi documentation [DOCDIR]
1524 --pdfdir=DIR pdf documentation [DOCDIR]
1525 --psdir=DIR ps documentation [DOCDIR]
1531 --program-prefix=PREFIX prepend PREFIX to installed program names
1532 --program-suffix=SUFFIX append SUFFIX to installed program names
1533 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1536 --build=BUILD configure for building on BUILD [guessed]
1537 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1541 if test -n "$ac_init_help"; then
1542 case $ac_init_help in
1543 short | recursive ) echo "Configuration of scim-unikey 0.3.1:";;
1548 --disable-option-checking ignore unrecognized --enable/--with options
1549 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1550 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1551 --disable-nls do not use Native Language Support
1552 --disable-dependency-tracking speeds up one-time build
1553 --enable-dependency-tracking do not reject slow dependency extractors
1554 --disable-rpath do not hardcode runtime library paths
1555 --enable-static[=PKGS] build static libraries [default=no]
1556 --enable-shared[=PKGS] build shared libraries [default=yes]
1557 --enable-fast-install[=PKGS]
1558 optimize for fast installation [default=yes]
1559 --disable-libtool-lock avoid locking (might break parallel builds)
1562 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1563 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1564 --with-gnu-ld assume the C compiler uses GNU ld default=no
1565 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1566 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1567 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1568 --without-libintl-prefix don't search for libintl in includedir and libdir
1569 --with-pic try to use only PIC/non-PIC objects [default=use
1571 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1573 Some influential environment variables:
1574 CC C compiler command
1575 CFLAGS C compiler flags
1576 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1577 nonstandard directory <lib dir>
1578 LIBS libraries to pass to the linker, e.g. -l<library>
1579 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1580 you have headers in a nonstandard directory <include dir>
1582 CXX C++ compiler command
1583 CXXFLAGS C++ compiler flags
1584 CXXCPP C++ preprocessor
1585 PKG_CONFIG path to pkg-config utility
1586 GIO_CFLAGS C compiler flags for GIO, overriding pkg-config
1587 GIO_LIBS linker flags for GIO, overriding pkg-config
1588 SCIM_CFLAGS C compiler flags for SCIM, overriding pkg-config
1589 SCIM_LIBS linker flags for SCIM, overriding pkg-config
1590 SCIM_GTKUTILS_CFLAGS
1591 C compiler flags for SCIM_GTKUTILS, overriding pkg-config
1593 linker flags for SCIM_GTKUTILS, overriding pkg-config
1595 Use these variables to override the choices made by `configure' or to help
1596 it to find libraries and programs with nonstandard names/locations.
1598 Report bugs to <mr.lequoctuan@gmail.com>.
1603 if test "$ac_init_help" = "recursive"; then
1604 # If there are subdirs, report their specific --help.
1605 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1606 test -d "$ac_dir" ||
1607 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1612 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1614 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1615 # A ".." for each directory in $ac_dir_suffix.
1616 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1617 case $ac_top_builddir_sub in
1618 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1619 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1622 ac_abs_top_builddir=$ac_pwd
1623 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1624 # for backward compatibility:
1625 ac_top_builddir=$ac_top_build_prefix
1628 .) # We are building in place.
1630 ac_top_srcdir=$ac_top_builddir_sub
1631 ac_abs_top_srcdir=$ac_pwd ;;
1632 [\\/]* | ?:[\\/]* ) # Absolute name.
1633 ac_srcdir=$srcdir$ac_dir_suffix;
1634 ac_top_srcdir=$srcdir
1635 ac_abs_top_srcdir=$srcdir ;;
1637 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1638 ac_top_srcdir=$ac_top_build_prefix$srcdir
1639 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1641 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1643 cd "$ac_dir" || { ac_status=$?; continue; }
1644 # Check for guested configure.
1645 if test -f "$ac_srcdir/configure.gnu"; then
1647 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1648 elif test -f "$ac_srcdir/configure"; then
1650 $SHELL "$ac_srcdir/configure" --help=recursive
1652 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1654 cd "$ac_pwd" || { ac_status=$?; break; }
1658 test -n "$ac_init_help" && exit $ac_status
1659 if $ac_init_version; then
1661 scim-unikey configure 0.3.1
1662 generated by GNU Autoconf 2.64
1664 Copyright (C) 2009 Free Software Foundation, Inc.
1665 This configure script is free software; the Free Software Foundation
1666 gives unlimited permission to copy, distribute and modify it.
1671 ## ------------------------ ##
1672 ## Autoconf initialization. ##
1673 ## ------------------------ ##
1675 # ac_fn_c_try_compile LINENO
1676 # --------------------------
1677 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1678 ac_fn_c_try_compile ()
1680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681 rm -f conftest.$ac_objext
1682 if { { ac_try="$ac_compile"
1684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685 *) ac_try_echo=$ac_try;;
1687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688 $as_echo "$ac_try_echo"; } >&5
1689 (eval "$ac_compile") 2>conftest.err
1691 if test -s conftest.err; then
1692 grep -v '^ *+' conftest.err >conftest.er1
1693 cat conftest.er1 >&5
1694 mv -f conftest.er1 conftest.err
1696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697 test $ac_status = 0; } && {
1698 test -z "$ac_c_werror_flag" ||
1699 test ! -s conftest.err
1700 } && test -s conftest.$ac_objext; then :
1703 $as_echo "$as_me: failed program was:" >&5
1704 sed 's/^/| /' conftest.$ac_ext >&5
1708 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1711 } # ac_fn_c_try_compile
1713 # ac_fn_c_try_link LINENO
1714 # -----------------------
1715 # Try to link conftest.$ac_ext, and return whether this succeeded.
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 rm -f conftest.$ac_objext conftest$ac_exeext
1720 if { { ac_try="$ac_link"
1722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1723 *) ac_try_echo=$ac_try;;
1725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1726 $as_echo "$ac_try_echo"; } >&5
1727 (eval "$ac_link") 2>conftest.err
1729 if test -s conftest.err; then
1730 grep -v '^ *+' conftest.err >conftest.er1
1731 cat conftest.er1 >&5
1732 mv -f conftest.er1 conftest.err
1734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1735 test $ac_status = 0; } && {
1736 test -z "$ac_c_werror_flag" ||
1737 test ! -s conftest.err
1738 } && test -s conftest$ac_exeext && {
1739 test "$cross_compiling" = yes ||
1740 $as_test_x conftest$ac_exeext
1744 $as_echo "$as_me: failed program was:" >&5
1745 sed 's/^/| /' conftest.$ac_ext >&5
1749 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1750 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1751 # interfere with the next link command; also delete a directory that is
1752 # left behind by Apple's compiler. We do this before executing the actions.
1753 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1754 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1757 } # ac_fn_c_try_link
1759 # ac_fn_c_try_run LINENO
1760 # ----------------------
1761 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1762 # that executables *can* be run.
1765 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1766 if { { ac_try="$ac_link"
1768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1769 *) ac_try_echo=$ac_try;;
1771 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1772 $as_echo "$ac_try_echo"; } >&5
1773 (eval "$ac_link") 2>&5
1775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1776 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1777 { { case "(($ac_try" in
1778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1779 *) ac_try_echo=$ac_try;;
1781 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1782 $as_echo "$ac_try_echo"; } >&5
1783 (eval "$ac_try") 2>&5
1785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1786 test $ac_status = 0; }; }; then :
1789 $as_echo "$as_me: program exited with status $ac_status" >&5
1790 $as_echo "$as_me: failed program was:" >&5
1791 sed 's/^/| /' conftest.$ac_ext >&5
1793 ac_retval=$ac_status
1795 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1796 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1801 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1802 # -------------------------------------------------------
1803 # Tests whether HEADER exists and can be compiled using the include files in
1804 # INCLUDES, setting the cache variable VAR accordingly.
1805 ac_fn_c_check_header_compile ()
1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1809 $as_echo_n "checking for $2... " >&6; }
1810 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1811 $as_echo_n "(cached) " >&6
1813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1814 /* end confdefs.h. */
1818 if ac_fn_c_try_compile "$LINENO"; then :
1823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1827 $as_echo "$ac_res" >&6; }
1828 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1830 } # ac_fn_c_check_header_compile
1832 # ac_fn_c_try_cpp LINENO
1833 # ----------------------
1834 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 if { { ac_try="$ac_cpp conftest.$ac_ext"
1840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1841 *) ac_try_echo=$ac_try;;
1843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1844 $as_echo "$ac_try_echo"; } >&5
1845 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1847 if test -s conftest.err; then
1848 grep -v '^ *+' conftest.err >conftest.er1
1849 cat conftest.er1 >&5
1850 mv -f conftest.er1 conftest.err
1852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1853 test $ac_status = 0; } >/dev/null && {
1854 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1855 test ! -s conftest.err
1859 $as_echo "$as_me: failed program was:" >&5
1860 sed 's/^/| /' conftest.$ac_ext >&5
1864 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1869 # ac_fn_c_check_func LINENO FUNC VAR
1870 # ----------------------------------
1871 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1872 ac_fn_c_check_func ()
1874 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1876 $as_echo_n "checking for $2... " >&6; }
1877 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1878 $as_echo_n "(cached) " >&6
1880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1881 /* end confdefs.h. */
1882 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1883 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1884 #define $2 innocuous_$2
1886 /* System header to define __stub macros and hopefully few prototypes,
1887 which can conflict with char $2 (); below.
1888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1889 <limits.h> exists even on freestanding compilers. */
1892 # include <limits.h>
1894 # include <assert.h>
1899 /* Override any GCC internal prototype to avoid an error.
1900 Use char because int might match the return type of a GCC
1901 builtin and then its argument prototype would still apply. */
1906 /* The GNU C library defines this for functions which it implements
1907 to always fail with ENOSYS. Some functions are actually named
1908 something starting with __ and the normal name is an alias. */
1909 #if defined __stub_$2 || defined __stub___$2
1921 if ac_fn_c_try_link "$LINENO"; then :
1926 rm -f core conftest.err conftest.$ac_objext \
1927 conftest$ac_exeext conftest.$ac_ext
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1931 $as_echo "$ac_res" >&6; }
1932 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1934 } # ac_fn_c_check_func
1936 # ac_fn_cxx_try_compile LINENO
1937 # ----------------------------
1938 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1939 ac_fn_cxx_try_compile ()
1941 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1942 rm -f conftest.$ac_objext
1943 if { { ac_try="$ac_compile"
1945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1946 *) ac_try_echo=$ac_try;;
1948 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1949 $as_echo "$ac_try_echo"; } >&5
1950 (eval "$ac_compile") 2>conftest.err
1952 if test -s conftest.err; then
1953 grep -v '^ *+' conftest.err >conftest.er1
1954 cat conftest.er1 >&5
1955 mv -f conftest.er1 conftest.err
1957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1958 test $ac_status = 0; } && {
1959 test -z "$ac_cxx_werror_flag" ||
1960 test ! -s conftest.err
1961 } && test -s conftest.$ac_objext; then :
1964 $as_echo "$as_me: failed program was:" >&5
1965 sed 's/^/| /' conftest.$ac_ext >&5
1969 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1972 } # ac_fn_cxx_try_compile
1974 # ac_fn_cxx_try_cpp LINENO
1975 # ------------------------
1976 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1977 ac_fn_cxx_try_cpp ()
1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980 if { { ac_try="$ac_cpp conftest.$ac_ext"
1982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1983 *) ac_try_echo=$ac_try;;
1985 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1986 $as_echo "$ac_try_echo"; } >&5
1987 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1989 if test -s conftest.err; then
1990 grep -v '^ *+' conftest.err >conftest.er1
1991 cat conftest.er1 >&5
1992 mv -f conftest.er1 conftest.err
1994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1995 test $ac_status = 0; } >/dev/null && {
1996 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1997 test ! -s conftest.err
2001 $as_echo "$as_me: failed program was:" >&5
2002 sed 's/^/| /' conftest.$ac_ext >&5
2006 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2009 } # ac_fn_cxx_try_cpp
2011 # ac_fn_cxx_try_link LINENO
2012 # -------------------------
2013 # Try to link conftest.$ac_ext, and return whether this succeeded.
2014 ac_fn_cxx_try_link ()
2016 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2017 rm -f conftest.$ac_objext conftest$ac_exeext
2018 if { { ac_try="$ac_link"
2020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2021 *) ac_try_echo=$ac_try;;
2023 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2024 $as_echo "$ac_try_echo"; } >&5
2025 (eval "$ac_link") 2>conftest.err
2027 if test -s conftest.err; then
2028 grep -v '^ *+' conftest.err >conftest.er1
2029 cat conftest.er1 >&5
2030 mv -f conftest.er1 conftest.err
2032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2033 test $ac_status = 0; } && {
2034 test -z "$ac_cxx_werror_flag" ||
2035 test ! -s conftest.err
2036 } && test -s conftest$ac_exeext && {
2037 test "$cross_compiling" = yes ||
2038 $as_test_x conftest$ac_exeext
2042 $as_echo "$as_me: failed program was:" >&5
2043 sed 's/^/| /' conftest.$ac_ext >&5
2047 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2048 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2049 # interfere with the next link command; also delete a directory that is
2050 # left behind by Apple's compiler. We do this before executing the actions.
2051 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2052 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2055 } # ac_fn_cxx_try_link
2057 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2058 # ---------------------------------------------
2059 # Tests whether TYPE exists after having included INCLUDES, setting cache
2060 # variable VAR accordingly.
2061 ac_fn_cxx_check_type ()
2063 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
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
2070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2071 /* end confdefs.h. */
2082 if ac_fn_cxx_try_compile "$LINENO"; then :
2083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084 /* end confdefs.h. */
2095 if ac_fn_cxx_try_compile "$LINENO"; then :
2100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2106 $as_echo "$ac_res" >&6; }
2107 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2109 } # ac_fn_cxx_check_type
2111 # ac_fn_cxx_try_run LINENO
2112 # ------------------------
2113 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2114 # that executables *can* be run.
2115 ac_fn_cxx_try_run ()
2117 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2118 if { { ac_try="$ac_link"
2120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2121 *) ac_try_echo=$ac_try;;
2123 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2124 $as_echo "$ac_try_echo"; } >&5
2125 (eval "$ac_link") 2>&5
2127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2128 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2129 { { case "(($ac_try" in
2130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2131 *) ac_try_echo=$ac_try;;
2133 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2134 $as_echo "$ac_try_echo"; } >&5
2135 (eval "$ac_try") 2>&5
2137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2138 test $ac_status = 0; }; }; then :
2141 $as_echo "$as_me: program exited with status $ac_status" >&5
2142 $as_echo "$as_me: failed program was:" >&5
2143 sed 's/^/| /' conftest.$ac_ext >&5
2145 ac_retval=$ac_status
2147 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2148 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2151 } # ac_fn_cxx_try_run
2152 cat >config.log <<_ACEOF
2153 This file contains any messages produced by compilers while
2154 running configure, to aid debugging if configure makes a mistake.
2156 It was created by scim-unikey $as_me 0.3.1, which was
2157 generated by GNU Autoconf 2.64. Invocation command line was
2169 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2170 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2171 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2172 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2173 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2175 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2176 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2178 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2179 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2180 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2181 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2182 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2183 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2184 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2192 test -z "$as_dir" && as_dir=.
2193 $as_echo "PATH: $as_dir"
2209 # Keep a trace of the command line.
2210 # Strip out --no-create and --no-recursion so they do not pile up.
2211 # Strip out --silent because we don't want to record it for future runs.
2212 # Also quote any args containing shell meta-characters.
2213 # Make two passes to allow for proper duplicate-argument suppression.
2217 ac_must_keep_next=false
2223 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2224 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2225 | -silent | --silent | --silen | --sile | --sil)
2228 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2231 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2233 as_fn_append ac_configure_args1 " '$ac_arg'"
2234 if test $ac_must_keep_next = true; then
2235 ac_must_keep_next=false # Got value, back to normal.
2238 *=* | --config-cache | -C | -disable-* | --disable-* \
2239 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2240 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2241 | -with-* | --with-* | -without-* | --without-* | --x)
2242 case "$ac_configure_args0 " in
2243 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2246 -* ) ac_must_keep_next=true ;;
2249 as_fn_append ac_configure_args " '$ac_arg'"
2254 { ac_configure_args0=; unset ac_configure_args0;}
2255 { ac_configure_args1=; unset ac_configure_args1;}
2257 # When interrupted or exit'd, cleanup temporary files, and complete
2258 # config.log. We remove comments because anyway the quotes in there
2259 # would cause problems or look ugly.
2260 # WARNING: Use '\'' to represent an apostrophe within the trap.
2261 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2262 trap 'exit_status=$?
2263 # Save into config.log some information that might help in debugging.
2268 ## ---------------- ##
2269 ## Cache variables. ##
2270 ## ---------------- ##
2273 # The following way of writing the cache mishandles newlines in values,
2275 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2276 eval ac_val=\$$ac_var
2280 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2281 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2284 _ | IFS | as_nl) ;; #(
2285 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2286 *) { eval $ac_var=; unset $ac_var;} ;;
2291 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2292 *${as_nl}ac_space=\ *)
2294 "s/'\''/'\''\\\\'\'''\''/g;
2295 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2298 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2306 ## ----------------- ##
2307 ## Output variables. ##
2308 ## ----------------- ##
2311 for ac_var in $ac_subst_vars
2313 eval ac_val=\$$ac_var
2315 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2317 $as_echo "$ac_var='\''$ac_val'\''"
2321 if test -n "$ac_subst_files"; then
2323 ## ------------------- ##
2324 ## File substitutions. ##
2325 ## ------------------- ##
2328 for ac_var in $ac_subst_files
2330 eval ac_val=\$$ac_var
2332 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2334 $as_echo "$ac_var='\''$ac_val'\''"
2339 if test -s confdefs.h; then
2349 test "$ac_signal" != 0 &&
2350 $as_echo "$as_me: caught signal $ac_signal"
2351 $as_echo "$as_me: exit $exit_status"
2353 rm -f core *.core core.conftest.* &&
2354 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2357 for ac_signal in 1 2 13 15; do
2358 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2362 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2363 rm -f -r conftest* confdefs.h
2365 $as_echo "/* confdefs.h */" > confdefs.h
2367 # Predefined preprocessor variables.
2369 cat >>confdefs.h <<_ACEOF
2370 #define PACKAGE_NAME "$PACKAGE_NAME"
2373 cat >>confdefs.h <<_ACEOF
2374 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2377 cat >>confdefs.h <<_ACEOF
2378 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2381 cat >>confdefs.h <<_ACEOF
2382 #define PACKAGE_STRING "$PACKAGE_STRING"
2385 cat >>confdefs.h <<_ACEOF
2386 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2389 cat >>confdefs.h <<_ACEOF
2390 #define PACKAGE_URL "$PACKAGE_URL"
2394 # Let the site file select an alternate cache file if it wants to.
2395 # Prefer an explicitly selected file to automatically selected ones.
2398 if test -n "$CONFIG_SITE"; then
2399 ac_site_file1=$CONFIG_SITE
2400 elif test "x$prefix" != xNONE; then
2401 ac_site_file1=$prefix/share/config.site
2402 ac_site_file2=$prefix/etc/config.site
2404 ac_site_file1=$ac_default_prefix/share/config.site
2405 ac_site_file2=$ac_default_prefix/etc/config.site
2407 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2409 test "x$ac_site_file" = xNONE && continue
2410 if test -r "$ac_site_file"; then
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2412 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2413 sed 's/^/| /' "$ac_site_file" >&5
2418 if test -r "$cache_file"; then
2419 # Some versions of bash will fail to source /dev/null (special
2420 # files actually), so we avoid doing that.
2421 if test -f "$cache_file"; then
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2423 $as_echo "$as_me: loading cache $cache_file" >&6;}
2425 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2426 *) . "./$cache_file";;
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2431 $as_echo "$as_me: creating cache $cache_file" >&6;}
2435 gt_needs="$gt_needs "
2436 # Check that the precious variables saved in the cache have kept the same
2438 ac_cache_corrupted=false
2439 for ac_var in $ac_precious_vars; do
2440 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2441 eval ac_new_set=\$ac_env_${ac_var}_set
2442 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2443 eval ac_new_val=\$ac_env_${ac_var}_value
2444 case $ac_old_set,$ac_new_set in
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2447 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2448 ac_cache_corrupted=: ;;
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2451 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2452 ac_cache_corrupted=: ;;
2455 if test "x$ac_old_val" != "x$ac_new_val"; then
2456 # differences in whitespace do not lead to failure.
2457 ac_old_val_w=`echo x $ac_old_val`
2458 ac_new_val_w=`echo x $ac_new_val`
2459 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2461 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2462 ac_cache_corrupted=:
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2465 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2466 eval $ac_var=\$ac_old_val
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2469 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2471 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2474 # Pass precious variables to config.status.
2475 if test "$ac_new_set" = set; then
2477 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2478 *) ac_arg=$ac_var=$ac_new_val ;;
2480 case " $ac_configure_args " in
2481 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2482 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2486 if $ac_cache_corrupted; then
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2488 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2490 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2491 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2493 ## -------------------- ##
2494 ## Main body of script. ##
2495 ## -------------------- ##
2498 ac_cpp='$CPP $CPPFLAGS'
2499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2505 cflags_set=${CFLAGS+set}
2506 cppflags_set=${CPPFLAGS+set}
2508 # Init automake stuff
2509 am__api_version='1.11'
2512 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2513 for ac_t in install-sh install.sh shtool; do
2514 if test -f "$ac_dir/$ac_t"; then
2516 ac_install_sh="$ac_aux_dir/$ac_t -c"
2521 if test -z "$ac_aux_dir"; then
2522 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2525 # These three variables are undocumented and unsupported,
2526 # and are intended to be withdrawn in a future Autoconf release.
2527 # They can cause serious problems if a builder's source tree is in a directory
2528 # whose full name contains unusual characters.
2529 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2530 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2531 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2534 # Find a good install program. We prefer a C program (faster),
2535 # so one script is as good as another. But avoid the broken or
2536 # incompatible versions:
2537 # SysV /etc/install, /usr/sbin/install
2538 # SunOS /usr/etc/install
2539 # IRIX /sbin/install
2541 # AmigaOS /C/install, which installs bootblocks on floppy discs
2542 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2543 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2544 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2545 # OS/2's system install, which has a completely different semantic
2546 # ./install, which can be erroneously created by make from ./install.sh.
2547 # Reject install programs that cannot install multiple files.
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2549 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2550 if test -z "$INSTALL"; then
2551 if test "${ac_cv_path_install+set}" = set; then :
2552 $as_echo_n "(cached) " >&6
2554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2558 test -z "$as_dir" && as_dir=.
2559 # Account for people who put trailing slashes in PATH elements.
2560 case $as_dir/ in #((
2561 ./ | .// | /[cC]/* | \
2562 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2563 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2566 # OSF1 and SCO ODT 3.0 have their own names for install.
2567 # Don't use installbsd from OSF since it installs stuff as root
2569 for ac_prog in ginstall scoinst install; do
2570 for ac_exec_ext in '' $ac_executable_extensions; do
2571 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2572 if test $ac_prog = install &&
2573 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2574 # AIX install. It has an incompatible calling convention.
2576 elif test $ac_prog = install &&
2577 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2578 # program-specific install script used by HP pwplus--don't use.
2581 rm -rf conftest.one conftest.two conftest.dir
2582 echo one > conftest.one
2583 echo two > conftest.two
2585 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2586 test -s conftest.one && test -s conftest.two &&
2587 test -s conftest.dir/conftest.one &&
2588 test -s conftest.dir/conftest.two
2590 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2603 rm -rf conftest.one conftest.two conftest.dir
2606 if test "${ac_cv_path_install+set}" = set; then
2607 INSTALL=$ac_cv_path_install
2609 # As a last resort, use the slow shell script. Don't cache a
2610 # value for INSTALL within a source directory, because that will
2611 # break other packages using the cache if that directory is
2612 # removed, or if the value is a relative name.
2613 INSTALL=$ac_install_sh
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2617 $as_echo "$INSTALL" >&6; }
2619 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2620 # It thinks the first close brace ends the variable substitution.
2621 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2623 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2625 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2628 $as_echo_n "checking whether build environment is sane... " >&6; }
2631 echo timestamp > conftest.file
2632 # Reject unsafe characters in $srcdir or the absolute working directory
2633 # name. Accept space and tab only in the latter.
2637 *[\\\"\#\$\&\'\`$am_lf]*)
2638 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2641 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2642 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2645 # Do `set' in a subshell so we don't clobber the current shell's
2646 # arguments. Must try -L first in case configure is actually a
2647 # symlink; some systems play weird games with the mod time of symlinks
2648 # (eg FreeBSD returns the mod time of the symlink's containing
2651 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2652 if test "$*" = "X"; then
2654 set X `ls -t "$srcdir/configure" conftest.file`
2657 if test "$*" != "X $srcdir/configure conftest.file" \
2658 && test "$*" != "X conftest.file $srcdir/configure"; then
2660 # If neither matched, then we have a broken ls. This can happen
2661 # if, for instance, CONFIG_SHELL is bash and it inherits a
2662 # broken ls alias from the environment. This has actually
2663 # happened. Such a system could not be considered "sane".
2664 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2665 alias in your environment" "$LINENO" 5
2668 test "$2" = conftest.file
2674 as_fn_error "newly created file is older than distributed files!
2675 Check your system clock" "$LINENO" 5
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2678 $as_echo "yes" >&6; }
2679 test "$program_prefix" != NONE &&
2680 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2681 # Use a double $ so make ignores it.
2682 test "$program_suffix" != NONE &&
2683 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2684 # Double any \ or $.
2685 # By default was `s,x,x', remove it if useless.
2686 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2687 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2689 # expand $ac_aux_dir to an absolute path
2690 am_aux_dir=`cd $ac_aux_dir && pwd`
2692 if test x"${MISSING+set}" != xset; then
2695 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2697 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2700 # Use eval to expand $SHELL
2701 if eval "$MISSING --run true"; then
2702 am_missing_run="$MISSING --run "
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2706 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2709 if test x"${install_sh}" != xset; then
2712 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2714 install_sh="\${SHELL} $am_aux_dir/install-sh"
2718 # Installed binaries are usually stripped using `strip' when the user
2719 # run `make install-strip'. However `strip' might not be the right
2720 # tool to use in cross-compilation environments, therefore Automake
2721 # will honor the `STRIP' environment variable to overrule this program.
2722 if test "$cross_compiling" != no; then
2723 if test -n "$ac_tool_prefix"; then
2724 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2725 set dummy ${ac_tool_prefix}strip; ac_word=$2
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2727 $as_echo_n "checking for $ac_word... " >&6; }
2728 if test "${ac_cv_prog_STRIP+set}" = set; then :
2729 $as_echo_n "(cached) " >&6
2731 if test -n "$STRIP"; then
2732 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2738 test -z "$as_dir" && as_dir=.
2739 for ac_exec_ext in '' $ac_executable_extensions; do
2740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2741 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2751 STRIP=$ac_cv_prog_STRIP
2752 if test -n "$STRIP"; then
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2754 $as_echo "$STRIP" >&6; }
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2757 $as_echo "no" >&6; }
2762 if test -z "$ac_cv_prog_STRIP"; then
2764 # Extract the first word of "strip", so it can be a program name with args.
2765 set dummy strip; ac_word=$2
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2767 $as_echo_n "checking for $ac_word... " >&6; }
2768 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2769 $as_echo_n "(cached) " >&6
2771 if test -n "$ac_ct_STRIP"; then
2772 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778 test -z "$as_dir" && as_dir=.
2779 for ac_exec_ext in '' $ac_executable_extensions; do
2780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2781 ac_cv_prog_ac_ct_STRIP="strip"
2782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2791 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2792 if test -n "$ac_ct_STRIP"; then
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2794 $as_echo "$ac_ct_STRIP" >&6; }
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2797 $as_echo "no" >&6; }
2800 if test "x$ac_ct_STRIP" = x; then
2803 case $cross_compiling:$ac_tool_warned in
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2806 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2807 ac_tool_warned=yes ;;
2812 STRIP="$ac_cv_prog_STRIP"
2816 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2819 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2820 if test -z "$MKDIR_P"; then
2821 if test "${ac_cv_path_mkdir+set}" = set; then :
2822 $as_echo_n "(cached) " >&6
2824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2828 test -z "$as_dir" && as_dir=.
2829 for ac_prog in mkdir gmkdir; do
2830 for ac_exec_ext in '' $ac_executable_extensions; do
2831 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2832 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2833 'mkdir (GNU coreutils) '* | \
2834 'mkdir (coreutils) '* | \
2835 'mkdir (fileutils) '4.1*)
2836 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2846 if test "${ac_cv_path_mkdir+set}" = set; then
2847 MKDIR_P="$ac_cv_path_mkdir -p"
2849 # As a last resort, use the slow shell script. Don't cache a
2850 # value for MKDIR_P within a source directory, because that will
2851 # break other packages using the cache if that directory is
2852 # removed, or if the value is a relative name.
2853 test -d ./--version && rmdir ./--version
2854 MKDIR_P="$ac_install_sh -d"
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2858 $as_echo "$MKDIR_P" >&6; }
2862 [\\/$]* | ?:[\\/]*) ;;
2863 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2866 for ac_prog in gawk mawk nawk awk
2868 # Extract the first word of "$ac_prog", so it can be a program name with args.
2869 set dummy $ac_prog; ac_word=$2
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2871 $as_echo_n "checking for $ac_word... " >&6; }
2872 if test "${ac_cv_prog_AWK+set}" = set; then :
2873 $as_echo_n "(cached) " >&6
2875 if test -n "$AWK"; then
2876 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882 test -z "$as_dir" && as_dir=.
2883 for ac_exec_ext in '' $ac_executable_extensions; do
2884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2885 ac_cv_prog_AWK="$ac_prog"
2886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2896 if test -n "$AWK"; then
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2898 $as_echo "$AWK" >&6; }
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2901 $as_echo "no" >&6; }
2905 test -n "$AWK" && break
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2909 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2911 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2912 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2913 $as_echo_n "(cached) " >&6
2915 cat >conftest.make <<\_ACEOF
2918 @echo '@@@%%%=$(MAKE)=@@@%%%'
2920 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2921 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2923 eval ac_cv_prog_make_${ac_make}_set=yes;;
2925 eval ac_cv_prog_make_${ac_make}_set=no;;
2929 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2931 $as_echo "yes" >&6; }
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2935 $as_echo "no" >&6; }
2936 SET_MAKE="MAKE=${MAKE-make}"
2939 rm -rf .tst 2>/dev/null
2940 mkdir .tst 2>/dev/null
2941 if test -d .tst; then
2946 rmdir .tst 2>/dev/null
2948 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2949 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2950 # is not polluted with repeated "-I."
2951 am__isrc=' -I$(srcdir)'
2952 # test to see if srcdir already configured
2953 if test -f $srcdir/config.status; then
2954 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2958 # test whether we have cygpath
2959 if test -z "$CYGPATH_W"; then
2960 if (cygpath --version) >/dev/null 2>/dev/null; then
2961 CYGPATH_W='cygpath -w'
2968 # Define the identity of the package.
2969 PACKAGE='scim-unikey'
2973 cat >>confdefs.h <<_ACEOF
2974 #define PACKAGE "$PACKAGE"
2978 cat >>confdefs.h <<_ACEOF
2979 #define VERSION "$VERSION"
2982 # Some tools Automake needs.
2984 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2987 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2990 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2993 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2996 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2998 # We need awk for the "check" target. The system "awk" is bad on
3000 # Always define AMTAR for backward compatibility.
3002 AMTAR=${AMTAR-"${am_missing_run}tar"}
3004 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3010 ac_config_headers="$ac_config_headers config.h"
3013 # Installed binaries are usually stripped using `strip' when the user
3014 # run `make install-strip'. However `strip' might not be the right
3015 # tool to use in cross-compilation environments, therefore Automake
3016 # will honor the `STRIP' environment variable to overrule this program.
3017 if test "$cross_compiling" != no; then
3018 if test -n "$ac_tool_prefix"; then
3019 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3020 set dummy ${ac_tool_prefix}strip; ac_word=$2
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3022 $as_echo_n "checking for $ac_word... " >&6; }
3023 if test "${ac_cv_prog_STRIP+set}" = set; then :
3024 $as_echo_n "(cached) " >&6
3026 if test -n "$STRIP"; then
3027 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3033 test -z "$as_dir" && as_dir=.
3034 for ac_exec_ext in '' $ac_executable_extensions; do
3035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3036 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3046 STRIP=$ac_cv_prog_STRIP
3047 if test -n "$STRIP"; then
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3049 $as_echo "$STRIP" >&6; }
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052 $as_echo "no" >&6; }
3057 if test -z "$ac_cv_prog_STRIP"; then
3059 # Extract the first word of "strip", so it can be a program name with args.
3060 set dummy strip; ac_word=$2
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3062 $as_echo_n "checking for $ac_word... " >&6; }
3063 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3064 $as_echo_n "(cached) " >&6
3066 if test -n "$ac_ct_STRIP"; then
3067 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3073 test -z "$as_dir" && as_dir=.
3074 for ac_exec_ext in '' $ac_executable_extensions; do
3075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3076 ac_cv_prog_ac_ct_STRIP="strip"
3077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3086 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3087 if test -n "$ac_ct_STRIP"; then
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3089 $as_echo "$ac_ct_STRIP" >&6; }
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3092 $as_echo "no" >&6; }
3095 if test "x$ac_ct_STRIP" = x; then
3098 case $cross_compiling:$ac_tool_warned in
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3101 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3102 ac_tool_warned=yes ;;
3107 STRIP="$ac_cv_prog_STRIP"
3111 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
3116 $as_echo_n "checking whether NLS is requested... " >&6; }
3117 # Check whether --enable-nls was given.
3118 if test "${enable_nls+set}" = set; then :
3119 enableval=$enable_nls; USE_NLS=$enableval
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
3125 $as_echo "$USE_NLS" >&6; }
3130 GETTEXT_MACRO_VERSION=0.17
3135 # Prepare PATH_SEPARATOR.
3136 # The user is always right.
3137 if test "${PATH_SEPARATOR+set}" != set; then
3138 echo "#! /bin/sh" >conf$$.sh
3139 echo "exit 0" >>conf$$.sh
3141 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3149 # Find out how to test for executable files. Don't use a zero-byte file,
3150 # as systems may use methods other than mode bits to determine executability.
3151 cat >conf$$.file <<_ASEOF
3155 chmod +x conf$$.file
3156 if test -x conf$$.file >/dev/null 2>&1; then
3157 ac_executable_p="test -x"
3159 ac_executable_p="test -f"
3163 # Extract the first word of "msgfmt", so it can be a program name with args.
3164 set dummy msgfmt; ac_word=$2
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3166 $as_echo_n "checking for $ac_word... " >&6; }
3167 if test "${ac_cv_path_MSGFMT+set}" = set; then :
3168 $as_echo_n "(cached) " >&6
3172 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3175 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3176 for ac_dir in $PATH; do
3178 test -z "$ac_dir" && ac_dir=.
3179 for ac_exec_ext in '' $ac_executable_extensions; do
3180 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3181 echo "$as_me: trying $ac_dir/$ac_word..." >&5
3182 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
3183 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3184 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
3191 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
3195 MSGFMT="$ac_cv_path_MSGFMT"
3196 if test "$MSGFMT" != ":"; then
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
3198 $as_echo "$MSGFMT" >&6; }
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3201 $as_echo "no" >&6; }
3204 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3205 set dummy gmsgfmt; ac_word=$2
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3207 $as_echo_n "checking for $ac_word... " >&6; }
3208 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
3209 $as_echo_n "(cached) " >&6
3213 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3220 test -z "$as_dir" && as_dir=.
3221 for ac_exec_ext in '' $ac_executable_extensions; do
3222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3223 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
3224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3231 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3235 GMSGFMT=$ac_cv_path_GMSGFMT
3236 if test -n "$GMSGFMT"; then
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
3238 $as_echo "$GMSGFMT" >&6; }
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3241 $as_echo "no" >&6; }
3246 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
3247 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
3248 *) MSGFMT_015=$MSGFMT ;;
3251 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
3252 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
3253 *) GMSGFMT_015=$GMSGFMT ;;
3258 # Prepare PATH_SEPARATOR.
3259 # The user is always right.
3260 if test "${PATH_SEPARATOR+set}" != set; then
3261 echo "#! /bin/sh" >conf$$.sh
3262 echo "exit 0" >>conf$$.sh
3264 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3272 # Find out how to test for executable files. Don't use a zero-byte file,
3273 # as systems may use methods other than mode bits to determine executability.
3274 cat >conf$$.file <<_ASEOF
3278 chmod +x conf$$.file
3279 if test -x conf$$.file >/dev/null 2>&1; then
3280 ac_executable_p="test -x"
3282 ac_executable_p="test -f"
3286 # Extract the first word of "xgettext", so it can be a program name with args.
3287 set dummy xgettext; ac_word=$2
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3289 $as_echo_n "checking for $ac_word... " >&6; }
3290 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
3291 $as_echo_n "(cached) " >&6
3295 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3298 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3299 for ac_dir in $PATH; do
3301 test -z "$ac_dir" && ac_dir=.
3302 for ac_exec_ext in '' $ac_executable_extensions; do
3303 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3304 echo "$as_me: trying $ac_dir/$ac_word..." >&5
3305 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
3306 (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
3307 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
3314 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3318 XGETTEXT="$ac_cv_path_XGETTEXT"
3319 if test "$XGETTEXT" != ":"; then
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
3321 $as_echo "$XGETTEXT" >&6; }
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3324 $as_echo "no" >&6; }
3329 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
3330 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
3331 *) XGETTEXT_015=$XGETTEXT ;;
3336 # Prepare PATH_SEPARATOR.
3337 # The user is always right.
3338 if test "${PATH_SEPARATOR+set}" != set; then
3339 echo "#! /bin/sh" >conf$$.sh
3340 echo "exit 0" >>conf$$.sh
3342 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3350 # Find out how to test for executable files. Don't use a zero-byte file,
3351 # as systems may use methods other than mode bits to determine executability.
3352 cat >conf$$.file <<_ASEOF
3356 chmod +x conf$$.file
3357 if test -x conf$$.file >/dev/null 2>&1; then
3358 ac_executable_p="test -x"
3360 ac_executable_p="test -f"
3364 # Extract the first word of "msgmerge", so it can be a program name with args.
3365 set dummy msgmerge; ac_word=$2
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3367 $as_echo_n "checking for $ac_word... " >&6; }
3368 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
3369 $as_echo_n "(cached) " >&6
3373 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
3376 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3377 for ac_dir in $PATH; do
3379 test -z "$ac_dir" && ac_dir=.
3380 for ac_exec_ext in '' $ac_executable_extensions; do
3381 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3382 echo "$as_me: trying $ac_dir/$ac_word..." >&5
3383 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
3384 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
3391 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
3395 MSGMERGE="$ac_cv_path_MSGMERGE"
3396 if test "$MSGMERGE" != ":"; then
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
3398 $as_echo "$MSGMERGE" >&6; }
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3401 $as_echo "no" >&6; }
3405 test -n "$localedir" || localedir='${datadir}/locale'
3408 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
3411 ac_config_commands="$ac_config_commands po-directories"
3415 if test "X$prefix" = "XNONE"; then
3416 acl_final_prefix="$ac_default_prefix"
3418 acl_final_prefix="$prefix"
3420 if test "X$exec_prefix" = "XNONE"; then
3421 acl_final_exec_prefix='${prefix}'
3423 acl_final_exec_prefix="$exec_prefix"
3425 acl_save_prefix="$prefix"
3426 prefix="$acl_final_prefix"
3427 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
3428 prefix="$acl_save_prefix"
3430 DEPDIR="${am__leading_dot}deps"
3432 ac_config_commands="$ac_config_commands depfiles"
3435 am_make=${MAKE-make}
3436 cat > confinc << 'END'
3438 @echo this is the am__doit target
3441 # If we don't find an include directive, just comment out the code.
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3443 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3447 # First try GNU make style include.
3448 echo "include confinc" > confmf
3449 # Ignore all kinds of additional output from `make'.
3450 case `$am_make -s -f confmf 2> /dev/null` in #(
3451 *the\ am__doit\ target*)
3457 # Now try BSD make style include.
3458 if test "$am__include" = "#"; then
3459 echo '.include "confinc"' > confmf
3460 case `$am_make -s -f confmf 2> /dev/null` in #(
3461 *the\ am__doit\ target*)
3462 am__include=.include
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3471 $as_echo "$_am_result" >&6; }
3472 rm -f confinc confmf
3474 # Check whether --enable-dependency-tracking was given.
3475 if test "${enable_dependency_tracking+set}" = set; then :
3476 enableval=$enable_dependency_tracking;
3479 if test "x$enable_dependency_tracking" != xno; then
3480 am_depcomp="$ac_aux_dir/depcomp"
3483 if test "x$enable_dependency_tracking" != xno; then
3493 ac_cpp='$CPP $CPPFLAGS'
3494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3497 if test -n "$ac_tool_prefix"; then
3498 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3499 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3501 $as_echo_n "checking for $ac_word... " >&6; }
3502 if test "${ac_cv_prog_CC+set}" = set; then :
3503 $as_echo_n "(cached) " >&6
3505 if test -n "$CC"; then
3506 ac_cv_prog_CC="$CC" # Let the user override the test.
3508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3512 test -z "$as_dir" && as_dir=.
3513 for ac_exec_ext in '' $ac_executable_extensions; do
3514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3515 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3526 if test -n "$CC"; then
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3528 $as_echo "$CC" >&6; }
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3531 $as_echo "no" >&6; }
3536 if test -z "$ac_cv_prog_CC"; then
3538 # Extract the first word of "gcc", so it can be a program name with args.
3539 set dummy gcc; ac_word=$2
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3541 $as_echo_n "checking for $ac_word... " >&6; }
3542 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3543 $as_echo_n "(cached) " >&6
3545 if test -n "$ac_ct_CC"; then
3546 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3552 test -z "$as_dir" && as_dir=.
3553 for ac_exec_ext in '' $ac_executable_extensions; do
3554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3555 ac_cv_prog_ac_ct_CC="gcc"
3556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3565 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3566 if test -n "$ac_ct_CC"; then
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3568 $as_echo "$ac_ct_CC" >&6; }
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3571 $as_echo "no" >&6; }
3574 if test "x$ac_ct_CC" = x; then
3577 case $cross_compiling:$ac_tool_warned in
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3581 ac_tool_warned=yes ;;
3589 if test -z "$CC"; then
3590 if test -n "$ac_tool_prefix"; then
3591 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3592 set dummy ${ac_tool_prefix}cc; ac_word=$2
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3594 $as_echo_n "checking for $ac_word... " >&6; }
3595 if test "${ac_cv_prog_CC+set}" = set; then :
3596 $as_echo_n "(cached) " >&6
3598 if test -n "$CC"; then
3599 ac_cv_prog_CC="$CC" # Let the user override the test.
3601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3605 test -z "$as_dir" && as_dir=.
3606 for ac_exec_ext in '' $ac_executable_extensions; do
3607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3608 ac_cv_prog_CC="${ac_tool_prefix}cc"
3609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3619 if test -n "$CC"; then
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3621 $as_echo "$CC" >&6; }
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3624 $as_echo "no" >&6; }
3630 if test -z "$CC"; then
3631 # Extract the first word of "cc", so it can be a program name with args.
3632 set dummy cc; ac_word=$2
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3634 $as_echo_n "checking for $ac_word... " >&6; }
3635 if test "${ac_cv_prog_CC+set}" = set; then :
3636 $as_echo_n "(cached) " >&6
3638 if test -n "$CC"; then
3639 ac_cv_prog_CC="$CC" # Let the user override the test.
3642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3646 test -z "$as_dir" && as_dir=.
3647 for ac_exec_ext in '' $ac_executable_extensions; do
3648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3649 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3650 ac_prog_rejected=yes
3654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3661 if test $ac_prog_rejected = yes; then
3662 # We found a bogon in the path, so make sure we never use it.
3663 set dummy $ac_cv_prog_CC
3665 if test $# != 0; then
3666 # We chose a different compiler from the bogus one.
3667 # However, it has the same basename, so the bogon will be chosen
3668 # first if we set CC to just the basename; use the full file name.
3670 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3676 if test -n "$CC"; then
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3678 $as_echo "$CC" >&6; }
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3681 $as_echo "no" >&6; }
3686 if test -z "$CC"; then
3687 if test -n "$ac_tool_prefix"; then
3688 for ac_prog in cl.exe
3690 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3691 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3693 $as_echo_n "checking for $ac_word... " >&6; }
3694 if test "${ac_cv_prog_CC+set}" = set; then :
3695 $as_echo_n "(cached) " >&6
3697 if test -n "$CC"; then
3698 ac_cv_prog_CC="$CC" # Let the user override the test.
3700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3704 test -z "$as_dir" && as_dir=.
3705 for ac_exec_ext in '' $ac_executable_extensions; do
3706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3707 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3718 if test -n "$CC"; then
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3720 $as_echo "$CC" >&6; }
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3723 $as_echo "no" >&6; }
3727 test -n "$CC" && break
3730 if test -z "$CC"; then
3732 for ac_prog in cl.exe
3734 # Extract the first word of "$ac_prog", so it can be a program name with args.
3735 set dummy $ac_prog; ac_word=$2
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3737 $as_echo_n "checking for $ac_word... " >&6; }
3738 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3739 $as_echo_n "(cached) " >&6
3741 if test -n "$ac_ct_CC"; then
3742 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3748 test -z "$as_dir" && as_dir=.
3749 for ac_exec_ext in '' $ac_executable_extensions; do
3750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3751 ac_cv_prog_ac_ct_CC="$ac_prog"
3752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3761 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3762 if test -n "$ac_ct_CC"; then
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3764 $as_echo "$ac_ct_CC" >&6; }
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3767 $as_echo "no" >&6; }
3771 test -n "$ac_ct_CC" && break
3774 if test "x$ac_ct_CC" = x; then
3777 case $cross_compiling:$ac_tool_warned in
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3780 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3781 ac_tool_warned=yes ;;
3790 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3791 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3792 as_fn_error "no acceptable C compiler found in \$PATH
3793 See \`config.log' for more details." "$LINENO" 5; }
3795 # Provide some information about the compiler.
3796 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3799 for ac_option in --version -v -V -qversion; do
3800 { { ac_try="$ac_compiler $ac_option >&5"
3802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3803 *) ac_try_echo=$ac_try;;
3805 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3806 $as_echo "$ac_try_echo"; } >&5
3807 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3809 if test -s conftest.err; then
3811 ... rest of stderr output deleted ...
3812 10q' conftest.err >conftest.er1
3813 cat conftest.er1 >&5
3814 rm -f conftest.er1 conftest.err
3816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3817 test $ac_status = 0; }
3820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3821 /* end confdefs.h. */
3826 FILE *f = fopen ("conftest.out", "w");
3827 return ferror (f) || fclose (f) != 0;
3833 ac_clean_files_save=$ac_clean_files
3834 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3835 # Try to create an executable without -o first, disregard a.out.
3836 # It will help us diagnose broken compilers, and finding out an intuition
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3839 $as_echo_n "checking for C compiler default output file name... " >&6; }
3840 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3842 # The possible output files:
3843 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3846 for ac_file in $ac_files
3849 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3850 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3855 if { { ac_try="$ac_link_default"
3857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3858 *) ac_try_echo=$ac_try;;
3860 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3861 $as_echo "$ac_try_echo"; } >&5
3862 (eval "$ac_link_default") 2>&5
3864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3865 test $ac_status = 0; }; then :
3866 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3867 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3868 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3869 # so that the user can short-circuit this test for compilers unknown to
3871 for ac_file in $ac_files ''
3873 test -f "$ac_file" || continue
3875 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3878 # We found the default executable, but exeext='' is most
3882 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3884 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3886 # We set ac_cv_exeext here because the later test for it is not
3887 # safe: cross compilers may not add the suffix if given an `-o'
3888 # argument, so we may need to know it at that point already.
3889 # Even if this section looks crufty: it has the advantage of
3896 test "$ac_cv_exeext" = no && ac_cv_exeext=
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3902 $as_echo "$ac_file" >&6; }
3903 if test -z "$ac_file"; then :
3904 $as_echo "$as_me: failed program was:" >&5
3905 sed 's/^/| /' conftest.$ac_ext >&5
3907 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3908 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3909 { as_fn_set_status 77
3910 as_fn_error "C compiler cannot create executables
3911 See \`config.log' for more details." "$LINENO" 5; }; }
3913 ac_exeext=$ac_cv_exeext
3915 # Check that the compiler produces executables we can run. If not, either
3916 # the compiler is broken, or we cross compile.
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3918 $as_echo_n "checking whether the C compiler works... " >&6; }
3919 # If not cross compiling, check that we can run a simple program.
3920 if test "$cross_compiling" != yes; then
3921 if { ac_try='./$ac_file'
3922 { { case "(($ac_try" in
3923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3924 *) ac_try_echo=$ac_try;;
3926 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3927 $as_echo "$ac_try_echo"; } >&5
3928 (eval "$ac_try") 2>&5
3930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3931 test $ac_status = 0; }; }; then
3934 if test "$cross_compiling" = maybe; then
3937 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3938 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3939 as_fn_error "cannot run C compiled programs.
3940 If you meant to cross compile, use \`--host'.
3941 See \`config.log' for more details." "$LINENO" 5; }
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3946 $as_echo "yes" >&6; }
3948 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3949 ac_clean_files=$ac_clean_files_save
3950 # Check that the compiler produces executables we can run. If not, either
3951 # the compiler is broken, or we cross compile.
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3953 $as_echo_n "checking whether we are cross compiling... " >&6; }
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3955 $as_echo "$cross_compiling" >&6; }
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3958 $as_echo_n "checking for suffix of executables... " >&6; }
3959 if { { ac_try="$ac_link"
3961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3962 *) ac_try_echo=$ac_try;;
3964 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3965 $as_echo "$ac_try_echo"; } >&5
3966 (eval "$ac_link") 2>&5
3968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3969 test $ac_status = 0; }; then :
3970 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3971 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3972 # work properly (i.e., refer to `conftest.exe'), while it won't with
3974 for ac_file in conftest.exe conftest conftest.*; do
3975 test -f "$ac_file" || continue
3977 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3978 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3984 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3985 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3986 as_fn_error "cannot compute suffix of executables: cannot compile and link
3987 See \`config.log' for more details." "$LINENO" 5; }
3989 rm -f conftest$ac_cv_exeext
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3991 $as_echo "$ac_cv_exeext" >&6; }
3993 rm -f conftest.$ac_ext
3994 EXEEXT=$ac_cv_exeext
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3997 $as_echo_n "checking for suffix of object files... " >&6; }
3998 if test "${ac_cv_objext+set}" = set; then :
3999 $as_echo_n "(cached) " >&6
4001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4002 /* end confdefs.h. */
4012 rm -f conftest.o conftest.obj
4013 if { { ac_try="$ac_compile"
4015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4016 *) ac_try_echo=$ac_try;;
4018 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4019 $as_echo "$ac_try_echo"; } >&5
4020 (eval "$ac_compile") 2>&5
4022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4023 test $ac_status = 0; }; then :
4024 for ac_file in conftest.o conftest.obj conftest.*; do
4025 test -f "$ac_file" || continue;
4027 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4028 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4033 $as_echo "$as_me: failed program was:" >&5
4034 sed 's/^/| /' conftest.$ac_ext >&5
4036 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4037 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4038 as_fn_error "cannot compute suffix of object files: cannot compile
4039 See \`config.log' for more details." "$LINENO" 5; }
4041 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4044 $as_echo "$ac_cv_objext" >&6; }
4045 OBJEXT=$ac_cv_objext
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4048 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4049 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4050 $as_echo_n "(cached) " >&6
4052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4053 /* end confdefs.h. */
4066 if ac_fn_c_try_compile "$LINENO"; then :
4071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4072 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4076 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4077 if test $ac_compiler_gnu = yes; then
4082 ac_test_CFLAGS=${CFLAGS+set}
4083 ac_save_CFLAGS=$CFLAGS
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4085 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4086 if test "${ac_cv_prog_cc_g+set}" = set; then :
4087 $as_echo_n "(cached) " >&6
4089 ac_save_c_werror_flag=$ac_c_werror_flag
4090 ac_c_werror_flag=yes
4093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4094 /* end confdefs.h. */
4104 if ac_fn_c_try_compile "$LINENO"; then :
4108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4109 /* end confdefs.h. */
4119 if ac_fn_c_try_compile "$LINENO"; then :
4122 ac_c_werror_flag=$ac_save_c_werror_flag
4124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4125 /* end confdefs.h. */
4135 if ac_fn_c_try_compile "$LINENO"; then :
4138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4143 ac_c_werror_flag=$ac_save_c_werror_flag
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4146 $as_echo "$ac_cv_prog_cc_g" >&6; }
4147 if test "$ac_test_CFLAGS" = set; then
4148 CFLAGS=$ac_save_CFLAGS
4149 elif test $ac_cv_prog_cc_g = yes; then
4150 if test "$GCC" = yes; then
4156 if test "$GCC" = yes; then
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4163 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4164 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4165 $as_echo_n "(cached) " >&6
4167 ac_cv_prog_cc_c89=no
4169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4170 /* end confdefs.h. */
4173 #include <sys/types.h>
4174 #include <sys/stat.h>
4175 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4176 struct buf { int x; };
4177 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4178 static char *e (p, i)
4184 static char *f (char * (*g) (char **, int), char **p, ...)
4189 s = g (p, va_arg (v,int));
4194 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4195 function prototypes and stuff, but not '\xHH' hex character constants.
4196 These don't provoke an error unfortunately, instead are silently treated
4197 as 'x'. The following induces an error, until -std is added to get
4198 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4199 array size at least. It's necessary to write '\x00'==0 to get something
4200 that's true only with -std. */
4201 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4203 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4204 inside strings and character constants. */
4206 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4208 int test (int i, double x);
4209 struct s1 {int (*f) (int a);};
4210 struct s2 {int (*f) (double a);};
4211 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4217 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4222 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4223 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4225 CC="$ac_save_CC $ac_arg"
4226 if ac_fn_c_try_compile "$LINENO"; then :
4227 ac_cv_prog_cc_c89=$ac_arg
4229 rm -f core conftest.err conftest.$ac_objext
4230 test "x$ac_cv_prog_cc_c89" != "xno" && break
4232 rm -f conftest.$ac_ext
4237 case "x$ac_cv_prog_cc_c89" in
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4240 $as_echo "none needed" >&6; } ;;
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4243 $as_echo "unsupported" >&6; } ;;
4245 CC="$CC $ac_cv_prog_cc_c89"
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4247 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4249 if test "x$ac_cv_prog_cc_c89" != xno; then :
4254 ac_cpp='$CPP $CPPFLAGS'
4255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4259 depcc="$CC" am_compiler_list=
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4262 $as_echo_n "checking dependency style of $depcc... " >&6; }
4263 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4264 $as_echo_n "(cached) " >&6
4266 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4267 # We make a subdir and do the tests there. Otherwise we can end up
4268 # making bogus files that we don't know about and never remove. For
4269 # instance it was reported that on HP-UX the gcc test will end up
4270 # making a dummy file named `D' -- because `-MD' means `put the output
4273 # Copy depcomp to subdir because otherwise we won't find it if we're
4274 # using a relative directory.
4275 cp "$am_depcomp" conftest.dir
4277 # We will build objects and dependencies in a subdirectory because
4278 # it helps to detect inapplicable dependency modes. For instance
4279 # both Tru64's cc and ICC support -MD to output dependencies as a
4280 # side effect of compilation, but ICC will put the dependencies in
4281 # the current directory while Tru64 will put them in the object
4285 am_cv_CC_dependencies_compiler_type=none
4286 if test "$am_compiler_list" = ""; then
4287 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4290 case " $depcc " in #(
4291 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4294 for depmode in $am_compiler_list; do
4295 # Setup a source with many dependencies, because some compilers
4296 # like to wrap large dependency lists on column 80 (with \), and
4297 # we should not choose a depcomp mode which is confused by this.
4299 # We need to recreate these files for each test, as the compiler may
4300 # overwrite some of them when testing with obscure command lines.
4301 # This happens at least with the AIX C compiler.
4303 for i in 1 2 3 4 5 6; do
4304 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4305 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4306 # Solaris 8's {/usr,}/bin/sh.
4307 touch sub/conftst$i.h
4309 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4311 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4312 # mode. It turns out that the SunPro C++ compiler does not properly
4313 # handle `-M -o', and we need to detect this. Also, some Intel
4314 # versions had trouble with output in subdirs
4315 am__obj=sub/conftest.${OBJEXT-o}
4316 am__minus_obj="-o $am__obj"
4319 # This depmode causes a compiler race in universal mode.
4320 test "$am__universal" = false || continue
4323 # after this tag, mechanisms are not by side-effect, so they'll
4324 # only be used when explicitly requested
4325 if test "x$enable_dependency_tracking" = xyes; then
4331 msvisualcpp | msvcmsys)
4332 # This compiler won't grok `-c -o', but also, the minuso test has
4333 # not run yet. These depmodes are late enough in the game, and
4334 # so weak that their functioning should not be impacted.
4335 am__obj=conftest.${OBJEXT-o}
4340 if depmode=$depmode \
4341 source=sub/conftest.c object=$am__obj \
4342 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4343 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4344 >/dev/null 2>conftest.err &&
4345 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4346 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4347 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4348 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4349 # icc doesn't choke on unknown options, it will just issue warnings
4350 # or remarks (even with -Werror). So we grep stderr for any message
4351 # that says an option was ignored or not supported.
4352 # When given -MP, icc 7.0 and 7.1 complain thusly:
4353 # icc: Command line warning: ignoring option '-M'; no argument required
4354 # The diagnosis changed in icc 8.0:
4355 # icc: Command line remark: option '-MP' not supported
4356 if (grep 'ignoring option' conftest.err ||
4357 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4358 am_cv_CC_dependencies_compiler_type=$depmode
4367 am_cv_CC_dependencies_compiler_type=none
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4372 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4373 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4376 test "x$enable_dependency_tracking" != xno \
4377 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4379 am__fastdepCC_FALSE='#'
4381 am__fastdepCC_TRUE='#'
4382 am__fastdepCC_FALSE=
4386 # Make sure we can run config.sub.
4387 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4388 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4391 $as_echo_n "checking build system type... " >&6; }
4392 if test "${ac_cv_build+set}" = set; then :
4393 $as_echo_n "(cached) " >&6
4395 ac_build_alias=$build_alias
4396 test "x$ac_build_alias" = x &&
4397 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4398 test "x$ac_build_alias" = x &&
4399 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4400 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4401 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4405 $as_echo "$ac_cv_build" >&6; }
4406 case $ac_cv_build in
4408 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4411 ac_save_IFS=$IFS; IFS='-'
4417 # Remember, the first character of IFS is used to create $*,
4418 # except with old shells:
4421 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4425 $as_echo_n "checking host system type... " >&6; }
4426 if test "${ac_cv_host+set}" = set; then :
4427 $as_echo_n "(cached) " >&6
4429 if test "x$host_alias" = x; then
4430 ac_cv_host=$ac_cv_build
4432 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4433 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4438 $as_echo "$ac_cv_host" >&6; }
4441 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4444 ac_save_IFS=$IFS; IFS='-'
4450 # Remember, the first character of IFS is used to create $*,
4451 # except with old shells:
4454 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4458 # Check whether --with-gnu-ld was given.
4459 if test "${with_gnu_ld+set}" = set; then :
4460 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4465 # Prepare PATH_SEPARATOR.
4466 # The user is always right.
4467 if test "${PATH_SEPARATOR+set}" != set; then
4468 echo "#! /bin/sh" >conf$$.sh
4469 echo "exit 0" >>conf$$.sh
4471 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4479 if test "$GCC" = yes; then
4480 # Check if gcc -print-prog-name=ld gives a path.
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
4482 $as_echo_n "checking for ld used by GCC... " >&6; }
4485 # gcc leaves a trailing carriage return which upsets mingw
4486 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4488 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4491 # Accept absolute paths.
4492 [\\/]* | [A-Za-z]:[\\/]*)
4493 re_direlt='/[^/][^/]*/\.\./'
4494 # Canonicalize the path of ld
4495 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4496 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4497 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4499 test -z "$LD" && LD="$ac_prog"
4502 # If it fails, then pretend we aren't using GCC.
4506 # If it is relative, then search for the first ld in PATH.
4510 elif test "$with_gnu_ld" = yes; then
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4512 $as_echo_n "checking for GNU ld... " >&6; }
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4515 $as_echo_n "checking for non-GNU ld... " >&6; }
4517 if test "${acl_cv_path_LD+set}" = set; then :
4518 $as_echo_n "(cached) " >&6
4520 if test -z "$LD"; then
4521 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4522 for ac_dir in $PATH; do
4523 test -z "$ac_dir" && ac_dir=.
4524 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4525 acl_cv_path_LD="$ac_dir/$ac_prog"
4526 # Check to see if the program is GNU ld. I'd rather use --version,
4527 # but apparently some GNU ld's only accept -v.
4528 # Break only if it was the GNU/non-GNU ld that we prefer.
4529 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
4530 *GNU* | *'with BFD'*)
4531 test "$with_gnu_ld" != no && break ;;
4533 test "$with_gnu_ld" != yes && break ;;
4539 acl_cv_path_LD="$LD" # Let the user override the test with a path.
4543 LD="$acl_cv_path_LD"
4544 if test -n "$LD"; then
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4546 $as_echo "$LD" >&6; }
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4549 $as_echo "no" >&6; }
4551 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4553 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4554 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
4555 $as_echo_n "(cached) " >&6
4557 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4558 case `$LD -v 2>&1 </dev/null` in
4559 *GNU* | *'with BFD'*)
4560 acl_cv_prog_gnu_ld=yes ;;
4562 acl_cv_prog_gnu_ld=no ;;
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4566 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
4567 with_gnu_ld=$acl_cv_prog_gnu_ld
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
4573 $as_echo_n "checking for shared library run path origin... " >&6; }
4574 if test "${acl_cv_rpath+set}" = set; then :
4575 $as_echo_n "(cached) " >&6
4578 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
4579 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
4586 $as_echo "$acl_cv_rpath" >&6; }
4588 acl_libext="$acl_cv_libext"
4589 acl_shlibext="$acl_cv_shlibext"
4590 acl_libname_spec="$acl_cv_libname_spec"
4591 acl_library_names_spec="$acl_cv_library_names_spec"
4592 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
4593 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
4594 acl_hardcode_direct="$acl_cv_hardcode_direct"
4595 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
4596 # Check whether --enable-rpath was given.
4597 if test "${enable_rpath+set}" = set; then :
4598 enableval=$enable_rpath; :
4606 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
4607 if test -n "$searchpath"; then
4608 acl_save_IFS="${IFS= }"; IFS=":"
4609 for searchdir in $searchpath; do
4610 if test -d "$searchdir"; then
4611 case "$searchdir" in
4612 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
4613 *) searchdir=`cd "$searchdir" && pwd`
4614 case "$searchdir" in
4615 */lib64 ) acl_libdirstem=lib64 ;;
4633 acl_save_prefix="$prefix"
4634 prefix="$acl_final_prefix"
4635 acl_save_exec_prefix="$exec_prefix"
4636 exec_prefix="$acl_final_exec_prefix"
4638 eval additional_includedir=\"$includedir\"
4639 eval additional_libdir=\"$libdir\"
4641 exec_prefix="$acl_save_exec_prefix"
4642 prefix="$acl_save_prefix"
4645 # Check whether --with-libiconv-prefix was given.
4646 if test "${with_libiconv_prefix+set}" = set; then :
4647 withval=$with_libiconv_prefix;
4648 if test "X$withval" = "Xno"; then
4651 if test "X$withval" = "X"; then
4653 acl_save_prefix="$prefix"
4654 prefix="$acl_final_prefix"
4655 acl_save_exec_prefix="$exec_prefix"
4656 exec_prefix="$acl_final_exec_prefix"
4658 eval additional_includedir=\"$includedir\"
4659 eval additional_libdir=\"$libdir\"
4661 exec_prefix="$acl_save_exec_prefix"
4662 prefix="$acl_save_prefix"
4665 additional_includedir="$withval/include"
4666 additional_libdir="$withval/$acl_libdirstem"
4678 names_already_handled=
4679 names_next_round='iconv '
4680 while test -n "$names_next_round"; do
4681 names_this_round="$names_next_round"
4683 for name in $names_this_round; do
4685 for n in $names_already_handled; do
4686 if test "$n" = "$name"; then
4691 if test -z "$already_handled"; then
4692 names_already_handled="$names_already_handled $name"
4693 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
4694 eval value=\"\$HAVE_LIB$uppername\"
4695 if test -n "$value"; then
4696 if test "$value" = yes; then
4697 eval value=\"\$LIB$uppername\"
4698 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
4699 eval value=\"\$LTLIB$uppername\"
4700 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
4709 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
4710 if test -n "$acl_shlibext"; then
4711 shrext=".$acl_shlibext" # typically: shrext=.so
4715 if test $use_additional = yes; then
4716 dir="$additional_libdir"
4717 if test -n "$acl_shlibext"; then
4718 if test -f "$dir/$libname$shrext"; then
4720 found_so="$dir/$libname$shrext"
4722 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
4723 ver=`(cd "$dir" && \
4724 for f in "$libname$shrext".*; do echo "$f"; done \
4725 | sed -e "s,^$libname$shrext\\\\.,," \
4726 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
4727 | sed 1q ) 2>/dev/null`
4728 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
4730 found_so="$dir/$libname$shrext.$ver"
4733 eval library_names=\"$acl_library_names_spec\"
4734 for f in $library_names; do
4735 if test -f "$dir/$f"; then
4744 if test "X$found_dir" = "X"; then
4745 if test -f "$dir/$libname.$acl_libext"; then
4747 found_a="$dir/$libname.$acl_libext"
4750 if test "X$found_dir" != "X"; then
4751 if test -f "$dir/$libname.la"; then
4752 found_la="$dir/$libname.la"
4756 if test "X$found_dir" = "X"; then
4757 for x in $LDFLAGS $LTLIBICONV; do
4759 acl_save_prefix="$prefix"
4760 prefix="$acl_final_prefix"
4761 acl_save_exec_prefix="$exec_prefix"
4762 exec_prefix="$acl_final_exec_prefix"
4764 exec_prefix="$acl_save_exec_prefix"
4765 prefix="$acl_save_prefix"
4769 dir=`echo "X$x" | sed -e 's/^X-L//'`
4770 if test -n "$acl_shlibext"; then
4771 if test -f "$dir/$libname$shrext"; then
4773 found_so="$dir/$libname$shrext"
4775 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
4776 ver=`(cd "$dir" && \
4777 for f in "$libname$shrext".*; do echo "$f"; done \
4778 | sed -e "s,^$libname$shrext\\\\.,," \
4779 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
4780 | sed 1q ) 2>/dev/null`
4781 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
4783 found_so="$dir/$libname$shrext.$ver"
4786 eval library_names=\"$acl_library_names_spec\"
4787 for f in $library_names; do
4788 if test -f "$dir/$f"; then
4797 if test "X$found_dir" = "X"; then
4798 if test -f "$dir/$libname.$acl_libext"; then
4800 found_a="$dir/$libname.$acl_libext"
4803 if test "X$found_dir" != "X"; then
4804 if test -f "$dir/$libname.la"; then
4805 found_la="$dir/$libname.la"
4810 if test "X$found_dir" != "X"; then
4815 if test "X$found_dir" != "X"; then
4816 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
4817 if test "X$found_so" != "X"; then
4818 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
4819 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4822 for x in $ltrpathdirs; do
4823 if test "X$x" = "X$found_dir"; then
4828 if test -z "$haveit"; then
4829 ltrpathdirs="$ltrpathdirs $found_dir"
4831 if test "$acl_hardcode_direct" = yes; then
4832 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4834 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
4835 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4837 for x in $rpathdirs; do
4838 if test "X$x" = "X$found_dir"; then
4843 if test -z "$haveit"; then
4844 rpathdirs="$rpathdirs $found_dir"
4848 for x in $LDFLAGS $LIBICONV; do
4850 acl_save_prefix="$prefix"
4851 prefix="$acl_final_prefix"
4852 acl_save_exec_prefix="$exec_prefix"
4853 exec_prefix="$acl_final_exec_prefix"
4855 exec_prefix="$acl_save_exec_prefix"
4856 prefix="$acl_save_prefix"
4858 if test "X$x" = "X-L$found_dir"; then
4863 if test -z "$haveit"; then
4864 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
4866 if test "$acl_hardcode_minus_L" != no; then
4867 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4869 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4875 if test "X$found_a" != "X"; then
4876 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
4878 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
4881 additional_includedir=
4882 case "$found_dir" in
4883 */$acl_libdirstem | */$acl_libdirstem/)
4884 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
4885 LIBICONV_PREFIX="$basedir"
4886 additional_includedir="$basedir/include"
4889 if test "X$additional_includedir" != "X"; then
4890 if test "X$additional_includedir" != "X/usr/include"; then
4892 if test "X$additional_includedir" = "X/usr/local/include"; then
4893 if test -n "$GCC"; then
4895 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
4899 if test -z "$haveit"; then
4900 for x in $CPPFLAGS $INCICONV; do
4902 acl_save_prefix="$prefix"
4903 prefix="$acl_final_prefix"
4904 acl_save_exec_prefix="$exec_prefix"
4905 exec_prefix="$acl_final_exec_prefix"
4907 exec_prefix="$acl_save_exec_prefix"
4908 prefix="$acl_save_prefix"
4910 if test "X$x" = "X-I$additional_includedir"; then
4915 if test -z "$haveit"; then
4916 if test -d "$additional_includedir"; then
4917 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
4923 if test -n "$found_la"; then
4924 save_libdir="$libdir"
4926 */* | *\\*) . "$found_la" ;;
4927 *) . "./$found_la" ;;
4929 libdir="$save_libdir"
4930 for dep in $dependency_libs; do
4933 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
4934 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
4936 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
4937 if test -n "$GCC"; then
4939 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
4943 if test -z "$haveit"; then
4945 for x in $LDFLAGS $LIBICONV; do
4947 acl_save_prefix="$prefix"
4948 prefix="$acl_final_prefix"
4949 acl_save_exec_prefix="$exec_prefix"
4950 exec_prefix="$acl_final_exec_prefix"
4952 exec_prefix="$acl_save_exec_prefix"
4953 prefix="$acl_save_prefix"
4955 if test "X$x" = "X-L$additional_libdir"; then
4960 if test -z "$haveit"; then
4961 if test -d "$additional_libdir"; then
4962 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
4966 for x in $LDFLAGS $LTLIBICONV; do
4968 acl_save_prefix="$prefix"
4969 prefix="$acl_final_prefix"
4970 acl_save_exec_prefix="$exec_prefix"
4971 exec_prefix="$acl_final_exec_prefix"
4973 exec_prefix="$acl_save_exec_prefix"
4974 prefix="$acl_save_prefix"
4976 if test "X$x" = "X-L$additional_libdir"; then
4981 if test -z "$haveit"; then
4982 if test -d "$additional_libdir"; then
4983 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
4990 dir=`echo "X$dep" | sed -e 's/^X-R//'`
4991 if test "$enable_rpath" != no; then
4993 for x in $rpathdirs; do
4994 if test "X$x" = "X$dir"; then
4999 if test -z "$haveit"; then
5000 rpathdirs="$rpathdirs $dir"
5003 for x in $ltrpathdirs; do
5004 if test "X$x" = "X$dir"; then
5009 if test -z "$haveit"; then
5010 ltrpathdirs="$ltrpathdirs $dir"
5015 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5018 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5021 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5022 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5028 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5029 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5035 if test "X$rpathdirs" != "X"; then
5036 if test -n "$acl_hardcode_libdir_separator"; then
5038 for found_dir in $rpathdirs; do
5039 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
5041 acl_save_libdir="$libdir"
5043 eval flag=\"$acl_hardcode_libdir_flag_spec\"
5044 libdir="$acl_save_libdir"
5045 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5047 for found_dir in $rpathdirs; do
5048 acl_save_libdir="$libdir"
5050 eval flag=\"$acl_hardcode_libdir_flag_spec\"
5051 libdir="$acl_save_libdir"
5052 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5056 if test "X$ltrpathdirs" != "X"; then
5057 for found_dir in $ltrpathdirs; do
5058 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
5088 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
5089 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
5090 $as_echo_n "(cached) " >&6
5092 gt_save_LIBS="$LIBS"
5093 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
5094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5095 /* end confdefs.h. */
5096 #include <CoreFoundation/CFPreferences.h>
5100 CFPreferencesCopyAppValue(NULL, NULL)
5105 if ac_fn_c_try_link "$LINENO"; then :
5106 gt_cv_func_CFPreferencesCopyAppValue=yes
5108 gt_cv_func_CFPreferencesCopyAppValue=no
5110 rm -f core conftest.err conftest.$ac_objext \
5111 conftest$ac_exeext conftest.$ac_ext
5112 LIBS="$gt_save_LIBS"
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
5115 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
5116 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
5118 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
5122 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
5123 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
5124 $as_echo_n "(cached) " >&6
5126 gt_save_LIBS="$LIBS"
5127 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
5128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5129 /* end confdefs.h. */
5130 #include <CoreFoundation/CFLocale.h>
5134 CFLocaleCopyCurrent();
5139 if ac_fn_c_try_link "$LINENO"; then :
5140 gt_cv_func_CFLocaleCopyCurrent=yes
5142 gt_cv_func_CFLocaleCopyCurrent=no
5144 rm -f core conftest.err conftest.$ac_objext \
5145 conftest$ac_exeext conftest.$ac_ext
5146 LIBS="$gt_save_LIBS"
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
5149 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
5150 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5152 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
5156 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5157 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
5169 case " $gt_needs " in
5170 *" need-formatstring-macros "*) gt_api_version=3 ;;
5171 *" need-ngettext "*) gt_api_version=2 ;;
5172 *) gt_api_version=1 ;;
5174 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
5175 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
5177 if test "$USE_NLS" = "yes"; then
5178 gt_use_preinstalled_gnugettext=no
5181 if test $gt_api_version -ge 3; then
5182 gt_revision_test_code='
5183 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
5184 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
5186 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
5189 gt_revision_test_code=
5191 if test $gt_api_version -ge 2; then
5192 gt_expression_test_code=' + * ngettext ("", "", 0)'
5194 gt_expression_test_code=
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
5198 $as_echo_n "checking for GNU gettext in libc... " >&6; }
5199 if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then :
5200 $as_echo_n "(cached) " >&6
5202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5203 /* end confdefs.h. */
5204 #include <libintl.h>
5205 $gt_revision_test_code
5206 extern int _nl_msg_cat_cntr;
5207 extern int *_nl_domain_bindings;
5211 bindtextdomain ("", "");
5212 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
5217 if ac_fn_c_try_link "$LINENO"; then :
5218 eval "$gt_func_gnugettext_libc=yes"
5220 eval "$gt_func_gnugettext_libc=no"
5222 rm -f core conftest.err conftest.$ac_objext \
5223 conftest$ac_exeext conftest.$ac_ext
5225 eval ac_res=\$$gt_func_gnugettext_libc
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5227 $as_echo "$ac_res" >&6; }
5229 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
5235 am_save_CPPFLAGS="$CPPFLAGS"
5237 for element in $INCICONV; do
5239 for x in $CPPFLAGS; do
5241 acl_save_prefix="$prefix"
5242 prefix="$acl_final_prefix"
5243 acl_save_exec_prefix="$exec_prefix"
5244 exec_prefix="$acl_final_exec_prefix"
5246 exec_prefix="$acl_save_exec_prefix"
5247 prefix="$acl_save_prefix"
5249 if test "X$x" = "X$element"; then
5254 if test -z "$haveit"; then
5255 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
5261 $as_echo_n "checking for iconv... " >&6; }
5262 if test "${am_cv_func_iconv+set}" = set; then :
5263 $as_echo_n "(cached) " >&6
5266 am_cv_func_iconv="no, consider installing GNU libiconv"
5268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5269 /* end confdefs.h. */
5275 iconv_t cd = iconv_open("","");
5276 iconv(cd,NULL,NULL,NULL,NULL);
5282 if ac_fn_c_try_link "$LINENO"; then :
5283 am_cv_func_iconv=yes
5285 rm -f core conftest.err conftest.$ac_objext \
5286 conftest$ac_exeext conftest.$ac_ext
5287 if test "$am_cv_func_iconv" != yes; then
5288 am_save_LIBS="$LIBS"
5289 LIBS="$LIBS $LIBICONV"
5290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5291 /* end confdefs.h. */
5297 iconv_t cd = iconv_open("","");
5298 iconv(cd,NULL,NULL,NULL,NULL);
5304 if ac_fn_c_try_link "$LINENO"; then :
5306 am_cv_func_iconv=yes
5308 rm -f core conftest.err conftest.$ac_objext \
5309 conftest$ac_exeext conftest.$ac_ext
5310 LIBS="$am_save_LIBS"
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
5315 $as_echo "$am_cv_func_iconv" >&6; }
5316 if test "$am_cv_func_iconv" = yes; then
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
5318 $as_echo_n "checking for working iconv... " >&6; }
5319 if test "${am_cv_func_iconv_works+set}" = set; then :
5320 $as_echo_n "(cached) " >&6
5323 am_save_LIBS="$LIBS"
5324 if test $am_cv_lib_iconv = yes; then
5325 LIBS="$LIBS $LIBICONV"
5327 if test "$cross_compiling" = yes; then :
5329 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
5330 *) am_cv_func_iconv_works="guessing yes" ;;
5333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5334 /* end confdefs.h. */
5340 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
5343 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
5344 if (cd_utf8_to_88591 != (iconv_t)(-1))
5346 static const char input[] = "\342\202\254"; /* EURO SIGN */
5348 const char *inptr = input;
5349 size_t inbytesleft = strlen (input);
5351 size_t outbytesleft = sizeof (buf);
5352 size_t res = iconv (cd_utf8_to_88591,
5353 (char **) &inptr, &inbytesleft,
5354 &outptr, &outbytesleft);
5359 #if 0 /* This bug could be worked around by the caller. */
5360 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
5362 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
5363 if (cd_88591_to_utf8 != (iconv_t)(-1))
5365 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
5367 const char *inptr = input;
5368 size_t inbytesleft = strlen (input);
5370 size_t outbytesleft = sizeof (buf);
5371 size_t res = iconv (cd_88591_to_utf8,
5372 (char **) &inptr, &inbytesleft,
5373 &outptr, &outbytesleft);
5379 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
5381 if (/* Try standardized names. */
5382 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
5383 /* Try IRIX, OSF/1 names. */
5384 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
5385 /* Try AIX names. */
5386 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
5387 /* Try HP-UX names. */
5388 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
5393 if ac_fn_c_try_run "$LINENO"; then :
5394 am_cv_func_iconv_works=yes
5396 am_cv_func_iconv_works=no
5398 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5399 conftest.$ac_objext conftest.beam conftest.$ac_ext
5402 LIBS="$am_save_LIBS"
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
5406 $as_echo "$am_cv_func_iconv_works" >&6; }
5407 case "$am_cv_func_iconv_works" in
5408 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
5409 *) am_func_iconv=yes ;;
5412 am_func_iconv=no am_cv_lib_iconv=no
5414 if test "$am_func_iconv" = yes; then
5416 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
5419 if test "$am_cv_lib_iconv" = yes; then
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
5421 $as_echo_n "checking how to link with libiconv... " >&6; }
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
5423 $as_echo "$LIBICONV" >&6; }
5425 CPPFLAGS="$am_save_CPPFLAGS"
5439 acl_save_prefix="$prefix"
5440 prefix="$acl_final_prefix"
5441 acl_save_exec_prefix="$exec_prefix"
5442 exec_prefix="$acl_final_exec_prefix"
5444 eval additional_includedir=\"$includedir\"
5445 eval additional_libdir=\"$libdir\"
5447 exec_prefix="$acl_save_exec_prefix"
5448 prefix="$acl_save_prefix"
5451 # Check whether --with-libintl-prefix was given.
5452 if test "${with_libintl_prefix+set}" = set; then :
5453 withval=$with_libintl_prefix;
5454 if test "X$withval" = "Xno"; then
5457 if test "X$withval" = "X"; then
5459 acl_save_prefix="$prefix"
5460 prefix="$acl_final_prefix"
5461 acl_save_exec_prefix="$exec_prefix"
5462 exec_prefix="$acl_final_exec_prefix"
5464 eval additional_includedir=\"$includedir\"
5465 eval additional_libdir=\"$libdir\"
5467 exec_prefix="$acl_save_exec_prefix"
5468 prefix="$acl_save_prefix"
5471 additional_includedir="$withval/include"
5472 additional_libdir="$withval/$acl_libdirstem"
5484 names_already_handled=
5485 names_next_round='intl '
5486 while test -n "$names_next_round"; do
5487 names_this_round="$names_next_round"
5489 for name in $names_this_round; do
5491 for n in $names_already_handled; do
5492 if test "$n" = "$name"; then
5497 if test -z "$already_handled"; then
5498 names_already_handled="$names_already_handled $name"
5499 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5500 eval value=\"\$HAVE_LIB$uppername\"
5501 if test -n "$value"; then
5502 if test "$value" = yes; then
5503 eval value=\"\$LIB$uppername\"
5504 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
5505 eval value=\"\$LTLIB$uppername\"
5506 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
5515 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
5516 if test -n "$acl_shlibext"; then
5517 shrext=".$acl_shlibext" # typically: shrext=.so
5521 if test $use_additional = yes; then
5522 dir="$additional_libdir"
5523 if test -n "$acl_shlibext"; then
5524 if test -f "$dir/$libname$shrext"; then
5526 found_so="$dir/$libname$shrext"
5528 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5529 ver=`(cd "$dir" && \
5530 for f in "$libname$shrext".*; do echo "$f"; done \
5531 | sed -e "s,^$libname$shrext\\\\.,," \
5532 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5533 | sed 1q ) 2>/dev/null`
5534 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5536 found_so="$dir/$libname$shrext.$ver"
5539 eval library_names=\"$acl_library_names_spec\"
5540 for f in $library_names; do
5541 if test -f "$dir/$f"; then
5550 if test "X$found_dir" = "X"; then
5551 if test -f "$dir/$libname.$acl_libext"; then
5553 found_a="$dir/$libname.$acl_libext"
5556 if test "X$found_dir" != "X"; then
5557 if test -f "$dir/$libname.la"; then
5558 found_la="$dir/$libname.la"
5562 if test "X$found_dir" = "X"; then
5563 for x in $LDFLAGS $LTLIBINTL; do
5565 acl_save_prefix="$prefix"
5566 prefix="$acl_final_prefix"
5567 acl_save_exec_prefix="$exec_prefix"
5568 exec_prefix="$acl_final_exec_prefix"
5570 exec_prefix="$acl_save_exec_prefix"
5571 prefix="$acl_save_prefix"
5575 dir=`echo "X$x" | sed -e 's/^X-L//'`
5576 if test -n "$acl_shlibext"; then
5577 if test -f "$dir/$libname$shrext"; then
5579 found_so="$dir/$libname$shrext"
5581 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5582 ver=`(cd "$dir" && \
5583 for f in "$libname$shrext".*; do echo "$f"; done \
5584 | sed -e "s,^$libname$shrext\\\\.,," \
5585 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5586 | sed 1q ) 2>/dev/null`
5587 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5589 found_so="$dir/$libname$shrext.$ver"
5592 eval library_names=\"$acl_library_names_spec\"
5593 for f in $library_names; do
5594 if test -f "$dir/$f"; then
5603 if test "X$found_dir" = "X"; then
5604 if test -f "$dir/$libname.$acl_libext"; then
5606 found_a="$dir/$libname.$acl_libext"
5609 if test "X$found_dir" != "X"; then
5610 if test -f "$dir/$libname.la"; then
5611 found_la="$dir/$libname.la"
5616 if test "X$found_dir" != "X"; then
5621 if test "X$found_dir" != "X"; then
5622 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
5623 if test "X$found_so" != "X"; then
5624 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
5625 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5628 for x in $ltrpathdirs; do
5629 if test "X$x" = "X$found_dir"; then
5634 if test -z "$haveit"; then
5635 ltrpathdirs="$ltrpathdirs $found_dir"
5637 if test "$acl_hardcode_direct" = yes; then
5638 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5640 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
5641 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5643 for x in $rpathdirs; do
5644 if test "X$x" = "X$found_dir"; then
5649 if test -z "$haveit"; then
5650 rpathdirs="$rpathdirs $found_dir"
5654 for x in $LDFLAGS $LIBINTL; do
5656 acl_save_prefix="$prefix"
5657 prefix="$acl_final_prefix"
5658 acl_save_exec_prefix="$exec_prefix"
5659 exec_prefix="$acl_final_exec_prefix"
5661 exec_prefix="$acl_save_exec_prefix"
5662 prefix="$acl_save_prefix"
5664 if test "X$x" = "X-L$found_dir"; then
5669 if test -z "$haveit"; then
5670 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
5672 if test "$acl_hardcode_minus_L" != no; then
5673 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5675 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5681 if test "X$found_a" != "X"; then
5682 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
5684 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
5687 additional_includedir=
5688 case "$found_dir" in
5689 */$acl_libdirstem | */$acl_libdirstem/)
5690 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5691 LIBINTL_PREFIX="$basedir"
5692 additional_includedir="$basedir/include"
5695 if test "X$additional_includedir" != "X"; then
5696 if test "X$additional_includedir" != "X/usr/include"; then
5698 if test "X$additional_includedir" = "X/usr/local/include"; then
5699 if test -n "$GCC"; then
5701 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5705 if test -z "$haveit"; then
5706 for x in $CPPFLAGS $INCINTL; do
5708 acl_save_prefix="$prefix"
5709 prefix="$acl_final_prefix"
5710 acl_save_exec_prefix="$exec_prefix"
5711 exec_prefix="$acl_final_exec_prefix"
5713 exec_prefix="$acl_save_exec_prefix"
5714 prefix="$acl_save_prefix"
5716 if test "X$x" = "X-I$additional_includedir"; then
5721 if test -z "$haveit"; then
5722 if test -d "$additional_includedir"; then
5723 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
5729 if test -n "$found_la"; then
5730 save_libdir="$libdir"
5732 */* | *\\*) . "$found_la" ;;
5733 *) . "./$found_la" ;;
5735 libdir="$save_libdir"
5736 for dep in $dependency_libs; do
5739 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5740 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
5742 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
5743 if test -n "$GCC"; then
5745 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5749 if test -z "$haveit"; then
5751 for x in $LDFLAGS $LIBINTL; do
5753 acl_save_prefix="$prefix"
5754 prefix="$acl_final_prefix"
5755 acl_save_exec_prefix="$exec_prefix"
5756 exec_prefix="$acl_final_exec_prefix"
5758 exec_prefix="$acl_save_exec_prefix"
5759 prefix="$acl_save_prefix"
5761 if test "X$x" = "X-L$additional_libdir"; then
5766 if test -z "$haveit"; then
5767 if test -d "$additional_libdir"; then
5768 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
5772 for x in $LDFLAGS $LTLIBINTL; do
5774 acl_save_prefix="$prefix"
5775 prefix="$acl_final_prefix"
5776 acl_save_exec_prefix="$exec_prefix"
5777 exec_prefix="$acl_final_exec_prefix"
5779 exec_prefix="$acl_save_exec_prefix"
5780 prefix="$acl_save_prefix"
5782 if test "X$x" = "X-L$additional_libdir"; then
5787 if test -z "$haveit"; then
5788 if test -d "$additional_libdir"; then
5789 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
5796 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5797 if test "$enable_rpath" != no; then
5799 for x in $rpathdirs; do
5800 if test "X$x" = "X$dir"; then
5805 if test -z "$haveit"; then
5806 rpathdirs="$rpathdirs $dir"
5809 for x in $ltrpathdirs; do
5810 if test "X$x" = "X$dir"; then
5815 if test -z "$haveit"; then
5816 ltrpathdirs="$ltrpathdirs $dir"
5821 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5824 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5827 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
5828 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
5834 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5835 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
5841 if test "X$rpathdirs" != "X"; then
5842 if test -n "$acl_hardcode_libdir_separator"; then
5844 for found_dir in $rpathdirs; do
5845 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
5847 acl_save_libdir="$libdir"
5849 eval flag=\"$acl_hardcode_libdir_flag_spec\"
5850 libdir="$acl_save_libdir"
5851 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
5853 for found_dir in $rpathdirs; do
5854 acl_save_libdir="$libdir"
5856 eval flag=\"$acl_hardcode_libdir_flag_spec\"
5857 libdir="$acl_save_libdir"
5858 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
5862 if test "X$ltrpathdirs" != "X"; then
5863 for found_dir in $ltrpathdirs; do
5864 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
5869 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
5870 if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then :
5871 $as_echo_n "(cached) " >&6
5873 gt_save_CPPFLAGS="$CPPFLAGS"
5874 CPPFLAGS="$CPPFLAGS $INCINTL"
5875 gt_save_LIBS="$LIBS"
5876 LIBS="$LIBS $LIBINTL"
5877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5878 /* end confdefs.h. */
5879 #include <libintl.h>
5880 $gt_revision_test_code
5881 extern int _nl_msg_cat_cntr;
5886 const char *_nl_expand_alias (const char *);
5890 bindtextdomain ("", "");
5891 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
5896 if ac_fn_c_try_link "$LINENO"; then :
5897 eval "$gt_func_gnugettext_libintl=yes"
5899 eval "$gt_func_gnugettext_libintl=no"
5901 rm -f core conftest.err conftest.$ac_objext \
5902 conftest$ac_exeext conftest.$ac_ext
5903 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
5904 LIBS="$LIBS $LIBICONV"
5905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5906 /* end confdefs.h. */
5907 #include <libintl.h>
5908 $gt_revision_test_code
5909 extern int _nl_msg_cat_cntr;
5914 const char *_nl_expand_alias (const char *);
5918 bindtextdomain ("", "");
5919 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
5924 if ac_fn_c_try_link "$LINENO"; then :
5925 LIBINTL="$LIBINTL $LIBICONV"
5926 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
5927 eval "$gt_func_gnugettext_libintl=yes"
5930 rm -f core conftest.err conftest.$ac_objext \
5931 conftest$ac_exeext conftest.$ac_ext
5933 CPPFLAGS="$gt_save_CPPFLAGS"
5934 LIBS="$gt_save_LIBS"
5936 eval ac_res=\$$gt_func_gnugettext_libintl
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5938 $as_echo "$ac_res" >&6; }
5941 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
5942 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
5943 && test "$PACKAGE" != gettext-runtime \
5944 && test "$PACKAGE" != gettext-tools; }; then
5945 gt_use_preinstalled_gnugettext=yes
5954 if test -n "$INTL_MACOSX_LIBS"; then
5955 if test "$gt_use_preinstalled_gnugettext" = "yes" \
5956 || test "$nls_cv_use_gnu_gettext" = "yes"; then
5957 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
5958 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
5962 if test "$gt_use_preinstalled_gnugettext" = "yes" \
5963 || test "$nls_cv_use_gnu_gettext" = "yes"; then
5965 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
5973 $as_echo_n "checking whether to use NLS... " >&6; }
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5975 $as_echo "$USE_NLS" >&6; }
5976 if test "$USE_NLS" = "yes"; then
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
5978 $as_echo_n "checking where the gettext function comes from... " >&6; }
5979 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
5980 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
5981 gt_source="external libintl"
5986 gt_source="included intl directory"
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
5989 $as_echo "$gt_source" >&6; }
5992 if test "$USE_NLS" = "yes"; then
5994 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
5995 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
5997 $as_echo_n "checking how to link with libintl... " >&6; }
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
5999 $as_echo "$LIBINTL" >&6; }
6001 for element in $INCINTL; do
6003 for x in $CPPFLAGS; do
6005 acl_save_prefix="$prefix"
6006 prefix="$acl_final_prefix"
6007 acl_save_exec_prefix="$exec_prefix"
6008 exec_prefix="$acl_final_exec_prefix"
6010 exec_prefix="$acl_save_exec_prefix"
6011 prefix="$acl_save_prefix"
6013 if test "X$x" = "X$element"; then
6018 if test -z "$haveit"; then
6019 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6026 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
6029 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6051 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6056 macro_version='2.2.6'
6057 macro_revision='1.3012'
6071 ltmain="$ac_aux_dir/ltmain.sh"
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6074 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6075 if test "${ac_cv_path_SED+set}" = set; then :
6076 $as_echo_n "(cached) " >&6
6078 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6079 for ac_i in 1 2 3 4 5 6 7; do
6080 ac_script="$ac_script$as_nl$ac_script"
6082 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6083 { ac_script=; unset ac_script;}
6084 if test -z "$SED"; then
6085 ac_path_SED_found=false
6086 # Loop through the user's path and test for each of PROGNAME-LIST
6087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6091 test -z "$as_dir" && as_dir=.
6092 for ac_prog in sed gsed; do
6093 for ac_exec_ext in '' $ac_executable_extensions; do
6094 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6095 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6096 # Check for GNU ac_path_SED and select it if it is found.
6097 # Check for GNU $ac_path_SED
6098 case `"$ac_path_SED" --version 2>&1` in
6100 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6103 $as_echo_n 0123456789 >"conftest.in"
6106 cat "conftest.in" "conftest.in" >"conftest.tmp"
6107 mv "conftest.tmp" "conftest.in"
6108 cp "conftest.in" "conftest.nl"
6109 $as_echo '' >> "conftest.nl"
6110 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6111 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6112 as_fn_arith $ac_count + 1 && ac_count=$as_val
6113 if test $ac_count -gt ${ac_path_SED_max-0}; then
6114 # Best one so far, save it but keep looking for a better one
6115 ac_cv_path_SED="$ac_path_SED"
6116 ac_path_SED_max=$ac_count
6118 # 10*(2^10) chars as input seems more than enough
6119 test $ac_count -gt 10 && break
6121 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6124 $ac_path_SED_found && break 3
6129 if test -z "$ac_cv_path_SED"; then
6130 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6138 $as_echo "$ac_cv_path_SED" >&6; }
6139 SED="$ac_cv_path_SED"
6142 test -z "$SED" && SED=sed
6143 Xsed="$SED -e 1s/^X//"
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6156 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6157 if test "${ac_cv_path_GREP+set}" = set; then :
6158 $as_echo_n "(cached) " >&6
6160 if test -z "$GREP"; then
6161 ac_path_GREP_found=false
6162 # Loop through the user's path and test for each of PROGNAME-LIST
6163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6164 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6167 test -z "$as_dir" && as_dir=.
6168 for ac_prog in grep ggrep; do
6169 for ac_exec_ext in '' $ac_executable_extensions; do
6170 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6171 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6172 # Check for GNU ac_path_GREP and select it if it is found.
6173 # Check for GNU $ac_path_GREP
6174 case `"$ac_path_GREP" --version 2>&1` in
6176 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6179 $as_echo_n 0123456789 >"conftest.in"
6182 cat "conftest.in" "conftest.in" >"conftest.tmp"
6183 mv "conftest.tmp" "conftest.in"
6184 cp "conftest.in" "conftest.nl"
6185 $as_echo 'GREP' >> "conftest.nl"
6186 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6187 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6188 as_fn_arith $ac_count + 1 && ac_count=$as_val
6189 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6190 # Best one so far, save it but keep looking for a better one
6191 ac_cv_path_GREP="$ac_path_GREP"
6192 ac_path_GREP_max=$ac_count
6194 # 10*(2^10) chars as input seems more than enough
6195 test $ac_count -gt 10 && break
6197 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6200 $ac_path_GREP_found && break 3
6205 if test -z "$ac_cv_path_GREP"; then
6206 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6209 ac_cv_path_GREP=$GREP
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6214 $as_echo "$ac_cv_path_GREP" >&6; }
6215 GREP="$ac_cv_path_GREP"
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6219 $as_echo_n "checking for egrep... " >&6; }
6220 if test "${ac_cv_path_EGREP+set}" = set; then :
6221 $as_echo_n "(cached) " >&6
6223 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6224 then ac_cv_path_EGREP="$GREP -E"
6226 if test -z "$EGREP"; then
6227 ac_path_EGREP_found=false
6228 # Loop through the user's path and test for each of PROGNAME-LIST
6229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6230 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6233 test -z "$as_dir" && as_dir=.
6234 for ac_prog in egrep; do
6235 for ac_exec_ext in '' $ac_executable_extensions; do
6236 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6237 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6238 # Check for GNU ac_path_EGREP and select it if it is found.
6239 # Check for GNU $ac_path_EGREP
6240 case `"$ac_path_EGREP" --version 2>&1` in
6242 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6245 $as_echo_n 0123456789 >"conftest.in"
6248 cat "conftest.in" "conftest.in" >"conftest.tmp"
6249 mv "conftest.tmp" "conftest.in"
6250 cp "conftest.in" "conftest.nl"
6251 $as_echo 'EGREP' >> "conftest.nl"
6252 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6253 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6254 as_fn_arith $ac_count + 1 && ac_count=$as_val
6255 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6256 # Best one so far, save it but keep looking for a better one
6257 ac_cv_path_EGREP="$ac_path_EGREP"
6258 ac_path_EGREP_max=$ac_count
6260 # 10*(2^10) chars as input seems more than enough
6261 test $ac_count -gt 10 && break
6263 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6266 $ac_path_EGREP_found && break 3
6271 if test -z "$ac_cv_path_EGREP"; then
6272 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6275 ac_cv_path_EGREP=$EGREP
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6281 $as_echo "$ac_cv_path_EGREP" >&6; }
6282 EGREP="$ac_cv_path_EGREP"
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6286 $as_echo_n "checking for fgrep... " >&6; }
6287 if test "${ac_cv_path_FGREP+set}" = set; then :
6288 $as_echo_n "(cached) " >&6
6290 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6291 then ac_cv_path_FGREP="$GREP -F"
6293 if test -z "$FGREP"; then
6294 ac_path_FGREP_found=false
6295 # Loop through the user's path and test for each of PROGNAME-LIST
6296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6297 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6300 test -z "$as_dir" && as_dir=.
6301 for ac_prog in fgrep; do
6302 for ac_exec_ext in '' $ac_executable_extensions; do
6303 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6304 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6305 # Check for GNU ac_path_FGREP and select it if it is found.
6306 # Check for GNU $ac_path_FGREP
6307 case `"$ac_path_FGREP" --version 2>&1` in
6309 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6312 $as_echo_n 0123456789 >"conftest.in"
6315 cat "conftest.in" "conftest.in" >"conftest.tmp"
6316 mv "conftest.tmp" "conftest.in"
6317 cp "conftest.in" "conftest.nl"
6318 $as_echo 'FGREP' >> "conftest.nl"
6319 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6320 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6321 as_fn_arith $ac_count + 1 && ac_count=$as_val
6322 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6323 # Best one so far, save it but keep looking for a better one
6324 ac_cv_path_FGREP="$ac_path_FGREP"
6325 ac_path_FGREP_max=$ac_count
6327 # 10*(2^10) chars as input seems more than enough
6328 test $ac_count -gt 10 && break
6330 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6333 $ac_path_FGREP_found && break 3
6338 if test -z "$ac_cv_path_FGREP"; then
6339 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6342 ac_cv_path_FGREP=$FGREP
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6348 $as_echo "$ac_cv_path_FGREP" >&6; }
6349 FGREP="$ac_cv_path_FGREP"
6352 test -z "$GREP" && GREP=grep
6372 # Check whether --with-gnu-ld was given.
6373 if test "${with_gnu_ld+set}" = set; then :
6374 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6380 if test "$GCC" = yes; then
6381 # Check if gcc -print-prog-name=ld gives a path.
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6383 $as_echo_n "checking for ld used by $CC... " >&6; }
6386 # gcc leaves a trailing carriage return which upsets mingw
6387 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6389 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6392 # Accept absolute paths.
6394 re_direlt='/[^/][^/]*/\.\./'
6395 # Canonicalize the pathname of ld
6396 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6397 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6398 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6400 test -z "$LD" && LD="$ac_prog"
6403 # If it fails, then pretend we aren't using GCC.
6407 # If it is relative, then search for the first ld in PATH.
6411 elif test "$with_gnu_ld" = yes; then
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6413 $as_echo_n "checking for GNU ld... " >&6; }
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6416 $as_echo_n "checking for non-GNU ld... " >&6; }
6418 if test "${lt_cv_path_LD+set}" = set; then :
6419 $as_echo_n "(cached) " >&6
6421 if test -z "$LD"; then
6422 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6423 for ac_dir in $PATH; do
6425 test -z "$ac_dir" && ac_dir=.
6426 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6427 lt_cv_path_LD="$ac_dir/$ac_prog"
6428 # Check to see if the program is GNU ld. I'd rather use --version,
6429 # but apparently some variants of GNU ld only accept -v.
6430 # Break only if it was the GNU/non-GNU ld that we prefer.
6431 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6432 *GNU* | *'with BFD'*)
6433 test "$with_gnu_ld" != no && break
6436 test "$with_gnu_ld" != yes && break
6443 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6448 if test -n "$LD"; then
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6450 $as_echo "$LD" >&6; }
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6453 $as_echo "no" >&6; }
6455 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6457 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6458 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6459 $as_echo_n "(cached) " >&6
6461 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6462 case `$LD -v 2>&1 </dev/null` in
6463 *GNU* | *'with BFD'*)
6464 lt_cv_prog_gnu_ld=yes
6467 lt_cv_prog_gnu_ld=no
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6472 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6473 with_gnu_ld=$lt_cv_prog_gnu_ld
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6484 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6485 if test "${lt_cv_path_NM+set}" = set; then :
6486 $as_echo_n "(cached) " >&6
6488 if test -n "$NM"; then
6489 # Let the user override the test.
6492 lt_nm_to_check="${ac_tool_prefix}nm"
6493 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6494 lt_nm_to_check="$lt_nm_to_check nm"
6496 for lt_tmp_nm in $lt_nm_to_check; do
6497 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6498 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6500 test -z "$ac_dir" && ac_dir=.
6501 tmp_nm="$ac_dir/$lt_tmp_nm"
6502 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6503 # Check to see if the nm accepts a BSD-compat flag.
6504 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6505 # nm: unknown option "B" ignored
6506 # Tru64's nm complains that /dev/null is an invalid object file
6507 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6508 */dev/null* | *'Invalid file or object type'*)
6509 lt_cv_path_NM="$tmp_nm -B"
6513 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6515 lt_cv_path_NM="$tmp_nm -p"
6519 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6520 continue # so that we can try to find one that supports BSD flags
6529 : ${lt_cv_path_NM=no}
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6533 $as_echo "$lt_cv_path_NM" >&6; }
6534 if test "$lt_cv_path_NM" != "no"; then
6537 # Didn't find any BSD compatible name lister, look for dumpbin.
6538 if test -n "$ac_tool_prefix"; then
6539 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6541 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6542 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6544 $as_echo_n "checking for $ac_word... " >&6; }
6545 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6546 $as_echo_n "(cached) " >&6
6548 if test -n "$DUMPBIN"; then
6549 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6555 test -z "$as_dir" && as_dir=.
6556 for ac_exec_ext in '' $ac_executable_extensions; do
6557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6558 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6568 DUMPBIN=$ac_cv_prog_DUMPBIN
6569 if test -n "$DUMPBIN"; then
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6571 $as_echo "$DUMPBIN" >&6; }
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6574 $as_echo "no" >&6; }
6578 test -n "$DUMPBIN" && break
6581 if test -z "$DUMPBIN"; then
6582 ac_ct_DUMPBIN=$DUMPBIN
6583 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6585 # Extract the first word of "$ac_prog", so it can be a program name with args.
6586 set dummy $ac_prog; ac_word=$2
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6588 $as_echo_n "checking for $ac_word... " >&6; }
6589 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6590 $as_echo_n "(cached) " >&6
6592 if test -n "$ac_ct_DUMPBIN"; then
6593 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6599 test -z "$as_dir" && as_dir=.
6600 for ac_exec_ext in '' $ac_executable_extensions; do
6601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6602 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6612 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6613 if test -n "$ac_ct_DUMPBIN"; then
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6615 $as_echo "$ac_ct_DUMPBIN" >&6; }
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6618 $as_echo "no" >&6; }
6622 test -n "$ac_ct_DUMPBIN" && break
6625 if test "x$ac_ct_DUMPBIN" = x; then
6628 case $cross_compiling:$ac_tool_warned in
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6631 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6632 ac_tool_warned=yes ;;
6634 DUMPBIN=$ac_ct_DUMPBIN
6639 if test "$DUMPBIN" != ":"; then
6643 test -z "$NM" && NM=nm
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6651 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6652 if test "${lt_cv_nm_interface+set}" = set; then :
6653 $as_echo_n "(cached) " >&6
6655 lt_cv_nm_interface="BSD nm"
6656 echo "int some_variable = 0;" > conftest.$ac_ext
6657 (eval echo "\"\$as_me:6657: $ac_compile\"" >&5)
6658 (eval "$ac_compile" 2>conftest.err)
6659 cat conftest.err >&5
6660 (eval echo "\"\$as_me:6660: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6661 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6662 cat conftest.err >&5
6663 (eval echo "\"\$as_me:6663: output\"" >&5)
6664 cat conftest.out >&5
6665 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6666 lt_cv_nm_interface="MS dumpbin"
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6671 $as_echo "$lt_cv_nm_interface" >&6; }
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6674 $as_echo_n "checking whether ln -s works... " >&6; }
6676 if test "$LN_S" = "ln -s"; then
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6678 $as_echo "yes" >&6; }
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6681 $as_echo "no, using $LN_S" >&6; }
6684 # find the maximum length of command line arguments
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6686 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6687 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6688 $as_echo_n "(cached) " >&6
6695 # On DJGPP, this test can blow up pretty badly due to problems in libc
6696 # (any single argument exceeding 2000 bytes causes a buffer overrun
6697 # during glob expansion). Even if it were fixed, the result of this
6698 # check would be larger than it should be.
6699 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6703 # Under GNU Hurd, this test is not required because there is
6704 # no limit to the length of command line arguments.
6705 # Libtool will interpret -1 as no limit whatsoever
6706 lt_cv_sys_max_cmd_len=-1;
6709 cygwin* | mingw* | cegcc*)
6710 # On Win9x/ME, this test blows up -- it succeeds, but takes
6711 # about 5 minutes as the teststring grows exponentially.
6712 # Worse, since 9x/ME are not pre-emptively multitasking,
6713 # you end up with a "frozen" computer, even though with patience
6714 # the test eventually succeeds (with a max line length of 256k).
6715 # Instead, let's just punt: use the minimum linelength reported by
6716 # all of the supported platforms: 8192 (on NT/2K/XP).
6717 lt_cv_sys_max_cmd_len=8192;
6721 # On AmigaOS with pdksh, this test takes hours, literally.
6722 # So we just punt and use a minimum line length of 8192.
6723 lt_cv_sys_max_cmd_len=8192;
6726 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6727 # This has been around since 386BSD, at least. Likely further.
6728 if test -x /sbin/sysctl; then
6729 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6730 elif test -x /usr/sbin/sysctl; then
6731 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6733 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6735 # And add a safety zone
6736 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6737 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6741 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6742 lt_cv_sys_max_cmd_len=196608
6746 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6747 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6748 # nice to cause kernel panics so lets avoid the loop below.
6749 # First set a reasonable default.
6750 lt_cv_sys_max_cmd_len=16384
6752 if test -x /sbin/sysconfig; then
6753 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6754 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6759 lt_cv_sys_max_cmd_len=102400
6761 sysv5* | sco5v6* | sysv4.2uw2*)
6762 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6763 if test -n "$kargmax"; then
6764 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6766 lt_cv_sys_max_cmd_len=32768
6770 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6771 if test -n "$lt_cv_sys_max_cmd_len"; then
6772 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6773 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6775 # Make teststring a little bigger before we do anything with it.
6776 # a 1K string should be a reasonable start.
6777 for i in 1 2 3 4 5 6 7 8 ; do
6778 teststring=$teststring$teststring
6780 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6781 # If test is not a shell built-in, we'll probably end up computing a
6782 # maximum length that is only half of the actual maximum length, but
6784 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6785 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6786 test $i != 17 # 1/2 MB should be enough
6789 teststring=$teststring$teststring
6791 # Only check the string length outside the loop.
6792 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6794 # Add a significant safety factor because C++ compilers can tack on
6795 # massive amounts of additional arguments before passing them to the
6796 # linker. It appears as though 1/2 is a usable value.
6797 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6804 if test -n $lt_cv_sys_max_cmd_len ; then
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6806 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6809 $as_echo "none" >&6; }
6811 max_cmd_len=$lt_cv_sys_max_cmd_len
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6823 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6824 # Try some XSI features
6827 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6829 && eval 'test $(( 1 + 1 )) -eq 2 \
6830 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6833 $as_echo "$xsi_shell" >&6; }
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6837 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6839 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6841 && lt_shell_append=yes
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6843 $as_echo "$lt_shell_append" >&6; }
6846 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6856 # test EBCDIC or ASCII
6857 case `echo X|tr X '\101'` in
6858 A) # ASCII based system
6859 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6860 lt_SP2NL='tr \040 \012'
6861 lt_NL2SP='tr \015\012 \040\040'
6863 *) # EBCDIC based system
6864 lt_SP2NL='tr \100 \n'
6865 lt_NL2SP='tr \r\n \100\100'
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6878 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6879 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6880 $as_echo_n "(cached) " >&6
6882 lt_cv_ld_reload_flag='-r'
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6885 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6886 reload_flag=$lt_cv_ld_reload_flag
6887 case $reload_flag in
6889 *) reload_flag=" $reload_flag" ;;
6891 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6894 if test "$GCC" = yes; then
6895 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6897 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6910 if test -n "$ac_tool_prefix"; then
6911 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6912 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6914 $as_echo_n "checking for $ac_word... " >&6; }
6915 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6916 $as_echo_n "(cached) " >&6
6918 if test -n "$OBJDUMP"; then
6919 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6925 test -z "$as_dir" && as_dir=.
6926 for ac_exec_ext in '' $ac_executable_extensions; do
6927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6928 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6938 OBJDUMP=$ac_cv_prog_OBJDUMP
6939 if test -n "$OBJDUMP"; then
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6941 $as_echo "$OBJDUMP" >&6; }
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6944 $as_echo "no" >&6; }
6949 if test -z "$ac_cv_prog_OBJDUMP"; then
6950 ac_ct_OBJDUMP=$OBJDUMP
6951 # Extract the first word of "objdump", so it can be a program name with args.
6952 set dummy objdump; ac_word=$2
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6954 $as_echo_n "checking for $ac_word... " >&6; }
6955 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6956 $as_echo_n "(cached) " >&6
6958 if test -n "$ac_ct_OBJDUMP"; then
6959 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6965 test -z "$as_dir" && as_dir=.
6966 for ac_exec_ext in '' $ac_executable_extensions; do
6967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6968 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6978 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6979 if test -n "$ac_ct_OBJDUMP"; then
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6981 $as_echo "$ac_ct_OBJDUMP" >&6; }
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6984 $as_echo "no" >&6; }
6987 if test "x$ac_ct_OBJDUMP" = x; then
6990 case $cross_compiling:$ac_tool_warned in
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6993 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6994 ac_tool_warned=yes ;;
6996 OBJDUMP=$ac_ct_OBJDUMP
6999 OBJDUMP="$ac_cv_prog_OBJDUMP"
7002 test -z "$OBJDUMP" && OBJDUMP=objdump
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7013 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7014 if test "${lt_cv_deplibs_check_method+set}" = set; then :
7015 $as_echo_n "(cached) " >&6
7017 lt_cv_file_magic_cmd='$MAGIC_CMD'
7018 lt_cv_file_magic_test_file=
7019 lt_cv_deplibs_check_method='unknown'
7020 # Need to set the preceding variable on all platforms that support
7021 # interlibrary dependencies.
7022 # 'none' -- dependencies not supported.
7023 # `unknown' -- same as none, but documents that we really don't know.
7024 # 'pass_all' -- all dependencies passed with no checks.
7025 # 'test_compile' -- check by making test program.
7026 # 'file_magic [[regex]]' -- check by looking for files in library path
7027 # which responds to the $file_magic_cmd with a given extended regex.
7028 # If you have `file' or equivalent on your system and you're not sure
7029 # whether `pass_all' will *always* work, you probably want this one.
7033 lt_cv_deplibs_check_method=pass_all
7037 lt_cv_deplibs_check_method=pass_all
7041 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7042 lt_cv_file_magic_cmd='/usr/bin/file -L'
7043 lt_cv_file_magic_test_file=/shlib/libc.so
7047 # func_win32_libid is a shell function defined in ltmain.sh
7048 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7049 lt_cv_file_magic_cmd='func_win32_libid'
7053 # Base MSYS/MinGW do not provide the 'file' command needed by
7054 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7055 # unless we find 'file', for example because we are cross-compiling.
7056 if ( file / ) >/dev/null 2>&1; then
7057 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7058 lt_cv_file_magic_cmd='func_win32_libid'
7060 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7061 lt_cv_file_magic_cmd='$OBJDUMP -f'
7066 # use the weaker test based on 'objdump'. See mingw*.
7067 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7068 lt_cv_file_magic_cmd='$OBJDUMP -f'
7071 darwin* | rhapsody*)
7072 lt_cv_deplibs_check_method=pass_all
7075 freebsd* | dragonfly*)
7076 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7079 # Not sure whether the presence of OpenBSD here was a mistake.
7080 # Let's accept both of them until this is cleared up.
7081 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7082 lt_cv_file_magic_cmd=/usr/bin/file
7083 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7087 lt_cv_deplibs_check_method=pass_all
7092 lt_cv_deplibs_check_method=pass_all
7095 hpux10.20* | hpux11*)
7096 lt_cv_file_magic_cmd=/usr/bin/file
7099 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7100 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7103 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]'
7104 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7107 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7108 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7114 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7115 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7118 irix5* | irix6* | nonstopux*)
7120 *-32|*"-32 ") libmagic=32-bit;;
7121 *-n32|*"-n32 ") libmagic=N32;;
7122 *-64|*"-64 ") libmagic=64-bit;;
7123 *) libmagic=never-match;;
7125 lt_cv_deplibs_check_method=pass_all
7128 # This must be Linux ELF.
7129 linux* | k*bsd*-gnu)
7130 lt_cv_deplibs_check_method=pass_all
7133 netbsd* | netbsdelf*-gnu)
7134 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7135 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7137 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7142 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7143 lt_cv_file_magic_cmd=/usr/bin/file
7144 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7148 lt_cv_deplibs_check_method=pass_all
7152 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7153 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7155 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7159 osf3* | osf4* | osf5*)
7160 lt_cv_deplibs_check_method=pass_all
7164 lt_cv_deplibs_check_method=pass_all
7168 lt_cv_deplibs_check_method=pass_all
7171 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7172 lt_cv_deplibs_check_method=pass_all
7176 case $host_vendor in
7178 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]'
7179 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7182 lt_cv_deplibs_check_method=pass_all
7185 lt_cv_file_magic_cmd='/bin/file'
7186 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7189 lt_cv_file_magic_cmd='/bin/file'
7190 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7191 lt_cv_file_magic_test_file=/lib/libc.so
7194 lt_cv_deplibs_check_method=pass_all
7197 lt_cv_deplibs_check_method=pass_all
7203 lt_cv_deplibs_check_method=pass_all
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7209 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7210 file_magic_cmd=$lt_cv_file_magic_cmd
7211 deplibs_check_method=$lt_cv_deplibs_check_method
7212 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7225 if test -n "$ac_tool_prefix"; then
7226 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7227 set dummy ${ac_tool_prefix}ar; ac_word=$2
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7229 $as_echo_n "checking for $ac_word... " >&6; }
7230 if test "${ac_cv_prog_AR+set}" = set; then :
7231 $as_echo_n "(cached) " >&6
7233 if test -n "$AR"; then
7234 ac_cv_prog_AR="$AR" # Let the user override the test.
7236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7240 test -z "$as_dir" && as_dir=.
7241 for ac_exec_ext in '' $ac_executable_extensions; do
7242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7243 ac_cv_prog_AR="${ac_tool_prefix}ar"
7244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7254 if test -n "$AR"; then
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7256 $as_echo "$AR" >&6; }
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7259 $as_echo "no" >&6; }
7264 if test -z "$ac_cv_prog_AR"; then
7266 # Extract the first word of "ar", so it can be a program name with args.
7267 set dummy ar; ac_word=$2
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7269 $as_echo_n "checking for $ac_word... " >&6; }
7270 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7271 $as_echo_n "(cached) " >&6
7273 if test -n "$ac_ct_AR"; then
7274 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7280 test -z "$as_dir" && as_dir=.
7281 for ac_exec_ext in '' $ac_executable_extensions; do
7282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7283 ac_cv_prog_ac_ct_AR="ar"
7284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7293 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7294 if test -n "$ac_ct_AR"; then
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7296 $as_echo "$ac_ct_AR" >&6; }
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7299 $as_echo "no" >&6; }
7302 if test "x$ac_ct_AR" = x; then
7305 case $cross_compiling:$ac_tool_warned in
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7308 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7309 ac_tool_warned=yes ;;
7317 test -z "$AR" && AR=ar
7318 test -z "$AR_FLAGS" && AR_FLAGS=cru
7330 if test -n "$ac_tool_prefix"; then
7331 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7332 set dummy ${ac_tool_prefix}strip; ac_word=$2
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7334 $as_echo_n "checking for $ac_word... " >&6; }
7335 if test "${ac_cv_prog_STRIP+set}" = set; then :
7336 $as_echo_n "(cached) " >&6
7338 if test -n "$STRIP"; then
7339 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7345 test -z "$as_dir" && as_dir=.
7346 for ac_exec_ext in '' $ac_executable_extensions; do
7347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7348 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7358 STRIP=$ac_cv_prog_STRIP
7359 if test -n "$STRIP"; then
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7361 $as_echo "$STRIP" >&6; }
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7364 $as_echo "no" >&6; }
7369 if test -z "$ac_cv_prog_STRIP"; then
7371 # Extract the first word of "strip", so it can be a program name with args.
7372 set dummy strip; ac_word=$2
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7374 $as_echo_n "checking for $ac_word... " >&6; }
7375 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7376 $as_echo_n "(cached) " >&6
7378 if test -n "$ac_ct_STRIP"; then
7379 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7385 test -z "$as_dir" && as_dir=.
7386 for ac_exec_ext in '' $ac_executable_extensions; do
7387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7388 ac_cv_prog_ac_ct_STRIP="strip"
7389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7398 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7399 if test -n "$ac_ct_STRIP"; then
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7401 $as_echo "$ac_ct_STRIP" >&6; }
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7404 $as_echo "no" >&6; }
7407 if test "x$ac_ct_STRIP" = x; then
7410 case $cross_compiling:$ac_tool_warned in
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7413 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7414 ac_tool_warned=yes ;;
7419 STRIP="$ac_cv_prog_STRIP"
7422 test -z "$STRIP" && STRIP=:
7429 if test -n "$ac_tool_prefix"; then
7430 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7431 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7433 $as_echo_n "checking for $ac_word... " >&6; }
7434 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7435 $as_echo_n "(cached) " >&6
7437 if test -n "$RANLIB"; then
7438 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7444 test -z "$as_dir" && as_dir=.
7445 for ac_exec_ext in '' $ac_executable_extensions; do
7446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7447 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7457 RANLIB=$ac_cv_prog_RANLIB
7458 if test -n "$RANLIB"; then
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7460 $as_echo "$RANLIB" >&6; }
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7463 $as_echo "no" >&6; }
7468 if test -z "$ac_cv_prog_RANLIB"; then
7469 ac_ct_RANLIB=$RANLIB
7470 # Extract the first word of "ranlib", so it can be a program name with args.
7471 set dummy ranlib; ac_word=$2
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7473 $as_echo_n "checking for $ac_word... " >&6; }
7474 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7475 $as_echo_n "(cached) " >&6
7477 if test -n "$ac_ct_RANLIB"; then
7478 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7484 test -z "$as_dir" && as_dir=.
7485 for ac_exec_ext in '' $ac_executable_extensions; do
7486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7487 ac_cv_prog_ac_ct_RANLIB="ranlib"
7488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7497 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7498 if test -n "$ac_ct_RANLIB"; then
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7500 $as_echo "$ac_ct_RANLIB" >&6; }
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7503 $as_echo "no" >&6; }
7506 if test "x$ac_ct_RANLIB" = x; then
7509 case $cross_compiling:$ac_tool_warned in
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7512 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7513 ac_tool_warned=yes ;;
7515 RANLIB=$ac_ct_RANLIB
7518 RANLIB="$ac_cv_prog_RANLIB"
7521 test -z "$RANLIB" && RANLIB=:
7528 # Determine commands to create old-style static archives.
7529 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7530 old_postinstall_cmds='chmod 644 $oldlib'
7531 old_postuninstall_cmds=
7533 if test -n "$RANLIB"; then
7536 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7539 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7542 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7578 # If no C compiler was specified, use CC.
7581 # If no C compiler flags were specified, use CFLAGS.
7582 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7584 # Allow CC to be a program name with arguments.
7588 # Check for command to grab the raw symbol name followed by C symbol from nm.
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7590 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7591 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7592 $as_echo_n "(cached) " >&6
7595 # These are sane defaults that work on at least a few old systems.
7596 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7598 # Character class describing NM global symbol codes.
7599 symcode='[BCDEGRST]'
7601 # Regexp to match symbols that can be accessed directly from C.
7602 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7604 # Define system-specific variables.
7609 cygwin* | mingw* | pw32* | cegcc*)
7610 symcode='[ABCDGISTW]'
7613 if test "$host_cpu" = ia64; then
7614 symcode='[ABCDEGRST]'
7618 symcode='[BCDEGRST]'
7621 symcode='[BCDEGQRST]'
7632 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7640 # If we're using GNU nm, then use its standard symbol codes.
7641 case `$NM -V 2>&1` in
7642 *GNU* | *'with BFD'*)
7643 symcode='[ABCDGIRSTW]' ;;
7646 # Transform an extracted symbol line into a proper C declaration.
7647 # Some systems (esp. on ia64) link data and code symbols differently,
7648 # so use this general approach.
7649 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7651 # Transform an extracted symbol line into symbol name and symbol address
7652 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7653 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'"
7655 # Handle CRLF in mingw tool chain
7659 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7663 # Try without a prefix underscore, then with it.
7664 for ac_symprfx in "" "_"; do
7666 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7667 symxfrm="\\1 $ac_symprfx\\2 \\2"
7669 # Write the raw and C identifiers.
7670 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7671 # Fake it for dumpbin and say T for any non-static function
7672 # and D for any global variable.
7673 # Also find C++ and __fastcall symbols from MSVC++,
7674 # which start with @ or ?.
7675 lt_cv_sys_global_symbol_pipe="$AWK '"\
7676 " {last_section=section; section=\$ 3};"\
7677 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7678 " \$ 0!~/External *\|/{next};"\
7679 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7680 " {if(hide[section]) next};"\
7681 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7682 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7683 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7684 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7685 " ' prfx=^$ac_symprfx"
7687 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7690 # Check to see that the pipe works correctly.
7694 cat > conftest.$ac_ext <<_LT_EOF
7699 void nm_test_func(void);
7700 void nm_test_func(void){}
7704 int main(){nm_test_var='a';nm_test_func();return(0);}
7707 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7708 (eval $ac_compile) 2>&5
7710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7711 test $ac_status = 0; }; then
7712 # Now try to grab the symbols.
7714 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7715 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7718 test $ac_status = 0; } && test -s "$nlist"; then
7719 # Try sorting and uniquifying the output.
7720 if sort "$nlist" | uniq > "$nlist"T; then
7721 mv -f "$nlist"T "$nlist"
7726 # Make sure that we snagged all the symbols we need.
7727 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7728 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7729 cat <<_LT_EOF > conftest.$ac_ext
7735 # Now generate the symbol file.
7736 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7738 cat <<_LT_EOF >> conftest.$ac_ext
7740 /* The mapping between symbol names and symbols. */
7745 lt__PROGRAM__LTX_preloaded_symbols[] =
7747 { "@PROGRAM@", (void *) 0 },
7749 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7750 cat <<\_LT_EOF >> conftest.$ac_ext
7754 /* This works around a problem in FreeBSD linker */
7755 #ifdef FREEBSD_WORKAROUND
7756 static const void *lt_preloaded_setup() {
7757 return lt__PROGRAM__LTX_preloaded_symbols;
7765 # Now try linking the two files.
7766 mv conftest.$ac_objext conftstm.$ac_objext
7767 lt_save_LIBS="$LIBS"
7768 lt_save_CFLAGS="$CFLAGS"
7769 LIBS="conftstm.$ac_objext"
7770 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7771 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7772 (eval $ac_link) 2>&5
7774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7775 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7778 LIBS="$lt_save_LIBS"
7779 CFLAGS="$lt_save_CFLAGS"
7781 echo "cannot find nm_test_func in $nlist" >&5
7784 echo "cannot find nm_test_var in $nlist" >&5
7787 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7790 echo "$progname: failed program was:" >&5
7791 cat conftest.$ac_ext >&5
7793 rm -rf conftest* conftst*
7795 # Do not use the global_symbol_pipe unless it works.
7796 if test "$pipe_works" = yes; then
7799 lt_cv_sys_global_symbol_pipe=
7805 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7806 lt_cv_sys_global_symbol_to_cdecl=
7808 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7810 $as_echo "failed" >&6; }
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7813 $as_echo "ok" >&6; }
7837 # Check whether --enable-libtool-lock was given.
7838 if test "${enable_libtool_lock+set}" = set; then :
7839 enableval=$enable_libtool_lock;
7842 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7844 # Some flags need to be propagated to the compiler or linker for good
7848 # Find out which ABI we are using.
7849 echo 'int i;' > conftest.$ac_ext
7850 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7851 (eval $ac_compile) 2>&5
7853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7854 test $ac_status = 0; }; then
7855 case `/usr/bin/file conftest.$ac_objext` in
7867 # Find out which ABI we are using.
7868 echo '#line 7868 "configure"' > conftest.$ac_ext
7869 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7870 (eval $ac_compile) 2>&5
7872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7873 test $ac_status = 0; }; then
7874 if test "$lt_cv_prog_gnu_ld" = yes; then
7875 case `/usr/bin/file conftest.$ac_objext` in
7877 LD="${LD-ld} -melf32bsmip"
7880 LD="${LD-ld} -melf32bmipn32"
7883 LD="${LD-ld} -melf64bmip"
7887 case `/usr/bin/file conftest.$ac_objext` in
7903 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7904 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7905 # Find out which ABI we are using.
7906 echo 'int i;' > conftest.$ac_ext
7907 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7908 (eval $ac_compile) 2>&5
7910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7911 test $ac_status = 0; }; then
7912 case `/usr/bin/file conftest.o` in
7915 x86_64-*kfreebsd*-gnu)
7916 LD="${LD-ld} -m elf_i386_fbsd"
7919 LD="${LD-ld} -m elf_i386"
7921 ppc64-*linux*|powerpc64-*linux*)
7922 LD="${LD-ld} -m elf32ppclinux"
7925 LD="${LD-ld} -m elf_s390"
7928 LD="${LD-ld} -m elf32_sparc"
7934 x86_64-*kfreebsd*-gnu)
7935 LD="${LD-ld} -m elf_x86_64_fbsd"
7938 LD="${LD-ld} -m elf_x86_64"
7940 ppc*-*linux*|powerpc*-*linux*)
7941 LD="${LD-ld} -m elf64ppc"
7943 s390*-*linux*|s390*-*tpf*)
7944 LD="${LD-ld} -m elf64_s390"
7947 LD="${LD-ld} -m elf64_sparc"
7957 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7958 SAVE_CFLAGS="$CFLAGS"
7959 CFLAGS="$CFLAGS -belf"
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7961 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7962 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7963 $as_echo_n "(cached) " >&6
7966 ac_cpp='$CPP $CPPFLAGS'
7967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7972 /* end confdefs.h. */
7982 if ac_fn_c_try_link "$LINENO"; then :
7983 lt_cv_cc_needs_belf=yes
7985 lt_cv_cc_needs_belf=no
7987 rm -f core conftest.err conftest.$ac_objext \
7988 conftest$ac_exeext conftest.$ac_ext
7990 ac_cpp='$CPP $CPPFLAGS'
7991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7997 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7998 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7999 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8000 CFLAGS="$SAVE_CFLAGS"
8004 # Find out which ABI we are using.
8005 echo 'int i;' > conftest.$ac_ext
8006 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8007 (eval $ac_compile) 2>&5
8009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8010 test $ac_status = 0; }; then
8011 case `/usr/bin/file conftest.o` in
8013 case $lt_cv_prog_gnu_ld in
8014 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8016 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8028 need_locks="$enable_libtool_lock"
8032 rhapsody* | darwin*)
8033 if test -n "$ac_tool_prefix"; then
8034 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8035 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8037 $as_echo_n "checking for $ac_word... " >&6; }
8038 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8039 $as_echo_n "(cached) " >&6
8041 if test -n "$DSYMUTIL"; then
8042 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8048 test -z "$as_dir" && as_dir=.
8049 for ac_exec_ext in '' $ac_executable_extensions; do
8050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8051 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8061 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8062 if test -n "$DSYMUTIL"; then
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8064 $as_echo "$DSYMUTIL" >&6; }
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8067 $as_echo "no" >&6; }
8072 if test -z "$ac_cv_prog_DSYMUTIL"; then
8073 ac_ct_DSYMUTIL=$DSYMUTIL
8074 # Extract the first word of "dsymutil", so it can be a program name with args.
8075 set dummy dsymutil; ac_word=$2
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8077 $as_echo_n "checking for $ac_word... " >&6; }
8078 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8079 $as_echo_n "(cached) " >&6
8081 if test -n "$ac_ct_DSYMUTIL"; then
8082 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8088 test -z "$as_dir" && as_dir=.
8089 for ac_exec_ext in '' $ac_executable_extensions; do
8090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8091 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8101 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8102 if test -n "$ac_ct_DSYMUTIL"; then
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8104 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8107 $as_echo "no" >&6; }
8110 if test "x$ac_ct_DSYMUTIL" = x; then
8113 case $cross_compiling:$ac_tool_warned in
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8116 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8117 ac_tool_warned=yes ;;
8119 DSYMUTIL=$ac_ct_DSYMUTIL
8122 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8125 if test -n "$ac_tool_prefix"; then
8126 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8127 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8129 $as_echo_n "checking for $ac_word... " >&6; }
8130 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8131 $as_echo_n "(cached) " >&6
8133 if test -n "$NMEDIT"; then
8134 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8140 test -z "$as_dir" && as_dir=.
8141 for ac_exec_ext in '' $ac_executable_extensions; do
8142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8143 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8153 NMEDIT=$ac_cv_prog_NMEDIT
8154 if test -n "$NMEDIT"; then
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8156 $as_echo "$NMEDIT" >&6; }
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8159 $as_echo "no" >&6; }
8164 if test -z "$ac_cv_prog_NMEDIT"; then
8165 ac_ct_NMEDIT=$NMEDIT
8166 # Extract the first word of "nmedit", so it can be a program name with args.
8167 set dummy nmedit; ac_word=$2
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8169 $as_echo_n "checking for $ac_word... " >&6; }
8170 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8171 $as_echo_n "(cached) " >&6
8173 if test -n "$ac_ct_NMEDIT"; then
8174 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8180 test -z "$as_dir" && as_dir=.
8181 for ac_exec_ext in '' $ac_executable_extensions; do
8182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8183 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8193 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8194 if test -n "$ac_ct_NMEDIT"; then
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8196 $as_echo "$ac_ct_NMEDIT" >&6; }
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8199 $as_echo "no" >&6; }
8202 if test "x$ac_ct_NMEDIT" = x; then
8205 case $cross_compiling:$ac_tool_warned in
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8208 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8209 ac_tool_warned=yes ;;
8211 NMEDIT=$ac_ct_NMEDIT
8214 NMEDIT="$ac_cv_prog_NMEDIT"
8217 if test -n "$ac_tool_prefix"; then
8218 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8219 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8221 $as_echo_n "checking for $ac_word... " >&6; }
8222 if test "${ac_cv_prog_LIPO+set}" = set; then :
8223 $as_echo_n "(cached) " >&6
8225 if test -n "$LIPO"; then
8226 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8232 test -z "$as_dir" && as_dir=.
8233 for ac_exec_ext in '' $ac_executable_extensions; do
8234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8235 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8245 LIPO=$ac_cv_prog_LIPO
8246 if test -n "$LIPO"; then
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8248 $as_echo "$LIPO" >&6; }
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8251 $as_echo "no" >&6; }
8256 if test -z "$ac_cv_prog_LIPO"; then
8258 # Extract the first word of "lipo", so it can be a program name with args.
8259 set dummy lipo; ac_word=$2
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8261 $as_echo_n "checking for $ac_word... " >&6; }
8262 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8263 $as_echo_n "(cached) " >&6
8265 if test -n "$ac_ct_LIPO"; then
8266 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8272 test -z "$as_dir" && as_dir=.
8273 for ac_exec_ext in '' $ac_executable_extensions; do
8274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8275 ac_cv_prog_ac_ct_LIPO="lipo"
8276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8285 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8286 if test -n "$ac_ct_LIPO"; then
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8288 $as_echo "$ac_ct_LIPO" >&6; }
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8291 $as_echo "no" >&6; }
8294 if test "x$ac_ct_LIPO" = x; then
8297 case $cross_compiling:$ac_tool_warned in
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8300 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8301 ac_tool_warned=yes ;;
8306 LIPO="$ac_cv_prog_LIPO"
8309 if test -n "$ac_tool_prefix"; then
8310 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8311 set dummy ${ac_tool_prefix}otool; ac_word=$2
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8313 $as_echo_n "checking for $ac_word... " >&6; }
8314 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8315 $as_echo_n "(cached) " >&6
8317 if test -n "$OTOOL"; then
8318 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8324 test -z "$as_dir" && as_dir=.
8325 for ac_exec_ext in '' $ac_executable_extensions; do
8326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8327 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8337 OTOOL=$ac_cv_prog_OTOOL
8338 if test -n "$OTOOL"; then
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8340 $as_echo "$OTOOL" >&6; }
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8343 $as_echo "no" >&6; }
8348 if test -z "$ac_cv_prog_OTOOL"; then
8350 # Extract the first word of "otool", so it can be a program name with args.
8351 set dummy otool; ac_word=$2
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8353 $as_echo_n "checking for $ac_word... " >&6; }
8354 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8355 $as_echo_n "(cached) " >&6
8357 if test -n "$ac_ct_OTOOL"; then
8358 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8364 test -z "$as_dir" && as_dir=.
8365 for ac_exec_ext in '' $ac_executable_extensions; do
8366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8367 ac_cv_prog_ac_ct_OTOOL="otool"
8368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8377 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8378 if test -n "$ac_ct_OTOOL"; then
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8380 $as_echo "$ac_ct_OTOOL" >&6; }
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8383 $as_echo "no" >&6; }
8386 if test "x$ac_ct_OTOOL" = x; then
8389 case $cross_compiling:$ac_tool_warned in
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8392 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8393 ac_tool_warned=yes ;;
8398 OTOOL="$ac_cv_prog_OTOOL"
8401 if test -n "$ac_tool_prefix"; then
8402 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8403 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8405 $as_echo_n "checking for $ac_word... " >&6; }
8406 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8407 $as_echo_n "(cached) " >&6
8409 if test -n "$OTOOL64"; then
8410 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8416 test -z "$as_dir" && as_dir=.
8417 for ac_exec_ext in '' $ac_executable_extensions; do
8418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8419 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8429 OTOOL64=$ac_cv_prog_OTOOL64
8430 if test -n "$OTOOL64"; then
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8432 $as_echo "$OTOOL64" >&6; }
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8435 $as_echo "no" >&6; }
8440 if test -z "$ac_cv_prog_OTOOL64"; then
8441 ac_ct_OTOOL64=$OTOOL64
8442 # Extract the first word of "otool64", so it can be a program name with args.
8443 set dummy otool64; ac_word=$2
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8445 $as_echo_n "checking for $ac_word... " >&6; }
8446 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8447 $as_echo_n "(cached) " >&6
8449 if test -n "$ac_ct_OTOOL64"; then
8450 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8456 test -z "$as_dir" && as_dir=.
8457 for ac_exec_ext in '' $ac_executable_extensions; do
8458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8459 ac_cv_prog_ac_ct_OTOOL64="otool64"
8460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8469 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8470 if test -n "$ac_ct_OTOOL64"; then
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8472 $as_echo "$ac_ct_OTOOL64" >&6; }
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8475 $as_echo "no" >&6; }
8478 if test "x$ac_ct_OTOOL64" = x; then
8481 case $cross_compiling:$ac_tool_warned in
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8484 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8485 ac_tool_warned=yes ;;
8487 OTOOL64=$ac_ct_OTOOL64
8490 OTOOL64="$ac_cv_prog_OTOOL64"
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8520 $as_echo_n "checking for -single_module linker flag... " >&6; }
8521 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8522 $as_echo_n "(cached) " >&6
8524 lt_cv_apple_cc_single_mod=no
8525 if test -z "${LT_MULTI_MODULE}"; then
8526 # By default we will add the -single_module flag. You can override
8527 # by either setting the environment variable LT_MULTI_MODULE
8528 # non-empty at configure time, or by adding -multi_module to the
8530 rm -rf libconftest.dylib*
8531 echo "int foo(void){return 1;}" > conftest.c
8532 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8533 -dynamiclib -Wl,-single_module conftest.c" >&5
8534 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8535 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8537 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8538 lt_cv_apple_cc_single_mod=yes
8540 cat conftest.err >&5
8542 rm -rf libconftest.dylib*
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8547 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8549 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8550 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8551 $as_echo_n "(cached) " >&6
8553 lt_cv_ld_exported_symbols_list=no
8554 save_LDFLAGS=$LDFLAGS
8555 echo "_main" > conftest.sym
8556 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8558 /* end confdefs.h. */
8568 if ac_fn_c_try_link "$LINENO"; then :
8569 lt_cv_ld_exported_symbols_list=yes
8571 lt_cv_ld_exported_symbols_list=no
8573 rm -f core conftest.err conftest.$ac_objext \
8574 conftest$ac_exeext conftest.$ac_ext
8575 LDFLAGS="$save_LDFLAGS"
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8579 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8581 rhapsody* | darwin1.[012])
8582 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8584 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8585 darwin*) # darwin 5.x on
8586 # if running on 10.5 or later, the deployment target defaults
8587 # to the OS version, if on x86, and 10.4, the deployment
8588 # target defaults to 10.4. Don't you love it?
8589 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8590 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8591 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8593 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8595 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8599 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8600 _lt_dar_single_mod='$single_module'
8602 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8603 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8605 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8607 if test "$DSYMUTIL" != ":"; then
8608 _lt_dsymutil='~$DSYMUTIL $lib || :'
8616 ac_cpp='$CPP $CPPFLAGS'
8617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8621 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8622 # On Suns, sometimes $CPP names a directory.
8623 if test -n "$CPP" && test -d "$CPP"; then
8626 if test -z "$CPP"; then
8627 if test "${ac_cv_prog_CPP+set}" = set; then :
8628 $as_echo_n "(cached) " >&6
8630 # Double quotes because CPP needs to be expanded
8631 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8634 for ac_c_preproc_warn_flag in '' yes
8636 # Use a header file that comes with gcc, so configuring glibc
8637 # with a fresh cross-compiler works.
8638 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8639 # <limits.h> exists even on freestanding compilers.
8640 # On the NeXT, cc -E runs the code through the compiler's parser,
8641 # not just through cpp. "Syntax error" is here to catch this case.
8642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8643 /* end confdefs.h. */
8645 # include <limits.h>
8647 # include <assert.h>
8651 if ac_fn_c_try_cpp "$LINENO"; then :
8654 # Broken: fails on valid input.
8657 rm -f conftest.err conftest.$ac_ext
8659 # OK, works on sane cases. Now check whether nonexistent headers
8660 # can be detected and how.
8661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8662 /* end confdefs.h. */
8663 #include <ac_nonexistent.h>
8665 if ac_fn_c_try_cpp "$LINENO"; then :
8666 # Broken: success on invalid input.
8669 # Passes both tests.
8673 rm -f conftest.err conftest.$ac_ext
8676 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8677 rm -f conftest.err conftest.$ac_ext
8678 if $ac_preproc_ok; then :
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8691 $as_echo "$CPP" >&6; }
8693 for ac_c_preproc_warn_flag in '' yes
8695 # Use a header file that comes with gcc, so configuring glibc
8696 # with a fresh cross-compiler works.
8697 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8698 # <limits.h> exists even on freestanding compilers.
8699 # On the NeXT, cc -E runs the code through the compiler's parser,
8700 # not just through cpp. "Syntax error" is here to catch this case.
8701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8702 /* end confdefs.h. */
8704 # include <limits.h>
8706 # include <assert.h>
8710 if ac_fn_c_try_cpp "$LINENO"; then :
8713 # Broken: fails on valid input.
8716 rm -f conftest.err conftest.$ac_ext
8718 # OK, works on sane cases. Now check whether nonexistent headers
8719 # can be detected and how.
8720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8721 /* end confdefs.h. */
8722 #include <ac_nonexistent.h>
8724 if ac_fn_c_try_cpp "$LINENO"; then :
8725 # Broken: success on invalid input.
8728 # Passes both tests.
8732 rm -f conftest.err conftest.$ac_ext
8735 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8736 rm -f conftest.err conftest.$ac_ext
8737 if $ac_preproc_ok; then :
8740 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8741 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8742 as_fn_error "C preprocessor \"$CPP\" fails sanity check
8743 See \`config.log' for more details." "$LINENO" 5; }
8747 ac_cpp='$CPP $CPPFLAGS'
8748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8754 $as_echo_n "checking for ANSI C header files... " >&6; }
8755 if test "${ac_cv_header_stdc+set}" = set; then :
8756 $as_echo_n "(cached) " >&6
8758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8759 /* end confdefs.h. */
8773 if ac_fn_c_try_compile "$LINENO"; then :
8774 ac_cv_header_stdc=yes
8776 ac_cv_header_stdc=no
8778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8780 if test $ac_cv_header_stdc = yes; then
8781 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8783 /* end confdefs.h. */
8787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8788 $EGREP "memchr" >/dev/null 2>&1; then :
8791 ac_cv_header_stdc=no
8797 if test $ac_cv_header_stdc = yes; then
8798 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8800 /* end confdefs.h. */
8804 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8805 $EGREP "free" >/dev/null 2>&1; then :
8808 ac_cv_header_stdc=no
8814 if test $ac_cv_header_stdc = yes; then
8815 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8816 if test "$cross_compiling" = yes; then :
8819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8820 /* end confdefs.h. */
8823 #if ((' ' & 0x0FF) == 0x020)
8824 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8825 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8827 # define ISLOWER(c) \
8828 (('a' <= (c) && (c) <= 'i') \
8829 || ('j' <= (c) && (c) <= 'r') \
8830 || ('s' <= (c) && (c) <= 'z'))
8831 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8834 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8839 for (i = 0; i < 256; i++)
8840 if (XOR (islower (i), ISLOWER (i))
8841 || toupper (i) != TOUPPER (i))
8846 if ac_fn_c_try_run "$LINENO"; then :
8849 ac_cv_header_stdc=no
8851 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8852 conftest.$ac_objext conftest.beam conftest.$ac_ext
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8858 $as_echo "$ac_cv_header_stdc" >&6; }
8859 if test $ac_cv_header_stdc = yes; then
8861 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8865 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8866 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8867 inttypes.h stdint.h unistd.h
8869 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8870 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8872 eval as_val=\$$as_ac_Header
8873 if test "x$as_val" = x""yes; then :
8874 cat >>confdefs.h <<_ACEOF
8875 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8883 for ac_header in dlfcn.h
8885 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8887 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8888 cat >>confdefs.h <<_ACEOF
8889 #define HAVE_DLFCN_H 1
8899 # Check whether --enable-static was given.
8900 if test "${enable_static+set}" = set; then :
8901 enableval=$enable_static; p=${PACKAGE-default}
8903 yes) enable_static=yes ;;
8904 no) enable_static=no ;;
8907 # Look at the argument we got. We use all the common list separators.
8908 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8909 for pkg in $enableval; do
8911 if test "X$pkg" = "X$p"; then
8937 # Check whether --enable-shared was given.
8938 if test "${enable_shared+set}" = set; then :
8939 enableval=$enable_shared; p=${PACKAGE-default}
8941 yes) enable_shared=yes ;;
8942 no) enable_shared=no ;;
8945 # Look at the argument we got. We use all the common list separators.
8946 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8947 for pkg in $enableval; do
8949 if test "X$pkg" = "X$p"; then
8970 # Check whether --with-pic was given.
8971 if test "${with_pic+set}" = set; then :
8972 withval=$with_pic; pic_mode="$withval"
8978 test -z "$pic_mode" && pic_mode=default
8986 # Check whether --enable-fast-install was given.
8987 if test "${enable_fast_install+set}" = set; then :
8988 enableval=$enable_fast_install; p=${PACKAGE-default}
8990 yes) enable_fast_install=yes ;;
8991 no) enable_fast_install=no ;;
8993 enable_fast_install=no
8994 # Look at the argument we got. We use all the common list separators.
8995 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8996 for pkg in $enableval; do
8998 if test "X$pkg" = "X$p"; then
8999 enable_fast_install=yes
9006 enable_fast_install=yes
9019 # This can be used to rebuild libtool when needed
9020 LIBTOOL_DEPS="$ltmain"
9022 # Always use our own libtool.
9023 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9049 test -z "$LN_S" && LN_S="ln -s"
9064 if test -n "${ZSH_VERSION+set}" ; then
9065 setopt NO_GLOB_SUBST
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9069 $as_echo_n "checking for objdir... " >&6; }
9070 if test "${lt_cv_objdir+set}" = set; then :
9071 $as_echo_n "(cached) " >&6
9073 rm -f .libs 2>/dev/null
9074 mkdir .libs 2>/dev/null
9075 if test -d .libs; then
9078 # MS-DOS does not allow filenames that begin with a dot.
9081 rmdir .libs 2>/dev/null
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9084 $as_echo "$lt_cv_objdir" >&6; }
9085 objdir=$lt_cv_objdir
9091 cat >>confdefs.h <<_ACEOF
9092 #define LT_OBJDIR "$lt_cv_objdir/"
9113 # AIX sometimes has problems with the GCC collect2 program. For some
9114 # reason, if we set the COLLECT_NAMES environment variable, the problems
9115 # vanish in a puff of smoke.
9116 if test "X${COLLECT_NAMES+set}" != Xset; then
9118 export COLLECT_NAMES
9123 # Sed substitution that helps us do robust quoting. It backslashifies
9124 # metacharacters that are still active within double-quoted strings.
9125 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9127 # Same as above, but do not quote variable references.
9128 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9130 # Sed substitution to delay expansion of an escaped shell variable in a
9131 # double_quote_subst'ed string.
9132 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9134 # Sed substitution to delay expansion of an escaped single quote.
9135 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9137 # Sed substitution to avoid accidental globbing in evaled expressions
9138 no_glob_subst='s/\*/\\\*/g'
9142 can_build_shared=yes
9144 # All known linkers require a `.a' archive for static linking (except MSVC,
9145 # which needs '.lib').
9148 with_gnu_ld="$lt_cv_prog_gnu_ld"
9151 old_CFLAGS="$CFLAGS"
9153 # Set sane defaults for various variables
9154 test -z "$CC" && CC=cc
9155 test -z "$LTCC" && LTCC=$CC
9156 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9157 test -z "$LD" && LD=ld
9158 test -z "$ac_objext" && ac_objext=o
9160 for cc_temp in $compiler""; do
9162 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9163 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9168 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9171 # Only perform the check for file, if the check method requires it
9172 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9173 case $deplibs_check_method in
9175 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9177 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9178 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9179 $as_echo_n "(cached) " >&6
9183 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9186 lt_save_MAGIC_CMD="$MAGIC_CMD"
9187 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9188 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9189 for ac_dir in $ac_dummy; do
9191 test -z "$ac_dir" && ac_dir=.
9192 if test -f $ac_dir/${ac_tool_prefix}file; then
9193 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9194 if test -n "$file_magic_test_file"; then
9195 case $deplibs_check_method in
9197 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9198 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9199 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9200 $EGREP "$file_magic_regex" > /dev/null; then
9205 *** Warning: the command libtool uses to detect shared libraries,
9206 *** $file_magic_cmd, produces output that libtool cannot recognize.
9207 *** The result is that libtool may fail to recognize shared libraries
9208 *** as such. This will affect the creation of libtool libraries that
9209 *** depend on shared libraries, but programs linked with such libtool
9210 *** libraries will work regardless of this problem. Nevertheless, you
9211 *** may want to report the problem to your system manager and/or to
9212 *** bug-libtool@gnu.org
9222 MAGIC_CMD="$lt_save_MAGIC_CMD"
9227 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9228 if test -n "$MAGIC_CMD"; then
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9230 $as_echo "$MAGIC_CMD" >&6; }
9232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9233 $as_echo "no" >&6; }
9240 if test -z "$lt_cv_path_MAGIC_CMD"; then
9241 if test -n "$ac_tool_prefix"; then
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9243 $as_echo_n "checking for file... " >&6; }
9244 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9245 $as_echo_n "(cached) " >&6
9249 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9252 lt_save_MAGIC_CMD="$MAGIC_CMD"
9253 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9254 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9255 for ac_dir in $ac_dummy; do
9257 test -z "$ac_dir" && ac_dir=.
9258 if test -f $ac_dir/file; then
9259 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9260 if test -n "$file_magic_test_file"; then
9261 case $deplibs_check_method in
9263 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9264 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9265 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9266 $EGREP "$file_magic_regex" > /dev/null; then
9271 *** Warning: the command libtool uses to detect shared libraries,
9272 *** $file_magic_cmd, produces output that libtool cannot recognize.
9273 *** The result is that libtool may fail to recognize shared libraries
9274 *** as such. This will affect the creation of libtool libraries that
9275 *** depend on shared libraries, but programs linked with such libtool
9276 *** libraries will work regardless of this problem. Nevertheless, you
9277 *** may want to report the problem to your system manager and/or to
9278 *** bug-libtool@gnu.org
9288 MAGIC_CMD="$lt_save_MAGIC_CMD"
9293 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9294 if test -n "$MAGIC_CMD"; then
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9296 $as_echo "$MAGIC_CMD" >&6; }
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9299 $as_echo "no" >&6; }
9312 # Use C for the default configuration in the libtool script
9316 ac_cpp='$CPP $CPPFLAGS'
9317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9322 # Source file extension for C test sources.
9325 # Object file extension for compiled C test sources.
9329 # Code to be used in simple compile tests
9330 lt_simple_compile_test_code="int some_variable = 0;"
9332 # Code to be used in simple link tests
9333 lt_simple_link_test_code='int main(){return(0);}'
9341 # If no C compiler was specified, use CC.
9344 # If no C compiler flags were specified, use CFLAGS.
9345 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9347 # Allow CC to be a program name with arguments.
9350 # Save the default compiler, since it gets overwritten when the other
9351 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9352 compiler_DEFAULT=$CC
9354 # save warnings/boilerplate of simple test code
9355 ac_outfile=conftest.$ac_objext
9356 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9357 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9358 _lt_compiler_boilerplate=`cat conftest.err`
9361 ac_outfile=conftest.$ac_objext
9362 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9363 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9364 _lt_linker_boilerplate=`cat conftest.err`
9369 ## There is no encapsulation within the following macros, do not change
9370 ## the running order or otherwise move them around unless you know exactly
9371 ## what you are doing...
9372 if test -n "$compiler"; then
9374 lt_prog_compiler_no_builtin_flag=
9376 if test "$GCC" = yes; then
9377 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9380 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9381 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9382 $as_echo_n "(cached) " >&6
9384 lt_cv_prog_compiler_rtti_exceptions=no
9385 ac_outfile=conftest.$ac_objext
9386 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9387 lt_compiler_flag="-fno-rtti -fno-exceptions"
9388 # Insert the option either (1) after the last *FLAGS variable, or
9389 # (2) before a word containing "conftest.", or (3) at the end.
9390 # Note that $ac_compile itself does not contain backslashes and begins
9391 # with a dollar sign (not a hyphen), so the echo should work correctly.
9392 # The option is referenced via a variable to avoid confusing sed.
9393 lt_compile=`echo "$ac_compile" | $SED \
9394 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9395 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9396 -e 's:$: $lt_compiler_flag:'`
9397 (eval echo "\"\$as_me:9397: $lt_compile\"" >&5)
9398 (eval "$lt_compile" 2>conftest.err)
9400 cat conftest.err >&5
9401 echo "$as_me:9401: \$? = $ac_status" >&5
9402 if (exit $ac_status) && test -s "$ac_outfile"; then
9403 # The compiler can only warn and ignore the option if not recognized
9404 # So say no if there are warnings other than the usual output.
9405 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9406 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9407 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9408 lt_cv_prog_compiler_rtti_exceptions=yes
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9415 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9417 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9418 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9430 lt_prog_compiler_wl=
9431 lt_prog_compiler_pic=
9432 lt_prog_compiler_static=
9434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9435 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9437 if test "$GCC" = yes; then
9438 lt_prog_compiler_wl='-Wl,'
9439 lt_prog_compiler_static='-static'
9443 # All AIX code is PIC.
9444 if test "$host_cpu" = ia64; then
9445 # AIX 5 now supports IA64 processor
9446 lt_prog_compiler_static='-Bstatic'
9453 # see comment about AmigaOS4 .so support
9454 lt_prog_compiler_pic='-fPIC'
9457 # FIXME: we need at least 68020 code to build shared libraries, but
9458 # adding the `-m68020' flag to GCC prevents building anything better,
9460 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9465 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9466 # PIC is the default for these OSes.
9469 mingw* | cygwin* | pw32* | os2* | cegcc*)
9470 # This hack is so that the source file can tell whether it is being
9471 # built for inclusion in a dll (and should export symbols for example).
9472 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9473 # (--disable-auto-import) libraries
9474 lt_prog_compiler_pic='-DDLL_EXPORT'
9477 darwin* | rhapsody*)
9478 # PIC is the default on this platform
9479 # Common symbols not allowed in MH_DYLIB files
9480 lt_prog_compiler_pic='-fno-common'
9484 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9485 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9486 # sets the default TLS model and affects inlining.
9492 lt_prog_compiler_pic='-fPIC'
9498 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9499 # Instead, we relocate shared libraries at runtime.
9503 # Just because we use GCC doesn't mean we suddenly get shared libraries
9504 # on systems that don't support them.
9505 lt_prog_compiler_can_build_shared=no
9510 # QNX uses GNU C++, but need to define -shared option too, otherwise
9512 lt_prog_compiler_pic='-fPIC -shared'
9516 if test -d /usr/nec; then
9517 lt_prog_compiler_pic=-Kconform_pic
9522 lt_prog_compiler_pic='-fPIC'
9526 # PORTME Check for flag to pass linker flags through the system compiler.
9529 lt_prog_compiler_wl='-Wl,'
9530 if test "$host_cpu" = ia64; then
9531 # AIX 5 now supports IA64 processor
9532 lt_prog_compiler_static='-Bstatic'
9534 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9538 mingw* | cygwin* | pw32* | os2* | cegcc*)
9539 # This hack is so that the source file can tell whether it is being
9540 # built for inclusion in a dll (and should export symbols for example).
9541 lt_prog_compiler_pic='-DDLL_EXPORT'
9544 hpux9* | hpux10* | hpux11*)
9545 lt_prog_compiler_wl='-Wl,'
9546 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9553 lt_prog_compiler_pic='+Z'
9556 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9557 lt_prog_compiler_static='${wl}-a ${wl}archive'
9560 irix5* | irix6* | nonstopux*)
9561 lt_prog_compiler_wl='-Wl,'
9562 # PIC (with -KPIC) is the default.
9563 lt_prog_compiler_static='-non_shared'
9566 linux* | k*bsd*-gnu)
9567 case $cc_basename in
9568 # old Intel for x86_64 which still supported -KPIC.
9570 lt_prog_compiler_wl='-Wl,'
9571 lt_prog_compiler_pic='-KPIC'
9572 lt_prog_compiler_static='-static'
9574 # icc used to be incompatible with GCC.
9575 # ICC 10 doesn't accept -KPIC any more.
9577 lt_prog_compiler_wl='-Wl,'
9578 lt_prog_compiler_pic='-fPIC'
9579 lt_prog_compiler_static='-static'
9581 # Lahey Fortran 8.1.
9583 lt_prog_compiler_wl='-Wl,'
9584 lt_prog_compiler_pic='--shared'
9585 lt_prog_compiler_static='--static'
9587 pgcc* | pgf77* | pgf90* | pgf95*)
9588 # Portland Group compilers (*not* the Pentium gcc compiler,
9589 # which looks to be a dead project)
9590 lt_prog_compiler_wl='-Wl,'
9591 lt_prog_compiler_pic='-fpic'
9592 lt_prog_compiler_static='-Bstatic'
9595 lt_prog_compiler_wl='-Wl,'
9596 # All Alpha code is PIC.
9597 lt_prog_compiler_static='-non_shared'
9600 # IBM XL C 8.0/Fortran 10.1 on PPC
9601 lt_prog_compiler_wl='-Wl,'
9602 lt_prog_compiler_pic='-qpic'
9603 lt_prog_compiler_static='-qstaticlink'
9606 case `$CC -V 2>&1 | sed 5q` in
9609 lt_prog_compiler_pic='-KPIC'
9610 lt_prog_compiler_static='-Bstatic'
9611 lt_prog_compiler_wl='-Wl,'
9614 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9615 lt_prog_compiler_pic='-KPIC'
9616 lt_prog_compiler_static='-Bstatic'
9617 lt_prog_compiler_wl=''
9625 lt_prog_compiler_pic='-KPIC'
9626 lt_prog_compiler_static='-Bstatic'
9630 # QNX uses GNU C++, but need to define -shared option too, otherwise
9632 lt_prog_compiler_pic='-fPIC -shared'
9635 osf3* | osf4* | osf5*)
9636 lt_prog_compiler_wl='-Wl,'
9637 # All OSF/1 code is PIC.
9638 lt_prog_compiler_static='-non_shared'
9642 lt_prog_compiler_static='-non_shared'
9646 lt_prog_compiler_pic='-KPIC'
9647 lt_prog_compiler_static='-Bstatic'
9648 case $cc_basename in
9650 lt_prog_compiler_wl='-Qoption ld ';;
9652 lt_prog_compiler_wl='-Wl,';;
9657 lt_prog_compiler_wl='-Qoption ld '
9658 lt_prog_compiler_pic='-PIC'
9659 lt_prog_compiler_static='-Bstatic'
9662 sysv4 | sysv4.2uw2* | sysv4.3*)
9663 lt_prog_compiler_wl='-Wl,'
9664 lt_prog_compiler_pic='-KPIC'
9665 lt_prog_compiler_static='-Bstatic'
9669 if test -d /usr/nec ;then
9670 lt_prog_compiler_pic='-Kconform_pic'
9671 lt_prog_compiler_static='-Bstatic'
9675 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9676 lt_prog_compiler_wl='-Wl,'
9677 lt_prog_compiler_pic='-KPIC'
9678 lt_prog_compiler_static='-Bstatic'
9682 lt_prog_compiler_wl='-Wl,'
9683 lt_prog_compiler_can_build_shared=no
9687 lt_prog_compiler_pic='-pic'
9688 lt_prog_compiler_static='-Bstatic'
9692 lt_prog_compiler_can_build_shared=no
9698 # For platforms which do not support PIC, -DPIC is meaningless:
9700 lt_prog_compiler_pic=
9703 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9707 $as_echo "$lt_prog_compiler_pic" >&6; }
9715 # Check to make sure the PIC flag actually works.
9717 if test -n "$lt_prog_compiler_pic"; then
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9719 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9720 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9721 $as_echo_n "(cached) " >&6
9723 lt_cv_prog_compiler_pic_works=no
9724 ac_outfile=conftest.$ac_objext
9725 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9726 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9727 # Insert the option either (1) after the last *FLAGS variable, or
9728 # (2) before a word containing "conftest.", or (3) at the end.
9729 # Note that $ac_compile itself does not contain backslashes and begins
9730 # with a dollar sign (not a hyphen), so the echo should work correctly.
9731 # The option is referenced via a variable to avoid confusing sed.
9732 lt_compile=`echo "$ac_compile" | $SED \
9733 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9734 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9735 -e 's:$: $lt_compiler_flag:'`
9736 (eval echo "\"\$as_me:9736: $lt_compile\"" >&5)
9737 (eval "$lt_compile" 2>conftest.err)
9739 cat conftest.err >&5
9740 echo "$as_me:9740: \$? = $ac_status" >&5
9741 if (exit $ac_status) && test -s "$ac_outfile"; then
9742 # The compiler can only warn and ignore the option if not recognized
9743 # So say no if there are warnings other than the usual output.
9744 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9745 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9746 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9747 lt_cv_prog_compiler_pic_works=yes
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9754 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9756 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9757 case $lt_prog_compiler_pic in
9759 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9762 lt_prog_compiler_pic=
9763 lt_prog_compiler_can_build_shared=no
9774 # Check to make sure the static flag actually works.
9776 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9778 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9779 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9780 $as_echo_n "(cached) " >&6
9782 lt_cv_prog_compiler_static_works=no
9783 save_LDFLAGS="$LDFLAGS"
9784 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9785 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9786 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9787 # The linker can only warn and ignore the option if not recognized
9788 # So say no if there are warnings
9789 if test -s conftest.err; then
9790 # Append any errors to the config.log.
9791 cat conftest.err 1>&5
9792 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9793 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9794 if diff conftest.exp conftest.er2 >/dev/null; then
9795 lt_cv_prog_compiler_static_works=yes
9798 lt_cv_prog_compiler_static_works=yes
9802 LDFLAGS="$save_LDFLAGS"
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9806 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9808 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9811 lt_prog_compiler_static=
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9821 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9822 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9823 $as_echo_n "(cached) " >&6
9825 lt_cv_prog_compiler_c_o=no
9826 $RM -r conftest 2>/dev/null
9830 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9832 lt_compiler_flag="-o out/conftest2.$ac_objext"
9833 # Insert the option either (1) after the last *FLAGS variable, or
9834 # (2) before a word containing "conftest.", or (3) at the end.
9835 # Note that $ac_compile itself does not contain backslashes and begins
9836 # with a dollar sign (not a hyphen), so the echo should work correctly.
9837 lt_compile=`echo "$ac_compile" | $SED \
9838 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9839 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9840 -e 's:$: $lt_compiler_flag:'`
9841 (eval echo "\"\$as_me:9841: $lt_compile\"" >&5)
9842 (eval "$lt_compile" 2>out/conftest.err)
9844 cat out/conftest.err >&5
9845 echo "$as_me:9845: \$? = $ac_status" >&5
9846 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9848 # The compiler can only warn and ignore the option if not recognized
9849 # So say no if there are warnings
9850 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9851 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9852 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9853 lt_cv_prog_compiler_c_o=yes
9858 # SGI C++ compiler will create directory out/ii_files/ for
9859 # template instantiation
9860 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9861 $RM out/* && rmdir out
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9868 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9876 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9877 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9878 $as_echo_n "(cached) " >&6
9880 lt_cv_prog_compiler_c_o=no
9881 $RM -r conftest 2>/dev/null
9885 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9887 lt_compiler_flag="-o out/conftest2.$ac_objext"
9888 # Insert the option either (1) after the last *FLAGS variable, or
9889 # (2) before a word containing "conftest.", or (3) at the end.
9890 # Note that $ac_compile itself does not contain backslashes and begins
9891 # with a dollar sign (not a hyphen), so the echo should work correctly.
9892 lt_compile=`echo "$ac_compile" | $SED \
9893 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9894 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9895 -e 's:$: $lt_compiler_flag:'`
9896 (eval echo "\"\$as_me:9896: $lt_compile\"" >&5)
9897 (eval "$lt_compile" 2>out/conftest.err)
9899 cat out/conftest.err >&5
9900 echo "$as_me:9900: \$? = $ac_status" >&5
9901 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9903 # The compiler can only warn and ignore the option if not recognized
9904 # So say no if there are warnings
9905 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9906 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9907 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9908 lt_cv_prog_compiler_c_o=yes
9913 # SGI C++ compiler will create directory out/ii_files/ for
9914 # template instantiation
9915 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9916 $RM out/* && rmdir out
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9923 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9928 hard_links="nottested"
9929 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9930 # do not overwrite the value of need_locks provided by the user
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9932 $as_echo_n "checking if we can lock with hard links... " >&6; }
9935 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9937 ln conftest.a conftest.b 2>&5 || hard_links=no
9938 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9940 $as_echo "$hard_links" >&6; }
9941 if test "$hard_links" = no; then
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9943 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9956 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9959 allow_undefined_flag=
9960 always_export_symbols=no
9962 archive_expsym_cmds=
9963 compiler_needs_object=no
9964 enable_shared_with_static_runtimes=no
9965 export_dynamic_flag_spec=
9966 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9967 hardcode_automatic=no
9969 hardcode_direct_absolute=no
9970 hardcode_libdir_flag_spec=
9971 hardcode_libdir_flag_spec_ld=
9972 hardcode_libdir_separator=
9974 hardcode_shlibpath_var=unsupported
9976 link_all_deplibs=unknown
9979 old_archive_from_new_cmds=
9980 old_archive_from_expsyms_cmds=
9981 thread_safe_flag_spec=
9982 whole_archive_flag_spec=
9983 # include_expsyms should be a list of space-separated symbols to be *always*
9984 # included in the symbol list
9986 # exclude_expsyms can be an extended regexp of symbols to exclude
9987 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9988 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9989 # as well as any symbol that contains `d'.
9990 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9991 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9992 # platforms (ab)use it in PIC code, but their linkers get confused if
9993 # the symbol is explicitly referenced. Since portable code cannot
9994 # rely on this symbol name, it's probably fine to never include it in
9995 # preloaded symbol tables.
9996 # Exclude shared library initialization/finalization symbols.
9997 extract_expsyms_cmds=
10000 cygwin* | mingw* | pw32* | cegcc*)
10001 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10002 # When not using gcc, we currently assume that we are using
10003 # Microsoft Visual C++.
10004 if test "$GCC" != yes; then
10009 # we just hope/assume this is gcc and not c89 (= MSVC++)
10015 linux* | k*bsd*-gnu)
10016 link_all_deplibs=no
10021 if test "$with_gnu_ld" = yes; then
10022 # If archive_cmds runs LD, not CC, wlarc should be empty
10025 # Set some defaults for GNU ld with shared library support. These
10026 # are reset later if shared libraries are not supported. Putting them
10027 # here allows them to be overridden if necessary.
10028 runpath_var=LD_RUN_PATH
10029 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10030 export_dynamic_flag_spec='${wl}--export-dynamic'
10031 # ancient GNU ld didn't support --whole-archive et. al.
10032 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10033 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10035 whole_archive_flag_spec=
10037 supports_anon_versioning=no
10038 case `$LD -v 2>&1` in
10039 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10040 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10041 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10042 *\ 2.11.*) ;; # other 2.11 versions
10043 *) supports_anon_versioning=yes ;;
10046 # See if GNU ld supports shared libraries.
10049 # On AIX/PPC, the GNU linker is very broken
10050 if test "$host_cpu" != ia64; then
10054 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10055 *** to be unable to reliably create shared libraries on AIX.
10056 *** Therefore, libtool is disabling shared libraries support. If you
10057 *** really care for shared libraries, you may want to modify your PATH
10058 *** so that a non-GNU linker is found, and then restart.
10067 # see comment about AmigaOS4 .so support
10068 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10069 archive_expsym_cmds=''
10072 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)'
10073 hardcode_libdir_flag_spec='-L$libdir'
10074 hardcode_minus_L=yes
10080 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10081 allow_undefined_flag=unsupported
10082 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10083 # support --undefined. This deserves some investigation. FIXME
10084 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10090 cygwin* | mingw* | pw32* | cegcc*)
10091 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10092 # as there is no search path for DLLs.
10093 hardcode_libdir_flag_spec='-L$libdir'
10094 allow_undefined_flag=unsupported
10095 always_export_symbols=no
10096 enable_shared_with_static_runtimes=yes
10097 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10099 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10100 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10101 # If the export-symbols file already is a .def file (1st line
10102 # is EXPORTS), use it as is; otherwise, prepend...
10103 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10104 cp $export_symbols $output_objdir/$soname.def;
10106 echo EXPORTS > $output_objdir/$soname.def;
10107 cat $export_symbols >> $output_objdir/$soname.def;
10109 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10117 hardcode_shlibpath_var=no
10118 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10119 export_dynamic_flag_spec='${wl}-E'
10120 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10121 # Instead, shared libraries are loaded at an image base (0x10000000 by
10122 # default) and relocated if they conflict, which is a slow very memory
10123 # consuming and fragmenting process. To avoid this, we pick a random,
10124 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10125 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10126 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10127 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'
10130 gnu* | linux* | tpf* | k*bsd*-gnu)
10132 if test "$host_os" = linux-dietlibc; then
10133 case $cc_basename in
10134 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10137 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10138 && test "$tmp_diet" = no
10141 tmp_sharedflag='-shared'
10142 case $cc_basename,$host_cpu in
10143 pgcc*) # Portland Group C compiler
10144 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'
10145 tmp_addflag=' $pic_flag'
10147 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
10148 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'
10149 tmp_addflag=' $pic_flag -Mnomain' ;;
10150 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10151 tmp_addflag=' -i_dynamic' ;;
10152 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10153 tmp_addflag=' -i_dynamic -nofor_main' ;;
10154 ifc* | ifort*) # Intel Fortran compiler
10155 tmp_addflag=' -nofor_main' ;;
10156 lf95*) # Lahey Fortran 8.1
10157 whole_archive_flag_spec=
10158 tmp_sharedflag='--shared' ;;
10159 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10160 tmp_sharedflag='-qmkshrobj'
10163 case `$CC -V 2>&1 | sed 5q` in
10164 *Sun\ C*) # Sun C 5.9
10165 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'
10166 compiler_needs_object=yes
10167 tmp_sharedflag='-G' ;;
10168 *Sun\ F*) # Sun Fortran 8.3
10169 tmp_sharedflag='-G' ;;
10171 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10173 if test "x$supports_anon_versioning" = xyes; then
10174 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10175 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10176 echo "local: *; };" >> $output_objdir/$libname.ver~
10177 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10180 case $cc_basename in
10182 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10183 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10184 hardcode_libdir_flag_spec=
10185 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10186 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10187 if test "x$supports_anon_versioning" = xyes; then
10188 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10189 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10190 echo "local: *; };" >> $output_objdir/$libname.ver~
10191 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10200 netbsd* | netbsdelf*-gnu)
10201 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10202 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10205 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10206 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10211 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10215 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10216 *** create shared libraries on Solaris systems. Therefore, libtool
10217 *** is disabling shared libraries support. We urge you to upgrade GNU
10218 *** binutils to release 2.9.1 or newer. Another option is to modify
10219 *** your PATH or compiler configuration so that the native linker is
10220 *** used, and then restart.
10223 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10224 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10225 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10231 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10232 case `$LD -v 2>&1` in
10233 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10237 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10238 *** reliably create shared libraries on SCO systems. Therefore, libtool
10239 *** is disabling shared libraries support. We urge you to upgrade GNU
10240 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10241 *** your PATH or compiler configuration so that the native linker is
10242 *** used, and then restart.
10247 # For security reasons, it is highly recommended that you always
10248 # use absolute paths for naming shared libraries, and exclude the
10249 # DT_RUNPATH tag from executables and libraries. But doing so
10250 # requires that you compile everything twice, which is a pain.
10251 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10252 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10253 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10254 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10263 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10265 hardcode_direct=yes
10266 hardcode_shlibpath_var=no
10270 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10271 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10272 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10279 if test "$ld_shlibs" = no; then
10281 hardcode_libdir_flag_spec=
10282 export_dynamic_flag_spec=
10283 whole_archive_flag_spec=
10286 # PORTME fill in a description of your system's linker (not GNU ld)
10289 allow_undefined_flag=unsupported
10290 always_export_symbols=yes
10291 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'
10292 # Note: this linker hardcodes the directories in LIBPATH if there
10293 # are no directories specified by -L.
10294 hardcode_minus_L=yes
10295 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10296 # Neither direct hardcoding nor static linking is supported with a
10298 hardcode_direct=unsupported
10303 if test "$host_cpu" = ia64; then
10304 # On IA64, the linker does run time linking by default, so we don't
10305 # have to do anything special.
10306 aix_use_runtimelinking=no
10307 exp_sym_flag='-Bexport'
10310 # If we're using GNU nm, then we don't want the "-C" option.
10311 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10312 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10313 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'
10315 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'
10317 aix_use_runtimelinking=no
10319 # Test if we are trying to use run time linking or normal
10320 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10321 # need to do runtime linking.
10322 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10323 for ld_flag in $LDFLAGS; do
10324 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10325 aix_use_runtimelinking=yes
10332 exp_sym_flag='-bexport'
10333 no_entry_flag='-bnoentry'
10336 # When large executables or shared objects are built, AIX ld can
10337 # have problems creating the table of contents. If linking a library
10338 # or program results in "error TOC overflow" add -mminimal-toc to
10339 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10340 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10343 hardcode_direct=yes
10344 hardcode_direct_absolute=yes
10345 hardcode_libdir_separator=':'
10346 link_all_deplibs=yes
10347 file_list_spec='${wl}-f,'
10349 if test "$GCC" = yes; then
10350 case $host_os in aix4.[012]|aix4.[012].*)
10351 # We only want to do this on AIX 4.2 and lower, the check
10352 # below for broken collect2 doesn't work under 4.3+
10353 collect2name=`${CC} -print-prog-name=collect2`
10354 if test -f "$collect2name" &&
10355 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10357 # We have reworked collect2
10360 # We have old collect2
10361 hardcode_direct=unsupported
10362 # It fails to find uninstalled libraries when the uninstalled
10363 # path is not listed in the libpath. Setting hardcode_minus_L
10364 # to unsupported forces relinking
10365 hardcode_minus_L=yes
10366 hardcode_libdir_flag_spec='-L$libdir'
10367 hardcode_libdir_separator=
10371 shared_flag='-shared'
10372 if test "$aix_use_runtimelinking" = yes; then
10373 shared_flag="$shared_flag "'${wl}-G'
10375 link_all_deplibs=no
10378 if test "$host_cpu" = ia64; then
10379 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10380 # chokes on -Wl,-G. The following line is correct:
10383 if test "$aix_use_runtimelinking" = yes; then
10384 shared_flag='${wl}-G'
10386 shared_flag='${wl}-bM:SRE'
10391 export_dynamic_flag_spec='${wl}-bexpall'
10392 # It seems that -bexpall does not export symbols beginning with
10393 # underscore (_), so it is better to generate a list of symbols to export.
10394 always_export_symbols=yes
10395 if test "$aix_use_runtimelinking" = yes; then
10396 # Warning - without using the other runtime loading flags (-brtl),
10397 # -berok will link without error, but may produce a broken library.
10398 allow_undefined_flag='-berok'
10399 # Determine the default libpath from the value encoded in an
10400 # empty executable.
10401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10402 /* end confdefs.h. */
10412 if ac_fn_c_try_link "$LINENO"; then :
10414 lt_aix_libpath_sed='
10415 /Import File Strings/,/^$/ {
10421 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10422 # Check for a 64-bit object if we didn't find anything.
10423 if test -z "$aix_libpath"; then
10424 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10427 rm -f core conftest.err conftest.$ac_objext \
10428 conftest$ac_exeext conftest.$ac_ext
10429 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10431 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10432 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"
10434 if test "$host_cpu" = ia64; then
10435 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10436 allow_undefined_flag="-z nodefs"
10437 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"
10439 # Determine the default libpath from the value encoded in an
10440 # empty executable.
10441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10442 /* end confdefs.h. */
10452 if ac_fn_c_try_link "$LINENO"; then :
10454 lt_aix_libpath_sed='
10455 /Import File Strings/,/^$/ {
10461 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10462 # Check for a 64-bit object if we didn't find anything.
10463 if test -z "$aix_libpath"; then
10464 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10467 rm -f core conftest.err conftest.$ac_objext \
10468 conftest$ac_exeext conftest.$ac_ext
10469 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10471 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10472 # Warning - without using the other run time loading flags,
10473 # -berok will link without error, but may produce a broken library.
10474 no_undefined_flag=' ${wl}-bernotok'
10475 allow_undefined_flag=' ${wl}-berok'
10476 # Exported symbols can be pulled into shared objects from archives
10477 whole_archive_flag_spec='$convenience'
10478 archive_cmds_need_lc=yes
10479 # This is similar to how AIX traditionally builds its shared libraries.
10480 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'
10488 # see comment about AmigaOS4 .so support
10489 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10490 archive_expsym_cmds=''
10493 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)'
10494 hardcode_libdir_flag_spec='-L$libdir'
10495 hardcode_minus_L=yes
10501 export_dynamic_flag_spec=-rdynamic
10504 cygwin* | mingw* | pw32* | cegcc*)
10505 # When not using gcc, we currently assume that we are using
10506 # Microsoft Visual C++.
10507 # hardcode_libdir_flag_spec is actually meaningless, as there is
10508 # no search path for DLLs.
10509 hardcode_libdir_flag_spec=' '
10510 allow_undefined_flag=unsupported
10511 # Tell ltmain to make .lib files, not .a files.
10513 # Tell ltmain to make .dll files, not .so files.
10515 # FIXME: Setting linknames here is a bad hack.
10516 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10517 # The linker will automatically build a .lib file if we build a DLL.
10518 old_archive_from_new_cmds='true'
10519 # FIXME: Should let the user specify the lib program.
10520 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10521 fix_srcfile_path='`cygpath -w "$srcfile"`'
10522 enable_shared_with_static_runtimes=yes
10525 darwin* | rhapsody*)
10528 archive_cmds_need_lc=no
10530 hardcode_automatic=yes
10531 hardcode_shlibpath_var=unsupported
10532 whole_archive_flag_spec=''
10533 link_all_deplibs=yes
10534 allow_undefined_flag="$_lt_dar_allow_undefined"
10535 case $cc_basename in
10536 ifort*) _lt_dar_can_shared=yes ;;
10537 *) _lt_dar_can_shared=$GCC ;;
10539 if test "$_lt_dar_can_shared" = "yes"; then
10540 output_verbose_link_cmd=echo
10541 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10542 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10543 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}"
10544 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}"
10553 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10554 hardcode_libdir_flag_spec='-L$libdir'
10555 hardcode_shlibpath_var=no
10562 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10563 # support. Future versions do this automatically, but an explicit c++rt0.o
10564 # does not break anything, and helps significantly (at the cost of a little
10567 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10568 hardcode_libdir_flag_spec='-R$libdir'
10569 hardcode_direct=yes
10570 hardcode_shlibpath_var=no
10573 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10575 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10576 hardcode_direct=yes
10577 hardcode_minus_L=yes
10578 hardcode_shlibpath_var=no
10581 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10582 freebsd* | dragonfly*)
10583 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10584 hardcode_libdir_flag_spec='-R$libdir'
10585 hardcode_direct=yes
10586 hardcode_shlibpath_var=no
10590 if test "$GCC" = yes; then
10591 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'
10593 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'
10595 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10596 hardcode_libdir_separator=:
10597 hardcode_direct=yes
10599 # hardcode_minus_L: Not really in the search PATH,
10600 # but as the default location of the library.
10601 hardcode_minus_L=yes
10602 export_dynamic_flag_spec='${wl}-E'
10606 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10607 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10609 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10611 if test "$with_gnu_ld" = no; then
10612 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10613 hardcode_libdir_flag_spec_ld='+b $libdir'
10614 hardcode_libdir_separator=:
10615 hardcode_direct=yes
10616 hardcode_direct_absolute=yes
10617 export_dynamic_flag_spec='${wl}-E'
10618 # hardcode_minus_L: Not really in the search PATH,
10619 # but as the default location of the library.
10620 hardcode_minus_L=yes
10625 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10628 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10631 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10634 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10640 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10643 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10646 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10650 if test "$with_gnu_ld" = no; then
10651 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10652 hardcode_libdir_separator=:
10657 hardcode_shlibpath_var=no
10660 hardcode_direct=yes
10661 hardcode_direct_absolute=yes
10662 export_dynamic_flag_spec='${wl}-E'
10664 # hardcode_minus_L: Not really in the search PATH,
10665 # but as the default location of the library.
10666 hardcode_minus_L=yes
10672 irix5* | irix6* | nonstopux*)
10673 if test "$GCC" = yes; then
10674 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'
10675 # Try to use the -exported_symbol ld option, if it does not
10676 # work, assume that -exports_file does not work either and
10677 # implicitly export all symbols.
10678 save_LDFLAGS="$LDFLAGS"
10679 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10681 /* end confdefs.h. */
10684 if ac_fn_c_try_link "$LINENO"; then :
10685 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'
10688 rm -f core conftest.err conftest.$ac_objext \
10689 conftest$ac_exeext conftest.$ac_ext
10690 LDFLAGS="$save_LDFLAGS"
10692 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'
10693 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'
10695 archive_cmds_need_lc='no'
10696 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10697 hardcode_libdir_separator=:
10699 link_all_deplibs=yes
10702 netbsd* | netbsdelf*-gnu)
10703 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10704 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10706 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10708 hardcode_libdir_flag_spec='-R$libdir'
10709 hardcode_direct=yes
10710 hardcode_shlibpath_var=no
10714 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10715 hardcode_direct=yes
10716 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10717 hardcode_libdir_separator=:
10718 hardcode_shlibpath_var=no
10725 if test -f /usr/libexec/ld.so; then
10726 hardcode_direct=yes
10727 hardcode_shlibpath_var=no
10728 hardcode_direct_absolute=yes
10729 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10730 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10731 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10732 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10733 export_dynamic_flag_spec='${wl}-E'
10736 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10737 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10738 hardcode_libdir_flag_spec='-R$libdir'
10741 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10742 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10752 hardcode_libdir_flag_spec='-L$libdir'
10753 hardcode_minus_L=yes
10754 allow_undefined_flag=unsupported
10755 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'
10756 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10760 if test "$GCC" = yes; then
10761 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10762 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'
10764 allow_undefined_flag=' -expect_unresolved \*'
10765 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'
10767 archive_cmds_need_lc='no'
10768 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10769 hardcode_libdir_separator=:
10772 osf4* | osf5*) # as osf3* with the addition of -msym flag
10773 if test "$GCC" = yes; then
10774 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10775 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'
10776 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10778 allow_undefined_flag=' -expect_unresolved \*'
10779 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'
10780 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~
10781 $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'
10783 # Both c and cxx compiler support -rpath directly
10784 hardcode_libdir_flag_spec='-rpath $libdir'
10786 archive_cmds_need_lc='no'
10787 hardcode_libdir_separator=:
10791 no_undefined_flag=' -z defs'
10792 if test "$GCC" = yes; then
10794 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10795 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10796 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10798 case `$CC -V 2>&1` in
10801 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10802 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10803 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10807 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10808 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10809 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10813 hardcode_libdir_flag_spec='-R$libdir'
10814 hardcode_shlibpath_var=no
10816 solaris2.[0-5] | solaris2.[0-5].*) ;;
10818 # The compiler driver will combine and reorder linker options,
10819 # but understands `-z linker_flag'. GCC discards it without `$wl',
10820 # but is careful enough not to reorder.
10821 # Supported since Solaris 2.6 (maybe 2.5.1?)
10822 if test "$GCC" = yes; then
10823 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10825 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10829 link_all_deplibs=yes
10833 if test "x$host_vendor" = xsequent; then
10834 # Use $CC to link under sequent, because it throws in some extra .o
10835 # files that make .init and .fini sections work.
10836 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10838 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10840 hardcode_libdir_flag_spec='-L$libdir'
10841 hardcode_direct=yes
10842 hardcode_minus_L=yes
10843 hardcode_shlibpath_var=no
10847 case $host_vendor in
10849 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10850 hardcode_direct=yes # is this really true???
10853 ## LD is ld it makes a PLAMLIB
10854 ## CC just makes a GrossModule.
10855 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10856 reload_cmds='$CC -r -o $output$reload_objs'
10860 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10861 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10864 runpath_var='LD_RUN_PATH'
10865 hardcode_shlibpath_var=no
10869 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10870 hardcode_shlibpath_var=no
10871 export_dynamic_flag_spec='-Bexport'
10875 if test -d /usr/nec; then
10876 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10877 hardcode_shlibpath_var=no
10878 runpath_var=LD_RUN_PATH
10879 hardcode_runpath_var=yes
10884 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10885 no_undefined_flag='${wl}-z,text'
10886 archive_cmds_need_lc=no
10887 hardcode_shlibpath_var=no
10888 runpath_var='LD_RUN_PATH'
10890 if test "$GCC" = yes; then
10891 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10892 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10894 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10895 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10899 sysv5* | sco3.2v5* | sco5v6*)
10900 # Note: We can NOT use -z defs as we might desire, because we do not
10901 # link with -lc, and that would cause any symbols used from libc to
10902 # always be unresolved, which means just about no library would
10903 # ever link correctly. If we're not using GNU ld we use -z text
10904 # though, which does catch some bad symbols but isn't as heavy-handed
10906 no_undefined_flag='${wl}-z,text'
10907 allow_undefined_flag='${wl}-z,nodefs'
10908 archive_cmds_need_lc=no
10909 hardcode_shlibpath_var=no
10910 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10911 hardcode_libdir_separator=':'
10912 link_all_deplibs=yes
10913 export_dynamic_flag_spec='${wl}-Bexport'
10914 runpath_var='LD_RUN_PATH'
10916 if test "$GCC" = yes; then
10917 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10918 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10920 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10921 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10926 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10927 hardcode_libdir_flag_spec='-L$libdir'
10928 hardcode_shlibpath_var=no
10936 if test x$host_vendor = xsni; then
10938 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10939 export_dynamic_flag_spec='${wl}-Blargedynsym'
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10946 $as_echo "$ld_shlibs" >&6; }
10947 test "$ld_shlibs" = no && can_build_shared=no
10949 with_gnu_ld=$with_gnu_ld
10966 # Do we need to explicitly link libc?
10968 case "x$archive_cmds_need_lc" in
10970 # Assume -lc should be added
10971 archive_cmds_need_lc=yes
10973 if test "$enable_shared" = yes && test "$GCC" = yes; then
10974 case $archive_cmds in
10976 # FIXME: we may have to deal with multi-command sequences.
10979 # Test whether the compiler implicitly links with -lc since on some
10980 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10981 # to ld, don't add -lc before -lgcc.
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10983 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10985 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10987 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10988 (eval $ac_compile) 2>&5
10990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10991 test $ac_status = 0; } 2>conftest.err; then
10994 libobjs=conftest.$ac_objext
10996 wl=$lt_prog_compiler_wl
10997 pic_flag=$lt_prog_compiler_pic
11003 lt_save_allow_undefined_flag=$allow_undefined_flag
11004 allow_undefined_flag=
11005 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11006 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11009 test $ac_status = 0; }
11011 archive_cmds_need_lc=no
11013 archive_cmds_need_lc=yes
11015 allow_undefined_flag=$lt_save_allow_undefined_flag
11017 cat conftest.err 1>&5
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
11021 $as_echo "$archive_cmds_need_lc" >&6; }
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11185 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11187 if test "$GCC" = yes; then
11189 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11190 *) lt_awk_arg="/^libraries:/" ;;
11192 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11193 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11194 # if the path contains ";" then we assume it to be the separator
11195 # otherwise default to the standard path separator (i.e. ":") - it is
11196 # assumed that no part of a normal pathname contains ";" but that should
11197 # okay in the real world where ";" in dirpaths is itself problematic.
11198 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11200 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11202 # Ok, now we have the path, separated by spaces, we can step through it
11203 # and add multilib dir if necessary.
11204 lt_tmp_lt_search_path_spec=
11205 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11206 for lt_sys_path in $lt_search_path_spec; do
11207 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11208 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11210 test -d "$lt_sys_path" && \
11211 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11214 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11215 BEGIN {RS=" "; FS="/|\n";} {
11218 for (lt_i = NF; lt_i > 0; lt_i--) {
11219 if ($lt_i != "" && $lt_i != ".") {
11220 if ($lt_i == "..") {
11223 if (lt_count == 0) {
11224 lt_foo="/" $lt_i lt_foo;
11231 if (lt_foo != "") { lt_freq[lt_foo]++; }
11232 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11234 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11236 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11238 library_names_spec=
11239 libname_spec='lib$name'
11243 postuninstall_cmds=
11247 shlibpath_overrides_runpath=unknown
11249 dynamic_linker="$host_os ld.so"
11250 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11251 need_lib_prefix=unknown
11252 hardcode_into_libs=no
11254 # when you set need_version to no, make sure it does not cause -set_version
11255 # flags to be left without arguments
11256 need_version=unknown
11261 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11262 shlibpath_var=LIBPATH
11264 # AIX 3 has no versioning support, so we append a major version to the name.
11265 soname_spec='${libname}${release}${shared_ext}$major'
11272 hardcode_into_libs=yes
11273 if test "$host_cpu" = ia64; then
11274 # AIX 5 supports IA64
11275 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11276 shlibpath_var=LD_LIBRARY_PATH
11278 # With GCC up to 2.95.x, collect2 would create an import file
11279 # for dependence libraries. The import file would start with
11280 # the line `#! .'. This would cause the generated library to
11281 # depend on `.', always an invalid library. This was fixed in
11282 # development snapshots of GCC prior to 3.0.
11284 aix4 | aix4.[01] | aix4.[01].*)
11285 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11287 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11290 can_build_shared=no
11294 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11295 # soname into executable. Probably we can add versioning support to
11296 # collect2, so additional links can be useful in future.
11297 if test "$aix_use_runtimelinking" = yes; then
11298 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11299 # instead of lib<name>.a to let people know that these are not
11300 # typical AIX shared libraries.
11301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11303 # We preserve .a as extension for shared libraries through AIX4.2
11304 # and later when we are not doing run time linking.
11305 library_names_spec='${libname}${release}.a $libname.a'
11306 soname_spec='${libname}${release}${shared_ext}$major'
11308 shlibpath_var=LIBPATH
11315 # Since July 2007 AmigaOS4 officially supports .so libraries.
11316 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11320 library_names_spec='$libname.ixlibrary $libname.a'
11321 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11322 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'
11328 library_names_spec='${libname}${shared_ext}'
11329 dynamic_linker="$host_os ld.so"
11330 shlibpath_var=LIBRARY_PATH
11336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11337 soname_spec='${libname}${release}${shared_ext}$major'
11338 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11339 shlibpath_var=LD_LIBRARY_PATH
11340 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11341 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11342 # the default ld.so.conf also contains /usr/contrib/lib and
11343 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11344 # libtool to hard-code these into programs
11347 cygwin* | mingw* | pw32* | cegcc*)
11348 version_type=windows
11353 case $GCC,$host_os in
11354 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11355 library_names_spec='$libname.dll.a'
11356 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11357 postinstall_cmds='base_file=`basename \${file}`~
11358 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11359 dldir=$destdir/`dirname \$dlpath`~
11360 test -d \$dldir || mkdir -p \$dldir~
11361 $install_prog $dir/$dlname \$dldir/$dlname~
11362 chmod a+x \$dldir/$dlname~
11363 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11364 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11366 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11367 dlpath=$dir/\$dldll~
11369 shlibpath_overrides_runpath=yes
11373 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11374 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11375 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11378 # MinGW DLLs use traditional 'lib' prefix
11379 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11380 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11381 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11382 # It is most probably a Windows format PATH printed by
11383 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11384 # path with ; separators, and with drive letters. We can handle the
11385 # drive letters (cygwin fileutils understands them), so leave them,
11386 # especially as we might pass files found there to a mingw objdump,
11387 # which wouldn't understand a cygwinified path. Ahh.
11388 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11390 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11394 # pw32 DLLs use 'pw' prefix rather than 'lib'
11395 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11401 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11404 dynamic_linker='Win32 ld.exe'
11405 # FIXME: first we should search . and the directory the executable is in
11409 darwin* | rhapsody*)
11410 dynamic_linker="$host_os dyld"
11411 version_type=darwin
11414 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11415 soname_spec='${libname}${release}${major}$shared_ext'
11416 shlibpath_overrides_runpath=yes
11417 shlibpath_var=DYLD_LIBRARY_PATH
11418 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11420 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11421 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11429 soname_spec='${libname}${release}${shared_ext}$major'
11430 shlibpath_var=LD_LIBRARY_PATH
11437 freebsd* | dragonfly*)
11438 # DragonFly does not have aout. When/if they implement a new
11439 # versioning mechanism, adjust this.
11440 if test -x /usr/bin/objformat; then
11441 objformat=`/usr/bin/objformat`
11444 freebsd[123]*) objformat=aout ;;
11445 *) objformat=elf ;;
11448 version_type=freebsd-$objformat
11449 case $version_type in
11451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11456 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11460 shlibpath_var=LD_LIBRARY_PATH
11463 shlibpath_overrides_runpath=yes
11465 freebsd3.[01]* | freebsdelf3.[01]*)
11466 shlibpath_overrides_runpath=yes
11467 hardcode_into_libs=yes
11469 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11470 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11471 shlibpath_overrides_runpath=no
11472 hardcode_into_libs=yes
11474 *) # from 4.6 on, and DragonFly
11475 shlibpath_overrides_runpath=yes
11476 hardcode_into_libs=yes
11485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11486 soname_spec='${libname}${release}${shared_ext}$major'
11487 shlibpath_var=LD_LIBRARY_PATH
11488 hardcode_into_libs=yes
11491 hpux9* | hpux10* | hpux11*)
11492 # Give a soname corresponding to the major version so that dld.sl refuses to
11493 # link against other versions.
11500 hardcode_into_libs=yes
11501 dynamic_linker="$host_os dld.so"
11502 shlibpath_var=LD_LIBRARY_PATH
11503 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11505 soname_spec='${libname}${release}${shared_ext}$major'
11506 if test "X$HPUX_IA64_MODE" = X32; then
11507 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11509 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11511 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11515 hardcode_into_libs=yes
11516 dynamic_linker="$host_os dld.sl"
11517 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11518 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11520 soname_spec='${libname}${release}${shared_ext}$major'
11521 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11522 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11526 dynamic_linker="$host_os dld.sl"
11527 shlibpath_var=SHLIB_PATH
11528 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11530 soname_spec='${libname}${release}${shared_ext}$major'
11533 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11534 postinstall_cmds='chmod 555 $lib'
11541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11542 soname_spec='${libname}${release}${shared_ext}$major'
11543 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11544 shlibpath_var=LD_LIBRARY_PATH
11545 shlibpath_overrides_runpath=no
11546 hardcode_into_libs=yes
11549 irix5* | irix6* | nonstopux*)
11551 nonstopux*) version_type=nonstopux ;;
11553 if test "$lt_cv_prog_gnu_ld" = yes; then
11561 soname_spec='${libname}${release}${shared_ext}$major'
11562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11564 irix5* | nonstopux*)
11565 libsuff= shlibsuff=
11568 case $LD in # libtool.m4 will add one of these switches to LD
11569 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11570 libsuff= shlibsuff= libmagic=32-bit;;
11571 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11572 libsuff=32 shlibsuff=N32 libmagic=N32;;
11573 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11574 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11575 *) libsuff= shlibsuff= libmagic=never-match;;
11579 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11580 shlibpath_overrides_runpath=no
11581 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11582 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11583 hardcode_into_libs=yes
11586 # No shared lib support for Linux oldld, aout, or coff.
11587 linux*oldld* | linux*aout* | linux*coff*)
11591 # This must be Linux ELF.
11592 linux* | k*bsd*-gnu)
11596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11597 soname_spec='${libname}${release}${shared_ext}$major'
11598 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11599 shlibpath_var=LD_LIBRARY_PATH
11600 shlibpath_overrides_runpath=no
11601 # Some binutils ld are patched to set DT_RUNPATH
11602 save_LDFLAGS=$LDFLAGS
11603 save_libdir=$libdir
11604 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11605 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11607 /* end confdefs.h. */
11617 if ac_fn_c_try_link "$LINENO"; then :
11618 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11619 shlibpath_overrides_runpath=yes
11622 rm -f core conftest.err conftest.$ac_objext \
11623 conftest$ac_exeext conftest.$ac_ext
11624 LDFLAGS=$save_LDFLAGS
11625 libdir=$save_libdir
11627 # This implies no fast_install, which is unacceptable.
11628 # Some rework will be needed to allow for fast_install
11629 # before this can be enabled.
11630 hardcode_into_libs=yes
11632 # Append ld.so.conf contents to the search path
11633 if test -f /etc/ld.so.conf; then
11634 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' ' '`
11635 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11638 # We used to test for /lib/ld.so.1 and disable shared libraries on
11639 # powerpc, because MkLinux only supported shared libraries with the
11640 # GNU dynamic linker. Since this was broken with cross compilers,
11641 # most powerpc-linux boxes support dynamic linking these days and
11642 # people can always --disable-shared, the test was removed, and we
11643 # assume the GNU/Linux dynamic linker is in use.
11644 dynamic_linker='GNU/Linux ld.so'
11651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11652 soname_spec='${libname}${release}${shared_ext}$major'
11653 shlibpath_var=LD_LIBRARY_PATH
11654 shlibpath_overrides_runpath=no
11655 hardcode_into_libs=yes
11656 dynamic_linker='NetBSD ld.elf_so'
11663 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11665 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11666 dynamic_linker='NetBSD (a.out) ld.so'
11668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11669 soname_spec='${libname}${release}${shared_ext}$major'
11670 dynamic_linker='NetBSD ld.elf_so'
11672 shlibpath_var=LD_LIBRARY_PATH
11673 shlibpath_overrides_runpath=yes
11674 hardcode_into_libs=yes
11679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11680 shlibpath_var=LD_LIBRARY_PATH
11681 shlibpath_overrides_runpath=yes
11688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11689 soname_spec='${libname}${release}${shared_ext}$major'
11690 shlibpath_var=LD_LIBRARY_PATH
11691 shlibpath_overrides_runpath=no
11692 hardcode_into_libs=yes
11693 dynamic_linker='ldqnx.so'
11698 sys_lib_dlsearch_path_spec="/usr/lib"
11700 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11702 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11703 *) need_version=no ;;
11705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11706 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11707 shlibpath_var=LD_LIBRARY_PATH
11708 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11710 openbsd2.[89] | openbsd2.[89].*)
11711 shlibpath_overrides_runpath=no
11714 shlibpath_overrides_runpath=yes
11718 shlibpath_overrides_runpath=yes
11723 libname_spec='$name'
11726 library_names_spec='$libname${shared_ext} $libname.a'
11727 dynamic_linker='OS/2 ld.exe'
11728 shlibpath_var=LIBPATH
11731 osf3* | osf4* | osf5*)
11735 soname_spec='${libname}${release}${shared_ext}$major'
11736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11737 shlibpath_var=LD_LIBRARY_PATH
11738 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11739 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11751 soname_spec='${libname}${release}${shared_ext}$major'
11752 shlibpath_var=LD_LIBRARY_PATH
11753 shlibpath_overrides_runpath=yes
11754 hardcode_into_libs=yes
11755 # ldd complains unless libraries are executable
11756 postinstall_cmds='chmod +x $lib'
11761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11762 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11763 shlibpath_var=LD_LIBRARY_PATH
11764 shlibpath_overrides_runpath=yes
11765 if test "$with_gnu_ld" = yes; then
11773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11774 soname_spec='${libname}${release}${shared_ext}$major'
11775 shlibpath_var=LD_LIBRARY_PATH
11776 case $host_vendor in
11778 shlibpath_overrides_runpath=no
11780 runpath_var=LD_RUN_PATH
11788 shlibpath_overrides_runpath=no
11789 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11795 if test -d /usr/nec ;then
11797 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11798 soname_spec='$libname${shared_ext}.$major'
11799 shlibpath_var=LD_LIBRARY_PATH
11803 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11804 version_type=freebsd-elf
11807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11808 soname_spec='${libname}${release}${shared_ext}$major'
11809 shlibpath_var=LD_LIBRARY_PATH
11810 shlibpath_overrides_runpath=yes
11811 hardcode_into_libs=yes
11812 if test "$with_gnu_ld" = yes; then
11813 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11815 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11818 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11822 sys_lib_dlsearch_path_spec='/usr/lib'
11826 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11831 shlibpath_var=LD_LIBRARY_PATH
11832 shlibpath_overrides_runpath=no
11833 hardcode_into_libs=yes
11838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11839 soname_spec='${libname}${release}${shared_ext}$major'
11840 shlibpath_var=LD_LIBRARY_PATH
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11848 $as_echo "$dynamic_linker" >&6; }
11849 test "$dynamic_linker" = no && can_build_shared=no
11851 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11852 if test "$GCC" = yes; then
11853 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11856 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11857 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11859 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11860 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11950 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11952 if test -n "$hardcode_libdir_flag_spec" ||
11953 test -n "$runpath_var" ||
11954 test "X$hardcode_automatic" = "Xyes" ; then
11956 # We can hardcode non-existent directories.
11957 if test "$hardcode_direct" != no &&
11958 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11959 # have to relink, otherwise we might link with an installed library
11960 # when we should be linking with a yet-to-be-installed one
11961 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11962 test "$hardcode_minus_L" != no; then
11963 # Linking always hardcodes the temporary library directory.
11964 hardcode_action=relink
11966 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11967 hardcode_action=immediate
11970 # We cannot hardcode anything, or else we can only hardcode existing
11972 hardcode_action=unsupported
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11975 $as_echo "$hardcode_action" >&6; }
11977 if test "$hardcode_action" = relink ||
11978 test "$inherit_rpath" = yes; then
11979 # Fast installation is not supported
11980 enable_fast_install=no
11981 elif test "$shlibpath_overrides_runpath" = yes ||
11982 test "$enable_shared" = no; then
11983 # Fast installation is not necessary
11984 enable_fast_install=needless
11992 if test "x$enable_dlopen" != xyes; then
11993 enable_dlopen=unknown
11994 enable_dlopen_self=unknown
11995 enable_dlopen_self_static=unknown
12002 lt_cv_dlopen="load_add_on"
12004 lt_cv_dlopen_self=yes
12007 mingw* | pw32* | cegcc*)
12008 lt_cv_dlopen="LoadLibrary"
12013 lt_cv_dlopen="dlopen"
12018 # if libdl is installed we need to link against it
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12020 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12021 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12022 $as_echo_n "(cached) " >&6
12024 ac_check_lib_save_LIBS=$LIBS
12026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12027 /* end confdefs.h. */
12029 /* Override any GCC internal prototype to avoid an error.
12030 Use char because int might match the return type of a GCC
12031 builtin and then its argument prototype would still apply. */
12044 if ac_fn_c_try_link "$LINENO"; then :
12045 ac_cv_lib_dl_dlopen=yes
12047 ac_cv_lib_dl_dlopen=no
12049 rm -f core conftest.err conftest.$ac_objext \
12050 conftest$ac_exeext conftest.$ac_ext
12051 LIBS=$ac_check_lib_save_LIBS
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12054 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12055 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12056 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12059 lt_cv_dlopen="dyld"
12061 lt_cv_dlopen_self=yes
12068 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12069 if test "x$ac_cv_func_shl_load" = x""yes; then :
12070 lt_cv_dlopen="shl_load"
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12073 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12074 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12075 $as_echo_n "(cached) " >&6
12077 ac_check_lib_save_LIBS=$LIBS
12079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12080 /* end confdefs.h. */
12082 /* Override any GCC internal prototype to avoid an error.
12083 Use char because int might match the return type of a GCC
12084 builtin and then its argument prototype would still apply. */
12092 return shl_load ();
12097 if ac_fn_c_try_link "$LINENO"; then :
12098 ac_cv_lib_dld_shl_load=yes
12100 ac_cv_lib_dld_shl_load=no
12102 rm -f core conftest.err conftest.$ac_objext \
12103 conftest$ac_exeext conftest.$ac_ext
12104 LIBS=$ac_check_lib_save_LIBS
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12107 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12108 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
12109 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12111 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12112 if test "x$ac_cv_func_dlopen" = x""yes; then :
12113 lt_cv_dlopen="dlopen"
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12116 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12117 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12118 $as_echo_n "(cached) " >&6
12120 ac_check_lib_save_LIBS=$LIBS
12122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12123 /* end confdefs.h. */
12125 /* Override any GCC internal prototype to avoid an error.
12126 Use char because int might match the return type of a GCC
12127 builtin and then its argument prototype would still apply. */
12140 if ac_fn_c_try_link "$LINENO"; then :
12141 ac_cv_lib_dl_dlopen=yes
12143 ac_cv_lib_dl_dlopen=no
12145 rm -f core conftest.err conftest.$ac_objext \
12146 conftest$ac_exeext conftest.$ac_ext
12147 LIBS=$ac_check_lib_save_LIBS
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12150 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12151 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12152 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12155 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12156 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12157 $as_echo_n "(cached) " >&6
12159 ac_check_lib_save_LIBS=$LIBS
12160 LIBS="-lsvld $LIBS"
12161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12162 /* end confdefs.h. */
12164 /* Override any GCC internal prototype to avoid an error.
12165 Use char because int might match the return type of a GCC
12166 builtin and then its argument prototype would still apply. */
12179 if ac_fn_c_try_link "$LINENO"; then :
12180 ac_cv_lib_svld_dlopen=yes
12182 ac_cv_lib_svld_dlopen=no
12184 rm -f core conftest.err conftest.$ac_objext \
12185 conftest$ac_exeext conftest.$ac_ext
12186 LIBS=$ac_check_lib_save_LIBS
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12189 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12190 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12191 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12194 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12195 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12196 $as_echo_n "(cached) " >&6
12198 ac_check_lib_save_LIBS=$LIBS
12200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12201 /* end confdefs.h. */
12203 /* Override any GCC internal prototype to avoid an error.
12204 Use char because int might match the return type of a GCC
12205 builtin and then its argument prototype would still apply. */
12213 return dld_link ();
12218 if ac_fn_c_try_link "$LINENO"; then :
12219 ac_cv_lib_dld_dld_link=yes
12221 ac_cv_lib_dld_dld_link=no
12223 rm -f core conftest.err conftest.$ac_objext \
12224 conftest$ac_exeext conftest.$ac_ext
12225 LIBS=$ac_check_lib_save_LIBS
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12228 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12229 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12230 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12251 if test "x$lt_cv_dlopen" != xno; then
12257 case $lt_cv_dlopen in
12259 save_CPPFLAGS="$CPPFLAGS"
12260 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12262 save_LDFLAGS="$LDFLAGS"
12263 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12266 LIBS="$lt_cv_dlopen_libs $LIBS"
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12269 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12270 if test "${lt_cv_dlopen_self+set}" = set; then :
12271 $as_echo_n "(cached) " >&6
12273 if test "$cross_compiling" = yes; then :
12274 lt_cv_dlopen_self=cross
12276 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12277 lt_status=$lt_dlunknown
12278 cat > conftest.$ac_ext <<_LT_EOF
12279 #line 12279 "configure"
12280 #include "confdefs.h"
12289 # define LT_DLGLOBAL RTLD_GLOBAL
12292 # define LT_DLGLOBAL DL_GLOBAL
12294 # define LT_DLGLOBAL 0
12298 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12299 find out it does not work in some platform. */
12300 #ifndef LT_DLLAZY_OR_NOW
12302 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12305 # define LT_DLLAZY_OR_NOW DL_LAZY
12308 # define LT_DLLAZY_OR_NOW RTLD_NOW
12311 # define LT_DLLAZY_OR_NOW DL_NOW
12313 # define LT_DLLAZY_OR_NOW 0
12320 void fnord() { int i=42;}
12323 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12324 int status = $lt_dlunknown;
12328 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12329 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12330 /* dlclose (self); */
12338 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12339 (eval $ac_link) 2>&5
12341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12342 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12343 (./conftest; exit; ) >&5 2>/dev/null
12345 case x$lt_status in
12346 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12347 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12348 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12351 # compilation failed
12352 lt_cv_dlopen_self=no
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12360 $as_echo "$lt_cv_dlopen_self" >&6; }
12362 if test "x$lt_cv_dlopen_self" = xyes; then
12363 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12365 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12366 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12367 $as_echo_n "(cached) " >&6
12369 if test "$cross_compiling" = yes; then :
12370 lt_cv_dlopen_self_static=cross
12372 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12373 lt_status=$lt_dlunknown
12374 cat > conftest.$ac_ext <<_LT_EOF
12375 #line 12375 "configure"
12376 #include "confdefs.h"
12385 # define LT_DLGLOBAL RTLD_GLOBAL
12388 # define LT_DLGLOBAL DL_GLOBAL
12390 # define LT_DLGLOBAL 0
12394 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12395 find out it does not work in some platform. */
12396 #ifndef LT_DLLAZY_OR_NOW
12398 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12401 # define LT_DLLAZY_OR_NOW DL_LAZY
12404 # define LT_DLLAZY_OR_NOW RTLD_NOW
12407 # define LT_DLLAZY_OR_NOW DL_NOW
12409 # define LT_DLLAZY_OR_NOW 0
12416 void fnord() { int i=42;}
12419 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12420 int status = $lt_dlunknown;
12424 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12425 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12426 /* dlclose (self); */
12434 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12435 (eval $ac_link) 2>&5
12437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12438 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12439 (./conftest; exit; ) >&5 2>/dev/null
12441 case x$lt_status in
12442 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12443 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12444 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12447 # compilation failed
12448 lt_cv_dlopen_self_static=no
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12456 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12459 CPPFLAGS="$save_CPPFLAGS"
12460 LDFLAGS="$save_LDFLAGS"
12465 case $lt_cv_dlopen_self in
12466 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12467 *) enable_dlopen_self=unknown ;;
12470 case $lt_cv_dlopen_self_static in
12471 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12472 *) enable_dlopen_self_static=unknown ;;
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12495 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12496 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12497 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12498 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12500 $as_echo "yes" >&6; }
12502 # FIXME - insert some real tests, host_os isn't really good enough
12505 if test -n "$STRIP" ; then
12506 striplib="$STRIP -x"
12507 old_striplib="$STRIP -S"
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12509 $as_echo "yes" >&6; }
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12512 $as_echo "no" >&6; }
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12517 $as_echo "no" >&6; }
12533 # Report which library types will actually be built
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12535 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12537 $as_echo "$can_build_shared" >&6; }
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12540 $as_echo_n "checking whether to build shared libraries... " >&6; }
12541 test "$can_build_shared" = "no" && enable_shared=no
12543 # On AIX, shared libraries and static libraries use the same namespace, and
12544 # are all built from PIC.
12547 test "$enable_shared" = yes && enable_static=no
12548 if test -n "$RANLIB"; then
12549 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12550 postinstall_cmds='$RANLIB $lib'
12555 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12556 test "$enable_shared" = yes && enable_static=no
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12561 $as_echo "$enable_shared" >&6; }
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12564 $as_echo_n "checking whether to build static libraries... " >&6; }
12565 # Make sure either enable_shared or enable_static is yes.
12566 test "$enable_shared" = yes || enable_static=yes
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12568 $as_echo "$enable_static" >&6; }
12575 ac_cpp='$CPP $CPPFLAGS'
12576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12594 ac_config_commands="$ac_config_commands libtool"
12599 # Only expand once:
12604 # Checks for programs.
12606 ac_cpp='$CXXCPP $CPPFLAGS'
12607 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12608 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12609 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12610 if test -z "$CXX"; then
12611 if test -n "$CCC"; then
12614 if test -n "$ac_tool_prefix"; then
12615 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12617 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12618 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12620 $as_echo_n "checking for $ac_word... " >&6; }
12621 if test "${ac_cv_prog_CXX+set}" = set; then :
12622 $as_echo_n "(cached) " >&6
12624 if test -n "$CXX"; then
12625 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12628 for as_dir in $PATH
12631 test -z "$as_dir" && as_dir=.
12632 for ac_exec_ext in '' $ac_executable_extensions; do
12633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12634 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12644 CXX=$ac_cv_prog_CXX
12645 if test -n "$CXX"; then
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12647 $as_echo "$CXX" >&6; }
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12650 $as_echo "no" >&6; }
12654 test -n "$CXX" && break
12657 if test -z "$CXX"; then
12659 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12661 # Extract the first word of "$ac_prog", so it can be a program name with args.
12662 set dummy $ac_prog; ac_word=$2
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12664 $as_echo_n "checking for $ac_word... " >&6; }
12665 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
12666 $as_echo_n "(cached) " >&6
12668 if test -n "$ac_ct_CXX"; then
12669 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12672 for as_dir in $PATH
12675 test -z "$as_dir" && as_dir=.
12676 for ac_exec_ext in '' $ac_executable_extensions; do
12677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12678 ac_cv_prog_ac_ct_CXX="$ac_prog"
12679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12688 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12689 if test -n "$ac_ct_CXX"; then
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
12691 $as_echo "$ac_ct_CXX" >&6; }
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12694 $as_echo "no" >&6; }
12698 test -n "$ac_ct_CXX" && break
12701 if test "x$ac_ct_CXX" = x; then
12704 case $cross_compiling:$ac_tool_warned in
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12707 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12708 ac_tool_warned=yes ;;
12716 # Provide some information about the compiler.
12717 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12720 for ac_option in --version -v -V -qversion; do
12721 { { ac_try="$ac_compiler $ac_option >&5"
12722 case "(($ac_try" in
12723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12724 *) ac_try_echo=$ac_try;;
12726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12727 $as_echo "$ac_try_echo"; } >&5
12728 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12730 if test -s conftest.err; then
12732 ... rest of stderr output deleted ...
12733 10q' conftest.err >conftest.er1
12734 cat conftest.er1 >&5
12735 rm -f conftest.er1 conftest.err
12737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12738 test $ac_status = 0; }
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12742 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12743 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
12744 $as_echo_n "(cached) " >&6
12746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12747 /* end confdefs.h. */
12760 if ac_fn_cxx_try_compile "$LINENO"; then :
12761 ac_compiler_gnu=yes
12765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12766 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12770 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12771 if test $ac_compiler_gnu = yes; then
12776 ac_test_CXXFLAGS=${CXXFLAGS+set}
12777 ac_save_CXXFLAGS=$CXXFLAGS
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12779 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
12780 if test "${ac_cv_prog_cxx_g+set}" = set; then :
12781 $as_echo_n "(cached) " >&6
12783 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12784 ac_cxx_werror_flag=yes
12785 ac_cv_prog_cxx_g=no
12787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12788 /* end confdefs.h. */
12798 if ac_fn_cxx_try_compile "$LINENO"; then :
12799 ac_cv_prog_cxx_g=yes
12802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12803 /* end confdefs.h. */
12813 if ac_fn_cxx_try_compile "$LINENO"; then :
12816 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12819 /* end confdefs.h. */
12829 if ac_fn_cxx_try_compile "$LINENO"; then :
12830 ac_cv_prog_cxx_g=yes
12832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12837 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12840 $as_echo "$ac_cv_prog_cxx_g" >&6; }
12841 if test "$ac_test_CXXFLAGS" = set; then
12842 CXXFLAGS=$ac_save_CXXFLAGS
12843 elif test $ac_cv_prog_cxx_g = yes; then
12844 if test "$GXX" = yes; then
12850 if test "$GXX" = yes; then
12857 ac_cpp='$CPP $CPPFLAGS'
12858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12862 depcc="$CXX" am_compiler_list=
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12865 $as_echo_n "checking dependency style of $depcc... " >&6; }
12866 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
12867 $as_echo_n "(cached) " >&6
12869 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12870 # We make a subdir and do the tests there. Otherwise we can end up
12871 # making bogus files that we don't know about and never remove. For
12872 # instance it was reported that on HP-UX the gcc test will end up
12873 # making a dummy file named `D' -- because `-MD' means `put the output
12876 # Copy depcomp to subdir because otherwise we won't find it if we're
12877 # using a relative directory.
12878 cp "$am_depcomp" conftest.dir
12880 # We will build objects and dependencies in a subdirectory because
12881 # it helps to detect inapplicable dependency modes. For instance
12882 # both Tru64's cc and ICC support -MD to output dependencies as a
12883 # side effect of compilation, but ICC will put the dependencies in
12884 # the current directory while Tru64 will put them in the object
12888 am_cv_CXX_dependencies_compiler_type=none
12889 if test "$am_compiler_list" = ""; then
12890 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12892 am__universal=false
12893 case " $depcc " in #(
12894 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12897 for depmode in $am_compiler_list; do
12898 # Setup a source with many dependencies, because some compilers
12899 # like to wrap large dependency lists on column 80 (with \), and
12900 # we should not choose a depcomp mode which is confused by this.
12902 # We need to recreate these files for each test, as the compiler may
12903 # overwrite some of them when testing with obscure command lines.
12904 # This happens at least with the AIX C compiler.
12906 for i in 1 2 3 4 5 6; do
12907 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12908 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12909 # Solaris 8's {/usr,}/bin/sh.
12910 touch sub/conftst$i.h
12912 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12914 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12915 # mode. It turns out that the SunPro C++ compiler does not properly
12916 # handle `-M -o', and we need to detect this. Also, some Intel
12917 # versions had trouble with output in subdirs
12918 am__obj=sub/conftest.${OBJEXT-o}
12919 am__minus_obj="-o $am__obj"
12922 # This depmode causes a compiler race in universal mode.
12923 test "$am__universal" = false || continue
12926 # after this tag, mechanisms are not by side-effect, so they'll
12927 # only be used when explicitly requested
12928 if test "x$enable_dependency_tracking" = xyes; then
12934 msvisualcpp | msvcmsys)
12935 # This compiler won't grok `-c -o', but also, the minuso test has
12936 # not run yet. These depmodes are late enough in the game, and
12937 # so weak that their functioning should not be impacted.
12938 am__obj=conftest.${OBJEXT-o}
12943 if depmode=$depmode \
12944 source=sub/conftest.c object=$am__obj \
12945 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12946 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12947 >/dev/null 2>conftest.err &&
12948 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12949 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12950 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12951 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12952 # icc doesn't choke on unknown options, it will just issue warnings
12953 # or remarks (even with -Werror). So we grep stderr for any message
12954 # that says an option was ignored or not supported.
12955 # When given -MP, icc 7.0 and 7.1 complain thusly:
12956 # icc: Command line warning: ignoring option '-M'; no argument required
12957 # The diagnosis changed in icc 8.0:
12958 # icc: Command line remark: option '-MP' not supported
12959 if (grep 'ignoring option' conftest.err ||
12960 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12961 am_cv_CXX_dependencies_compiler_type=$depmode
12968 rm -rf conftest.dir
12970 am_cv_CXX_dependencies_compiler_type=none
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12975 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12976 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12979 test "x$enable_dependency_tracking" != xno \
12980 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12981 am__fastdepCXX_TRUE=
12982 am__fastdepCXX_FALSE='#'
12984 am__fastdepCXX_TRUE='#'
12985 am__fastdepCXX_FALSE=
12991 ac_cpp='$CXXCPP $CPPFLAGS'
12992 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12993 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12994 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12995 if test -z "$CXX"; then
12996 if test -n "$CCC"; then
12999 if test -n "$ac_tool_prefix"; then
13000 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13002 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13003 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13005 $as_echo_n "checking for $ac_word... " >&6; }
13006 if test "${ac_cv_prog_CXX+set}" = set; then :
13007 $as_echo_n "(cached) " >&6
13009 if test -n "$CXX"; then
13010 ac_cv_prog_CXX="$CXX" # Let the user override the test.
13012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13013 for as_dir in $PATH
13016 test -z "$as_dir" && as_dir=.
13017 for ac_exec_ext in '' $ac_executable_extensions; do
13018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13019 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13029 CXX=$ac_cv_prog_CXX
13030 if test -n "$CXX"; then
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
13032 $as_echo "$CXX" >&6; }
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13035 $as_echo "no" >&6; }
13039 test -n "$CXX" && break
13042 if test -z "$CXX"; then
13044 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13046 # Extract the first word of "$ac_prog", so it can be a program name with args.
13047 set dummy $ac_prog; ac_word=$2
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13049 $as_echo_n "checking for $ac_word... " >&6; }
13050 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
13051 $as_echo_n "(cached) " >&6
13053 if test -n "$ac_ct_CXX"; then
13054 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13057 for as_dir in $PATH
13060 test -z "$as_dir" && as_dir=.
13061 for ac_exec_ext in '' $ac_executable_extensions; do
13062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13063 ac_cv_prog_ac_ct_CXX="$ac_prog"
13064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13073 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13074 if test -n "$ac_ct_CXX"; then
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
13076 $as_echo "$ac_ct_CXX" >&6; }
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13079 $as_echo "no" >&6; }
13083 test -n "$ac_ct_CXX" && break
13086 if test "x$ac_ct_CXX" = x; then
13089 case $cross_compiling:$ac_tool_warned in
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13092 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13093 ac_tool_warned=yes ;;
13101 # Provide some information about the compiler.
13102 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
13105 for ac_option in --version -v -V -qversion; do
13106 { { ac_try="$ac_compiler $ac_option >&5"
13107 case "(($ac_try" in
13108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13109 *) ac_try_echo=$ac_try;;
13111 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13112 $as_echo "$ac_try_echo"; } >&5
13113 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13115 if test -s conftest.err; then
13117 ... rest of stderr output deleted ...
13118 10q' conftest.err >conftest.er1
13119 cat conftest.er1 >&5
13120 rm -f conftest.er1 conftest.err
13122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13123 test $ac_status = 0; }
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
13127 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
13128 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
13129 $as_echo_n "(cached) " >&6
13131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13132 /* end confdefs.h. */
13145 if ac_fn_cxx_try_compile "$LINENO"; then :
13146 ac_compiler_gnu=yes
13150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13151 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
13155 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
13156 if test $ac_compiler_gnu = yes; then
13161 ac_test_CXXFLAGS=${CXXFLAGS+set}
13162 ac_save_CXXFLAGS=$CXXFLAGS
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
13164 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
13165 if test "${ac_cv_prog_cxx_g+set}" = set; then :
13166 $as_echo_n "(cached) " >&6
13168 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
13169 ac_cxx_werror_flag=yes
13170 ac_cv_prog_cxx_g=no
13172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13173 /* end confdefs.h. */
13183 if ac_fn_cxx_try_compile "$LINENO"; then :
13184 ac_cv_prog_cxx_g=yes
13187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13188 /* end confdefs.h. */
13198 if ac_fn_cxx_try_compile "$LINENO"; then :
13201 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13204 /* end confdefs.h. */
13214 if ac_fn_cxx_try_compile "$LINENO"; then :
13215 ac_cv_prog_cxx_g=yes
13217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13222 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
13225 $as_echo "$ac_cv_prog_cxx_g" >&6; }
13226 if test "$ac_test_CXXFLAGS" = set; then
13227 CXXFLAGS=$ac_save_CXXFLAGS
13228 elif test $ac_cv_prog_cxx_g = yes; then
13229 if test "$GXX" = yes; then
13235 if test "$GXX" = yes; then
13242 ac_cpp='$CPP $CPPFLAGS'
13243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13247 depcc="$CXX" am_compiler_list=
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13250 $as_echo_n "checking dependency style of $depcc... " >&6; }
13251 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
13252 $as_echo_n "(cached) " >&6
13254 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13255 # We make a subdir and do the tests there. Otherwise we can end up
13256 # making bogus files that we don't know about and never remove. For
13257 # instance it was reported that on HP-UX the gcc test will end up
13258 # making a dummy file named `D' -- because `-MD' means `put the output
13261 # Copy depcomp to subdir because otherwise we won't find it if we're
13262 # using a relative directory.
13263 cp "$am_depcomp" conftest.dir
13265 # We will build objects and dependencies in a subdirectory because
13266 # it helps to detect inapplicable dependency modes. For instance
13267 # both Tru64's cc and ICC support -MD to output dependencies as a
13268 # side effect of compilation, but ICC will put the dependencies in
13269 # the current directory while Tru64 will put them in the object
13273 am_cv_CXX_dependencies_compiler_type=none
13274 if test "$am_compiler_list" = ""; then
13275 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13277 am__universal=false
13278 case " $depcc " in #(
13279 *\ -arch\ *\ -arch\ *) am__universal=true ;;
13282 for depmode in $am_compiler_list; do
13283 # Setup a source with many dependencies, because some compilers
13284 # like to wrap large dependency lists on column 80 (with \), and
13285 # we should not choose a depcomp mode which is confused by this.
13287 # We need to recreate these files for each test, as the compiler may
13288 # overwrite some of them when testing with obscure command lines.
13289 # This happens at least with the AIX C compiler.
13291 for i in 1 2 3 4 5 6; do
13292 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13293 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13294 # Solaris 8's {/usr,}/bin/sh.
13295 touch sub/conftst$i.h
13297 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13299 # We check with `-c' and `-o' for the sake of the "dashmstdout"
13300 # mode. It turns out that the SunPro C++ compiler does not properly
13301 # handle `-M -o', and we need to detect this. Also, some Intel
13302 # versions had trouble with output in subdirs
13303 am__obj=sub/conftest.${OBJEXT-o}
13304 am__minus_obj="-o $am__obj"
13307 # This depmode causes a compiler race in universal mode.
13308 test "$am__universal" = false || continue
13311 # after this tag, mechanisms are not by side-effect, so they'll
13312 # only be used when explicitly requested
13313 if test "x$enable_dependency_tracking" = xyes; then
13319 msvisualcpp | msvcmsys)
13320 # This compiler won't grok `-c -o', but also, the minuso test has
13321 # not run yet. These depmodes are late enough in the game, and
13322 # so weak that their functioning should not be impacted.
13323 am__obj=conftest.${OBJEXT-o}
13328 if depmode=$depmode \
13329 source=sub/conftest.c object=$am__obj \
13330 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13331 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13332 >/dev/null 2>conftest.err &&
13333 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13334 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13335 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13336 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13337 # icc doesn't choke on unknown options, it will just issue warnings
13338 # or remarks (even with -Werror). So we grep stderr for any message
13339 # that says an option was ignored or not supported.
13340 # When given -MP, icc 7.0 and 7.1 complain thusly:
13341 # icc: Command line warning: ignoring option '-M'; no argument required
13342 # The diagnosis changed in icc 8.0:
13343 # icc: Command line remark: option '-MP' not supported
13344 if (grep 'ignoring option' conftest.err ||
13345 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13346 am_cv_CXX_dependencies_compiler_type=$depmode
13353 rm -rf conftest.dir
13355 am_cv_CXX_dependencies_compiler_type=none
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
13360 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
13361 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
13364 test "x$enable_dependency_tracking" != xno \
13365 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
13366 am__fastdepCXX_TRUE=
13367 am__fastdepCXX_FALSE='#'
13369 am__fastdepCXX_TRUE='#'
13370 am__fastdepCXX_FALSE=
13374 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13375 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13376 (test "X$CXX" != "Xg++"))) ; then
13378 ac_cpp='$CXXCPP $CPPFLAGS'
13379 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13380 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13381 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13383 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13384 if test -z "$CXXCPP"; then
13385 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
13386 $as_echo_n "(cached) " >&6
13388 # Double quotes because CXXCPP needs to be expanded
13389 for CXXCPP in "$CXX -E" "/lib/cpp"
13391 ac_preproc_ok=false
13392 for ac_cxx_preproc_warn_flag in '' yes
13394 # Use a header file that comes with gcc, so configuring glibc
13395 # with a fresh cross-compiler works.
13396 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13397 # <limits.h> exists even on freestanding compilers.
13398 # On the NeXT, cc -E runs the code through the compiler's parser,
13399 # not just through cpp. "Syntax error" is here to catch this case.
13400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13401 /* end confdefs.h. */
13403 # include <limits.h>
13405 # include <assert.h>
13409 if ac_fn_cxx_try_cpp "$LINENO"; then :
13412 # Broken: fails on valid input.
13415 rm -f conftest.err conftest.$ac_ext
13417 # OK, works on sane cases. Now check whether nonexistent headers
13418 # can be detected and how.
13419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13420 /* end confdefs.h. */
13421 #include <ac_nonexistent.h>
13423 if ac_fn_cxx_try_cpp "$LINENO"; then :
13424 # Broken: success on invalid input.
13427 # Passes both tests.
13431 rm -f conftest.err conftest.$ac_ext
13434 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13435 rm -f conftest.err conftest.$ac_ext
13436 if $ac_preproc_ok; then :
13441 ac_cv_prog_CXXCPP=$CXXCPP
13444 CXXCPP=$ac_cv_prog_CXXCPP
13446 ac_cv_prog_CXXCPP=$CXXCPP
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13449 $as_echo "$CXXCPP" >&6; }
13450 ac_preproc_ok=false
13451 for ac_cxx_preproc_warn_flag in '' yes
13453 # Use a header file that comes with gcc, so configuring glibc
13454 # with a fresh cross-compiler works.
13455 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13456 # <limits.h> exists even on freestanding compilers.
13457 # On the NeXT, cc -E runs the code through the compiler's parser,
13458 # not just through cpp. "Syntax error" is here to catch this case.
13459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13460 /* end confdefs.h. */
13462 # include <limits.h>
13464 # include <assert.h>
13468 if ac_fn_cxx_try_cpp "$LINENO"; then :
13471 # Broken: fails on valid input.
13474 rm -f conftest.err conftest.$ac_ext
13476 # OK, works on sane cases. Now check whether nonexistent headers
13477 # can be detected and how.
13478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13479 /* end confdefs.h. */
13480 #include <ac_nonexistent.h>
13482 if ac_fn_cxx_try_cpp "$LINENO"; then :
13483 # Broken: success on invalid input.
13486 # Passes both tests.
13490 rm -f conftest.err conftest.$ac_ext
13493 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13494 rm -f conftest.err conftest.$ac_ext
13495 if $ac_preproc_ok; then :
13498 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13499 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13500 _lt_caught_CXX_error=yes; }
13504 ac_cpp='$CPP $CPPFLAGS'
13505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13510 _lt_caught_CXX_error=yes
13517 ac_cpp='$CXXCPP $CPPFLAGS'
13518 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13519 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13520 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13522 archive_cmds_need_lc_CXX=no
13523 allow_undefined_flag_CXX=
13524 always_export_symbols_CXX=no
13525 archive_expsym_cmds_CXX=
13526 compiler_needs_object_CXX=no
13527 export_dynamic_flag_spec_CXX=
13528 hardcode_direct_CXX=no
13529 hardcode_direct_absolute_CXX=no
13530 hardcode_libdir_flag_spec_CXX=
13531 hardcode_libdir_flag_spec_ld_CXX=
13532 hardcode_libdir_separator_CXX=
13533 hardcode_minus_L_CXX=no
13534 hardcode_shlibpath_var_CXX=unsupported
13535 hardcode_automatic_CXX=no
13536 inherit_rpath_CXX=no
13538 module_expsym_cmds_CXX=
13539 link_all_deplibs_CXX=unknown
13540 old_archive_cmds_CXX=$old_archive_cmds
13541 no_undefined_flag_CXX=
13542 whole_archive_flag_spec_CXX=
13543 enable_shared_with_static_runtimes_CXX=no
13545 # Source file extension for C++ test sources.
13548 # Object file extension for compiled C++ test sources.
13552 # No sense in running all these tests if we already determined that
13553 # the CXX compiler isn't working. Some variables (like enable_shared)
13554 # are currently assumed to apply to all compilers on this platform,
13555 # and will be corrupted by setting them based on a non-working compiler.
13556 if test "$_lt_caught_CXX_error" != yes; then
13557 # Code to be used in simple compile tests
13558 lt_simple_compile_test_code="int some_variable = 0;"
13560 # Code to be used in simple link tests
13561 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13563 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13570 # If no C compiler was specified, use CC.
13573 # If no C compiler flags were specified, use CFLAGS.
13574 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13576 # Allow CC to be a program name with arguments.
13580 # save warnings/boilerplate of simple test code
13581 ac_outfile=conftest.$ac_objext
13582 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13583 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13584 _lt_compiler_boilerplate=`cat conftest.err`
13587 ac_outfile=conftest.$ac_objext
13588 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13589 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13590 _lt_linker_boilerplate=`cat conftest.err`
13594 # Allow CC to be a program name with arguments.
13599 lt_save_with_gnu_ld=$with_gnu_ld
13600 lt_save_path_LD=$lt_cv_path_LD
13601 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13602 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13604 $as_unset lt_cv_prog_gnu_ld
13606 if test -n "${lt_cv_path_LDCXX+set}"; then
13607 lt_cv_path_LD=$lt_cv_path_LDCXX
13609 $as_unset lt_cv_path_LD
13611 test -z "${LDCXX+set}" || LD=$LDCXX
13615 for cc_temp in $compiler""; do
13617 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13618 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13623 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13626 if test -n "$compiler"; then
13627 # We don't want -fno-exception when compiling C++ code, so set the
13628 # no_builtin_flag separately
13629 if test "$GXX" = yes; then
13630 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13632 lt_prog_compiler_no_builtin_flag_CXX=
13635 if test "$GXX" = yes; then
13636 # Set up default GNU C++ configuration
13640 # Check whether --with-gnu-ld was given.
13641 if test "${with_gnu_ld+set}" = set; then :
13642 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13648 if test "$GCC" = yes; then
13649 # Check if gcc -print-prog-name=ld gives a path.
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13651 $as_echo_n "checking for ld used by $CC... " >&6; }
13654 # gcc leaves a trailing carriage return which upsets mingw
13655 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13657 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13660 # Accept absolute paths.
13662 re_direlt='/[^/][^/]*/\.\./'
13663 # Canonicalize the pathname of ld
13664 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13665 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13666 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13668 test -z "$LD" && LD="$ac_prog"
13671 # If it fails, then pretend we aren't using GCC.
13675 # If it is relative, then search for the first ld in PATH.
13676 with_gnu_ld=unknown
13679 elif test "$with_gnu_ld" = yes; then
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13681 $as_echo_n "checking for GNU ld... " >&6; }
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13684 $as_echo_n "checking for non-GNU ld... " >&6; }
13686 if test "${lt_cv_path_LD+set}" = set; then :
13687 $as_echo_n "(cached) " >&6
13689 if test -z "$LD"; then
13690 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13691 for ac_dir in $PATH; do
13693 test -z "$ac_dir" && ac_dir=.
13694 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13695 lt_cv_path_LD="$ac_dir/$ac_prog"
13696 # Check to see if the program is GNU ld. I'd rather use --version,
13697 # but apparently some variants of GNU ld only accept -v.
13698 # Break only if it was the GNU/non-GNU ld that we prefer.
13699 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13700 *GNU* | *'with BFD'*)
13701 test "$with_gnu_ld" != no && break
13704 test "$with_gnu_ld" != yes && break
13711 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13715 LD="$lt_cv_path_LD"
13716 if test -n "$LD"; then
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13718 $as_echo "$LD" >&6; }
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13721 $as_echo "no" >&6; }
13723 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13725 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13726 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
13727 $as_echo_n "(cached) " >&6
13729 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13730 case `$LD -v 2>&1 </dev/null` in
13731 *GNU* | *'with BFD'*)
13732 lt_cv_prog_gnu_ld=yes
13735 lt_cv_prog_gnu_ld=no
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13740 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13741 with_gnu_ld=$lt_cv_prog_gnu_ld
13749 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13750 # archiving commands below assume that GNU ld is being used.
13751 if test "$with_gnu_ld" = yes; then
13752 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13753 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'
13755 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13756 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13758 # If archive_cmds runs LD, not CC, wlarc should be empty
13759 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13760 # investigate it a little bit more. (MM)
13763 # ancient GNU ld didn't support --whole-archive et. al.
13764 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13765 $GREP 'no-whole-archive' > /dev/null; then
13766 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13768 whole_archive_flag_spec_CXX=
13774 # A generic and very simple default shared library creation
13775 # command for GNU C++ for the case where it uses the native
13776 # linker, instead of GNU ld. If possible, this setting should
13777 # overridden to take advantage of the native linker features on
13778 # the platform it is being used on.
13779 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13782 # Commands to make compiler produce verbose output that lists
13783 # what "hidden" libraries, object files and flags are used when
13784 # linking a shared library.
13785 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13793 # PORTME: fill in a description of your system's C++ link characteristics
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13795 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13799 # FIXME: insert proper C++ library support
13803 if test "$host_cpu" = ia64; then
13804 # On IA64, the linker does run time linking by default, so we don't
13805 # have to do anything special.
13806 aix_use_runtimelinking=no
13807 exp_sym_flag='-Bexport'
13810 aix_use_runtimelinking=no
13812 # Test if we are trying to use run time linking or normal
13813 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13814 # need to do runtime linking.
13815 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13816 for ld_flag in $LDFLAGS; do
13819 aix_use_runtimelinking=yes
13827 exp_sym_flag='-bexport'
13828 no_entry_flag='-bnoentry'
13831 # When large executables or shared objects are built, AIX ld can
13832 # have problems creating the table of contents. If linking a library
13833 # or program results in "error TOC overflow" add -mminimal-toc to
13834 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13835 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13837 archive_cmds_CXX=''
13838 hardcode_direct_CXX=yes
13839 hardcode_direct_absolute_CXX=yes
13840 hardcode_libdir_separator_CXX=':'
13841 link_all_deplibs_CXX=yes
13842 file_list_spec_CXX='${wl}-f,'
13844 if test "$GXX" = yes; then
13845 case $host_os in aix4.[012]|aix4.[012].*)
13846 # We only want to do this on AIX 4.2 and lower, the check
13847 # below for broken collect2 doesn't work under 4.3+
13848 collect2name=`${CC} -print-prog-name=collect2`
13849 if test -f "$collect2name" &&
13850 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13852 # We have reworked collect2
13855 # We have old collect2
13856 hardcode_direct_CXX=unsupported
13857 # It fails to find uninstalled libraries when the uninstalled
13858 # path is not listed in the libpath. Setting hardcode_minus_L
13859 # to unsupported forces relinking
13860 hardcode_minus_L_CXX=yes
13861 hardcode_libdir_flag_spec_CXX='-L$libdir'
13862 hardcode_libdir_separator_CXX=
13865 shared_flag='-shared'
13866 if test "$aix_use_runtimelinking" = yes; then
13867 shared_flag="$shared_flag "'${wl}-G'
13871 if test "$host_cpu" = ia64; then
13872 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13873 # chokes on -Wl,-G. The following line is correct:
13876 if test "$aix_use_runtimelinking" = yes; then
13877 shared_flag='${wl}-G'
13879 shared_flag='${wl}-bM:SRE'
13884 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13885 # It seems that -bexpall does not export symbols beginning with
13886 # underscore (_), so it is better to generate a list of symbols to
13888 always_export_symbols_CXX=yes
13889 if test "$aix_use_runtimelinking" = yes; then
13890 # Warning - without using the other runtime loading flags (-brtl),
13891 # -berok will link without error, but may produce a broken library.
13892 allow_undefined_flag_CXX='-berok'
13893 # Determine the default libpath from the value encoded in an empty
13895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13896 /* end confdefs.h. */
13906 if ac_fn_cxx_try_link "$LINENO"; then :
13908 lt_aix_libpath_sed='
13909 /Import File Strings/,/^$/ {
13915 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13916 # Check for a 64-bit object if we didn't find anything.
13917 if test -z "$aix_libpath"; then
13918 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13921 rm -f core conftest.err conftest.$ac_objext \
13922 conftest$ac_exeext conftest.$ac_ext
13923 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13925 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13927 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"
13929 if test "$host_cpu" = ia64; then
13930 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13931 allow_undefined_flag_CXX="-z nodefs"
13932 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"
13934 # Determine the default libpath from the value encoded in an
13935 # empty executable.
13936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13937 /* end confdefs.h. */
13947 if ac_fn_cxx_try_link "$LINENO"; then :
13949 lt_aix_libpath_sed='
13950 /Import File Strings/,/^$/ {
13956 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13957 # Check for a 64-bit object if we didn't find anything.
13958 if test -z "$aix_libpath"; then
13959 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13962 rm -f core conftest.err conftest.$ac_objext \
13963 conftest$ac_exeext conftest.$ac_ext
13964 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13966 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13967 # Warning - without using the other run time loading flags,
13968 # -berok will link without error, but may produce a broken library.
13969 no_undefined_flag_CXX=' ${wl}-bernotok'
13970 allow_undefined_flag_CXX=' ${wl}-berok'
13971 # Exported symbols can be pulled into shared objects from archives
13972 whole_archive_flag_spec_CXX='$convenience'
13973 archive_cmds_need_lc_CXX=yes
13974 # This is similar to how AIX traditionally builds its shared
13976 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'
13982 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13983 allow_undefined_flag_CXX=unsupported
13984 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13985 # support --undefined. This deserves some investigation. FIXME
13986 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13993 case $cc_basename in
13995 # FIXME: insert proper C++ library support
14001 cygwin* | mingw* | pw32* | cegcc*)
14002 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14003 # as there is no search path for DLLs.
14004 hardcode_libdir_flag_spec_CXX='-L$libdir'
14005 allow_undefined_flag_CXX=unsupported
14006 always_export_symbols_CXX=no
14007 enable_shared_with_static_runtimes_CXX=yes
14009 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14010 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'
14011 # If the export-symbols file already is a .def file (1st line
14012 # is EXPORTS), use it as is; otherwise, prepend...
14013 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14014 cp $export_symbols $output_objdir/$soname.def;
14016 echo EXPORTS > $output_objdir/$soname.def;
14017 cat $export_symbols >> $output_objdir/$soname.def;
14019 $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'
14024 darwin* | rhapsody*)
14027 archive_cmds_need_lc_CXX=no
14028 hardcode_direct_CXX=no
14029 hardcode_automatic_CXX=yes
14030 hardcode_shlibpath_var_CXX=unsupported
14031 whole_archive_flag_spec_CXX=''
14032 link_all_deplibs_CXX=yes
14033 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14034 case $cc_basename in
14035 ifort*) _lt_dar_can_shared=yes ;;
14036 *) _lt_dar_can_shared=$GCC ;;
14038 if test "$_lt_dar_can_shared" = "yes"; then
14039 output_verbose_link_cmd=echo
14040 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}"
14041 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14042 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}"
14043 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}"
14044 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14045 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}"
14046 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}"
14056 case $cc_basename in
14058 # FIXME: insert proper C++ library support
14062 # Green Hills C++ Compiler
14063 # FIXME: insert proper C++ library support
14067 # FIXME: insert proper C++ library support
14074 # C++ shared libraries reported to be fairly broken before
14080 archive_cmds_need_lc_CXX=no
14083 freebsd* | dragonfly*)
14084 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14093 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14094 hardcode_libdir_separator_CXX=:
14095 export_dynamic_flag_spec_CXX='${wl}-E'
14096 hardcode_direct_CXX=yes
14097 hardcode_minus_L_CXX=yes # Not in the search PATH,
14098 # but as the default
14099 # location of the library.
14101 case $cc_basename in
14103 # FIXME: insert proper C++ library support
14107 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'
14108 # Commands to make compiler produce verbose output that lists
14109 # what "hidden" libraries, object files and flags are used when
14110 # linking a shared library.
14112 # There doesn't appear to be a way to prevent this compiler from
14113 # explicitly linking system object files so we need to strip them
14114 # from the output so that they don't get included in the library
14116 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'
14119 if test "$GXX" = yes; then
14120 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'
14122 # FIXME: insert proper C++ library support
14130 if test $with_gnu_ld = no; then
14131 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14132 hardcode_libdir_separator_CXX=:
14138 export_dynamic_flag_spec_CXX='${wl}-E'
14144 hardcode_direct_CXX=no
14145 hardcode_shlibpath_var_CXX=no
14148 hardcode_direct_CXX=yes
14149 hardcode_direct_absolute_CXX=yes
14150 hardcode_minus_L_CXX=yes # Not in the search PATH,
14151 # but as the default
14152 # location of the library.
14156 case $cc_basename in
14158 # FIXME: insert proper C++ library support
14164 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14167 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14170 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14173 # Commands to make compiler produce verbose output that lists
14174 # what "hidden" libraries, object files and flags are used when
14175 # linking a shared library.
14177 # There doesn't appear to be a way to prevent this compiler from
14178 # explicitly linking system object files so we need to strip them
14179 # from the output so that they don't get included in the library
14181 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'
14184 if test "$GXX" = yes; then
14185 if test $with_gnu_ld = no; then
14188 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14191 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14194 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'
14199 # FIXME: insert proper C++ library support
14207 hardcode_direct_CXX=no
14208 hardcode_shlibpath_var_CXX=no
14209 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14210 export_dynamic_flag_spec_CXX='${wl}-E'
14211 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14212 # Instead, shared libraries are loaded at an image base (0x10000000 by
14213 # default) and relocated if they conflict, which is a slow very memory
14214 # consuming and fragmenting process. To avoid this, we pick a random,
14215 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14216 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14217 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'
14218 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'
14221 case $cc_basename in
14224 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'
14226 # Archives containing C++ object files must be created using
14227 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14228 # necessary to make sure instantiated templates are included
14230 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14233 if test "$GXX" = yes; then
14234 if test "$with_gnu_ld" = no; then
14235 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'
14237 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'
14240 link_all_deplibs_CXX=yes
14243 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14244 hardcode_libdir_separator_CXX=:
14245 inherit_rpath_CXX=yes
14248 linux* | k*bsd*-gnu)
14249 case $cc_basename in
14251 # Kuck and Associates, Inc. (KAI) C++ Compiler
14253 # KCC will only create a shared library if the output file
14254 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14255 # to its proper name (with version) after linking.
14256 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'
14257 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'
14258 # Commands to make compiler produce verbose output that lists
14259 # what "hidden" libraries, object files and flags are used when
14260 # linking a shared library.
14262 # There doesn't appear to be a way to prevent this compiler from
14263 # explicitly linking system object files so we need to strip them
14264 # from the output so that they don't get included in the library
14266 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'
14268 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14269 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14271 # Archives containing C++ object files must be created using
14272 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14273 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14278 # version 8.0 and above of icpc choke on multiply defined symbols
14279 # if we add $predep_objects and $postdep_objects, however 7.1 and
14280 # earlier do not add the objects themselves.
14281 case `$CC -V 2>&1` in
14283 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14284 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'
14286 *) # Version 8.0 or newer
14289 ia64*) tmp_idyn=' -i_dynamic';;
14291 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14292 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'
14295 archive_cmds_need_lc_CXX=no
14296 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14297 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14298 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14301 # Portland Group C++ compiler
14303 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
14304 prelink_cmds_CXX='tpldir=Template.dir~
14306 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14307 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
14308 old_archive_cmds_CXX='tpldir=Template.dir~
14310 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14311 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
14313 archive_cmds_CXX='tpldir=Template.dir~
14315 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14316 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14317 archive_expsym_cmds_CXX='tpldir=Template.dir~
14319 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14320 $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'
14322 *) # Version 6 will use weak symbols
14323 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14324 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'
14328 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14329 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14330 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'
14334 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14335 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'
14337 runpath_var=LD_RUN_PATH
14338 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14339 hardcode_libdir_separator_CXX=:
14341 # Commands to make compiler produce verbose output that lists
14342 # what "hidden" libraries, object files and flags are used when
14343 # linking a shared library.
14345 # There doesn't appear to be a way to prevent this compiler from
14346 # explicitly linking system object files so we need to strip them
14347 # from the output so that they don't get included in the library
14349 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'
14352 # IBM XL 8.0 on PPC, with GNU ld
14353 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14354 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14355 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14356 if test "x$supports_anon_versioning" = xyes; then
14357 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14358 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14359 echo "local: *; };" >> $output_objdir/$libname.ver~
14360 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14364 case `$CC -V 2>&1 | sed 5q` in
14367 no_undefined_flag_CXX=' -zdefs'
14368 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14369 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'
14370 hardcode_libdir_flag_spec_CXX='-R$libdir'
14371 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'
14372 compiler_needs_object_CXX=yes
14374 # Not sure whether something based on
14375 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14377 output_verbose_link_cmd='echo'
14379 # Archives containing C++ object files must be created using
14380 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14381 # necessary to make sure instantiated templates are included
14383 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14391 # FIXME: insert proper C++ library support
14396 # FIXME: insert proper C++ library support
14401 case $cc_basename in
14403 # FIXME: insert proper C++ library support
14407 # FIXME: insert proper C++ library support
14414 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14415 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14417 hardcode_libdir_flag_spec_CXX='-R$libdir'
14418 hardcode_direct_CXX=yes
14419 hardcode_shlibpath_var_CXX=no
14421 # Workaround some broken pre-1.5 toolchains
14422 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14430 # C++ shared libraries are fairly broken
14435 if test -f /usr/libexec/ld.so; then
14436 hardcode_direct_CXX=yes
14437 hardcode_shlibpath_var_CXX=no
14438 hardcode_direct_absolute_CXX=yes
14439 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14440 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14441 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14442 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14443 export_dynamic_flag_spec_CXX='${wl}-E'
14444 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14446 output_verbose_link_cmd=echo
14452 osf3* | osf4* | osf5*)
14453 case $cc_basename in
14455 # Kuck and Associates, Inc. (KAI) C++ Compiler
14457 # KCC will only create a shared library if the output file
14458 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14459 # to its proper name (with version) after linking.
14460 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'
14462 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14463 hardcode_libdir_separator_CXX=:
14465 # Archives containing C++ object files must be created using
14466 # the KAI C++ compiler.
14468 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14469 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14473 # Rational C++ 2.4.1
14474 # FIXME: insert proper C++ library support
14480 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14481 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'
14482 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14485 allow_undefined_flag_CXX=' -expect_unresolved \*'
14486 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'
14487 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14488 echo "-hidden">> $lib.exp~
14489 $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~
14491 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14495 hardcode_libdir_separator_CXX=:
14497 # Commands to make compiler produce verbose output that lists
14498 # what "hidden" libraries, object files and flags are used when
14499 # linking a shared library.
14501 # There doesn't appear to be a way to prevent this compiler from
14502 # explicitly linking system object files so we need to strip them
14503 # from the output so that they don't get included in the library
14505 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'
14508 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14509 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14512 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'
14515 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'
14519 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14520 hardcode_libdir_separator_CXX=:
14522 # Commands to make compiler produce verbose output that lists
14523 # what "hidden" libraries, object files and flags are used when
14524 # linking a shared library.
14525 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14528 # FIXME: insert proper C++ library support
14536 # FIXME: insert proper C++ library support
14541 case $cc_basename in
14544 # FIXME: insert proper C++ library support
14549 # FIXME: insert proper C++ library support
14553 # FIXME: insert proper C++ library support
14560 case $cc_basename in
14562 # Sun C++ 4.2, 5.x and Centerline C++
14563 archive_cmds_need_lc_CXX=yes
14564 no_undefined_flag_CXX=' -zdefs'
14565 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14566 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14567 $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'
14569 hardcode_libdir_flag_spec_CXX='-R$libdir'
14570 hardcode_shlibpath_var_CXX=no
14572 solaris2.[0-5] | solaris2.[0-5].*) ;;
14574 # The compiler driver will combine and reorder linker options,
14575 # but understands `-z linker_flag'.
14576 # Supported since Solaris 2.6 (maybe 2.5.1?)
14577 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14580 link_all_deplibs_CXX=yes
14582 output_verbose_link_cmd='echo'
14584 # Archives containing C++ object files must be created using
14585 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14586 # necessary to make sure instantiated templates are included
14588 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14591 # Green Hills C++ Compiler
14592 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14594 # The C++ compiler must be used to create the archive.
14595 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14598 # GNU C++ compiler with Solaris linker
14599 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14600 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14601 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14602 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14603 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14604 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14606 # Commands to make compiler produce verbose output that lists
14607 # what "hidden" libraries, object files and flags are used when
14608 # linking a shared library.
14609 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14611 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14613 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14614 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14615 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14617 # Commands to make compiler produce verbose output that lists
14618 # what "hidden" libraries, object files and flags are used when
14619 # linking a shared library.
14620 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14623 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14625 solaris2.[0-5] | solaris2.[0-5].*) ;;
14627 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14635 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14636 no_undefined_flag_CXX='${wl}-z,text'
14637 archive_cmds_need_lc_CXX=no
14638 hardcode_shlibpath_var_CXX=no
14639 runpath_var='LD_RUN_PATH'
14641 case $cc_basename in
14643 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14644 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14647 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14648 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14653 sysv5* | sco3.2v5* | sco5v6*)
14654 # Note: We can NOT use -z defs as we might desire, because we do not
14655 # link with -lc, and that would cause any symbols used from libc to
14656 # always be unresolved, which means just about no library would
14657 # ever link correctly. If we're not using GNU ld we use -z text
14658 # though, which does catch some bad symbols but isn't as heavy-handed
14660 no_undefined_flag_CXX='${wl}-z,text'
14661 allow_undefined_flag_CXX='${wl}-z,nodefs'
14662 archive_cmds_need_lc_CXX=no
14663 hardcode_shlibpath_var_CXX=no
14664 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14665 hardcode_libdir_separator_CXX=':'
14666 link_all_deplibs_CXX=yes
14667 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14668 runpath_var='LD_RUN_PATH'
14670 case $cc_basename in
14672 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14673 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14676 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14677 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14683 case $cc_basename in
14685 # NonStop-UX NCC 3.20
14686 # FIXME: insert proper C++ library support
14690 # FIXME: insert proper C++ library support
14697 # FIXME: insert proper C++ library support
14702 # FIXME: insert proper C++ library support
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14708 $as_echo "$ld_shlibs_CXX" >&6; }
14709 test "$ld_shlibs_CXX" = no && can_build_shared=no
14715 ## There is no encapsulation within the following macros, do not change
14716 ## the running order or otherwise move them around unless you know exactly
14717 ## what you are doing...
14718 # Dependencies to place before and after the object being linked:
14719 predep_objects_CXX=
14720 postdep_objects_CXX=
14723 compiler_lib_search_path_CXX=
14725 cat > conftest.$ac_ext <<_LT_EOF
14729 Foo (void) { a = 0; }
14735 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14736 (eval $ac_compile) 2>&5
14738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14739 test $ac_status = 0; }; then
14740 # Parse the compiler output and extract the necessary
14741 # objects, libraries and library flags.
14743 # Sentinel used to keep track of whether or not we are before
14744 # the conftest object file.
14745 pre_test_object_deps_done=no
14747 for p in `eval "$output_verbose_link_cmd"`; do
14751 # Some compilers place space between "-{L,R}" and the path.
14752 # Remove the space.
14753 if test $p = "-L" ||
14754 test $p = "-R"; then
14761 if test "$pre_test_object_deps_done" = no; then
14764 # Internal compiler library paths should come after those
14765 # provided the user. The postdeps already come after the
14766 # user supplied libs so there is no need to process them.
14767 if test -z "$compiler_lib_search_path_CXX"; then
14768 compiler_lib_search_path_CXX="${prev}${p}"
14770 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14773 # The "-l" case would never come before the object being
14774 # linked, so don't bother handling this case.
14777 if test -z "$postdeps_CXX"; then
14778 postdeps_CXX="${prev}${p}"
14780 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14786 # This assumes that the test object file only shows up
14787 # once in the compiler output.
14788 if test "$p" = "conftest.$objext"; then
14789 pre_test_object_deps_done=yes
14793 if test "$pre_test_object_deps_done" = no; then
14794 if test -z "$predep_objects_CXX"; then
14795 predep_objects_CXX="$p"
14797 predep_objects_CXX="$predep_objects_CXX $p"
14800 if test -z "$postdep_objects_CXX"; then
14801 postdep_objects_CXX="$p"
14803 postdep_objects_CXX="$postdep_objects_CXX $p"
14808 *) ;; # Ignore the rest.
14816 echo "libtool.m4: error: problem compiling CXX test program"
14819 $RM -f confest.$objext
14821 # PORTME: override above test on systems where it is broken
14824 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14825 # hack all around it, let's just trust "g++" to DTRT.
14826 predep_objects_CXX=
14827 postdep_objects_CXX=
14832 case `$CC -V 2>&1 | sed 5q` in
14836 # The more standards-conforming stlport4 library is
14837 # incompatible with the Cstd library. Avoid specifying
14838 # it if it's in CXXFLAGS. Ignore libCrun as
14839 # -library=stlport4 depends on it.
14840 case " $CXX $CXXFLAGS " in
14841 *" -library=stlport4 "*)
14842 solaris_use_stlport4=yes
14846 if test "$solaris_use_stlport4" != yes; then
14847 postdeps_CXX='-library=Cstd -library=Crun'
14854 case $cc_basename in
14856 # The more standards-conforming stlport4 library is
14857 # incompatible with the Cstd library. Avoid specifying
14858 # it if it's in CXXFLAGS. Ignore libCrun as
14859 # -library=stlport4 depends on it.
14860 case " $CXX $CXXFLAGS " in
14861 *" -library=stlport4 "*)
14862 solaris_use_stlport4=yes
14866 # Adding this requires a known-good setup of shared libraries for
14867 # Sun compiler versions before 5.6, else PIC objects from an old
14868 # archive will be linked into the output, leading to subtle bugs.
14869 if test "$solaris_use_stlport4" != yes; then
14870 postdeps_CXX='-library=Cstd -library=Crun'
14878 case " $postdeps_CXX " in
14879 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14881 compiler_lib_search_dirs_CXX=
14882 if test -n "${compiler_lib_search_path_CXX}"; then
14883 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14916 lt_prog_compiler_wl_CXX=
14917 lt_prog_compiler_pic_CXX=
14918 lt_prog_compiler_static_CXX=
14920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14921 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14923 # C++ specific cases for pic, static, wl, etc.
14924 if test "$GXX" = yes; then
14925 lt_prog_compiler_wl_CXX='-Wl,'
14926 lt_prog_compiler_static_CXX='-static'
14930 # All AIX code is PIC.
14931 if test "$host_cpu" = ia64; then
14932 # AIX 5 now supports IA64 processor
14933 lt_prog_compiler_static_CXX='-Bstatic'
14940 # see comment about AmigaOS4 .so support
14941 lt_prog_compiler_pic_CXX='-fPIC'
14944 # FIXME: we need at least 68020 code to build shared libraries, but
14945 # adding the `-m68020' flag to GCC prevents building anything better,
14947 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14952 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14953 # PIC is the default for these OSes.
14955 mingw* | cygwin* | os2* | pw32* | cegcc*)
14956 # This hack is so that the source file can tell whether it is being
14957 # built for inclusion in a dll (and should export symbols for example).
14958 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14959 # (--disable-auto-import) libraries
14960 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14962 darwin* | rhapsody*)
14963 # PIC is the default on this platform
14964 # Common symbols not allowed in MH_DYLIB files
14965 lt_prog_compiler_pic_CXX='-fno-common'
14968 # DJGPP does not support shared libraries at all
14969 lt_prog_compiler_pic_CXX=
14972 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14973 # Instead, we relocate shared libraries at runtime.
14976 if test -d /usr/nec; then
14977 lt_prog_compiler_pic_CXX=-Kconform_pic
14981 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14982 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14983 # sets the default TLS model and affects inlining.
14988 lt_prog_compiler_pic_CXX='-fPIC'
14993 # QNX uses GNU C++, but need to define -shared option too, otherwise
14994 # it will coredump.
14995 lt_prog_compiler_pic_CXX='-fPIC -shared'
14998 lt_prog_compiler_pic_CXX='-fPIC'
15004 # All AIX code is PIC.
15005 if test "$host_cpu" = ia64; then
15006 # AIX 5 now supports IA64 processor
15007 lt_prog_compiler_static_CXX='-Bstatic'
15009 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15013 case $cc_basename in
15015 # Green Hills C++ Compiler
15016 # _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"
15021 case $cc_basename in
15023 lt_prog_compiler_pic_CXX='-KPIC'
15026 # Green Hills C++ Compiler
15027 lt_prog_compiler_pic_CXX='-pic'
15033 freebsd* | dragonfly*)
15034 # FreeBSD uses GNU C++
15036 hpux9* | hpux10* | hpux11*)
15037 case $cc_basename in
15039 lt_prog_compiler_wl_CXX='-Wl,'
15040 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15041 if test "$host_cpu" != ia64; then
15042 lt_prog_compiler_pic_CXX='+Z'
15046 lt_prog_compiler_wl_CXX='-Wl,'
15047 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15053 lt_prog_compiler_pic_CXX='+Z'
15062 # This is c89, which is MS Visual C++ (no shared libs)
15063 # Anyone wants to do a port?
15065 irix5* | irix6* | nonstopux*)
15066 case $cc_basename in
15068 lt_prog_compiler_wl_CXX='-Wl,'
15069 lt_prog_compiler_static_CXX='-non_shared'
15070 # CC pic flag -KPIC is the default.
15076 linux* | k*bsd*-gnu)
15077 case $cc_basename in
15080 lt_prog_compiler_wl_CXX='--backend -Wl,'
15081 lt_prog_compiler_pic_CXX='-fPIC'
15084 # old Intel C++ for x86_64 which still supported -KPIC.
15085 lt_prog_compiler_wl_CXX='-Wl,'
15086 lt_prog_compiler_pic_CXX='-KPIC'
15087 lt_prog_compiler_static_CXX='-static'
15090 # Intel C++, used to be incompatible with GCC.
15091 # ICC 10 doesn't accept -KPIC any more.
15092 lt_prog_compiler_wl_CXX='-Wl,'
15093 lt_prog_compiler_pic_CXX='-fPIC'
15094 lt_prog_compiler_static_CXX='-static'
15097 # Portland Group C++ compiler
15098 lt_prog_compiler_wl_CXX='-Wl,'
15099 lt_prog_compiler_pic_CXX='-fpic'
15100 lt_prog_compiler_static_CXX='-Bstatic'
15104 # Make sure the PIC flag is empty. It appears that all Alpha
15105 # Linux and Compaq Tru64 Unix objects are PIC.
15106 lt_prog_compiler_pic_CXX=
15107 lt_prog_compiler_static_CXX='-non_shared'
15110 # IBM XL 8.0 on PPC
15111 lt_prog_compiler_wl_CXX='-Wl,'
15112 lt_prog_compiler_pic_CXX='-qpic'
15113 lt_prog_compiler_static_CXX='-qstaticlink'
15116 case `$CC -V 2>&1 | sed 5q` in
15119 lt_prog_compiler_pic_CXX='-KPIC'
15120 lt_prog_compiler_static_CXX='-Bstatic'
15121 lt_prog_compiler_wl_CXX='-Qoption ld '
15132 case $cc_basename in
15134 lt_prog_compiler_pic_CXX='-W c,exportall'
15140 netbsd* | netbsdelf*-gnu)
15143 # QNX uses GNU C++, but need to define -shared option too, otherwise
15144 # it will coredump.
15145 lt_prog_compiler_pic_CXX='-fPIC -shared'
15147 osf3* | osf4* | osf5*)
15148 case $cc_basename in
15150 lt_prog_compiler_wl_CXX='--backend -Wl,'
15153 # Rational C++ 2.4.1
15154 lt_prog_compiler_pic_CXX='-pic'
15157 # Digital/Compaq C++
15158 lt_prog_compiler_wl_CXX='-Wl,'
15159 # Make sure the PIC flag is empty. It appears that all Alpha
15160 # Linux and Compaq Tru64 Unix objects are PIC.
15161 lt_prog_compiler_pic_CXX=
15162 lt_prog_compiler_static_CXX='-non_shared'
15171 case $cc_basename in
15173 # Sun C++ 4.2, 5.x and Centerline C++
15174 lt_prog_compiler_pic_CXX='-KPIC'
15175 lt_prog_compiler_static_CXX='-Bstatic'
15176 lt_prog_compiler_wl_CXX='-Qoption ld '
15179 # Green Hills C++ Compiler
15180 lt_prog_compiler_pic_CXX='-PIC'
15187 case $cc_basename in
15190 lt_prog_compiler_pic_CXX='-pic'
15191 lt_prog_compiler_static_CXX='-Bstatic'
15195 lt_prog_compiler_pic_CXX='-pic'
15201 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15202 case $cc_basename in
15204 lt_prog_compiler_wl_CXX='-Wl,'
15205 lt_prog_compiler_pic_CXX='-KPIC'
15206 lt_prog_compiler_static_CXX='-Bstatic'
15211 case $cc_basename in
15213 # NonStop-UX NCC 3.20
15214 lt_prog_compiler_pic_CXX='-KPIC'
15223 lt_prog_compiler_can_build_shared_CXX=no
15229 # For platforms which do not support PIC, -DPIC is meaningless:
15231 lt_prog_compiler_pic_CXX=
15234 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
15238 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
15243 # Check to make sure the PIC flag actually works.
15245 if test -n "$lt_prog_compiler_pic_CXX"; then
15246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15247 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15248 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
15249 $as_echo_n "(cached) " >&6
15251 lt_cv_prog_compiler_pic_works_CXX=no
15252 ac_outfile=conftest.$ac_objext
15253 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15254 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15255 # Insert the option either (1) after the last *FLAGS variable, or
15256 # (2) before a word containing "conftest.", or (3) at the end.
15257 # Note that $ac_compile itself does not contain backslashes and begins
15258 # with a dollar sign (not a hyphen), so the echo should work correctly.
15259 # The option is referenced via a variable to avoid confusing sed.
15260 lt_compile=`echo "$ac_compile" | $SED \
15261 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15262 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15263 -e 's:$: $lt_compiler_flag:'`
15264 (eval echo "\"\$as_me:15264: $lt_compile\"" >&5)
15265 (eval "$lt_compile" 2>conftest.err)
15267 cat conftest.err >&5
15268 echo "$as_me:15268: \$? = $ac_status" >&5
15269 if (exit $ac_status) && test -s "$ac_outfile"; then
15270 # The compiler can only warn and ignore the option if not recognized
15271 # So say no if there are warnings other than the usual output.
15272 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15273 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15274 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15275 lt_cv_prog_compiler_pic_works_CXX=yes
15281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15282 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15284 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15285 case $lt_prog_compiler_pic_CXX in
15287 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15290 lt_prog_compiler_pic_CXX=
15291 lt_prog_compiler_can_build_shared_CXX=no
15299 # Check to make sure the static flag actually works.
15301 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15303 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15304 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
15305 $as_echo_n "(cached) " >&6
15307 lt_cv_prog_compiler_static_works_CXX=no
15308 save_LDFLAGS="$LDFLAGS"
15309 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15310 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15311 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15312 # The linker can only warn and ignore the option if not recognized
15313 # So say no if there are warnings
15314 if test -s conftest.err; then
15315 # Append any errors to the config.log.
15316 cat conftest.err 1>&5
15317 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15318 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15319 if diff conftest.exp conftest.er2 >/dev/null; then
15320 lt_cv_prog_compiler_static_works_CXX=yes
15323 lt_cv_prog_compiler_static_works_CXX=yes
15327 LDFLAGS="$save_LDFLAGS"
15330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15331 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15333 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15336 lt_prog_compiler_static_CXX=
15342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15343 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15344 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15345 $as_echo_n "(cached) " >&6
15347 lt_cv_prog_compiler_c_o_CXX=no
15348 $RM -r conftest 2>/dev/null
15352 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15354 lt_compiler_flag="-o out/conftest2.$ac_objext"
15355 # Insert the option either (1) after the last *FLAGS variable, or
15356 # (2) before a word containing "conftest.", or (3) at the end.
15357 # Note that $ac_compile itself does not contain backslashes and begins
15358 # with a dollar sign (not a hyphen), so the echo should work correctly.
15359 lt_compile=`echo "$ac_compile" | $SED \
15360 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15361 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15362 -e 's:$: $lt_compiler_flag:'`
15363 (eval echo "\"\$as_me:15363: $lt_compile\"" >&5)
15364 (eval "$lt_compile" 2>out/conftest.err)
15366 cat out/conftest.err >&5
15367 echo "$as_me:15367: \$? = $ac_status" >&5
15368 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15370 # The compiler can only warn and ignore the option if not recognized
15371 # So say no if there are warnings
15372 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15373 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15374 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15375 lt_cv_prog_compiler_c_o_CXX=yes
15380 # SGI C++ compiler will create directory out/ii_files/ for
15381 # template instantiation
15382 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15383 $RM out/* && rmdir out
15389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15390 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15395 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15396 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15397 $as_echo_n "(cached) " >&6
15399 lt_cv_prog_compiler_c_o_CXX=no
15400 $RM -r conftest 2>/dev/null
15404 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15406 lt_compiler_flag="-o out/conftest2.$ac_objext"
15407 # Insert the option either (1) after the last *FLAGS variable, or
15408 # (2) before a word containing "conftest.", or (3) at the end.
15409 # Note that $ac_compile itself does not contain backslashes and begins
15410 # with a dollar sign (not a hyphen), so the echo should work correctly.
15411 lt_compile=`echo "$ac_compile" | $SED \
15412 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15413 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15414 -e 's:$: $lt_compiler_flag:'`
15415 (eval echo "\"\$as_me:15415: $lt_compile\"" >&5)
15416 (eval "$lt_compile" 2>out/conftest.err)
15418 cat out/conftest.err >&5
15419 echo "$as_me:15419: \$? = $ac_status" >&5
15420 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15422 # The compiler can only warn and ignore the option if not recognized
15423 # So say no if there are warnings
15424 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15425 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15426 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15427 lt_cv_prog_compiler_c_o_CXX=yes
15432 # SGI C++ compiler will create directory out/ii_files/ for
15433 # template instantiation
15434 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15435 $RM out/* && rmdir out
15441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15442 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15447 hard_links="nottested"
15448 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15449 # do not overwrite the value of need_locks provided by the user
15450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15451 $as_echo_n "checking if we can lock with hard links... " >&6; }
15454 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15456 ln conftest.a conftest.b 2>&5 || hard_links=no
15457 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15459 $as_echo "$hard_links" >&6; }
15460 if test "$hard_links" = no; then
15461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15462 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15472 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15474 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15477 # If we're using GNU nm, then we don't want the "-C" option.
15478 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15479 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15480 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'
15482 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'
15486 export_symbols_cmds_CXX="$ltdll_cmds"
15488 cygwin* | mingw* | cegcc*)
15489 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'
15491 linux* | k*bsd*-gnu)
15492 link_all_deplibs_CXX=no
15495 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15498 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15501 $as_echo "$ld_shlibs_CXX" >&6; }
15502 test "$ld_shlibs_CXX" = no && can_build_shared=no
15504 with_gnu_ld_CXX=$with_gnu_ld
15512 # Do we need to explicitly link libc?
15514 case "x$archive_cmds_need_lc_CXX" in
15516 # Assume -lc should be added
15517 archive_cmds_need_lc_CXX=yes
15519 if test "$enable_shared" = yes && test "$GCC" = yes; then
15520 case $archive_cmds_CXX in
15522 # FIXME: we may have to deal with multi-command sequences.
15525 # Test whether the compiler implicitly links with -lc since on some
15526 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15527 # to ld, don't add -lc before -lgcc.
15528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15529 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15531 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15533 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15534 (eval $ac_compile) 2>&5
15536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15537 test $ac_status = 0; } 2>conftest.err; then
15540 libobjs=conftest.$ac_objext
15542 wl=$lt_prog_compiler_wl_CXX
15543 pic_flag=$lt_prog_compiler_pic_CXX
15549 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15550 allow_undefined_flag_CXX=
15551 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15552 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15555 test $ac_status = 0; }
15557 archive_cmds_need_lc_CXX=no
15559 archive_cmds_need_lc_CXX=yes
15561 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15563 cat conftest.err 1>&5
15566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
15567 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
15637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15638 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15640 library_names_spec=
15641 libname_spec='lib$name'
15645 postuninstall_cmds=
15649 shlibpath_overrides_runpath=unknown
15651 dynamic_linker="$host_os ld.so"
15652 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15653 need_lib_prefix=unknown
15654 hardcode_into_libs=no
15656 # when you set need_version to no, make sure it does not cause -set_version
15657 # flags to be left without arguments
15658 need_version=unknown
15663 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15664 shlibpath_var=LIBPATH
15666 # AIX 3 has no versioning support, so we append a major version to the name.
15667 soname_spec='${libname}${release}${shared_ext}$major'
15674 hardcode_into_libs=yes
15675 if test "$host_cpu" = ia64; then
15676 # AIX 5 supports IA64
15677 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15678 shlibpath_var=LD_LIBRARY_PATH
15680 # With GCC up to 2.95.x, collect2 would create an import file
15681 # for dependence libraries. The import file would start with
15682 # the line `#! .'. This would cause the generated library to
15683 # depend on `.', always an invalid library. This was fixed in
15684 # development snapshots of GCC prior to 3.0.
15686 aix4 | aix4.[01] | aix4.[01].*)
15687 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15689 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15692 can_build_shared=no
15696 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15697 # soname into executable. Probably we can add versioning support to
15698 # collect2, so additional links can be useful in future.
15699 if test "$aix_use_runtimelinking" = yes; then
15700 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15701 # instead of lib<name>.a to let people know that these are not
15702 # typical AIX shared libraries.
15703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15705 # We preserve .a as extension for shared libraries through AIX4.2
15706 # and later when we are not doing run time linking.
15707 library_names_spec='${libname}${release}.a $libname.a'
15708 soname_spec='${libname}${release}${shared_ext}$major'
15710 shlibpath_var=LIBPATH
15717 # Since July 2007 AmigaOS4 officially supports .so libraries.
15718 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15722 library_names_spec='$libname.ixlibrary $libname.a'
15723 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15724 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'
15730 library_names_spec='${libname}${shared_ext}'
15731 dynamic_linker="$host_os ld.so"
15732 shlibpath_var=LIBRARY_PATH
15738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15739 soname_spec='${libname}${release}${shared_ext}$major'
15740 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15741 shlibpath_var=LD_LIBRARY_PATH
15742 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15743 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15744 # the default ld.so.conf also contains /usr/contrib/lib and
15745 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15746 # libtool to hard-code these into programs
15749 cygwin* | mingw* | pw32* | cegcc*)
15750 version_type=windows
15755 case $GCC,$host_os in
15756 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15757 library_names_spec='$libname.dll.a'
15758 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15759 postinstall_cmds='base_file=`basename \${file}`~
15760 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15761 dldir=$destdir/`dirname \$dlpath`~
15762 test -d \$dldir || mkdir -p \$dldir~
15763 $install_prog $dir/$dlname \$dldir/$dlname~
15764 chmod a+x \$dldir/$dlname~
15765 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15766 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15768 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15769 dlpath=$dir/\$dldll~
15771 shlibpath_overrides_runpath=yes
15775 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15776 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15777 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15780 # MinGW DLLs use traditional 'lib' prefix
15781 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15782 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15783 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15784 # It is most probably a Windows format PATH printed by
15785 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15786 # path with ; separators, and with drive letters. We can handle the
15787 # drive letters (cygwin fileutils understands them), so leave them,
15788 # especially as we might pass files found there to a mingw objdump,
15789 # which wouldn't understand a cygwinified path. Ahh.
15790 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15792 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15796 # pw32 DLLs use 'pw' prefix rather than 'lib'
15797 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15803 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15806 dynamic_linker='Win32 ld.exe'
15807 # FIXME: first we should search . and the directory the executable is in
15811 darwin* | rhapsody*)
15812 dynamic_linker="$host_os dyld"
15813 version_type=darwin
15816 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15817 soname_spec='${libname}${release}${major}$shared_ext'
15818 shlibpath_overrides_runpath=yes
15819 shlibpath_var=DYLD_LIBRARY_PATH
15820 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15822 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15830 soname_spec='${libname}${release}${shared_ext}$major'
15831 shlibpath_var=LD_LIBRARY_PATH
15838 freebsd* | dragonfly*)
15839 # DragonFly does not have aout. When/if they implement a new
15840 # versioning mechanism, adjust this.
15841 if test -x /usr/bin/objformat; then
15842 objformat=`/usr/bin/objformat`
15845 freebsd[123]*) objformat=aout ;;
15846 *) objformat=elf ;;
15849 version_type=freebsd-$objformat
15850 case $version_type in
15852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15857 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15861 shlibpath_var=LD_LIBRARY_PATH
15864 shlibpath_overrides_runpath=yes
15866 freebsd3.[01]* | freebsdelf3.[01]*)
15867 shlibpath_overrides_runpath=yes
15868 hardcode_into_libs=yes
15870 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15871 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15872 shlibpath_overrides_runpath=no
15873 hardcode_into_libs=yes
15875 *) # from 4.6 on, and DragonFly
15876 shlibpath_overrides_runpath=yes
15877 hardcode_into_libs=yes
15886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15887 soname_spec='${libname}${release}${shared_ext}$major'
15888 shlibpath_var=LD_LIBRARY_PATH
15889 hardcode_into_libs=yes
15892 hpux9* | hpux10* | hpux11*)
15893 # Give a soname corresponding to the major version so that dld.sl refuses to
15894 # link against other versions.
15901 hardcode_into_libs=yes
15902 dynamic_linker="$host_os dld.so"
15903 shlibpath_var=LD_LIBRARY_PATH
15904 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15906 soname_spec='${libname}${release}${shared_ext}$major'
15907 if test "X$HPUX_IA64_MODE" = X32; then
15908 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15910 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15912 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15916 hardcode_into_libs=yes
15917 dynamic_linker="$host_os dld.sl"
15918 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15919 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15921 soname_spec='${libname}${release}${shared_ext}$major'
15922 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15923 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15927 dynamic_linker="$host_os dld.sl"
15928 shlibpath_var=SHLIB_PATH
15929 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15931 soname_spec='${libname}${release}${shared_ext}$major'
15934 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15935 postinstall_cmds='chmod 555 $lib'
15942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15943 soname_spec='${libname}${release}${shared_ext}$major'
15944 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15945 shlibpath_var=LD_LIBRARY_PATH
15946 shlibpath_overrides_runpath=no
15947 hardcode_into_libs=yes
15950 irix5* | irix6* | nonstopux*)
15952 nonstopux*) version_type=nonstopux ;;
15954 if test "$lt_cv_prog_gnu_ld" = yes; then
15962 soname_spec='${libname}${release}${shared_ext}$major'
15963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15965 irix5* | nonstopux*)
15966 libsuff= shlibsuff=
15969 case $LD in # libtool.m4 will add one of these switches to LD
15970 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15971 libsuff= shlibsuff= libmagic=32-bit;;
15972 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15973 libsuff=32 shlibsuff=N32 libmagic=N32;;
15974 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15975 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15976 *) libsuff= shlibsuff= libmagic=never-match;;
15980 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15981 shlibpath_overrides_runpath=no
15982 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15983 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15984 hardcode_into_libs=yes
15987 # No shared lib support for Linux oldld, aout, or coff.
15988 linux*oldld* | linux*aout* | linux*coff*)
15992 # This must be Linux ELF.
15993 linux* | k*bsd*-gnu)
15997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15998 soname_spec='${libname}${release}${shared_ext}$major'
15999 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16000 shlibpath_var=LD_LIBRARY_PATH
16001 shlibpath_overrides_runpath=no
16002 # Some binutils ld are patched to set DT_RUNPATH
16003 save_LDFLAGS=$LDFLAGS
16004 save_libdir=$libdir
16005 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16006 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16008 /* end confdefs.h. */
16018 if ac_fn_cxx_try_link "$LINENO"; then :
16019 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16020 shlibpath_overrides_runpath=yes
16023 rm -f core conftest.err conftest.$ac_objext \
16024 conftest$ac_exeext conftest.$ac_ext
16025 LDFLAGS=$save_LDFLAGS
16026 libdir=$save_libdir
16028 # This implies no fast_install, which is unacceptable.
16029 # Some rework will be needed to allow for fast_install
16030 # before this can be enabled.
16031 hardcode_into_libs=yes
16033 # Append ld.so.conf contents to the search path
16034 if test -f /etc/ld.so.conf; then
16035 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' ' '`
16036 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16039 # We used to test for /lib/ld.so.1 and disable shared libraries on
16040 # powerpc, because MkLinux only supported shared libraries with the
16041 # GNU dynamic linker. Since this was broken with cross compilers,
16042 # most powerpc-linux boxes support dynamic linking these days and
16043 # people can always --disable-shared, the test was removed, and we
16044 # assume the GNU/Linux dynamic linker is in use.
16045 dynamic_linker='GNU/Linux ld.so'
16052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16053 soname_spec='${libname}${release}${shared_ext}$major'
16054 shlibpath_var=LD_LIBRARY_PATH
16055 shlibpath_overrides_runpath=no
16056 hardcode_into_libs=yes
16057 dynamic_linker='NetBSD ld.elf_so'
16064 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16066 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16067 dynamic_linker='NetBSD (a.out) ld.so'
16069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16070 soname_spec='${libname}${release}${shared_ext}$major'
16071 dynamic_linker='NetBSD ld.elf_so'
16073 shlibpath_var=LD_LIBRARY_PATH
16074 shlibpath_overrides_runpath=yes
16075 hardcode_into_libs=yes
16080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16081 shlibpath_var=LD_LIBRARY_PATH
16082 shlibpath_overrides_runpath=yes
16089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16090 soname_spec='${libname}${release}${shared_ext}$major'
16091 shlibpath_var=LD_LIBRARY_PATH
16092 shlibpath_overrides_runpath=no
16093 hardcode_into_libs=yes
16094 dynamic_linker='ldqnx.so'
16099 sys_lib_dlsearch_path_spec="/usr/lib"
16101 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16103 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16104 *) need_version=no ;;
16106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16107 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16108 shlibpath_var=LD_LIBRARY_PATH
16109 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16111 openbsd2.[89] | openbsd2.[89].*)
16112 shlibpath_overrides_runpath=no
16115 shlibpath_overrides_runpath=yes
16119 shlibpath_overrides_runpath=yes
16124 libname_spec='$name'
16127 library_names_spec='$libname${shared_ext} $libname.a'
16128 dynamic_linker='OS/2 ld.exe'
16129 shlibpath_var=LIBPATH
16132 osf3* | osf4* | osf5*)
16136 soname_spec='${libname}${release}${shared_ext}$major'
16137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16138 shlibpath_var=LD_LIBRARY_PATH
16139 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16140 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16152 soname_spec='${libname}${release}${shared_ext}$major'
16153 shlibpath_var=LD_LIBRARY_PATH
16154 shlibpath_overrides_runpath=yes
16155 hardcode_into_libs=yes
16156 # ldd complains unless libraries are executable
16157 postinstall_cmds='chmod +x $lib'
16162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16163 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16164 shlibpath_var=LD_LIBRARY_PATH
16165 shlibpath_overrides_runpath=yes
16166 if test "$with_gnu_ld" = yes; then
16174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16175 soname_spec='${libname}${release}${shared_ext}$major'
16176 shlibpath_var=LD_LIBRARY_PATH
16177 case $host_vendor in
16179 shlibpath_overrides_runpath=no
16181 runpath_var=LD_RUN_PATH
16189 shlibpath_overrides_runpath=no
16190 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16196 if test -d /usr/nec ;then
16198 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16199 soname_spec='$libname${shared_ext}.$major'
16200 shlibpath_var=LD_LIBRARY_PATH
16204 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16205 version_type=freebsd-elf
16208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16209 soname_spec='${libname}${release}${shared_ext}$major'
16210 shlibpath_var=LD_LIBRARY_PATH
16211 shlibpath_overrides_runpath=yes
16212 hardcode_into_libs=yes
16213 if test "$with_gnu_ld" = yes; then
16214 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16216 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16219 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16223 sys_lib_dlsearch_path_spec='/usr/lib'
16227 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16232 shlibpath_var=LD_LIBRARY_PATH
16233 shlibpath_overrides_runpath=no
16234 hardcode_into_libs=yes
16239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16240 soname_spec='${libname}${release}${shared_ext}$major'
16241 shlibpath_var=LD_LIBRARY_PATH
16248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16249 $as_echo "$dynamic_linker" >&6; }
16250 test "$dynamic_linker" = no && can_build_shared=no
16252 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16253 if test "$GCC" = yes; then
16254 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16257 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16258 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16260 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16261 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16300 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16301 hardcode_action_CXX=
16302 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16303 test -n "$runpath_var_CXX" ||
16304 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16306 # We can hardcode non-existent directories.
16307 if test "$hardcode_direct_CXX" != no &&
16308 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16309 # have to relink, otherwise we might link with an installed library
16310 # when we should be linking with a yet-to-be-installed one
16311 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16312 test "$hardcode_minus_L_CXX" != no; then
16313 # Linking always hardcodes the temporary library directory.
16314 hardcode_action_CXX=relink
16316 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16317 hardcode_action_CXX=immediate
16320 # We cannot hardcode anything, or else we can only hardcode existing
16322 hardcode_action_CXX=unsupported
16324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16325 $as_echo "$hardcode_action_CXX" >&6; }
16327 if test "$hardcode_action_CXX" = relink ||
16328 test "$inherit_rpath_CXX" = yes; then
16329 # Fast installation is not supported
16330 enable_fast_install=no
16331 elif test "$shlibpath_overrides_runpath" = yes ||
16332 test "$enable_shared" = no; then
16333 # Fast installation is not necessary
16334 enable_fast_install=needless
16343 fi # test -n "$compiler"
16349 with_gnu_ld=$lt_save_with_gnu_ld
16350 lt_cv_path_LDCXX=$lt_cv_path_LD
16351 lt_cv_path_LD=$lt_save_path_LD
16352 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16353 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16354 fi # test "$_lt_caught_CXX_error" != yes
16357 ac_cpp='$CPP $CPPFLAGS'
16358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16364 ac_cpp='$CPP $CPPFLAGS'
16365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16368 if test -n "$ac_tool_prefix"; then
16369 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
16370 set dummy ${ac_tool_prefix}gcc; ac_word=$2
16371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16372 $as_echo_n "checking for $ac_word... " >&6; }
16373 if test "${ac_cv_prog_CC+set}" = set; then :
16374 $as_echo_n "(cached) " >&6
16376 if test -n "$CC"; then
16377 ac_cv_prog_CC="$CC" # Let the user override the test.
16379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16380 for as_dir in $PATH
16383 test -z "$as_dir" && as_dir=.
16384 for ac_exec_ext in '' $ac_executable_extensions; do
16385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16386 ac_cv_prog_CC="${ac_tool_prefix}gcc"
16387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16397 if test -n "$CC"; then
16398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
16399 $as_echo "$CC" >&6; }
16401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16402 $as_echo "no" >&6; }
16407 if test -z "$ac_cv_prog_CC"; then
16409 # Extract the first word of "gcc", so it can be a program name with args.
16410 set dummy gcc; ac_word=$2
16411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16412 $as_echo_n "checking for $ac_word... " >&6; }
16413 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
16414 $as_echo_n "(cached) " >&6
16416 if test -n "$ac_ct_CC"; then
16417 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
16419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16420 for as_dir in $PATH
16423 test -z "$as_dir" && as_dir=.
16424 for ac_exec_ext in '' $ac_executable_extensions; do
16425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16426 ac_cv_prog_ac_ct_CC="gcc"
16427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16436 ac_ct_CC=$ac_cv_prog_ac_ct_CC
16437 if test -n "$ac_ct_CC"; then
16438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
16439 $as_echo "$ac_ct_CC" >&6; }
16441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16442 $as_echo "no" >&6; }
16445 if test "x$ac_ct_CC" = x; then
16448 case $cross_compiling:$ac_tool_warned in
16450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16451 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16452 ac_tool_warned=yes ;;
16457 CC="$ac_cv_prog_CC"
16460 if test -z "$CC"; then
16461 if test -n "$ac_tool_prefix"; then
16462 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
16463 set dummy ${ac_tool_prefix}cc; ac_word=$2
16464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16465 $as_echo_n "checking for $ac_word... " >&6; }
16466 if test "${ac_cv_prog_CC+set}" = set; then :
16467 $as_echo_n "(cached) " >&6
16469 if test -n "$CC"; then
16470 ac_cv_prog_CC="$CC" # Let the user override the test.
16472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16473 for as_dir in $PATH
16476 test -z "$as_dir" && as_dir=.
16477 for ac_exec_ext in '' $ac_executable_extensions; do
16478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16479 ac_cv_prog_CC="${ac_tool_prefix}cc"
16480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16490 if test -n "$CC"; then
16491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
16492 $as_echo "$CC" >&6; }
16494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16495 $as_echo "no" >&6; }
16501 if test -z "$CC"; then
16502 # Extract the first word of "cc", so it can be a program name with args.
16503 set dummy cc; ac_word=$2
16504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16505 $as_echo_n "checking for $ac_word... " >&6; }
16506 if test "${ac_cv_prog_CC+set}" = set; then :
16507 $as_echo_n "(cached) " >&6
16509 if test -n "$CC"; then
16510 ac_cv_prog_CC="$CC" # Let the user override the test.
16512 ac_prog_rejected=no
16513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16514 for as_dir in $PATH
16517 test -z "$as_dir" && as_dir=.
16518 for ac_exec_ext in '' $ac_executable_extensions; do
16519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16520 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
16521 ac_prog_rejected=yes
16525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16532 if test $ac_prog_rejected = yes; then
16533 # We found a bogon in the path, so make sure we never use it.
16534 set dummy $ac_cv_prog_CC
16536 if test $# != 0; then
16537 # We chose a different compiler from the bogus one.
16538 # However, it has the same basename, so the bogon will be chosen
16539 # first if we set CC to just the basename; use the full file name.
16541 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
16547 if test -n "$CC"; then
16548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
16549 $as_echo "$CC" >&6; }
16551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16552 $as_echo "no" >&6; }
16557 if test -z "$CC"; then
16558 if test -n "$ac_tool_prefix"; then
16559 for ac_prog in cl.exe
16561 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16562 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16564 $as_echo_n "checking for $ac_word... " >&6; }
16565 if test "${ac_cv_prog_CC+set}" = set; then :
16566 $as_echo_n "(cached) " >&6
16568 if test -n "$CC"; then
16569 ac_cv_prog_CC="$CC" # Let the user override the test.
16571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16572 for as_dir in $PATH
16575 test -z "$as_dir" && as_dir=.
16576 for ac_exec_ext in '' $ac_executable_extensions; do
16577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16578 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
16579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16589 if test -n "$CC"; then
16590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
16591 $as_echo "$CC" >&6; }
16593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16594 $as_echo "no" >&6; }
16598 test -n "$CC" && break
16601 if test -z "$CC"; then
16603 for ac_prog in cl.exe
16605 # Extract the first word of "$ac_prog", so it can be a program name with args.
16606 set dummy $ac_prog; ac_word=$2
16607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16608 $as_echo_n "checking for $ac_word... " >&6; }
16609 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
16610 $as_echo_n "(cached) " >&6
16612 if test -n "$ac_ct_CC"; then
16613 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
16615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16616 for as_dir in $PATH
16619 test -z "$as_dir" && as_dir=.
16620 for ac_exec_ext in '' $ac_executable_extensions; do
16621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16622 ac_cv_prog_ac_ct_CC="$ac_prog"
16623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16632 ac_ct_CC=$ac_cv_prog_ac_ct_CC
16633 if test -n "$ac_ct_CC"; then
16634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
16635 $as_echo "$ac_ct_CC" >&6; }
16637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16638 $as_echo "no" >&6; }
16642 test -n "$ac_ct_CC" && break
16645 if test "x$ac_ct_CC" = x; then
16648 case $cross_compiling:$ac_tool_warned in
16650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16651 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16652 ac_tool_warned=yes ;;
16661 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16662 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16663 as_fn_error "no acceptable C compiler found in \$PATH
16664 See \`config.log' for more details." "$LINENO" 5; }
16666 # Provide some information about the compiler.
16667 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
16670 for ac_option in --version -v -V -qversion; do
16671 { { ac_try="$ac_compiler $ac_option >&5"
16672 case "(($ac_try" in
16673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16674 *) ac_try_echo=$ac_try;;
16676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16677 $as_echo "$ac_try_echo"; } >&5
16678 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
16680 if test -s conftest.err; then
16682 ... rest of stderr output deleted ...
16683 10q' conftest.err >conftest.er1
16684 cat conftest.er1 >&5
16685 rm -f conftest.er1 conftest.err
16687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16688 test $ac_status = 0; }
16691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
16692 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
16693 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
16694 $as_echo_n "(cached) " >&6
16696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16697 /* end confdefs.h. */
16710 if ac_fn_c_try_compile "$LINENO"; then :
16711 ac_compiler_gnu=yes
16715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16716 ac_cv_c_compiler_gnu=$ac_compiler_gnu
16719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
16720 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
16721 if test $ac_compiler_gnu = yes; then
16726 ac_test_CFLAGS=${CFLAGS+set}
16727 ac_save_CFLAGS=$CFLAGS
16728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
16729 $as_echo_n "checking whether $CC accepts -g... " >&6; }
16730 if test "${ac_cv_prog_cc_g+set}" = set; then :
16731 $as_echo_n "(cached) " >&6
16733 ac_save_c_werror_flag=$ac_c_werror_flag
16734 ac_c_werror_flag=yes
16737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16738 /* end confdefs.h. */
16748 if ac_fn_c_try_compile "$LINENO"; then :
16749 ac_cv_prog_cc_g=yes
16752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16753 /* end confdefs.h. */
16763 if ac_fn_c_try_compile "$LINENO"; then :
16766 ac_c_werror_flag=$ac_save_c_werror_flag
16768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16769 /* end confdefs.h. */
16779 if ac_fn_c_try_compile "$LINENO"; then :
16780 ac_cv_prog_cc_g=yes
16782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16787 ac_c_werror_flag=$ac_save_c_werror_flag
16789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
16790 $as_echo "$ac_cv_prog_cc_g" >&6; }
16791 if test "$ac_test_CFLAGS" = set; then
16792 CFLAGS=$ac_save_CFLAGS
16793 elif test $ac_cv_prog_cc_g = yes; then
16794 if test "$GCC" = yes; then
16800 if test "$GCC" = yes; then
16806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
16807 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
16808 if test "${ac_cv_prog_cc_c89+set}" = set; then :
16809 $as_echo_n "(cached) " >&6
16811 ac_cv_prog_cc_c89=no
16813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16814 /* end confdefs.h. */
16815 #include <stdarg.h>
16817 #include <sys/types.h>
16818 #include <sys/stat.h>
16819 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
16820 struct buf { int x; };
16821 FILE * (*rcsopen) (struct buf *, struct stat *, int);
16822 static char *e (p, i)
16828 static char *f (char * (*g) (char **, int), char **p, ...)
16833 s = g (p, va_arg (v,int));
16838 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
16839 function prototypes and stuff, but not '\xHH' hex character constants.
16840 These don't provoke an error unfortunately, instead are silently treated
16841 as 'x'. The following induces an error, until -std is added to get
16842 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
16843 array size at least. It's necessary to write '\x00'==0 to get something
16844 that's true only with -std. */
16845 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
16847 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
16848 inside strings and character constants. */
16850 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
16852 int test (int i, double x);
16853 struct s1 {int (*f) (int a);};
16854 struct s2 {int (*f) (double a);};
16855 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
16861 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
16866 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
16867 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
16869 CC="$ac_save_CC $ac_arg"
16870 if ac_fn_c_try_compile "$LINENO"; then :
16871 ac_cv_prog_cc_c89=$ac_arg
16873 rm -f core conftest.err conftest.$ac_objext
16874 test "x$ac_cv_prog_cc_c89" != "xno" && break
16876 rm -f conftest.$ac_ext
16881 case "x$ac_cv_prog_cc_c89" in
16883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
16884 $as_echo "none needed" >&6; } ;;
16886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
16887 $as_echo "unsupported" >&6; } ;;
16889 CC="$CC $ac_cv_prog_cc_c89"
16890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
16891 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
16893 if test "x$ac_cv_prog_cc_c89" != xno; then :
16898 ac_cpp='$CPP $CPPFLAGS'
16899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16903 depcc="$CC" am_compiler_list=
16905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
16906 $as_echo_n "checking dependency style of $depcc... " >&6; }
16907 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
16908 $as_echo_n "(cached) " >&6
16910 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16911 # We make a subdir and do the tests there. Otherwise we can end up
16912 # making bogus files that we don't know about and never remove. For
16913 # instance it was reported that on HP-UX the gcc test will end up
16914 # making a dummy file named `D' -- because `-MD' means `put the output
16917 # Copy depcomp to subdir because otherwise we won't find it if we're
16918 # using a relative directory.
16919 cp "$am_depcomp" conftest.dir
16921 # We will build objects and dependencies in a subdirectory because
16922 # it helps to detect inapplicable dependency modes. For instance
16923 # both Tru64's cc and ICC support -MD to output dependencies as a
16924 # side effect of compilation, but ICC will put the dependencies in
16925 # the current directory while Tru64 will put them in the object
16929 am_cv_CC_dependencies_compiler_type=none
16930 if test "$am_compiler_list" = ""; then
16931 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16933 am__universal=false
16934 case " $depcc " in #(
16935 *\ -arch\ *\ -arch\ *) am__universal=true ;;
16938 for depmode in $am_compiler_list; do
16939 # Setup a source with many dependencies, because some compilers
16940 # like to wrap large dependency lists on column 80 (with \), and
16941 # we should not choose a depcomp mode which is confused by this.
16943 # We need to recreate these files for each test, as the compiler may
16944 # overwrite some of them when testing with obscure command lines.
16945 # This happens at least with the AIX C compiler.
16947 for i in 1 2 3 4 5 6; do
16948 echo '#include "conftst'$i'.h"' >> sub/conftest.c
16949 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
16950 # Solaris 8's {/usr,}/bin/sh.
16951 touch sub/conftst$i.h
16953 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16955 # We check with `-c' and `-o' for the sake of the "dashmstdout"
16956 # mode. It turns out that the SunPro C++ compiler does not properly
16957 # handle `-M -o', and we need to detect this. Also, some Intel
16958 # versions had trouble with output in subdirs
16959 am__obj=sub/conftest.${OBJEXT-o}
16960 am__minus_obj="-o $am__obj"
16963 # This depmode causes a compiler race in universal mode.
16964 test "$am__universal" = false || continue
16967 # after this tag, mechanisms are not by side-effect, so they'll
16968 # only be used when explicitly requested
16969 if test "x$enable_dependency_tracking" = xyes; then
16975 msvisualcpp | msvcmsys)
16976 # This compiler won't grok `-c -o', but also, the minuso test has
16977 # not run yet. These depmodes are late enough in the game, and
16978 # so weak that their functioning should not be impacted.
16979 am__obj=conftest.${OBJEXT-o}
16984 if depmode=$depmode \
16985 source=sub/conftest.c object=$am__obj \
16986 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16987 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
16988 >/dev/null 2>conftest.err &&
16989 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
16990 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16991 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
16992 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16993 # icc doesn't choke on unknown options, it will just issue warnings
16994 # or remarks (even with -Werror). So we grep stderr for any message
16995 # that says an option was ignored or not supported.
16996 # When given -MP, icc 7.0 and 7.1 complain thusly:
16997 # icc: Command line warning: ignoring option '-M'; no argument required
16998 # The diagnosis changed in icc 8.0:
16999 # icc: Command line remark: option '-MP' not supported
17000 if (grep 'ignoring option' conftest.err ||
17001 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
17002 am_cv_CC_dependencies_compiler_type=$depmode
17009 rm -rf conftest.dir
17011 am_cv_CC_dependencies_compiler_type=none
17015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
17016 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
17017 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
17020 test "x$enable_dependency_tracking" != xno \
17021 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
17022 am__fastdepCC_TRUE=
17023 am__fastdepCC_FALSE='#'
17025 am__fastdepCC_TRUE='#'
17026 am__fastdepCC_FALSE=
17031 ac_cpp='$CXXCPP $CPPFLAGS'
17032 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17033 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17034 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17038 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17039 if test "${ac_cv_c_const+set}" = set; then :
17040 $as_echo_n "(cached) " >&6
17042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17043 /* end confdefs.h. */
17048 /* FIXME: Include the comments suggested by Paul. */
17049 #ifndef __cplusplus
17050 /* Ultrix mips cc rejects this. */
17051 typedef int charset[2];
17053 /* SunOS 4.1.1 cc rejects this. */
17054 char const *const *pcpcc;
17056 /* NEC SVR4.0.2 mips cc rejects this. */
17057 struct point {int x, y;};
17058 static struct point const zero = {0,0};
17059 /* AIX XL C 1.02.0.0 rejects this.
17060 It does not let you subtract one const X* pointer from another in
17061 an arm of an if-expression whose if-part is not a constant
17063 const char *g = "string";
17064 pcpcc = &g + (g ? g-g : 0);
17065 /* HPUX 7.0 cc rejects these. */
17067 ppc = (char**) pcpcc;
17068 pcpcc = (char const *const *) ppc;
17069 { /* SCO 3.2v4 cc rejects this. */
17071 char const *s = 0 ? (char *) 0 : (char const *) 0;
17076 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17077 int x[] = {25, 17};
17078 const int *foo = &x[0];
17081 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17082 typedef const int *iptr;
17086 { /* AIX XL C 1.02.0.0 rejects this saying
17087 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17088 struct s { int j; const int *ap[3]; };
17089 struct s *b; b->j = 5;
17091 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17092 const int foo = 10;
17093 if (!foo) return 0;
17095 return !cs[0] && !zero.x;
17102 if ac_fn_cxx_try_compile "$LINENO"; then :
17107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
17110 $as_echo "$ac_cv_c_const" >&6; }
17111 if test $ac_cv_c_const = no; then
17113 $as_echo "#define const /**/" >>confdefs.h
17117 ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17118 if test "x$ac_cv_type_size_t" = x""yes; then :
17122 cat >>confdefs.h <<_ACEOF
17123 #define size_t unsigned int
17141 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
17142 if test -n "$ac_tool_prefix"; then
17143 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
17144 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
17145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17146 $as_echo_n "checking for $ac_word... " >&6; }
17147 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
17148 $as_echo_n "(cached) " >&6
17150 case $PKG_CONFIG in
17152 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17156 for as_dir in $PATH
17159 test -z "$as_dir" && as_dir=.
17160 for ac_exec_ext in '' $ac_executable_extensions; do
17161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17162 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17173 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17174 if test -n "$PKG_CONFIG"; then
17175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17176 $as_echo "$PKG_CONFIG" >&6; }
17178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17179 $as_echo "no" >&6; }
17184 if test -z "$ac_cv_path_PKG_CONFIG"; then
17185 ac_pt_PKG_CONFIG=$PKG_CONFIG
17186 # Extract the first word of "pkg-config", so it can be a program name with args.
17187 set dummy pkg-config; ac_word=$2
17188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17189 $as_echo_n "checking for $ac_word... " >&6; }
17190 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
17191 $as_echo_n "(cached) " >&6
17193 case $ac_pt_PKG_CONFIG in
17195 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
17198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17199 for as_dir in $PATH
17202 test -z "$as_dir" && as_dir=.
17203 for ac_exec_ext in '' $ac_executable_extensions; do
17204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17205 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17216 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
17217 if test -n "$ac_pt_PKG_CONFIG"; then
17218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
17219 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
17221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17222 $as_echo "no" >&6; }
17225 if test "x$ac_pt_PKG_CONFIG" = x; then
17228 case $cross_compiling:$ac_tool_warned in
17230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17231 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17232 ac_tool_warned=yes ;;
17234 PKG_CONFIG=$ac_pt_PKG_CONFIG
17237 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
17241 if test -n "$PKG_CONFIG"; then
17242 _pkg_min_version=0.9.0
17243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
17244 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
17245 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
17246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17247 $as_echo "yes" >&6; }
17249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17250 $as_echo "no" >&6; }
17257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIO" >&5
17258 $as_echo_n "checking for GIO... " >&6; }
17260 if test -n "$PKG_CONFIG"; then
17261 if test -n "$GIO_CFLAGS"; then
17262 pkg_cv_GIO_CFLAGS="$GIO_CFLAGS"
17264 if test -n "$PKG_CONFIG" && \
17265 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
17268 ($PKG_CONFIG --exists --print-errors "
17272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17273 test $ac_status = 0; }; then
17274 pkg_cv_GIO_CFLAGS=`$PKG_CONFIG --cflags "
17284 if test -n "$PKG_CONFIG"; then
17285 if test -n "$GIO_LIBS"; then
17286 pkg_cv_GIO_LIBS="$GIO_LIBS"
17288 if test -n "$PKG_CONFIG" && \
17289 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
17292 ($PKG_CONFIG --exists --print-errors "
17296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17297 test $ac_status = 0; }; then
17298 pkg_cv_GIO_LIBS=`$PKG_CONFIG --libs "
17311 if test $pkg_failed = yes; then
17313 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17314 _pkg_short_errors_supported=yes
17316 _pkg_short_errors_supported=no
17318 if test $_pkg_short_errors_supported = yes; then
17319 GIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "
17323 GIO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "
17327 # Put the nasty error message in config.log where it belongs
17328 echo "$GIO_PKG_ERRORS" >&5
17330 as_fn_error "Package requirements (
17336 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17337 installed software in a non-standard prefix.
17339 Alternatively, you may set the environment variables GIO_CFLAGS
17340 and GIO_LIBS to avoid the need to call pkg-config.
17341 See the pkg-config man page for more details.
17343 elif test $pkg_failed = untried; then
17344 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17345 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17346 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
17347 is in your PATH or set the PKG_CONFIG environment variable to the full
17348 path to pkg-config.
17350 Alternatively, you may set the environment variables GIO_CFLAGS
17351 and GIO_LIBS to avoid the need to call pkg-config.
17352 See the pkg-config man page for more details.
17354 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17355 See \`config.log' for more details." "$LINENO" 5; }
17357 GIO_CFLAGS=$pkg_cv_GIO_CFLAGS
17358 GIO_LIBS=$pkg_cv_GIO_LIBS
17359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17360 $as_echo "yes" >&6; }
17367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SCIM" >&5
17368 $as_echo_n "checking for SCIM... " >&6; }
17370 if test -n "$PKG_CONFIG"; then
17371 if test -n "$SCIM_CFLAGS"; then
17372 pkg_cv_SCIM_CFLAGS="$SCIM_CFLAGS"
17374 if test -n "$PKG_CONFIG" && \
17375 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"scim >= \$SCIM_VERSION\""; } >&5
17376 ($PKG_CONFIG --exists --print-errors "scim >= $SCIM_VERSION") 2>&5
17378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17379 test $ac_status = 0; }; then
17380 pkg_cv_SCIM_CFLAGS=`$PKG_CONFIG --cflags "scim >= $SCIM_VERSION" 2>/dev/null`
17388 if test -n "$PKG_CONFIG"; then
17389 if test -n "$SCIM_LIBS"; then
17390 pkg_cv_SCIM_LIBS="$SCIM_LIBS"
17392 if test -n "$PKG_CONFIG" && \
17393 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"scim >= \$SCIM_VERSION\""; } >&5
17394 ($PKG_CONFIG --exists --print-errors "scim >= $SCIM_VERSION") 2>&5
17396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17397 test $ac_status = 0; }; then
17398 pkg_cv_SCIM_LIBS=`$PKG_CONFIG --libs "scim >= $SCIM_VERSION" 2>/dev/null`
17409 if test $pkg_failed = yes; then
17411 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17412 _pkg_short_errors_supported=yes
17414 _pkg_short_errors_supported=no
17416 if test $_pkg_short_errors_supported = yes; then
17417 SCIM_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "scim >= $SCIM_VERSION"`
17419 SCIM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "scim >= $SCIM_VERSION"`
17421 # Put the nasty error message in config.log where it belongs
17422 echo "$SCIM_PKG_ERRORS" >&5
17424 as_fn_error "Package requirements (scim >= $SCIM_VERSION) were not met:
17428 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17429 installed software in a non-standard prefix.
17431 Alternatively, you may set the environment variables SCIM_CFLAGS
17432 and SCIM_LIBS to avoid the need to call pkg-config.
17433 See the pkg-config man page for more details.
17435 elif test $pkg_failed = untried; then
17436 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17437 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17438 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
17439 is in your PATH or set the PKG_CONFIG environment variable to the full
17440 path to pkg-config.
17442 Alternatively, you may set the environment variables SCIM_CFLAGS
17443 and SCIM_LIBS to avoid the need to call pkg-config.
17444 See the pkg-config man page for more details.
17446 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17447 See \`config.log' for more details." "$LINENO" 5; }
17449 SCIM_CFLAGS=$pkg_cv_SCIM_CFLAGS
17450 SCIM_LIBS=$pkg_cv_SCIM_LIBS
17451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17452 $as_echo "yes" >&6; }
17459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SCIM_GTKUTILS" >&5
17460 $as_echo_n "checking for SCIM_GTKUTILS... " >&6; }
17462 if test -n "$PKG_CONFIG"; then
17463 if test -n "$SCIM_GTKUTILS_CFLAGS"; then
17464 pkg_cv_SCIM_GTKUTILS_CFLAGS="$SCIM_GTKUTILS_CFLAGS"
17466 if test -n "$PKG_CONFIG" && \
17467 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"scim-gtkutils >= \$SCIM_VERSION\""; } >&5
17468 ($PKG_CONFIG --exists --print-errors "scim-gtkutils >= $SCIM_VERSION") 2>&5
17470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17471 test $ac_status = 0; }; then
17472 pkg_cv_SCIM_GTKUTILS_CFLAGS=`$PKG_CONFIG --cflags "scim-gtkutils >= $SCIM_VERSION" 2>/dev/null`
17480 if test -n "$PKG_CONFIG"; then
17481 if test -n "$SCIM_GTKUTILS_LIBS"; then
17482 pkg_cv_SCIM_GTKUTILS_LIBS="$SCIM_GTKUTILS_LIBS"
17484 if test -n "$PKG_CONFIG" && \
17485 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"scim-gtkutils >= \$SCIM_VERSION\""; } >&5
17486 ($PKG_CONFIG --exists --print-errors "scim-gtkutils >= $SCIM_VERSION") 2>&5
17488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17489 test $ac_status = 0; }; then
17490 pkg_cv_SCIM_GTKUTILS_LIBS=`$PKG_CONFIG --libs "scim-gtkutils >= $SCIM_VERSION" 2>/dev/null`
17501 if test $pkg_failed = yes; then
17503 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17504 _pkg_short_errors_supported=yes
17506 _pkg_short_errors_supported=no
17508 if test $_pkg_short_errors_supported = yes; then
17509 SCIM_GTKUTILS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "scim-gtkutils >= $SCIM_VERSION"`
17511 SCIM_GTKUTILS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "scim-gtkutils >= $SCIM_VERSION"`
17513 # Put the nasty error message in config.log where it belongs
17514 echo "$SCIM_GTKUTILS_PKG_ERRORS" >&5
17516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17517 $as_echo "no" >&6; }
17518 SCIM_HAS_GTKUTILS=no
17519 elif test $pkg_failed = untried; then
17520 SCIM_HAS_GTKUTILS=no
17522 SCIM_GTKUTILS_CFLAGS=$pkg_cv_SCIM_GTKUTILS_CFLAGS
17523 SCIM_GTKUTILS_LIBS=$pkg_cv_SCIM_GTKUTILS_LIBS
17524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17525 $as_echo "yes" >&6; }
17526 SCIM_HAS_GTKUTILS=yes
17530 if test "$SCIM_HAS_GTKUTILS" = "yes"; then
17536 if test "$SCIM_HAS_GTKUTILS" = "yes"; then
17537 SCIM_BUILD_SETUP_TRUE=
17538 SCIM_BUILD_SETUP_FALSE='#'
17540 SCIM_BUILD_SETUP_TRUE='#'
17541 SCIM_BUILD_SETUP_FALSE=
17547 # Checks for header files.
17549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
17550 $as_echo_n "checking for ANSI C header files... " >&6; }
17551 if test "${ac_cv_header_stdc+set}" = set; then :
17552 $as_echo_n "(cached) " >&6
17554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17555 /* end confdefs.h. */
17556 #include <stdlib.h>
17557 #include <stdarg.h>
17558 #include <string.h>
17569 if ac_fn_cxx_try_compile "$LINENO"; then :
17570 ac_cv_header_stdc=yes
17572 ac_cv_header_stdc=no
17574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17576 if test $ac_cv_header_stdc = yes; then
17577 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
17578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17579 /* end confdefs.h. */
17580 #include <string.h>
17583 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17584 $EGREP "memchr" >/dev/null 2>&1; then :
17587 ac_cv_header_stdc=no
17593 if test $ac_cv_header_stdc = yes; then
17594 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
17595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17596 /* end confdefs.h. */
17597 #include <stdlib.h>
17600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17601 $EGREP "free" >/dev/null 2>&1; then :
17604 ac_cv_header_stdc=no
17610 if test $ac_cv_header_stdc = yes; then
17611 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
17612 if test "$cross_compiling" = yes; then :
17615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17616 /* end confdefs.h. */
17618 #include <stdlib.h>
17619 #if ((' ' & 0x0FF) == 0x020)
17620 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
17621 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
17623 # define ISLOWER(c) \
17624 (('a' <= (c) && (c) <= 'i') \
17625 || ('j' <= (c) && (c) <= 'r') \
17626 || ('s' <= (c) && (c) <= 'z'))
17627 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
17630 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
17635 for (i = 0; i < 256; i++)
17636 if (XOR (islower (i), ISLOWER (i))
17637 || toupper (i) != TOUPPER (i))
17642 if ac_fn_cxx_try_run "$LINENO"; then :
17645 ac_cv_header_stdc=no
17647 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17648 conftest.$ac_objext conftest.beam conftest.$ac_ext
17653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
17654 $as_echo "$ac_cv_header_stdc" >&6; }
17655 if test $ac_cv_header_stdc = yes; then
17657 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
17662 # Checks for library functions.
17665 # libtool option to control which symbols are exported
17666 # right now, symbols starting with _ are not exported
17667 LIBTOOL_EXPORT_OPTIONS='-export-symbols-regex "^[^_].*"'
17671 newprefix=`$PKG_CONFIG --variable=prefix scim`
17672 if test "x$newprefix" != "x"; then
17676 SCIM_ICONDIR=`$PKG_CONFIG --variable=icondir scim`
17677 SCIM_MODULEDIR=`$PKG_CONFIG --variable=moduledir scim`
17679 if test "x$SCIM_ICONDIR" = "x"; then
17680 SCIM_ICONDIR=${datadir}/scim/icons
17684 if test "x$SCIM_MODULEDIR" = "x"; then
17685 SCIM_MODULEDIR=${libdir}/scim-1.0
17689 ac_config_files="$ac_config_files Makefile scim-unikey.spec src/Makefile ukengine/Makefile icon/Makefile po/Makefile.in setup/Makefile"
17691 cat >confcache <<\_ACEOF
17692 # This file is a shell script that caches the results of configure
17693 # tests run on this system so they can be shared between configure
17694 # scripts and configure runs, see configure's option --config-cache.
17695 # It is not useful on other systems. If it contains results you don't
17696 # want to keep, you may remove or edit it.
17698 # config.status only pays attention to the cache file if you give it
17699 # the --recheck option to rerun configure.
17701 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17702 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17703 # following values.
17707 # The following way of writing the cache mishandles newlines in values,
17708 # but we know of no workaround that is simple, portable, and efficient.
17709 # So, we kill variables containing newlines.
17710 # Ultrix sh set writes to stderr and can't be redirected directly,
17711 # and sets the high bit in the cache file unless we assign to the vars.
17713 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17714 eval ac_val=\$$ac_var
17718 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17719 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17722 _ | IFS | as_nl) ;; #(
17723 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17724 *) { eval $ac_var=; unset $ac_var;} ;;
17730 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17731 *${as_nl}ac_space=\ *)
17732 # `set' does not quote correctly, so add quotes: double-quote
17733 # substitution turns \\\\ into \\, and sed turns \\ into \.
17736 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17739 # `set' quotes correctly as required by POSIX, so do not add quotes.
17740 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17749 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17751 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17753 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17754 if test -w "$cache_file"; then
17755 test "x$cache_file" != "x/dev/null" &&
17756 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17757 $as_echo "$as_me: updating cache $cache_file" >&6;}
17758 cat confcache >$cache_file
17760 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17761 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17766 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17767 # Let make expand exec_prefix.
17768 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17770 DEFS=-DHAVE_CONFIG_H
17774 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17775 # 1. Remove the extension, and $U if already installed.
17776 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17777 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17778 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17779 # will be set to the directory where LIBOBJS objects are built.
17780 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17781 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17783 LIBOBJS=$ac_libobjs
17785 LTLIBOBJS=$ac_ltlibobjs
17788 if test -n "$EXEEXT"; then
17790 am__EXEEXT_FALSE='#'
17792 am__EXEEXT_TRUE='#'
17796 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17797 as_fn_error "conditional \"AMDEP\" was never defined.
17798 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17800 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17801 as_fn_error "conditional \"am__fastdepCC\" was never defined.
17802 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17804 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17805 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
17806 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17808 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17809 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
17810 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17812 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17813 as_fn_error "conditional \"am__fastdepCC\" was never defined.
17814 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17816 if test -z "${SCIM_BUILD_SETUP_TRUE}" && test -z "${SCIM_BUILD_SETUP_FALSE}"; then
17817 as_fn_error "conditional \"SCIM_BUILD_SETUP\" was never defined.
17818 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17821 : ${CONFIG_STATUS=./config.status}
17823 ac_clean_files_save=$ac_clean_files
17824 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17825 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17826 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17828 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17830 # Generated by $as_me.
17831 # Run this file to recreate the current configuration.
17832 # Compiler output produced by configure, useful for debugging
17833 # configure, is in config.log if it exists.
17836 ac_cs_recheck=false
17839 SHELL=\${CONFIG_SHELL-$SHELL}
17842 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17843 ## -------------------- ##
17844 ## M4sh Initialization. ##
17845 ## -------------------- ##
17847 # Be more Bourne compatible
17848 DUALCASE=1; export DUALCASE # for MKS sh
17849 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17852 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17853 # is contrary to our usage. Disable this feature.
17854 alias -g '${1+"$@"}'='"$@"'
17855 setopt NO_GLOB_SUBST
17857 case `(set -o) 2>/dev/null` in #(
17869 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17870 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17871 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17872 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17873 # Prefer a ksh shell builtin over an external printf program on Solaris,
17874 # but without wasting forks for bash or zsh.
17875 if test -z "$BASH_VERSION$ZSH_VERSION" \
17876 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17877 as_echo='print -r --'
17878 as_echo_n='print -rn --'
17879 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17880 as_echo='printf %s\n'
17881 as_echo_n='printf %s'
17883 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17884 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17885 as_echo_n='/usr/ucb/echo -n'
17887 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17888 as_echo_n_body='eval
17892 expr "X$arg" : "X\\(.*\\)$as_nl";
17893 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17895 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17897 export as_echo_n_body
17898 as_echo_n='sh -c $as_echo_n_body as_echo'
17900 export as_echo_body
17901 as_echo='sh -c $as_echo_body as_echo'
17904 # The user is always right.
17905 if test "${PATH_SEPARATOR+set}" != set; then
17907 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17908 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17915 # We need space, tab and new line, in precisely that order. Quoting is
17916 # there to prevent editors from complaining about space-tab.
17917 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17918 # splitting by setting IFS to empty value.)
17921 # Find who we are. Look in the path if we contain no directory separator.
17923 *[\\/]* ) as_myself=$0 ;;
17924 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17925 for as_dir in $PATH
17928 test -z "$as_dir" && as_dir=.
17929 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17935 # We did not find ourselves, most probably we were run as `sh COMMAND'
17936 # in which case we are not to be found in the path.
17937 if test "x$as_myself" = x; then
17940 if test ! -f "$as_myself"; then
17941 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17945 # Unset variables that we do not need and which cause bugs (e.g. in
17946 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17947 # suppresses any "Segmentation fault" message there. '((' could
17948 # trigger a bug in pdksh 5.2.14.
17949 for as_var in BASH_ENV ENV MAIL MAILPATH
17950 do eval test x\${$as_var+set} = xset \
17951 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17964 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17967 # as_fn_error ERROR [LINENO LOG_FD]
17968 # ---------------------------------
17969 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17970 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17971 # script with status $?, using 1 if that was 0.
17974 as_status=$?; test $as_status -eq 0 && as_status=1
17976 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17977 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
17979 $as_echo "$as_me: error: $1" >&2
17980 as_fn_exit $as_status
17984 # as_fn_set_status STATUS
17985 # -----------------------
17986 # Set $? to STATUS, without forking.
17987 as_fn_set_status ()
17990 } # as_fn_set_status
17992 # as_fn_exit STATUS
17993 # -----------------
17994 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17998 as_fn_set_status $1
18004 # Portably unset VAR.
18007 { eval $1=; unset $1;}
18009 as_unset=as_fn_unset
18010 # as_fn_append VAR VALUE
18011 # ----------------------
18012 # Append the text in VALUE to the end of the definition contained in VAR. Take
18013 # advantage of any shell optimizations that allow amortized linear growth over
18014 # repeated appends, instead of the typical quadratic growth present in naive
18016 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18017 eval 'as_fn_append ()
18028 # as_fn_arith ARG...
18029 # ------------------
18030 # Perform arithmetic evaluation on the ARGs, and store the result in the
18031 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18032 # must be portable across $(()) and expr.
18033 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18034 eval 'as_fn_arith ()
18041 as_val=`expr "$@" || test $? -eq 1`
18046 if expr a : '\(a\)' >/dev/null 2>&1 &&
18047 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18053 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18054 as_basename=basename
18059 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18065 as_me=`$as_basename -- "$0" ||
18066 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18067 X"$0" : 'X\(//\)$' \| \
18068 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18070 sed '/^.*\/\([^/][^/]*\)\/*$/{
18084 # Avoid depending upon Character Ranges.
18085 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18086 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18087 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18088 as_cr_digits='0123456789'
18089 as_cr_alnum=$as_cr_Letters$as_cr_digits
18091 ECHO_C= ECHO_N= ECHO_T=
18092 case `echo -n x` in #(((((
18094 case `echo 'xy\c'` in
18095 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18097 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18104 rm -f conf$$ conf$$.exe conf$$.file
18105 if test -d conf$$.dir; then
18106 rm -f conf$$.dir/conf$$.file
18109 mkdir conf$$.dir 2>/dev/null
18111 if (echo >conf$$.file) 2>/dev/null; then
18112 if ln -s conf$$.file conf$$ 2>/dev/null; then
18114 # ... but there are two gotchas:
18115 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18116 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18117 # In both cases, we have to default to `cp -p'.
18118 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18120 elif ln conf$$.file conf$$ 2>/dev/null; then
18128 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18129 rmdir conf$$.dir 2>/dev/null
18134 # Create "$as_dir" as a directory, including parents if necessary.
18139 -*) as_dir=./$as_dir;;
18141 test -d "$as_dir" || eval $as_mkdir_p || {
18145 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18146 *) as_qdir=$as_dir;;
18148 as_dirs="'$as_qdir' $as_dirs"
18149 as_dir=`$as_dirname -- "$as_dir" ||
18150 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18151 X"$as_dir" : 'X\(//\)[^/]' \| \
18152 X"$as_dir" : 'X\(//\)$' \| \
18153 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18154 $as_echo X"$as_dir" |
18155 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18159 /^X\(\/\/\)[^/].*/{
18172 test -d "$as_dir" && break
18174 test -z "$as_dirs" || eval "mkdir $as_dirs"
18175 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
18179 if mkdir -p . 2>/dev/null; then
18180 as_mkdir_p='mkdir -p "$as_dir"'
18182 test -d ./-p && rmdir ./-p
18186 if test -x / >/dev/null 2>&1; then
18187 as_test_x='test -x'
18189 if ls -dL / >/dev/null 2>&1; then
18196 if test -d "$1"; then
18202 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18203 ???[sx]*):;;*)false;;esac;fi
18207 as_executable_p=$as_test_x
18209 # Sed expression to map a string onto a valid CPP name.
18210 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18212 # Sed expression to map a string onto a valid variable name.
18213 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18217 ## ----------------------------------- ##
18218 ## Main body of $CONFIG_STATUS script. ##
18219 ## ----------------------------------- ##
18221 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18223 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18224 # Save the log message, to keep $0 and so on meaningful, and to
18225 # report actual input values of CONFIG_FILES etc. instead of their
18226 # values after options handling.
18228 This file was extended by scim-unikey $as_me 0.3.1, which was
18229 generated by GNU Autoconf 2.64. Invocation command line was
18231 CONFIG_FILES = $CONFIG_FILES
18232 CONFIG_HEADERS = $CONFIG_HEADERS
18233 CONFIG_LINKS = $CONFIG_LINKS
18234 CONFIG_COMMANDS = $CONFIG_COMMANDS
18237 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18242 case $ac_config_files in *"
18243 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18246 case $ac_config_headers in *"
18247 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18251 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18252 # Files that config.status was made for.
18253 config_files="$ac_config_files"
18254 config_headers="$ac_config_headers"
18255 config_commands="$ac_config_commands"
18259 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18261 \`$as_me' instantiates files and other configuration actions
18262 from templates according to the current configuration. Unless the files
18263 and actions are specified as TAGs, all are instantiated by default.
18265 Usage: $0 [OPTION]... [TAG]...
18267 -h, --help print this help, then exit
18268 -V, --version print version number and configuration settings, then exit
18269 -q, --quiet, --silent
18270 do not print progress messages
18271 -d, --debug don't remove temporary files
18272 --recheck update $as_me by reconfiguring in the same conditions
18273 --file=FILE[:TEMPLATE]
18274 instantiate the configuration file FILE
18275 --header=FILE[:TEMPLATE]
18276 instantiate the configuration header FILE
18278 Configuration files:
18281 Configuration headers:
18284 Configuration commands:
18287 Report bugs to <mr.lequoctuan@gmail.com>."
18290 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18292 scim-unikey config.status 0.3.1
18293 configured by $0, generated by GNU Autoconf 2.64,
18294 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18296 Copyright (C) 2009 Free Software Foundation, Inc.
18297 This config.status script is free software; the Free Software Foundation
18298 gives unlimited permission to copy, distribute and modify it."
18305 test -n "\$AWK" || AWK=awk
18308 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18309 # The default lists apply if the user does not specify any file.
18315 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18316 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18327 # Handling of the options.
18328 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18330 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18331 $as_echo "$ac_cs_version"; exit ;;
18332 --debug | --debu | --deb | --de | --d | -d )
18334 --file | --fil | --fi | --f )
18337 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18339 as_fn_append CONFIG_FILES " '$ac_optarg'"
18340 ac_need_defaults=false;;
18341 --header | --heade | --head | --hea )
18344 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18346 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18347 ac_need_defaults=false;;
18349 # Conflict between --help and --header
18350 as_fn_error "ambiguous option: \`$1'
18351 Try \`$0 --help' for more information.";;
18352 --help | --hel | -h )
18353 $as_echo "$ac_cs_usage"; exit ;;
18354 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18355 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18358 # This is an error.
18359 -*) as_fn_error "unrecognized option: \`$1'
18360 Try \`$0 --help' for more information." ;;
18362 *) as_fn_append ac_config_targets " $1"
18363 ac_need_defaults=false ;;
18369 ac_configure_extra_args=
18371 if $ac_cs_silent; then
18373 ac_configure_extra_args="$ac_configure_extra_args --silent"
18377 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18378 if \$ac_cs_recheck; then
18379 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18381 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18382 CONFIG_SHELL='$SHELL'
18383 export CONFIG_SHELL
18388 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18392 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18393 ## Running $as_me. ##
18399 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18403 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
18404 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
18405 # from automake < 1.5.
18406 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
18407 # Capture the value of LINGUAS because we need it to compute CATALOGS.
18408 LINGUAS="${LINGUAS-%UNSET%}"
18410 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18413 # The HP-UX ksh and POSIX shell print the target directory to stdout
18414 # if CDPATH is set.
18415 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18417 sed_quote_subst='$sed_quote_subst'
18418 double_quote_subst='$double_quote_subst'
18419 delay_variable_subst='$delay_variable_subst'
18420 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
18421 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
18422 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
18423 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
18424 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
18425 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
18426 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
18427 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
18428 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
18429 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
18430 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
18431 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
18432 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
18433 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
18434 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
18435 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
18436 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
18437 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
18438 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
18439 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
18440 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
18441 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
18442 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
18443 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
18444 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
18445 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
18446 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
18447 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18448 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
18449 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
18450 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
18451 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
18452 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
18453 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
18454 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
18455 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18456 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18457 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18458 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
18459 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
18460 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
18461 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
18462 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
18463 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
18464 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"`'
18465 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"`'
18466 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
18467 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
18468 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
18469 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
18470 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
18471 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
18472 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
18473 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
18474 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
18475 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
18476 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
18477 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
18478 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
18479 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
18480 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
18481 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
18482 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18483 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18484 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
18485 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
18486 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18487 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18488 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
18489 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18490 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18491 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18492 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18493 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18494 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18495 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
18496 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
18497 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
18498 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18499 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
18500 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
18501 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
18502 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
18503 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
18504 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18505 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
18506 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
18507 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
18508 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
18509 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
18510 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18511 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
18512 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
18513 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18514 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
18515 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
18516 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
18517 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
18518 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
18519 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18520 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18521 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
18522 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
18523 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
18524 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
18525 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18526 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18527 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18528 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
18529 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
18530 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
18531 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
18532 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
18533 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
18534 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
18535 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
18536 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
18537 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
18538 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
18539 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
18540 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
18541 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
18542 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
18543 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
18544 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18545 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18546 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18547 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18548 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18549 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18550 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18551 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18552 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18553 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18554 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18555 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18556 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18557 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18558 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18559 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18560 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18561 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18562 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18563 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18564 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18565 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18566 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18567 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18568 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18569 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18570 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18571 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18572 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18573 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18574 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18575 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18576 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18577 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18578 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18579 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18580 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18581 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18582 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18583 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18584 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18585 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18586 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18587 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18588 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18589 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18590 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18593 LTCFLAGS='$LTCFLAGS'
18594 compiler='$compiler_DEFAULT'
18596 # Quote evaled strings.
18608 deplibs_check_method \
18617 lt_cv_sys_global_symbol_pipe \
18618 lt_cv_sys_global_symbol_to_cdecl \
18619 lt_cv_sys_global_symbol_to_c_name_address \
18620 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18623 lt_prog_compiler_no_builtin_flag \
18624 lt_prog_compiler_wl \
18625 lt_prog_compiler_pic \
18626 lt_prog_compiler_static \
18627 lt_cv_prog_compiler_c_o \
18635 export_dynamic_flag_spec \
18636 whole_archive_flag_spec \
18637 compiler_needs_object \
18639 allow_undefined_flag \
18640 no_undefined_flag \
18641 hardcode_libdir_flag_spec \
18642 hardcode_libdir_flag_spec_ld \
18643 hardcode_libdir_separator \
18648 variables_saved_for_relink \
18650 library_names_spec \
18655 compiler_lib_search_dirs \
18660 compiler_lib_search_path \
18663 lt_prog_compiler_no_builtin_flag_CXX \
18664 lt_prog_compiler_wl_CXX \
18665 lt_prog_compiler_pic_CXX \
18666 lt_prog_compiler_static_CXX \
18667 lt_cv_prog_compiler_c_o_CXX \
18668 export_dynamic_flag_spec_CXX \
18669 whole_archive_flag_spec_CXX \
18670 compiler_needs_object_CXX \
18672 allow_undefined_flag_CXX \
18673 no_undefined_flag_CXX \
18674 hardcode_libdir_flag_spec_CXX \
18675 hardcode_libdir_flag_spec_ld_CXX \
18676 hardcode_libdir_separator_CXX \
18677 fix_srcfile_path_CXX \
18678 exclude_expsyms_CXX \
18679 include_expsyms_CXX \
18680 file_list_spec_CXX \
18681 compiler_lib_search_dirs_CXX \
18682 predep_objects_CXX \
18683 postdep_objects_CXX \
18686 compiler_lib_search_path_CXX; do
18687 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
18688 *[\\\\\\\`\\"\\\$]*)
18689 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18692 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18697 # Double-quote double-evaled strings.
18698 for var in reload_cmds \
18699 old_postinstall_cmds \
18700 old_postuninstall_cmds \
18702 extract_expsyms_cmds \
18703 old_archive_from_new_cmds \
18704 old_archive_from_expsyms_cmds \
18706 archive_expsym_cmds \
18708 module_expsym_cmds \
18709 export_symbols_cmds \
18712 postuninstall_cmds \
18714 sys_lib_search_path_spec \
18715 sys_lib_dlsearch_path_spec \
18716 old_archive_cmds_CXX \
18717 old_archive_from_new_cmds_CXX \
18718 old_archive_from_expsyms_cmds_CXX \
18720 archive_expsym_cmds_CXX \
18722 module_expsym_cmds_CXX \
18723 export_symbols_cmds_CXX \
18724 prelink_cmds_CXX; do
18725 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
18726 *[\\\\\\\`\\"\\\$]*)
18727 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18730 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18735 # Fix-up fallback echo if it was mangled by the above quoting rules.
18737 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
18741 ac_aux_dir='$ac_aux_dir'
18742 xsi_shell='$xsi_shell'
18743 lt_shell_append='$lt_shell_append'
18745 # See if we are running on zsh, and set the options which allow our
18746 # commands through without removal of \ escapes INIT.
18747 if test -n "\${ZSH_VERSION+set}" ; then
18748 setopt NO_GLOB_SUBST
18754 TIMESTAMP='$TIMESTAMP'
18765 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18767 # Handling of arguments.
18768 for ac_config_target in $ac_config_targets
18770 case $ac_config_target in
18771 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18772 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
18773 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18774 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18775 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18776 "scim-unikey.spec") CONFIG_FILES="$CONFIG_FILES scim-unikey.spec" ;;
18777 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18778 "ukengine/Makefile") CONFIG_FILES="$CONFIG_FILES ukengine/Makefile" ;;
18779 "icon/Makefile") CONFIG_FILES="$CONFIG_FILES icon/Makefile" ;;
18780 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
18781 "setup/Makefile") CONFIG_FILES="$CONFIG_FILES setup/Makefile" ;;
18783 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18788 # If the user did not use the arguments to specify the items to instantiate,
18789 # then the envvar interface is used. Set only those that are not.
18790 # We use the long form for the default assignment because of an extremely
18791 # bizarre bug on SunOS 4.1.3.
18792 if $ac_need_defaults; then
18793 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18794 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18795 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18798 # Have a temporary directory for convenience. Make it in the build tree
18799 # simply because there is no reason against having it here, and in addition,
18800 # creating and moving files from /tmp can sometimes cause problems.
18801 # Hook for its removal unless debugging.
18802 # Note that there is a small window in which the directory will not be cleaned:
18803 # after its creation but before its name has been assigned to `$tmp'.
18807 trap 'exit_status=$?
18808 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18810 trap 'as_fn_exit 1' 1 2 13 15
18812 # Create a (secure) tmp directory for tmp files.
18815 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18816 test -n "$tmp" && test -d "$tmp"
18819 tmp=./conf$$-$RANDOM
18820 (umask 077 && mkdir "$tmp")
18821 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
18823 # Set up the scripts for CONFIG_FILES section.
18824 # No need to generate them if there are no CONFIG_FILES.
18825 # This happens for instance with `./config.status config.h'.
18826 if test -n "$CONFIG_FILES"; then
18829 ac_cr=`echo X | tr X '\015'`
18830 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18831 # But we know of no other shell where ac_cr would be empty at this
18832 # point, so we can use a bashism as a fallback.
18833 if test "x$ac_cr" = x; then
18834 eval ac_cr=\$\'\\r\'
18836 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18837 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18840 ac_cs_awk_cr=$ac_cr
18843 echo 'BEGIN {' >"$tmp/subs1.awk" &&
18848 echo "cat >conf$$subs.awk <<_ACEOF" &&
18849 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18851 } >conf$$subs.sh ||
18852 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18853 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18855 for ac_last_try in false false false false false :; do
18856 . ./conf$$subs.sh ||
18857 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18859 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18860 if test $ac_delim_n = $ac_delim_num; then
18862 elif $ac_last_try; then
18863 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18865 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18868 rm -f conf$$subs.sh
18870 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18871 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18875 s/^/S["/; s/!.*/"]=/
18885 s/\(.\{148\}\).*/\1/
18887 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18892 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18899 s/\(.\{148\}\).*/\1/
18901 s/["\\]/\\&/g; s/^/"/; s/$/"/
18905 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18910 ' <conf$$subs.awk | sed '
18915 ' >>$CONFIG_STATUS || ac_write_fail=1
18916 rm -f conf$$subs.awk
18917 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18919 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18920 for (key in S) S_is_set[key] = 1
18926 nfields = split(line, field, "@")
18928 len = length(field[1])
18929 for (i = 2; i < nfields; i++) {
18931 keylen = length(key)
18932 if (S_is_set[key]) {
18934 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18935 len += length(value) + length(field[++i])
18946 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18947 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18948 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18951 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18952 || as_fn_error "could not setup config files machinery" "$LINENO" 5
18955 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18956 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18957 # trailing colons and then remove the whole line if VPATH becomes empty
18958 # (actually we leave an empty line to preserve line numbers).
18959 if test "x$srcdir" = x.; then
18960 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18961 s/:*\$(srcdir):*/:/
18962 s/:*\${srcdir}:*/:/
18964 s/^\([^=]*=[ ]*\):*/\1/
18970 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18971 fi # test -n "$CONFIG_FILES"
18973 # Set up the scripts for CONFIG_HEADERS section.
18974 # No need to generate them if there are no CONFIG_HEADERS.
18975 # This happens for instance with `./config.status Makefile'.
18976 if test -n "$CONFIG_HEADERS"; then
18977 cat >"$tmp/defines.awk" <<\_ACAWK ||
18981 # Transform confdefs.h into an awk script `defines.awk', embedded as
18982 # here-document in config.status, that substitutes the proper values into
18983 # config.h.in to produce config.h.
18985 # Create a delimiter string that does not exist in confdefs.h, to ease
18986 # handling of long lines.
18988 for ac_last_try in false false :; do
18989 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18990 if test -z "$ac_t"; then
18992 elif $ac_last_try; then
18993 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
18995 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18999 # For the awk script, D is an array of macro values keyed by name,
19000 # likewise P contains macro parameters if any. Preserve backslash
19001 # newline sequences.
19003 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19005 s/.\{148\}/&'"$ac_delim"'/g
19008 s/^[ ]*#[ ]*define[ ][ ]*/ /
19015 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19017 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19021 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19022 D["\1"]=" \3\\\\\\n"\\/p
19024 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19029 s/.\{148\}/&'"$ac_delim"'/g
19034 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19037 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19039 ' <confdefs.h | sed '
19040 s/'"$ac_delim"'/"\\\
19041 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19043 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19044 for (key in D) D_is_set[key] = 1
19047 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19049 split(line, arg, " ")
19050 if (arg[1] == "#") {
19054 defundef = substr(arg[1], 2)
19057 split(mac1, mac2, "(") #)
19059 prefix = substr(line, 1, index(line, defundef) - 1)
19060 if (D_is_set[macro]) {
19061 # Preserve the white space surrounding the "#".
19062 print prefix "define", macro P[macro] D[macro]
19065 # Replace #undef with comments. This is necessary, for example,
19066 # in the case of _POSIX_SOURCE, which is predefined and required
19067 # on some systems where configure will not decide to define it.
19068 if (defundef == "undef") {
19069 print "/*", prefix defundef, macro, "*/"
19077 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19078 as_fn_error "could not setup config headers machinery" "$LINENO" 5
19079 fi # test -n "$CONFIG_HEADERS"
19082 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19087 :[FHLC]) ac_mode=$ac_tag; continue;;
19089 case $ac_mode$ac_tag in
19091 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
19092 :[FH]-) ac_tag=-:-;;
19093 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19110 -) ac_f="$tmp/stdin";;
19111 *) # Look for the file first in the build tree, then in the source tree
19112 # (if the path is not absolute). The absolute path cannot be DOS-style,
19113 # because $ac_f cannot contain `:'.
19117 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19119 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19121 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19122 as_fn_append ac_file_inputs " '$ac_f'"
19125 # Let's still pretend it is `configure' which instantiates (i.e., don't
19126 # use $as_me), people would be surprised to read:
19127 # /* config.h. Generated by config.status. */
19128 configure_input='Generated from '`
19129 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19131 if test x"$ac_file" != x-; then
19132 configure_input="$ac_file. $configure_input"
19133 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19134 $as_echo "$as_me: creating $ac_file" >&6;}
19136 # Neutralize special characters interpreted by sed in replacement strings.
19137 case $configure_input in #(
19138 *\&* | *\|* | *\\* )
19139 ac_sed_conf_input=`$as_echo "$configure_input" |
19140 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19141 *) ac_sed_conf_input=$configure_input;;
19145 *:-:* | *:-) cat >"$tmp/stdin" \
19146 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
19151 ac_dir=`$as_dirname -- "$ac_file" ||
19152 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19153 X"$ac_file" : 'X\(//\)[^/]' \| \
19154 X"$ac_file" : 'X\(//\)$' \| \
19155 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19156 $as_echo X"$ac_file" |
19157 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19161 /^X\(\/\/\)[^/].*/{
19174 as_dir="$ac_dir"; as_fn_mkdir_p
19178 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19180 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19181 # A ".." for each directory in $ac_dir_suffix.
19182 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19183 case $ac_top_builddir_sub in
19184 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19185 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19188 ac_abs_top_builddir=$ac_pwd
19189 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19190 # for backward compatibility:
19191 ac_top_builddir=$ac_top_build_prefix
19194 .) # We are building in place.
19196 ac_top_srcdir=$ac_top_builddir_sub
19197 ac_abs_top_srcdir=$ac_pwd ;;
19198 [\\/]* | ?:[\\/]* ) # Absolute name.
19199 ac_srcdir=$srcdir$ac_dir_suffix;
19200 ac_top_srcdir=$srcdir
19201 ac_abs_top_srcdir=$srcdir ;;
19202 *) # Relative name.
19203 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19204 ac_top_srcdir=$ac_top_build_prefix$srcdir
19205 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19207 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19217 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19218 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19220 ac_MKDIR_P=$MKDIR_P
19222 [\\/$]* | ?:[\\/]* ) ;;
19223 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19227 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19228 # If the template does not know about datarootdir, expand it.
19229 # FIXME: This hack should be removed a few years after 2.60.
19230 ac_datarootdir_hack=; ac_datarootdir_seen=
19241 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19242 *datarootdir*) ac_datarootdir_seen=yes;;
19243 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19245 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19247 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19248 ac_datarootdir_hack='
19249 s&@datadir@&$datadir&g
19250 s&@docdir@&$docdir&g
19251 s&@infodir@&$infodir&g
19252 s&@localedir@&$localedir&g
19253 s&@mandir@&$mandir&g
19254 s&\\\${datarootdir}&$datarootdir&g' ;;
19258 # Neutralize VPATH when `$srcdir' = `.'.
19259 # Shell code in configure.ac might set extrasub.
19260 # FIXME: do we really want to maintain this feature?
19261 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19262 ac_sed_extra="$ac_vpsub
19265 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19267 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19268 s|@configure_input@|$ac_sed_conf_input|;t t
19269 s&@top_builddir@&$ac_top_builddir_sub&;t t
19270 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19271 s&@srcdir@&$ac_srcdir&;t t
19272 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19273 s&@top_srcdir@&$ac_top_srcdir&;t t
19274 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19275 s&@builddir@&$ac_builddir&;t t
19276 s&@abs_builddir@&$ac_abs_builddir&;t t
19277 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19278 s&@INSTALL@&$ac_INSTALL&;t t
19279 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19280 $ac_datarootdir_hack
19282 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
19283 || as_fn_error "could not create $ac_file" "$LINENO" 5
19285 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19286 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19287 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19289 which seems to be undefined. Please make sure it is defined." >&5
19290 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19291 which seems to be undefined. Please make sure it is defined." >&2;}
19295 -) cat "$tmp/out" && rm -f "$tmp/out";;
19296 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
19298 || as_fn_error "could not create $ac_file" "$LINENO" 5
19304 if test x"$ac_file" != x-; then
19306 $as_echo "/* $configure_input */" \
19307 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
19308 } >"$tmp/config.h" \
19309 || as_fn_error "could not create $ac_file" "$LINENO" 5
19310 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
19311 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19312 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19315 mv "$tmp/config.h" "$ac_file" \
19316 || as_fn_error "could not create $ac_file" "$LINENO" 5
19319 $as_echo "/* $configure_input */" \
19320 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
19321 || as_fn_error "could not create -" "$LINENO" 5
19323 # Compute "$ac_file"'s index in $config_headers.
19326 for _am_header in $config_headers :; do
19327 case $_am_header in
19328 $_am_arg | $_am_arg:* )
19331 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19334 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19335 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19336 X"$_am_arg" : 'X\(//\)[^/]' \| \
19337 X"$_am_arg" : 'X\(//\)$' \| \
19338 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19339 $as_echo X"$_am_arg" |
19340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19344 /^X\(\/\/\)[^/].*/{
19356 s/.*/./; q'`/stamp-h$_am_stamp_count
19359 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19360 $as_echo "$as_me: executing $ac_file commands" >&6;}
19365 case $ac_file$ac_mode in
19366 "po-directories":C)
19367 for ac_file in $CONFIG_FILES; do
19368 # Support "outfile[:infile[:infile...]]"
19370 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19372 # PO directories have a Makefile.in generated from Makefile.in.in.
19373 case "$ac_file" in */Makefile.in)
19374 # Adjust a relative srcdir.
19375 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
19376 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
19377 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
19378 # In autoconf-2.13 it is called $ac_given_srcdir.
19379 # In autoconf-2.50 it is called $srcdir.
19380 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
19381 case "$ac_given_srcdir" in
19382 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
19383 /*) top_srcdir="$ac_given_srcdir" ;;
19384 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
19386 # Treat a directory as a PO directory if and only if it has a
19387 # POTFILES.in file. This allows packages to have multiple PO
19388 # directories under different names or in different locations.
19389 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
19390 rm -f "$ac_dir/POTFILES"
19391 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
19392 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
19393 POMAKEFILEDEPS="POTFILES.in"
19394 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
19395 # on $ac_dir but don't depend on user-specified configuration
19397 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
19398 # The LINGUAS file contains the set of available languages.
19399 if test -n "$OBSOLETE_ALL_LINGUAS"; then
19400 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
19402 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
19403 # Hide the ALL_LINGUAS assigment from automake < 1.5.
19404 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
19405 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
19407 # The set of available languages was given in configure.in.
19408 # Hide the ALL_LINGUAS assigment from automake < 1.5.
19409 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
19412 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
19413 # Compute UPDATEPOFILES
19414 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
19415 # Compute DUMMYPOFILES
19416 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
19418 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
19419 case "$ac_given_srcdir" in
19421 *) srcdirpre='$(srcdir)/' ;;
19427 for lang in $ALL_LINGUAS; do
19428 POFILES="$POFILES $srcdirpre$lang.po"
19429 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
19430 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
19431 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
19433 # CATALOGS depends on both $ac_dir and the user's LINGUAS
19434 # environment variable.
19436 if test -n "$ALL_LINGUAS"; then
19437 for presentlang in $ALL_LINGUAS; do
19439 if test "%UNSET%" != "$LINGUAS"; then
19440 desiredlanguages="$LINGUAS"
19442 desiredlanguages="$ALL_LINGUAS"
19444 for desiredlang in $desiredlanguages; do
19445 # Use the presentlang catalog if desiredlang is
19446 # a. equal to presentlang, or
19447 # b. a variant of presentlang (because in this case,
19448 # presentlang can be used as a fallback for messages
19449 # which are not translated in the desiredlang catalog).
19450 case "$desiredlang" in
19451 "$presentlang"*) useit=yes;;
19454 if test $useit = yes; then
19455 INST_LINGUAS="$INST_LINGUAS $presentlang"
19460 if test -n "$INST_LINGUAS"; then
19461 for lang in $INST_LINGUAS; do
19462 CATALOGS="$CATALOGS $lang.gmo"
19465 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
19466 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"
19467 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
19468 if test -f "$f"; then
19470 *.orig | *.bak | *~) ;;
19471 *) cat "$f" >> "$ac_dir/Makefile" ;;
19479 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19480 # Autoconf 2.62 quotes --file arguments for eval, but not when files
19481 # are listed without --file. Let's play safe and only enable the eval
19482 # if we detect the quoting.
19483 case $CONFIG_FILES in
19484 *\'*) eval set x "$CONFIG_FILES" ;;
19485 *) set x $CONFIG_FILES ;;
19490 # Strip MF so we end up with the name of the file.
19491 mf=`echo "$mf" | sed -e 's/:.*$//'`
19492 # Check whether this is an Automake generated Makefile or not.
19493 # We used to match only the files named `Makefile.in', but
19494 # some people rename them; so instead we look at the file content.
19495 # Grep'ing the first line is not enough: some people post-process
19496 # each Makefile.in and add a new line on top of each file to say so.
19497 # Grep'ing the whole file is not good either: AIX grep has a line
19498 # limit of 2048, but all sed's we know have understand at least 4000.
19499 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19500 dirpart=`$as_dirname -- "$mf" ||
19501 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19502 X"$mf" : 'X\(//\)[^/]' \| \
19503 X"$mf" : 'X\(//\)$' \| \
19504 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19506 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19510 /^X\(\/\/\)[^/].*/{
19526 # Extract the definition of DEPDIR, am__include, and am__quote
19527 # from the Makefile without running `make'.
19528 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19529 test -z "$DEPDIR" && continue
19530 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19531 test -z "am__include" && continue
19532 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19533 # When using ansi2knr, U may be empty or an underscore; expand it
19534 U=`sed -n 's/^U = //p' < "$mf"`
19535 # Find all dependency output files, they are included files with
19536 # $(DEPDIR) in their names. We invoke sed twice because it is the
19537 # simplest approach to changing $(DEPDIR) to its actual value in the
19539 for file in `sed -n "
19540 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19541 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19542 # Make sure the directory exists.
19543 test -f "$dirpart/$file" && continue
19544 fdir=`$as_dirname -- "$file" ||
19545 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19546 X"$file" : 'X\(//\)[^/]' \| \
19547 X"$file" : 'X\(//\)$' \| \
19548 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19549 $as_echo X"$file" |
19550 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19554 /^X\(\/\/\)[^/].*/{
19567 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19568 # echo "creating $dirpart/$file"
19569 echo '# dummy' > "$dirpart/$file"
19576 # See if we are running on zsh, and set the options which allow our
19577 # commands through without removal of \ escapes.
19578 if test -n "${ZSH_VERSION+set}" ; then
19579 setopt NO_GLOB_SUBST
19582 cfgfile="${ofile}T"
19583 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19586 cat <<_LT_EOF >> "$cfgfile"
19589 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19590 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19591 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19592 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19594 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19595 # 2006, 2007, 2008 Free Software Foundation, Inc.
19596 # Written by Gordon Matzigkeit, 1996
19598 # This file is part of GNU Libtool.
19600 # GNU Libtool is free software; you can redistribute it and/or
19601 # modify it under the terms of the GNU General Public License as
19602 # published by the Free Software Foundation; either version 2 of
19603 # the License, or (at your option) any later version.
19605 # As a special exception to the GNU General Public License,
19606 # if you distribute this file as part of a program or library that
19607 # is built using GNU Libtool, you may include this file under the
19608 # same distribution terms that you use for the rest of that program.
19610 # GNU Libtool is distributed in the hope that it will be useful,
19611 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19612 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19613 # GNU General Public License for more details.
19615 # You should have received a copy of the GNU General Public License
19616 # along with GNU Libtool; see the file COPYING. If not, a copy
19617 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19618 # obtained by writing to the Free Software Foundation, Inc.,
19619 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19622 # The names of the tagged configurations supported by this script.
19623 available_tags="CXX "
19625 # ### BEGIN LIBTOOL CONFIG
19627 # Which release of libtool.m4 was used?
19628 macro_version=$macro_version
19629 macro_revision=$macro_revision
19631 # Whether or not to build static libraries.
19632 build_old_libs=$enable_static
19634 # Whether or not to build shared libraries.
19635 build_libtool_libs=$enable_shared
19637 # What type of objects to build.
19640 # Whether or not to optimize for fast installation.
19641 fast_install=$enable_fast_install
19644 host_alias=$host_alias
19648 # The build system.
19649 build_alias=$build_alias
19653 # A sed program that does not truncate output.
19656 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19657 Xsed="\$SED -e 1s/^X//"
19659 # A grep program that handles long lines.
19665 # A literal string matcher.
19668 # A BSD- or MS-compatible name lister.
19671 # Whether we need soft or hard links.
19674 # What is the maximum length of a command?
19675 max_cmd_len=$max_cmd_len
19677 # Object file suffix (normally "o").
19680 # Executable file suffix (normally "").
19683 # whether the shell understands "unset".
19686 # turn spaces into newlines.
19689 # turn newlines into spaces.
19692 # How to create reloadable object files.
19693 reload_flag=$lt_reload_flag
19694 reload_cmds=$lt_reload_cmds
19696 # An object symbol dumper.
19697 OBJDUMP=$lt_OBJDUMP
19699 # Method to check whether dependent libraries are shared objects.
19700 deplibs_check_method=$lt_deplibs_check_method
19702 # Command to use when deplibs_check_method == "file_magic".
19703 file_magic_cmd=$lt_file_magic_cmd
19707 AR_FLAGS=$lt_AR_FLAGS
19709 # A symbol stripping program.
19712 # Commands used to install an old-style archive.
19714 old_postinstall_cmds=$lt_old_postinstall_cmds
19715 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19720 # LTCC compiler flags.
19721 LTCFLAGS=$lt_CFLAGS
19723 # Take the output of nm and produce a listing of raw symbols and C names.
19724 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19726 # Transform the output of nm in a proper C declaration.
19727 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19729 # Transform the output of nm in a C name address pair.
19730 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19732 # Transform the output of nm in a C name address pair when lib prefix is needed.
19733 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19735 # The name of the directory that contains temporary libtool files.
19738 # Shell to use when invoking shell scripts.
19741 # An echo program that does not interpret backslashes.
19744 # Used to examine libraries when file_magic_cmd begins with "file".
19745 MAGIC_CMD=$MAGIC_CMD
19747 # Must we lock files when doing compilation?
19748 need_locks=$lt_need_locks
19750 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19751 DSYMUTIL=$lt_DSYMUTIL
19753 # Tool to change global to local symbols on Mac OS X.
19756 # Tool to manipulate fat objects and archives on Mac OS X.
19759 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19762 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19763 OTOOL64=$lt_OTOOL64
19765 # Old archive suffix (normally "a").
19768 # Shared library suffix (normally ".so").
19769 shrext_cmds=$lt_shrext_cmds
19771 # The commands to extract the exported symbol list from a shared archive.
19772 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19774 # Variables whose values should be saved in libtool wrapper scripts and
19775 # restored at link time.
19776 variables_saved_for_relink=$lt_variables_saved_for_relink
19778 # Do we need the "lib" prefix for modules?
19779 need_lib_prefix=$need_lib_prefix
19781 # Do we need a version for libraries?
19782 need_version=$need_version
19784 # Library versioning type.
19785 version_type=$version_type
19787 # Shared library runtime path variable.
19788 runpath_var=$runpath_var
19790 # Shared library path variable.
19791 shlibpath_var=$shlibpath_var
19793 # Is shlibpath searched before the hard-coded library search path?
19794 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19796 # Format of library name prefix.
19797 libname_spec=$lt_libname_spec
19799 # List of archive names. First name is the real one, the rest are links.
19800 # The last name is the one that the linker finds with -lNAME
19801 library_names_spec=$lt_library_names_spec
19803 # The coded name of the library, if different from the real name.
19804 soname_spec=$lt_soname_spec
19806 # Command to use after installation of a shared archive.
19807 postinstall_cmds=$lt_postinstall_cmds
19809 # Command to use after uninstallation of a shared archive.
19810 postuninstall_cmds=$lt_postuninstall_cmds
19812 # Commands used to finish a libtool library installation in a directory.
19813 finish_cmds=$lt_finish_cmds
19815 # As "finish_cmds", except a single script fragment to be evaled but
19817 finish_eval=$lt_finish_eval
19819 # Whether we should hardcode library paths into libraries.
19820 hardcode_into_libs=$hardcode_into_libs
19822 # Compile-time system search path for libraries.
19823 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19825 # Run-time system search path for libraries.
19826 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19828 # Whether dlopen is supported.
19829 dlopen_support=$enable_dlopen
19831 # Whether dlopen of programs is supported.
19832 dlopen_self=$enable_dlopen_self
19834 # Whether dlopen of statically linked programs is supported.
19835 dlopen_self_static=$enable_dlopen_self_static
19837 # Commands to strip libraries.
19838 old_striplib=$lt_old_striplib
19839 striplib=$lt_striplib
19842 # The linker used to build libraries.
19845 # Commands used to build an old-style archive.
19846 old_archive_cmds=$lt_old_archive_cmds
19848 # A language specific compiler.
19851 # Is the compiler the GNU compiler?
19854 # Compiler flag to turn off builtin functions.
19855 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19857 # How to pass a linker flag through the compiler.
19858 wl=$lt_lt_prog_compiler_wl
19860 # Additional compiler flags for building library objects.
19861 pic_flag=$lt_lt_prog_compiler_pic
19863 # Compiler flag to prevent dynamic linking.
19864 link_static_flag=$lt_lt_prog_compiler_static
19866 # Does compiler simultaneously support -c and -o options?
19867 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19869 # Whether or not to add -lc for building shared libraries.
19870 build_libtool_need_lc=$archive_cmds_need_lc
19872 # Whether or not to disallow shared libs when runtime libs are static.
19873 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19875 # Compiler flag to allow reflexive dlopens.
19876 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19878 # Compiler flag to generate shared objects directly from archives.
19879 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19881 # Whether the compiler copes with passing no objects directly.
19882 compiler_needs_object=$lt_compiler_needs_object
19884 # Create an old-style archive from a shared archive.
19885 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19887 # Create a temporary old-style archive to link instead of a shared archive.
19888 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19890 # Commands used to build a shared archive.
19891 archive_cmds=$lt_archive_cmds
19892 archive_expsym_cmds=$lt_archive_expsym_cmds
19894 # Commands used to build a loadable module if different from building
19895 # a shared archive.
19896 module_cmds=$lt_module_cmds
19897 module_expsym_cmds=$lt_module_expsym_cmds
19899 # Whether we are building with GNU ld or not.
19900 with_gnu_ld=$lt_with_gnu_ld
19902 # Flag that allows shared libraries with undefined symbols to be built.
19903 allow_undefined_flag=$lt_allow_undefined_flag
19905 # Flag that enforces no undefined symbols.
19906 no_undefined_flag=$lt_no_undefined_flag
19908 # Flag to hardcode \$libdir into a binary during linking.
19909 # This must work even if \$libdir does not exist
19910 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19912 # If ld is used when linking, flag to hardcode \$libdir into a binary
19913 # during linking. This must work even if \$libdir does not exist.
19914 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19916 # Whether we need a single "-rpath" flag with a separated argument.
19917 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19919 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19920 # DIR into the resulting binary.
19921 hardcode_direct=$hardcode_direct
19923 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19924 # DIR into the resulting binary and the resulting library dependency is
19925 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19926 # library is relocated.
19927 hardcode_direct_absolute=$hardcode_direct_absolute
19929 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19930 # into the resulting binary.
19931 hardcode_minus_L=$hardcode_minus_L
19933 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19934 # into the resulting binary.
19935 hardcode_shlibpath_var=$hardcode_shlibpath_var
19937 # Set to "yes" if building a shared library automatically hardcodes DIR
19938 # into the library and all subsequent libraries and executables linked
19940 hardcode_automatic=$hardcode_automatic
19942 # Set to yes if linker adds runtime paths of dependent libraries
19943 # to runtime path list.
19944 inherit_rpath=$inherit_rpath
19946 # Whether libtool must link a program against all its dependency libraries.
19947 link_all_deplibs=$link_all_deplibs
19949 # Fix the shell variable \$srcfile for the compiler.
19950 fix_srcfile_path=$lt_fix_srcfile_path
19952 # Set to "yes" if exported symbols are required.
19953 always_export_symbols=$always_export_symbols
19955 # The commands to list exported symbols.
19956 export_symbols_cmds=$lt_export_symbols_cmds
19958 # Symbols that should not be listed in the preloaded symbols.
19959 exclude_expsyms=$lt_exclude_expsyms
19961 # Symbols that must always be exported.
19962 include_expsyms=$lt_include_expsyms
19964 # Commands necessary for linking programs (against libraries) with templates.
19965 prelink_cmds=$lt_prelink_cmds
19967 # Specify filename containing input files.
19968 file_list_spec=$lt_file_list_spec
19970 # How to hardcode a shared library path into an executable.
19971 hardcode_action=$hardcode_action
19973 # The directories searched by this compiler when creating a shared library.
19974 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19976 # Dependencies to place before and after the objects being linked to
19977 # create a shared library.
19978 predep_objects=$lt_predep_objects
19979 postdep_objects=$lt_postdep_objects
19980 predeps=$lt_predeps
19981 postdeps=$lt_postdeps
19983 # The library search path used internally by the compiler when linking
19984 # a shared library.
19985 compiler_lib_search_path=$lt_compiler_lib_search_path
19987 # ### END LIBTOOL CONFIG
19993 cat <<\_LT_EOF >> "$cfgfile"
19994 # AIX sometimes has problems with the GCC collect2 program. For some
19995 # reason, if we set the COLLECT_NAMES environment variable, the problems
19996 # vanish in a puff of smoke.
19997 if test "X${COLLECT_NAMES+set}" != Xset; then
19999 export COLLECT_NAMES
20006 ltmain="$ac_aux_dir/ltmain.sh"
20009 # We use sed instead of cat because bash on DJGPP gets confused if
20010 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20011 # text mode, it properly converts lines to CR/LF. This bash problem
20012 # is reportedly fixed, but why not run on old versions too?
20013 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
20014 || (rm -f "$cfgfile"; exit 1)
20018 cat << \_LT_EOF >> "$cfgfile"
20020 # func_dirname file append nondir_replacement
20021 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
20022 # otherwise set result to NONDIR_REPLACEMENT.
20026 */*) func_dirname_result="${1%/*}${2}" ;;
20027 * ) func_dirname_result="${3}" ;;
20031 # func_basename file
20034 func_basename_result="${1##*/}"
20037 # func_dirname_and_basename file append nondir_replacement
20038 # perform func_basename and func_dirname in a single function
20040 # dirname: Compute the dirname of FILE. If nonempty,
20041 # add APPEND to the result, otherwise set result
20042 # to NONDIR_REPLACEMENT.
20043 # value returned in "$func_dirname_result"
20044 # basename: Compute filename of FILE.
20045 # value retuned in "$func_basename_result"
20046 # Implementation must be kept synchronized with func_dirname
20047 # and func_basename. For efficiency, we do not delegate to
20048 # those functions but instead duplicate the functionality here.
20049 func_dirname_and_basename ()
20052 */*) func_dirname_result="${1%/*}${2}" ;;
20053 * ) func_dirname_result="${3}" ;;
20055 func_basename_result="${1##*/}"
20058 # func_stripname prefix suffix name
20059 # strip PREFIX and SUFFIX off of NAME.
20060 # PREFIX and SUFFIX must not contain globbing or regex special
20061 # characters, hashes, percent signs, but SUFFIX may contain a leading
20062 # dot (in which case that matches only a dot).
20065 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
20066 # positional parameters, so assign one to ordinary parameter first.
20067 func_stripname_result=${3}
20068 func_stripname_result=${func_stripname_result#"${1}"}
20069 func_stripname_result=${func_stripname_result%"${2}"}
20075 func_opt_split_opt=${1%%=*}
20076 func_opt_split_arg=${1#*=}
20083 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
20084 *) func_lo2o_result=${1} ;;
20088 # func_xform libobj-or-source
20091 func_xform_result=${1%.*}.lo
20094 # func_arith arithmetic-term...
20097 func_arith_result=$(( $* ))
20101 # STRING may not start with a hyphen.
20104 func_len_result=${#1}
20109 *) # Bourne compatible functions.
20110 cat << \_LT_EOF >> "$cfgfile"
20112 # func_dirname file append nondir_replacement
20113 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
20114 # otherwise set result to NONDIR_REPLACEMENT.
20117 # Extract subdirectory from the argument.
20118 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
20119 if test "X$func_dirname_result" = "X${1}"; then
20120 func_dirname_result="${3}"
20122 func_dirname_result="$func_dirname_result${2}"
20126 # func_basename file
20129 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
20133 # func_stripname prefix suffix name
20134 # strip PREFIX and SUFFIX off of NAME.
20135 # PREFIX and SUFFIX must not contain globbing or regex special
20136 # characters, hashes, percent signs, but SUFFIX may contain a leading
20137 # dot (in which case that matches only a dot).
20138 # func_strip_suffix prefix name
20142 .*) func_stripname_result=`$ECHO "X${3}" \
20143 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
20144 *) func_stripname_result=`$ECHO "X${3}" \
20145 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
20150 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
20151 my_sed_long_arg='1s/^-[^=]*=//'
20156 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
20157 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
20163 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
20166 # func_xform libobj-or-source
20169 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
20172 # func_arith arithmetic-term...
20175 func_arith_result=`expr "$@"`
20179 # STRING may not start with a hyphen.
20182 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
20188 case $lt_shell_append in
20190 cat << \_LT_EOF >> "$cfgfile"
20192 # func_append var value
20193 # Append VALUE to the end of shell variable VAR.
20201 cat << \_LT_EOF >> "$cfgfile"
20203 # func_append var value
20204 # Append VALUE to the end of shell variable VAR.
20215 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
20216 || (rm -f "$cfgfile"; exit 1)
20218 mv -f "$cfgfile" "$ofile" ||
20219 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20223 cat <<_LT_EOF >> "$ofile"
20225 # ### BEGIN LIBTOOL TAG CONFIG: CXX
20227 # The linker used to build libraries.
20230 # Commands used to build an old-style archive.
20231 old_archive_cmds=$lt_old_archive_cmds_CXX
20233 # A language specific compiler.
20234 CC=$lt_compiler_CXX
20236 # Is the compiler the GNU compiler?
20239 # Compiler flag to turn off builtin functions.
20240 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20242 # How to pass a linker flag through the compiler.
20243 wl=$lt_lt_prog_compiler_wl_CXX
20245 # Additional compiler flags for building library objects.
20246 pic_flag=$lt_lt_prog_compiler_pic_CXX
20248 # Compiler flag to prevent dynamic linking.
20249 link_static_flag=$lt_lt_prog_compiler_static_CXX
20251 # Does compiler simultaneously support -c and -o options?
20252 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20254 # Whether or not to add -lc for building shared libraries.
20255 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20257 # Whether or not to disallow shared libs when runtime libs are static.
20258 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20260 # Compiler flag to allow reflexive dlopens.
20261 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20263 # Compiler flag to generate shared objects directly from archives.
20264 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20266 # Whether the compiler copes with passing no objects directly.
20267 compiler_needs_object=$lt_compiler_needs_object_CXX
20269 # Create an old-style archive from a shared archive.
20270 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20272 # Create a temporary old-style archive to link instead of a shared archive.
20273 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20275 # Commands used to build a shared archive.
20276 archive_cmds=$lt_archive_cmds_CXX
20277 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20279 # Commands used to build a loadable module if different from building
20280 # a shared archive.
20281 module_cmds=$lt_module_cmds_CXX
20282 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20284 # Whether we are building with GNU ld or not.
20285 with_gnu_ld=$lt_with_gnu_ld_CXX
20287 # Flag that allows shared libraries with undefined symbols to be built.
20288 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20290 # Flag that enforces no undefined symbols.
20291 no_undefined_flag=$lt_no_undefined_flag_CXX
20293 # Flag to hardcode \$libdir into a binary during linking.
20294 # This must work even if \$libdir does not exist
20295 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20297 # If ld is used when linking, flag to hardcode \$libdir into a binary
20298 # during linking. This must work even if \$libdir does not exist.
20299 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20301 # Whether we need a single "-rpath" flag with a separated argument.
20302 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20304 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20305 # DIR into the resulting binary.
20306 hardcode_direct=$hardcode_direct_CXX
20308 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20309 # DIR into the resulting binary and the resulting library dependency is
20310 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20311 # library is relocated.
20312 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20314 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20315 # into the resulting binary.
20316 hardcode_minus_L=$hardcode_minus_L_CXX
20318 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20319 # into the resulting binary.
20320 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20322 # Set to "yes" if building a shared library automatically hardcodes DIR
20323 # into the library and all subsequent libraries and executables linked
20325 hardcode_automatic=$hardcode_automatic_CXX
20327 # Set to yes if linker adds runtime paths of dependent libraries
20328 # to runtime path list.
20329 inherit_rpath=$inherit_rpath_CXX
20331 # Whether libtool must link a program against all its dependency libraries.
20332 link_all_deplibs=$link_all_deplibs_CXX
20334 # Fix the shell variable \$srcfile for the compiler.
20335 fix_srcfile_path=$lt_fix_srcfile_path_CXX
20337 # Set to "yes" if exported symbols are required.
20338 always_export_symbols=$always_export_symbols_CXX
20340 # The commands to list exported symbols.
20341 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20343 # Symbols that should not be listed in the preloaded symbols.
20344 exclude_expsyms=$lt_exclude_expsyms_CXX
20346 # Symbols that must always be exported.
20347 include_expsyms=$lt_include_expsyms_CXX
20349 # Commands necessary for linking programs (against libraries) with templates.
20350 prelink_cmds=$lt_prelink_cmds_CXX
20352 # Specify filename containing input files.
20353 file_list_spec=$lt_file_list_spec_CXX
20355 # How to hardcode a shared library path into an executable.
20356 hardcode_action=$hardcode_action_CXX
20358 # The directories searched by this compiler when creating a shared library.
20359 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20361 # Dependencies to place before and after the objects being linked to
20362 # create a shared library.
20363 predep_objects=$lt_predep_objects_CXX
20364 postdep_objects=$lt_postdep_objects_CXX
20365 predeps=$lt_predeps_CXX
20366 postdeps=$lt_postdeps_CXX
20368 # The library search path used internally by the compiler when linking
20369 # a shared library.
20370 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20372 # ### END LIBTOOL TAG CONFIG: CXX
20383 ac_clean_files=$ac_clean_files_save
20385 test $ac_write_fail = 0 ||
20386 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
20389 # configure is writing to config.log, and then calls config.status.
20390 # config.status does its own redirection, appending to config.log.
20391 # Unfortunately, on DOS this fails, as config.log is still kept open
20392 # by configure, so config.status won't be able to write to it; its
20393 # output is simply discarded. So we exec the FD to /dev/null,
20394 # effectively closing config.log, so it can be properly (re)opened and
20395 # appended to by config.status. When coming back to configure, we
20396 # need to make the FD available again.
20397 if test "$no_create" != yes; then
20399 ac_config_status_args=
20400 test "$silent" = yes &&
20401 ac_config_status_args="$ac_config_status_args --quiet"
20403 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20405 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20406 # would make configure fail if this is the last instruction.
20407 $ac_cs_success || as_fn_exit $?
20409 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20411 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}