2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for ibus-libpinyin 1.6.92.
5 # Report bugs to <https://github.com/libpinyin/ibus-libpinyin/issues/new>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
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.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
248 if test "x$CONFIG_SHELL" != x; then :
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 *v*x* | *x*v* ) as_opts=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: https://github.com/libpinyin/ibus-libpinyin/issues/new
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
288 SHELL=${CONFIG_SHELL-/bin/sh}
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
299 # Portably unset VAR.
302 { eval $1=; unset $1;}
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
326 # Create "$as_dir" as a directory, including parents if necessary.
331 -*) as_dir=./$as_dir;;
333 test -d "$as_dir" || eval $as_mkdir_p || {
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
364 test -d "$as_dir" && break
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
410 as_val=`expr "$@" || test $? -eq 1`
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
422 as_status=$1; test $as_status -eq 0 && as_status=1
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
508 # Exit status is that of the last command.
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
530 mkdir conf$$.dir 2>/dev/null
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
541 elif ln conf$$.file conf$$ 2>/dev/null; then
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
555 test -d ./-p && rmdir ./-p
560 as_executable_p=as_fn_executable_p
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
568 SHELL=${CONFIG_SHELL-/bin/sh}
571 test -n "$DJDIR" || exec 7<&0 </dev/null
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
582 ac_default_prefix=/usr/local
584 ac_config_libobj_dir=.
591 # Identity of this package.
592 PACKAGE_NAME='ibus-libpinyin'
593 PACKAGE_TARNAME='ibus-libpinyin'
594 PACKAGE_VERSION='1.6.92'
595 PACKAGE_STRING='ibus-libpinyin 1.6.92'
596 PACKAGE_BUGREPORT='https://github.com/libpinyin/ibus-libpinyin/issues/new'
599 # Factoring default headers for most tests.
600 ac_includes_default="\
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
612 # ifdef HAVE_STDLIB_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
635 ac_subst_vars='am__EXEEXT_FALSE
639 IBUS_BUILD_STROKE_INPUT_MODE_FALSE
640 IBUS_BUILD_STROKE_INPUT_MODE_TRUE
641 IBUS_BUILD_ENGLISH_INPUT_MODE_FALSE
642 IBUS_BUILD_ENGLISH_INPUT_MODE_TRUE
643 IBUS_BUILD_LUA_EXTENSION_FALSE
644 IBUS_BUILD_LUA_EXTENSION_TRUE
664 DISTCHECK_CONFIGURE_FLAGS
681 IBUS_BUILD_LIBPINYIN_FALSE
682 IBUS_BUILD_LIBPINYIN_TRUE
729 INTLTOOL_SERVICE_RULE
731 INTLTOOL_SCHEMAS_RULE
733 INTLTOOL_XML_NOMERGE_RULE
738 INTLTOOL_SOUNDLIST_RULE
745 INTLTOOL_DIRECTORY_RULE
746 INTLTOOL_DESKTOP_RULE
747 intltool__v_merge_options_0
748 intltool__v_merge_options_
749 INTLTOOL_V_MERGE_OPTIONS
764 MAINTAINER_MODE_FALSE
766 PACKAGE_VERSION_RELEASE
768 PACKAGE_VERSION_MICRO
769 PACKAGE_VERSION_MINOR
770 PACKAGE_VERSION_MAJOR
803 INSTALL_STRIP_PROGRAM
845 program_transform_name
858 enable_option_checking
860 enable_dependency_tracking
861 enable_maintainer_mode
874 enable_english_input_mode
875 enable_stroke_input_mode
877 ac_precious_vars='build_alias
909 # Initialize some variables set by options.
911 ac_init_version=false
912 ac_unrecognized_opts=
914 # The variables have the same names as the options, with
915 # dashes changed to underlines.
923 program_transform_name=s,x,x,
931 # Installation directory options.
932 # These are left unexpanded so users can "make install exec_prefix=/foo"
933 # and all the variables that are supposed to be based on exec_prefix
934 # by default will actually change.
935 # Use braces instead of parens because sh, perl, etc. also accept them.
936 # (The list follows the same order as the GNU Coding Standards.)
937 bindir='${exec_prefix}/bin'
938 sbindir='${exec_prefix}/sbin'
939 libexecdir='${exec_prefix}/libexec'
940 datarootdir='${prefix}/share'
941 datadir='${datarootdir}'
942 sysconfdir='${prefix}/etc'
943 sharedstatedir='${prefix}/com'
944 localstatedir='${prefix}/var'
945 includedir='${prefix}/include'
946 oldincludedir='/usr/include'
947 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
948 infodir='${datarootdir}/info'
953 libdir='${exec_prefix}/lib'
954 localedir='${datarootdir}/locale'
955 mandir='${datarootdir}/man'
961 # If the previous option needs an argument, assign it.
962 if test -n "$ac_prev"; then
963 eval $ac_prev=\$ac_option
969 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
974 # Accept the important Cygnus configure options, so we can diagnose typos.
976 case $ac_dashdash$ac_option in
980 -bindir | --bindir | --bindi | --bind | --bin | --bi)
982 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
985 -build | --build | --buil | --bui | --bu)
986 ac_prev=build_alias ;;
987 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
988 build_alias=$ac_optarg ;;
990 -cache-file | --cache-file | --cache-fil | --cache-fi \
991 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
992 ac_prev=cache_file ;;
993 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
994 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
995 cache_file=$ac_optarg ;;
998 cache_file=config.cache ;;
1000 -datadir | --datadir | --datadi | --datad)
1002 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1003 datadir=$ac_optarg ;;
1005 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1006 | --dataroo | --dataro | --datar)
1007 ac_prev=datarootdir ;;
1008 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1009 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1010 datarootdir=$ac_optarg ;;
1012 -disable-* | --disable-*)
1013 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1014 # Reject names that are not valid shell variable names.
1015 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1016 as_fn_error $? "invalid feature name: $ac_useropt"
1017 ac_useropt_orig=$ac_useropt
1018 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1019 case $ac_user_opts in
1021 "enable_$ac_useropt"
1023 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1024 ac_unrecognized_sep=', ';;
1026 eval enable_$ac_useropt=no ;;
1028 -docdir | --docdir | --docdi | --doc | --do)
1030 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1031 docdir=$ac_optarg ;;
1033 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1035 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1036 dvidir=$ac_optarg ;;
1038 -enable-* | --enable-*)
1039 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1040 # Reject names that are not valid shell variable names.
1041 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1042 as_fn_error $? "invalid feature name: $ac_useropt"
1043 ac_useropt_orig=$ac_useropt
1044 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1045 case $ac_user_opts in
1047 "enable_$ac_useropt"
1049 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1050 ac_unrecognized_sep=', ';;
1052 eval enable_$ac_useropt=\$ac_optarg ;;
1054 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1055 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1056 | --exec | --exe | --ex)
1057 ac_prev=exec_prefix ;;
1058 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1059 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1060 | --exec=* | --exe=* | --ex=*)
1061 exec_prefix=$ac_optarg ;;
1063 -gas | --gas | --ga | --g)
1064 # Obsolete; use --with-gas.
1067 -help | --help | --hel | --he | -h)
1068 ac_init_help=long ;;
1069 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1070 ac_init_help=recursive ;;
1071 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1072 ac_init_help=short ;;
1074 -host | --host | --hos | --ho)
1075 ac_prev=host_alias ;;
1076 -host=* | --host=* | --hos=* | --ho=*)
1077 host_alias=$ac_optarg ;;
1079 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1081 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1083 htmldir=$ac_optarg ;;
1085 -includedir | --includedir | --includedi | --included | --include \
1086 | --includ | --inclu | --incl | --inc)
1087 ac_prev=includedir ;;
1088 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1089 | --includ=* | --inclu=* | --incl=* | --inc=*)
1090 includedir=$ac_optarg ;;
1092 -infodir | --infodir | --infodi | --infod | --info | --inf)
1094 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1095 infodir=$ac_optarg ;;
1097 -libdir | --libdir | --libdi | --libd)
1099 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1100 libdir=$ac_optarg ;;
1102 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1103 | --libexe | --libex | --libe)
1104 ac_prev=libexecdir ;;
1105 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1106 | --libexe=* | --libex=* | --libe=*)
1107 libexecdir=$ac_optarg ;;
1109 -localedir | --localedir | --localedi | --localed | --locale)
1110 ac_prev=localedir ;;
1111 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1112 localedir=$ac_optarg ;;
1114 -localstatedir | --localstatedir | --localstatedi | --localstated \
1115 | --localstate | --localstat | --localsta | --localst | --locals)
1116 ac_prev=localstatedir ;;
1117 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1118 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1119 localstatedir=$ac_optarg ;;
1121 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1123 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1124 mandir=$ac_optarg ;;
1126 -nfp | --nfp | --nf)
1127 # Obsolete; use --without-fp.
1130 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1131 | --no-cr | --no-c | -n)
1134 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1135 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1138 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1139 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1140 | --oldin | --oldi | --old | --ol | --o)
1141 ac_prev=oldincludedir ;;
1142 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1143 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1144 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1145 oldincludedir=$ac_optarg ;;
1147 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1149 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1150 prefix=$ac_optarg ;;
1152 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1153 | --program-pre | --program-pr | --program-p)
1154 ac_prev=program_prefix ;;
1155 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1156 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1157 program_prefix=$ac_optarg ;;
1159 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1160 | --program-suf | --program-su | --program-s)
1161 ac_prev=program_suffix ;;
1162 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1163 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1164 program_suffix=$ac_optarg ;;
1166 -program-transform-name | --program-transform-name \
1167 | --program-transform-nam | --program-transform-na \
1168 | --program-transform-n | --program-transform- \
1169 | --program-transform | --program-transfor \
1170 | --program-transfo | --program-transf \
1171 | --program-trans | --program-tran \
1172 | --progr-tra | --program-tr | --program-t)
1173 ac_prev=program_transform_name ;;
1174 -program-transform-name=* | --program-transform-name=* \
1175 | --program-transform-nam=* | --program-transform-na=* \
1176 | --program-transform-n=* | --program-transform-=* \
1177 | --program-transform=* | --program-transfor=* \
1178 | --program-transfo=* | --program-transf=* \
1179 | --program-trans=* | --program-tran=* \
1180 | --progr-tra=* | --program-tr=* | --program-t=*)
1181 program_transform_name=$ac_optarg ;;
1183 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1185 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1186 pdfdir=$ac_optarg ;;
1188 -psdir | --psdir | --psdi | --psd | --ps)
1190 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1193 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1194 | -silent | --silent | --silen | --sile | --sil)
1197 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1199 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1201 sbindir=$ac_optarg ;;
1203 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1204 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1205 | --sharedst | --shareds | --shared | --share | --shar \
1207 ac_prev=sharedstatedir ;;
1208 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1209 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1210 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1212 sharedstatedir=$ac_optarg ;;
1214 -site | --site | --sit)
1216 -site=* | --site=* | --sit=*)
1219 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1221 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1222 srcdir=$ac_optarg ;;
1224 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1225 | --syscon | --sysco | --sysc | --sys | --sy)
1226 ac_prev=sysconfdir ;;
1227 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1228 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1229 sysconfdir=$ac_optarg ;;
1231 -target | --target | --targe | --targ | --tar | --ta | --t)
1232 ac_prev=target_alias ;;
1233 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1234 target_alias=$ac_optarg ;;
1236 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1239 -version | --version | --versio | --versi | --vers | -V)
1240 ac_init_version=: ;;
1243 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1244 # Reject names that are not valid shell variable names.
1245 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1246 as_fn_error $? "invalid package name: $ac_useropt"
1247 ac_useropt_orig=$ac_useropt
1248 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1249 case $ac_user_opts in
1253 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1254 ac_unrecognized_sep=', ';;
1256 eval with_$ac_useropt=\$ac_optarg ;;
1258 -without-* | --without-*)
1259 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1260 # Reject names that are not valid shell variable names.
1261 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1262 as_fn_error $? "invalid package name: $ac_useropt"
1263 ac_useropt_orig=$ac_useropt
1264 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1265 case $ac_user_opts in
1269 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1270 ac_unrecognized_sep=', ';;
1272 eval with_$ac_useropt=no ;;
1275 # Obsolete; use --with-x.
1278 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1279 | --x-incl | --x-inc | --x-in | --x-i)
1280 ac_prev=x_includes ;;
1281 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1282 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1283 x_includes=$ac_optarg ;;
1285 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1286 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1287 ac_prev=x_libraries ;;
1288 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1289 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1290 x_libraries=$ac_optarg ;;
1292 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1293 Try \`$0 --help' for more information"
1297 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1298 # Reject names that are not valid shell variable names.
1299 case $ac_envvar in #(
1300 '' | [0-9]* | *[!_$as_cr_alnum]* )
1301 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1303 eval $ac_envvar=\$ac_optarg
1304 export $ac_envvar ;;
1307 # FIXME: should be removed in autoconf 3.0.
1308 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1309 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1310 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1311 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1317 if test -n "$ac_prev"; then
1318 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1319 as_fn_error $? "missing argument to $ac_option"
1322 if test -n "$ac_unrecognized_opts"; then
1323 case $enable_option_checking in
1325 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1326 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1330 # Check all directory arguments for consistency.
1331 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1332 datadir sysconfdir sharedstatedir localstatedir includedir \
1333 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1334 libdir localedir mandir
1336 eval ac_val=\$$ac_var
1337 # Remove trailing slashes.
1340 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1341 eval $ac_var=\$ac_val;;
1343 # Be sure to have absolute directory names.
1345 [\\/$]* | ?:[\\/]* ) continue;;
1346 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1348 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1351 # There might be people who depend on the old broken behavior: `$host'
1352 # used to hold the argument of --host etc.
1353 # FIXME: To remove some day.
1356 target=$target_alias
1358 # FIXME: To remove some day.
1359 if test "x$host_alias" != x; then
1360 if test "x$build_alias" = x; then
1361 cross_compiling=maybe
1362 elif test "x$build_alias" != "x$host_alias"; then
1368 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1370 test "$silent" = yes && exec 6>/dev/null
1373 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1374 ac_ls_di=`ls -di .` &&
1375 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1376 as_fn_error $? "working directory cannot be determined"
1377 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1378 as_fn_error $? "pwd does not report name of working directory"
1381 # Find the source files, if location was not specified.
1382 if test -z "$srcdir"; then
1383 ac_srcdir_defaulted=yes
1384 # Try the directory containing this script, then the parent directory.
1385 ac_confdir=`$as_dirname -- "$as_myself" ||
1386 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1387 X"$as_myself" : 'X\(//\)[^/]' \| \
1388 X"$as_myself" : 'X\(//\)$' \| \
1389 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1390 $as_echo X"$as_myself" |
1391 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1409 if test ! -r "$srcdir/$ac_unique_file"; then
1413 ac_srcdir_defaulted=no
1415 if test ! -r "$srcdir/$ac_unique_file"; then
1416 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1417 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1419 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1421 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1423 # When building in place, set srcdir=.
1424 if test "$ac_abs_confdir" = "$ac_pwd"; then
1427 # Remove unnecessary trailing slashes from srcdir.
1428 # Double slashes in file names in object file debugging info
1429 # mess up M-x gdb in Emacs.
1431 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1433 for ac_var in $ac_precious_vars; do
1434 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1435 eval ac_env_${ac_var}_value=\$${ac_var}
1436 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1437 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1441 # Report the --help message.
1443 if test "$ac_init_help" = "long"; then
1444 # Omit some internal or obsolete options to make the list less imposing.
1445 # This message is too long to be a string in the A/UX 3.1 sh.
1447 \`configure' configures ibus-libpinyin 1.6.92 to adapt to many kinds of systems.
1449 Usage: $0 [OPTION]... [VAR=VALUE]...
1451 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1452 VAR=VALUE. See below for descriptions of some of the useful variables.
1454 Defaults for the options are specified in brackets.
1457 -h, --help display this help and exit
1458 --help=short display options specific to this package
1459 --help=recursive display the short help of all the included packages
1460 -V, --version display version information and exit
1461 -q, --quiet, --silent do not print \`checking ...' messages
1462 --cache-file=FILE cache test results in FILE [disabled]
1463 -C, --config-cache alias for \`--cache-file=config.cache'
1464 -n, --no-create do not create output files
1465 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1467 Installation directories:
1468 --prefix=PREFIX install architecture-independent files in PREFIX
1469 [$ac_default_prefix]
1470 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1473 By default, \`make install' will install all the files in
1474 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1475 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1476 for instance \`--prefix=\$HOME'.
1478 For better control, use the options below.
1480 Fine tuning of the installation directories:
1481 --bindir=DIR user executables [EPREFIX/bin]
1482 --sbindir=DIR system admin executables [EPREFIX/sbin]
1483 --libexecdir=DIR program executables [EPREFIX/libexec]
1484 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1485 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1486 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1487 --libdir=DIR object code libraries [EPREFIX/lib]
1488 --includedir=DIR C header files [PREFIX/include]
1489 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1490 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1491 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1492 --infodir=DIR info documentation [DATAROOTDIR/info]
1493 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1494 --mandir=DIR man documentation [DATAROOTDIR/man]
1495 --docdir=DIR documentation root [DATAROOTDIR/doc/ibus-libpinyin]
1496 --htmldir=DIR html documentation [DOCDIR]
1497 --dvidir=DIR dvi documentation [DOCDIR]
1498 --pdfdir=DIR pdf documentation [DOCDIR]
1499 --psdir=DIR ps documentation [DOCDIR]
1505 --program-prefix=PREFIX prepend PREFIX to installed program names
1506 --program-suffix=SUFFIX append SUFFIX to installed program names
1507 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1510 --build=BUILD configure for building on BUILD [guessed]
1511 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1515 if test -n "$ac_init_help"; then
1516 case $ac_init_help in
1517 short | recursive ) echo "Configuration of ibus-libpinyin 1.6.92:";;
1522 --disable-option-checking ignore unrecognized --enable/--with options
1523 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1524 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1525 --enable-silent-rules less verbose build output (undo: "make V=1")
1526 --disable-silent-rules verbose build output (undo: "make V=0")
1527 --enable-dependency-tracking
1528 do not reject slow dependency extractors
1529 --disable-dependency-tracking
1530 speeds up one-time build
1531 --enable-maintainer-mode
1532 enable make rules and dependencies not useful (and
1533 sometimes confusing) to the casual installer
1534 --enable-static[=PKGS] build static libraries [default=no]
1535 --disable-nls do not use Native Language Support
1536 --enable-shared[=PKGS] build shared libraries [default=yes]
1537 --enable-fast-install[=PKGS]
1538 optimize for fast installation [default=yes]
1539 --disable-libtool-lock avoid locking (might break parallel builds)
1540 --enable-boost Use boost to replace stdc++0x.
1541 --enable-opencc Use opencc for simplified and traditional Chinese
1543 --disable-lua-extension do not build lua extension
1544 --disable-english-input-mode
1545 do not build english input mode
1546 --disable-stroke-input-mode
1547 do not build stroke input mode
1550 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1551 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1552 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1554 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1555 --with-sysroot=DIR Search for dependent libraries within DIR
1556 (or the compiler's sysroot if not specified).
1557 --with-boost=DIR prefix of Boost 1.39 [guess]
1559 Some influential environment variables:
1560 CC C compiler command
1561 CFLAGS C compiler flags
1562 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1563 nonstandard directory <lib dir>
1564 LIBS libraries to pass to the linker, e.g. -l<library>
1565 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1566 you have headers in a nonstandard directory <include dir>
1568 CXX C++ compiler command
1569 CXXFLAGS C++ compiler flags
1570 CXXCPP C++ preprocessor
1571 PKG_CONFIG path to pkg-config utility
1573 directories to add to pkg-config's search path
1575 path overriding pkg-config's built-in search path
1576 IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
1577 IBUS_LIBS linker flags for IBUS, overriding pkg-config
1579 C compiler flags for SQLITE, overriding pkg-config
1580 SQLITE_LIBS linker flags for SQLITE, overriding pkg-config
1582 C compiler flags for LIBPINYIN, overriding pkg-config
1584 linker flags for LIBPINYIN, overriding pkg-config
1586 C compiler flags for LIBUUID, overriding pkg-config
1588 linker flags for LIBUUID, overriding pkg-config
1589 PYTHON the Python interpreter
1590 BOOST_ROOT Location of Boost installation
1592 C compiler flags for OPENCC, overriding pkg-config
1593 OPENCC_LIBS linker flags for OPENCC, overriding pkg-config
1594 LUA_CFLAGS C compiler flags for LUA, overriding pkg-config
1595 LUA_LIBS linker flags for LUA, overriding pkg-config
1597 Use these variables to override the choices made by `configure' or to help
1598 it to find libraries and programs with nonstandard names/locations.
1600 Report bugs to <https://github.com/libpinyin/ibus-libpinyin/issues/new>.
1605 if test "$ac_init_help" = "recursive"; then
1606 # If there are subdirs, report their specific --help.
1607 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1608 test -d "$ac_dir" ||
1609 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1614 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1616 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1617 # A ".." for each directory in $ac_dir_suffix.
1618 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1619 case $ac_top_builddir_sub in
1620 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1621 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1624 ac_abs_top_builddir=$ac_pwd
1625 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1626 # for backward compatibility:
1627 ac_top_builddir=$ac_top_build_prefix
1630 .) # We are building in place.
1632 ac_top_srcdir=$ac_top_builddir_sub
1633 ac_abs_top_srcdir=$ac_pwd ;;
1634 [\\/]* | ?:[\\/]* ) # Absolute name.
1635 ac_srcdir=$srcdir$ac_dir_suffix;
1636 ac_top_srcdir=$srcdir
1637 ac_abs_top_srcdir=$srcdir ;;
1639 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1640 ac_top_srcdir=$ac_top_build_prefix$srcdir
1641 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1643 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1645 cd "$ac_dir" || { ac_status=$?; continue; }
1646 # Check for guested configure.
1647 if test -f "$ac_srcdir/configure.gnu"; then
1649 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1650 elif test -f "$ac_srcdir/configure"; then
1652 $SHELL "$ac_srcdir/configure" --help=recursive
1654 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1656 cd "$ac_pwd" || { ac_status=$?; break; }
1660 test -n "$ac_init_help" && exit $ac_status
1661 if $ac_init_version; then
1663 ibus-libpinyin configure 1.6.92
1664 generated by GNU Autoconf 2.69
1666 Copyright (C) 2012 Free Software Foundation, Inc.
1667 This configure script is free software; the Free Software Foundation
1668 gives unlimited permission to copy, distribute and modify it.
1673 ## ------------------------ ##
1674 ## Autoconf initialization. ##
1675 ## ------------------------ ##
1677 # ac_fn_c_try_compile LINENO
1678 # --------------------------
1679 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1680 ac_fn_c_try_compile ()
1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683 rm -f conftest.$ac_objext
1684 if { { ac_try="$ac_compile"
1686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1687 *) ac_try_echo=$ac_try;;
1689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1690 $as_echo "$ac_try_echo"; } >&5
1691 (eval "$ac_compile") 2>conftest.err
1693 if test -s conftest.err; then
1694 grep -v '^ *+' conftest.err >conftest.er1
1695 cat conftest.er1 >&5
1696 mv -f conftest.er1 conftest.err
1698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1699 test $ac_status = 0; } && {
1700 test -z "$ac_c_werror_flag" ||
1701 test ! -s conftest.err
1702 } && test -s conftest.$ac_objext; then :
1705 $as_echo "$as_me: failed program was:" >&5
1706 sed 's/^/| /' conftest.$ac_ext >&5
1710 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1711 as_fn_set_status $ac_retval
1713 } # ac_fn_c_try_compile
1715 # ac_fn_c_try_cpp LINENO
1716 # ----------------------
1717 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721 if { { ac_try="$ac_cpp conftest.$ac_ext"
1723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724 *) ac_try_echo=$ac_try;;
1726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727 $as_echo "$ac_try_echo"; } >&5
1728 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1730 if test -s conftest.err; then
1731 grep -v '^ *+' conftest.err >conftest.er1
1732 cat conftest.er1 >&5
1733 mv -f conftest.er1 conftest.err
1735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736 test $ac_status = 0; } > conftest.i && {
1737 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1738 test ! -s conftest.err
1742 $as_echo "$as_me: failed program was:" >&5
1743 sed 's/^/| /' conftest.$ac_ext >&5
1747 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1748 as_fn_set_status $ac_retval
1752 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1753 # -------------------------------------------------------
1754 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1755 # the include files in INCLUDES and setting the cache variable VAR
1757 ac_fn_c_check_header_mongrel ()
1759 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760 if eval \${$3+:} false; then :
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1762 $as_echo_n "checking for $2... " >&6; }
1763 if eval \${$3+:} false; then :
1764 $as_echo_n "(cached) " >&6
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1768 $as_echo "$ac_res" >&6; }
1770 # Is the header compilable?
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1772 $as_echo_n "checking $2 usability... " >&6; }
1773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1774 /* end confdefs.h. */
1778 if ac_fn_c_try_compile "$LINENO"; then :
1779 ac_header_compiler=yes
1781 ac_header_compiler=no
1783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1785 $as_echo "$ac_header_compiler" >&6; }
1787 # Is the header present?
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1789 $as_echo_n "checking $2 presence... " >&6; }
1790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1791 /* end confdefs.h. */
1794 if ac_fn_c_try_cpp "$LINENO"; then :
1795 ac_header_preproc=yes
1797 ac_header_preproc=no
1799 rm -f conftest.err conftest.i conftest.$ac_ext
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1801 $as_echo "$ac_header_preproc" >&6; }
1803 # So? What about this header?
1804 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1807 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1809 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1813 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1815 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1817 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1819 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1821 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1822 ( $as_echo "## --------------------------------------------------------------------- ##
1823 ## Report this to https://github.com/libpinyin/ibus-libpinyin/issues/new ##
1824 ## --------------------------------------------------------------------- ##"
1825 ) | sed "s/^/$as_me: WARNING: /" >&2
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1829 $as_echo_n "checking for $2... " >&6; }
1830 if eval \${$3+:} false; then :
1831 $as_echo_n "(cached) " >&6
1833 eval "$3=\$ac_header_compiler"
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1837 $as_echo "$ac_res" >&6; }
1839 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1841 } # ac_fn_c_check_header_mongrel
1843 # ac_fn_c_try_run LINENO
1844 # ----------------------
1845 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1846 # that executables *can* be run.
1849 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850 if { { ac_try="$ac_link"
1852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1853 *) ac_try_echo=$ac_try;;
1855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1856 $as_echo "$ac_try_echo"; } >&5
1857 (eval "$ac_link") 2>&5
1859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1860 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1861 { { case "(($ac_try" in
1862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1863 *) ac_try_echo=$ac_try;;
1865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1866 $as_echo "$ac_try_echo"; } >&5
1867 (eval "$ac_try") 2>&5
1869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1870 test $ac_status = 0; }; }; then :
1873 $as_echo "$as_me: program exited with status $ac_status" >&5
1874 $as_echo "$as_me: failed program was:" >&5
1875 sed 's/^/| /' conftest.$ac_ext >&5
1877 ac_retval=$ac_status
1879 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1880 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1881 as_fn_set_status $ac_retval
1885 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1886 # -------------------------------------------------------
1887 # Tests whether HEADER exists and can be compiled using the include files in
1888 # INCLUDES, setting the cache variable VAR accordingly.
1889 ac_fn_c_check_header_compile ()
1891 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1893 $as_echo_n "checking for $2... " >&6; }
1894 if eval \${$3+:} false; then :
1895 $as_echo_n "(cached) " >&6
1897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1898 /* end confdefs.h. */
1902 if ac_fn_c_try_compile "$LINENO"; then :
1907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1911 $as_echo "$ac_res" >&6; }
1912 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1914 } # ac_fn_c_check_header_compile
1916 # ac_fn_cxx_try_compile LINENO
1917 # ----------------------------
1918 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1919 ac_fn_cxx_try_compile ()
1921 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1922 rm -f conftest.$ac_objext
1923 if { { ac_try="$ac_compile"
1925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1926 *) ac_try_echo=$ac_try;;
1928 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1929 $as_echo "$ac_try_echo"; } >&5
1930 (eval "$ac_compile") 2>conftest.err
1932 if test -s conftest.err; then
1933 grep -v '^ *+' conftest.err >conftest.er1
1934 cat conftest.er1 >&5
1935 mv -f conftest.er1 conftest.err
1937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1938 test $ac_status = 0; } && {
1939 test -z "$ac_cxx_werror_flag" ||
1940 test ! -s conftest.err
1941 } && test -s conftest.$ac_objext; then :
1944 $as_echo "$as_me: failed program was:" >&5
1945 sed 's/^/| /' conftest.$ac_ext >&5
1949 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1950 as_fn_set_status $ac_retval
1952 } # ac_fn_cxx_try_compile
1954 # ac_fn_c_try_link LINENO
1955 # -----------------------
1956 # Try to link conftest.$ac_ext, and return whether this succeeded.
1959 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1960 rm -f conftest.$ac_objext conftest$ac_exeext
1961 if { { ac_try="$ac_link"
1963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1964 *) ac_try_echo=$ac_try;;
1966 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1967 $as_echo "$ac_try_echo"; } >&5
1968 (eval "$ac_link") 2>conftest.err
1970 if test -s conftest.err; then
1971 grep -v '^ *+' conftest.err >conftest.er1
1972 cat conftest.er1 >&5
1973 mv -f conftest.er1 conftest.err
1975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1976 test $ac_status = 0; } && {
1977 test -z "$ac_c_werror_flag" ||
1978 test ! -s conftest.err
1979 } && test -s conftest$ac_exeext && {
1980 test "$cross_compiling" = yes ||
1981 test -x conftest$ac_exeext
1985 $as_echo "$as_me: failed program was:" >&5
1986 sed 's/^/| /' conftest.$ac_ext >&5
1990 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1991 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1992 # interfere with the next link command; also delete a directory that is
1993 # left behind by Apple's compiler. We do this before executing the actions.
1994 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1995 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1996 as_fn_set_status $ac_retval
1998 } # ac_fn_c_try_link
2000 # ac_fn_c_check_func LINENO FUNC VAR
2001 # ----------------------------------
2002 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2003 ac_fn_c_check_func ()
2005 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2007 $as_echo_n "checking for $2... " >&6; }
2008 if eval \${$3+:} false; then :
2009 $as_echo_n "(cached) " >&6
2011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012 /* end confdefs.h. */
2013 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2014 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2015 #define $2 innocuous_$2
2017 /* System header to define __stub macros and hopefully few prototypes,
2018 which can conflict with char $2 (); below.
2019 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2020 <limits.h> exists even on freestanding compilers. */
2023 # include <limits.h>
2025 # include <assert.h>
2030 /* Override any GCC internal prototype to avoid an error.
2031 Use char because int might match the return type of a GCC
2032 builtin and then its argument prototype would still apply. */
2037 /* The GNU C library defines this for functions which it implements
2038 to always fail with ENOSYS. Some functions are actually named
2039 something starting with __ and the normal name is an alias. */
2040 #if defined __stub_$2 || defined __stub___$2
2052 if ac_fn_c_try_link "$LINENO"; then :
2057 rm -f core conftest.err conftest.$ac_objext \
2058 conftest$ac_exeext conftest.$ac_ext
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2062 $as_echo "$ac_res" >&6; }
2063 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2065 } # ac_fn_c_check_func
2067 # ac_fn_cxx_try_cpp LINENO
2068 # ------------------------
2069 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2070 ac_fn_cxx_try_cpp ()
2072 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2073 if { { ac_try="$ac_cpp conftest.$ac_ext"
2075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2076 *) ac_try_echo=$ac_try;;
2078 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2079 $as_echo "$ac_try_echo"; } >&5
2080 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2082 if test -s conftest.err; then
2083 grep -v '^ *+' conftest.err >conftest.er1
2084 cat conftest.er1 >&5
2085 mv -f conftest.er1 conftest.err
2087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2088 test $ac_status = 0; } > conftest.i && {
2089 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2090 test ! -s conftest.err
2094 $as_echo "$as_me: failed program was:" >&5
2095 sed 's/^/| /' conftest.$ac_ext >&5
2099 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2100 as_fn_set_status $ac_retval
2102 } # ac_fn_cxx_try_cpp
2104 # ac_fn_cxx_try_link LINENO
2105 # -------------------------
2106 # Try to link conftest.$ac_ext, and return whether this succeeded.
2107 ac_fn_cxx_try_link ()
2109 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2110 rm -f conftest.$ac_objext conftest$ac_exeext
2111 if { { ac_try="$ac_link"
2113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2114 *) ac_try_echo=$ac_try;;
2116 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2117 $as_echo "$ac_try_echo"; } >&5
2118 (eval "$ac_link") 2>conftest.err
2120 if test -s conftest.err; then
2121 grep -v '^ *+' conftest.err >conftest.er1
2122 cat conftest.er1 >&5
2123 mv -f conftest.er1 conftest.err
2125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2126 test $ac_status = 0; } && {
2127 test -z "$ac_cxx_werror_flag" ||
2128 test ! -s conftest.err
2129 } && test -s conftest$ac_exeext && {
2130 test "$cross_compiling" = yes ||
2131 test -x conftest$ac_exeext
2135 $as_echo "$as_me: failed program was:" >&5
2136 sed 's/^/| /' conftest.$ac_ext >&5
2140 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2141 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2142 # interfere with the next link command; also delete a directory that is
2143 # left behind by Apple's compiler. We do this before executing the actions.
2144 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2145 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2146 as_fn_set_status $ac_retval
2148 } # ac_fn_cxx_try_link
2150 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2151 # ---------------------------------------------------------
2152 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2153 # the include files in INCLUDES and setting the cache variable VAR
2155 ac_fn_cxx_check_header_mongrel ()
2157 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2158 if eval \${$3+:} false; then :
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2160 $as_echo_n "checking for $2... " >&6; }
2161 if eval \${$3+:} false; then :
2162 $as_echo_n "(cached) " >&6
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2166 $as_echo "$ac_res" >&6; }
2168 # Is the header compilable?
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2170 $as_echo_n "checking $2 usability... " >&6; }
2171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2172 /* end confdefs.h. */
2176 if ac_fn_cxx_try_compile "$LINENO"; then :
2177 ac_header_compiler=yes
2179 ac_header_compiler=no
2181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2183 $as_echo "$ac_header_compiler" >&6; }
2185 # Is the header present?
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2187 $as_echo_n "checking $2 presence... " >&6; }
2188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2189 /* end confdefs.h. */
2192 if ac_fn_cxx_try_cpp "$LINENO"; then :
2193 ac_header_preproc=yes
2195 ac_header_preproc=no
2197 rm -f conftest.err conftest.i conftest.$ac_ext
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2199 $as_echo "$ac_header_preproc" >&6; }
2201 # So? What about this header?
2202 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2205 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2207 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2211 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2213 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2215 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2217 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2219 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2220 ( $as_echo "## --------------------------------------------------------------------- ##
2221 ## Report this to https://github.com/libpinyin/ibus-libpinyin/issues/new ##
2222 ## --------------------------------------------------------------------- ##"
2223 ) | sed "s/^/$as_me: WARNING: /" >&2
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2227 $as_echo_n "checking for $2... " >&6; }
2228 if eval \${$3+:} false; then :
2229 $as_echo_n "(cached) " >&6
2231 eval "$3=\$ac_header_compiler"
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2235 $as_echo "$ac_res" >&6; }
2237 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2239 } # ac_fn_cxx_check_header_mongrel
2240 cat >config.log <<_ACEOF
2241 This file contains any messages produced by compilers while
2242 running configure, to aid debugging if configure makes a mistake.
2244 It was created by ibus-libpinyin $as_me 1.6.92, which was
2245 generated by GNU Autoconf 2.69. Invocation command line was
2257 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2258 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2259 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2260 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2261 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2263 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2264 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2266 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2267 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2268 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2269 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2270 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2271 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2272 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2280 test -z "$as_dir" && as_dir=.
2281 $as_echo "PATH: $as_dir"
2297 # Keep a trace of the command line.
2298 # Strip out --no-create and --no-recursion so they do not pile up.
2299 # Strip out --silent because we don't want to record it for future runs.
2300 # Also quote any args containing shell meta-characters.
2301 # Make two passes to allow for proper duplicate-argument suppression.
2305 ac_must_keep_next=false
2311 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2312 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2313 | -silent | --silent | --silen | --sile | --sil)
2316 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2319 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2321 as_fn_append ac_configure_args1 " '$ac_arg'"
2322 if test $ac_must_keep_next = true; then
2323 ac_must_keep_next=false # Got value, back to normal.
2326 *=* | --config-cache | -C | -disable-* | --disable-* \
2327 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2328 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2329 | -with-* | --with-* | -without-* | --without-* | --x)
2330 case "$ac_configure_args0 " in
2331 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2334 -* ) ac_must_keep_next=true ;;
2337 as_fn_append ac_configure_args " '$ac_arg'"
2342 { ac_configure_args0=; unset ac_configure_args0;}
2343 { ac_configure_args1=; unset ac_configure_args1;}
2345 # When interrupted or exit'd, cleanup temporary files, and complete
2346 # config.log. We remove comments because anyway the quotes in there
2347 # would cause problems or look ugly.
2348 # WARNING: Use '\'' to represent an apostrophe within the trap.
2349 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2350 trap 'exit_status=$?
2351 # Save into config.log some information that might help in debugging.
2355 $as_echo "## ---------------- ##
2356 ## Cache variables. ##
2357 ## ---------------- ##"
2359 # The following way of writing the cache mishandles newlines in values,
2361 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2362 eval ac_val=\$$ac_var
2366 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2367 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2370 _ | IFS | as_nl) ;; #(
2371 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2372 *) { eval $ac_var=; unset $ac_var;} ;;
2377 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2378 *${as_nl}ac_space=\ *)
2380 "s/'\''/'\''\\\\'\'''\''/g;
2381 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2384 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2391 $as_echo "## ----------------- ##
2392 ## Output variables. ##
2393 ## ----------------- ##"
2395 for ac_var in $ac_subst_vars
2397 eval ac_val=\$$ac_var
2399 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2401 $as_echo "$ac_var='\''$ac_val'\''"
2405 if test -n "$ac_subst_files"; then
2406 $as_echo "## ------------------- ##
2407 ## File substitutions. ##
2408 ## ------------------- ##"
2410 for ac_var in $ac_subst_files
2412 eval ac_val=\$$ac_var
2414 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2416 $as_echo "$ac_var='\''$ac_val'\''"
2421 if test -s confdefs.h; then
2422 $as_echo "## ----------- ##
2429 test "$ac_signal" != 0 &&
2430 $as_echo "$as_me: caught signal $ac_signal"
2431 $as_echo "$as_me: exit $exit_status"
2433 rm -f core *.core core.conftest.* &&
2434 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2437 for ac_signal in 1 2 13 15; do
2438 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2442 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2443 rm -f -r conftest* confdefs.h
2445 $as_echo "/* confdefs.h */" > confdefs.h
2447 # Predefined preprocessor variables.
2449 cat >>confdefs.h <<_ACEOF
2450 #define PACKAGE_NAME "$PACKAGE_NAME"
2453 cat >>confdefs.h <<_ACEOF
2454 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2457 cat >>confdefs.h <<_ACEOF
2458 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2461 cat >>confdefs.h <<_ACEOF
2462 #define PACKAGE_STRING "$PACKAGE_STRING"
2465 cat >>confdefs.h <<_ACEOF
2466 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2469 cat >>confdefs.h <<_ACEOF
2470 #define PACKAGE_URL "$PACKAGE_URL"
2474 # Let the site file select an alternate cache file if it wants to.
2475 # Prefer an explicitly selected file to automatically selected ones.
2478 if test -n "$CONFIG_SITE"; then
2479 # We do not want a PATH search for config.site.
2480 case $CONFIG_SITE in #((
2481 -*) ac_site_file1=./$CONFIG_SITE;;
2482 */*) ac_site_file1=$CONFIG_SITE;;
2483 *) ac_site_file1=./$CONFIG_SITE;;
2485 elif test "x$prefix" != xNONE; then
2486 ac_site_file1=$prefix/share/config.site
2487 ac_site_file2=$prefix/etc/config.site
2489 ac_site_file1=$ac_default_prefix/share/config.site
2490 ac_site_file2=$ac_default_prefix/etc/config.site
2492 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2494 test "x$ac_site_file" = xNONE && continue
2495 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2497 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2498 sed 's/^/| /' "$ac_site_file" >&5
2500 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2501 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2502 as_fn_error $? "failed to load site script $ac_site_file
2503 See \`config.log' for more details" "$LINENO" 5; }
2507 if test -r "$cache_file"; then
2508 # Some versions of bash will fail to source /dev/null (special files
2509 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2510 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2512 $as_echo "$as_me: loading cache $cache_file" >&6;}
2514 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2515 *) . "./$cache_file";;
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2520 $as_echo "$as_me: creating cache $cache_file" >&6;}
2524 # Check that the precious variables saved in the cache have kept the same
2526 ac_cache_corrupted=false
2527 for ac_var in $ac_precious_vars; do
2528 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2529 eval ac_new_set=\$ac_env_${ac_var}_set
2530 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2531 eval ac_new_val=\$ac_env_${ac_var}_value
2532 case $ac_old_set,$ac_new_set in
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2535 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2536 ac_cache_corrupted=: ;;
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2539 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2540 ac_cache_corrupted=: ;;
2543 if test "x$ac_old_val" != "x$ac_new_val"; then
2544 # differences in whitespace do not lead to failure.
2545 ac_old_val_w=`echo x $ac_old_val`
2546 ac_new_val_w=`echo x $ac_new_val`
2547 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2549 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2550 ac_cache_corrupted=:
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2553 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2554 eval $ac_var=\$ac_old_val
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2557 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2559 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2562 # Pass precious variables to config.status.
2563 if test "$ac_new_set" = set; then
2565 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2566 *) ac_arg=$ac_var=$ac_new_val ;;
2568 case " $ac_configure_args " in
2569 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2570 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2574 if $ac_cache_corrupted; then
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2576 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2578 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2579 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2581 ## -------------------- ##
2582 ## Main body of script. ##
2583 ## -------------------- ##
2586 ac_cpp='$CPP $CPPFLAGS'
2587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2592 am__api_version='1.13'
2595 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2596 if test -f "$ac_dir/install-sh"; then
2598 ac_install_sh="$ac_aux_dir/install-sh -c"
2600 elif test -f "$ac_dir/install.sh"; then
2602 ac_install_sh="$ac_aux_dir/install.sh -c"
2604 elif test -f "$ac_dir/shtool"; then
2606 ac_install_sh="$ac_aux_dir/shtool install -c"
2610 if test -z "$ac_aux_dir"; then
2611 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2614 # These three variables are undocumented and unsupported,
2615 # and are intended to be withdrawn in a future Autoconf release.
2616 # They can cause serious problems if a builder's source tree is in a directory
2617 # whose full name contains unusual characters.
2618 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2619 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2620 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2623 # Find a good install program. We prefer a C program (faster),
2624 # so one script is as good as another. But avoid the broken or
2625 # incompatible versions:
2626 # SysV /etc/install, /usr/sbin/install
2627 # SunOS /usr/etc/install
2628 # IRIX /sbin/install
2630 # AmigaOS /C/install, which installs bootblocks on floppy discs
2631 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2632 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2633 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2634 # OS/2's system install, which has a completely different semantic
2635 # ./install, which can be erroneously created by make from ./install.sh.
2636 # Reject install programs that cannot install multiple files.
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2638 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2639 if test -z "$INSTALL"; then
2640 if ${ac_cv_path_install+:} false; then :
2641 $as_echo_n "(cached) " >&6
2643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2647 test -z "$as_dir" && as_dir=.
2648 # Account for people who put trailing slashes in PATH elements.
2649 case $as_dir/ in #((
2650 ./ | .// | /[cC]/* | \
2651 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2652 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2655 # OSF1 and SCO ODT 3.0 have their own names for install.
2656 # Don't use installbsd from OSF since it installs stuff as root
2658 for ac_prog in ginstall scoinst install; do
2659 for ac_exec_ext in '' $ac_executable_extensions; do
2660 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2661 if test $ac_prog = install &&
2662 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2663 # AIX install. It has an incompatible calling convention.
2665 elif test $ac_prog = install &&
2666 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2667 # program-specific install script used by HP pwplus--don't use.
2670 rm -rf conftest.one conftest.two conftest.dir
2671 echo one > conftest.one
2672 echo two > conftest.two
2674 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2675 test -s conftest.one && test -s conftest.two &&
2676 test -s conftest.dir/conftest.one &&
2677 test -s conftest.dir/conftest.two
2679 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2692 rm -rf conftest.one conftest.two conftest.dir
2695 if test "${ac_cv_path_install+set}" = set; then
2696 INSTALL=$ac_cv_path_install
2698 # As a last resort, use the slow shell script. Don't cache a
2699 # value for INSTALL within a source directory, because that will
2700 # break other packages using the cache if that directory is
2701 # removed, or if the value is a relative name.
2702 INSTALL=$ac_install_sh
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2706 $as_echo "$INSTALL" >&6; }
2708 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2709 # It thinks the first close brace ends the variable substitution.
2710 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2712 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2714 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2717 $as_echo_n "checking whether build environment is sane... " >&6; }
2718 # Reject unsafe characters in $srcdir or the absolute working directory
2719 # name. Accept space and tab only in the latter.
2723 *[\\\"\#\$\&\'\`$am_lf]*)
2724 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2727 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2728 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2731 # Do 'set' in a subshell so we don't clobber the current shell's
2732 # arguments. Must try -L first in case configure is actually a
2733 # symlink; some systems play weird games with the mod time of symlinks
2734 # (eg FreeBSD returns the mod time of the symlink's containing
2738 for am_try in 1 2; do
2739 echo "timestamp, slept: $am_has_slept" > conftest.file
2740 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2741 if test "$*" = "X"; then
2743 set X `ls -t "$srcdir/configure" conftest.file`
2745 if test "$*" != "X $srcdir/configure conftest.file" \
2746 && test "$*" != "X conftest.file $srcdir/configure"; then
2748 # If neither matched, then we have a broken ls. This can happen
2749 # if, for instance, CONFIG_SHELL is bash and it inherits a
2750 # broken ls alias from the environment. This has actually
2751 # happened. Such a system could not be considered "sane".
2752 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2753 alias in your environment" "$LINENO" 5
2755 if test "$2" = conftest.file || test $am_try -eq 2; then
2762 test "$2" = conftest.file
2768 as_fn_error $? "newly created file is older than distributed files!
2769 Check your system clock" "$LINENO" 5
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2772 $as_echo "yes" >&6; }
2773 # If we didn't sleep, we still need to ensure time stamps of config.status and
2774 # generated files are strictly newer.
2776 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2783 test "$program_prefix" != NONE &&
2784 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2785 # Use a double $ so make ignores it.
2786 test "$program_suffix" != NONE &&
2787 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2788 # Double any \ or $.
2789 # By default was `s,x,x', remove it if useless.
2790 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2791 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2793 # expand $ac_aux_dir to an absolute path
2794 am_aux_dir=`cd $ac_aux_dir && pwd`
2796 if test x"${MISSING+set}" != xset; then
2799 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2801 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2804 # Use eval to expand $SHELL
2805 if eval "$MISSING --is-lightweight"; then
2806 am_missing_run="$MISSING "
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2810 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2813 if test x"${install_sh}" != xset; then
2816 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2818 install_sh="\${SHELL} $am_aux_dir/install-sh"
2822 # Installed binaries are usually stripped using 'strip' when the user
2823 # run "make install-strip". However 'strip' might not be the right
2824 # tool to use in cross-compilation environments, therefore Automake
2825 # will honor the 'STRIP' environment variable to overrule this program.
2826 if test "$cross_compiling" != no; then
2827 if test -n "$ac_tool_prefix"; then
2828 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2829 set dummy ${ac_tool_prefix}strip; ac_word=$2
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2831 $as_echo_n "checking for $ac_word... " >&6; }
2832 if ${ac_cv_prog_STRIP+:} false; then :
2833 $as_echo_n "(cached) " >&6
2835 if test -n "$STRIP"; then
2836 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842 test -z "$as_dir" && as_dir=.
2843 for ac_exec_ext in '' $ac_executable_extensions; do
2844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2845 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2855 STRIP=$ac_cv_prog_STRIP
2856 if test -n "$STRIP"; then
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2858 $as_echo "$STRIP" >&6; }
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2861 $as_echo "no" >&6; }
2866 if test -z "$ac_cv_prog_STRIP"; then
2868 # Extract the first word of "strip", so it can be a program name with args.
2869 set dummy strip; 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 ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2873 $as_echo_n "(cached) " >&6
2875 if test -n "$ac_ct_STRIP"; then
2876 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2885 ac_cv_prog_ac_ct_STRIP="strip"
2886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2895 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2896 if test -n "$ac_ct_STRIP"; then
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2898 $as_echo "$ac_ct_STRIP" >&6; }
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2901 $as_echo "no" >&6; }
2904 if test "x$ac_ct_STRIP" = x; then
2907 case $cross_compiling:$ac_tool_warned in
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2910 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2911 ac_tool_warned=yes ;;
2916 STRIP="$ac_cv_prog_STRIP"
2920 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2923 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2924 if test -z "$MKDIR_P"; then
2925 if ${ac_cv_path_mkdir+:} false; then :
2926 $as_echo_n "(cached) " >&6
2928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2929 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2932 test -z "$as_dir" && as_dir=.
2933 for ac_prog in mkdir gmkdir; do
2934 for ac_exec_ext in '' $ac_executable_extensions; do
2935 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2936 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2937 'mkdir (GNU coreutils) '* | \
2938 'mkdir (coreutils) '* | \
2939 'mkdir (fileutils) '4.1*)
2940 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2950 test -d ./--version && rmdir ./--version
2951 if test "${ac_cv_path_mkdir+set}" = set; then
2952 MKDIR_P="$ac_cv_path_mkdir -p"
2954 # As a last resort, use the slow shell script. Don't cache a
2955 # value for MKDIR_P within a source directory, because that will
2956 # break other packages using the cache if that directory is
2957 # removed, or if the value is a relative name.
2958 MKDIR_P="$ac_install_sh -d"
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2962 $as_echo "$MKDIR_P" >&6; }
2964 for ac_prog in gawk mawk nawk awk
2966 # Extract the first word of "$ac_prog", so it can be a program name with args.
2967 set dummy $ac_prog; ac_word=$2
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2969 $as_echo_n "checking for $ac_word... " >&6; }
2970 if ${ac_cv_prog_AWK+:} false; then :
2971 $as_echo_n "(cached) " >&6
2973 if test -n "$AWK"; then
2974 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2980 test -z "$as_dir" && as_dir=.
2981 for ac_exec_ext in '' $ac_executable_extensions; do
2982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2983 ac_cv_prog_AWK="$ac_prog"
2984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2994 if test -n "$AWK"; then
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2996 $as_echo "$AWK" >&6; }
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2999 $as_echo "no" >&6; }
3003 test -n "$AWK" && break
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3007 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3009 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3010 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3011 $as_echo_n "(cached) " >&6
3013 cat >conftest.make <<\_ACEOF
3016 @echo '@@@%%%=$(MAKE)=@@@%%%'
3018 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3019 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3021 eval ac_cv_prog_make_${ac_make}_set=yes;;
3023 eval ac_cv_prog_make_${ac_make}_set=no;;
3027 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3029 $as_echo "yes" >&6; }
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3033 $as_echo "no" >&6; }
3034 SET_MAKE="MAKE=${MAKE-make}"
3037 rm -rf .tst 2>/dev/null
3038 mkdir .tst 2>/dev/null
3039 if test -d .tst; then
3044 rmdir .tst 2>/dev/null
3046 # Check whether --enable-silent-rules was given.
3047 if test "${enable_silent_rules+set}" = set; then :
3048 enableval=$enable_silent_rules;
3051 case $enable_silent_rules in # (((
3052 yes) AM_DEFAULT_VERBOSITY=0;;
3053 no) AM_DEFAULT_VERBOSITY=1;;
3054 *) AM_DEFAULT_VERBOSITY=1;;
3056 am_make=${MAKE-make}
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3058 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3059 if ${am_cv_make_support_nested_variables+:} false; then :
3060 $as_echo_n "(cached) " >&6
3062 if $as_echo 'TRUE=$(BAR$(V))
3068 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3069 am_cv_make_support_nested_variables=yes
3071 am_cv_make_support_nested_variables=no
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3075 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3076 if test $am_cv_make_support_nested_variables = yes; then
3078 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3080 AM_V=$AM_DEFAULT_VERBOSITY
3081 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3085 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3086 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3087 # is not polluted with repeated "-I."
3088 am__isrc=' -I$(srcdir)'
3089 # test to see if srcdir already configured
3090 if test -f $srcdir/config.status; then
3091 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3095 # test whether we have cygpath
3096 if test -z "$CYGPATH_W"; then
3097 if (cygpath --version) >/dev/null 2>/dev/null; then
3098 CYGPATH_W='cygpath -w'
3105 # Define the identity of the package.
3106 PACKAGE='ibus-libpinyin'
3110 cat >>confdefs.h <<_ACEOF
3111 #define PACKAGE "$PACKAGE"
3115 cat >>confdefs.h <<_ACEOF
3116 #define VERSION "$VERSION"
3119 # Some tools Automake needs.
3121 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3124 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3127 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3130 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3133 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3135 # For better backward compatibility. To be removed once Automake 1.9.x
3136 # dies out for good. For more background, see:
3137 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3138 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3139 mkdir_p='$(MKDIR_P)'
3141 # We need awk for the "check" target. The system "awk" is bad on
3143 # Always define AMTAR for backward compatibility. Yes, it's still used
3144 # in the wild :-( We should find a proper way to deprecate it ...
3148 # We'll loop over all known methods to create a tar archive until one works.
3149 _am_tools='gnutar pax cpio none'
3151 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3158 DEPDIR="${am__leading_dot}deps"
3160 ac_config_commands="$ac_config_commands depfiles"
3163 am_make=${MAKE-make}
3164 cat > confinc << 'END'
3166 @echo this is the am__doit target
3169 # If we don't find an include directive, just comment out the code.
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3171 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3175 # First try GNU make style include.
3176 echo "include confinc" > confmf
3177 # Ignore all kinds of additional output from 'make'.
3178 case `$am_make -s -f confmf 2> /dev/null` in #(
3179 *the\ am__doit\ target*)
3185 # Now try BSD make style include.
3186 if test "$am__include" = "#"; then
3187 echo '.include "confinc"' > confmf
3188 case `$am_make -s -f confmf 2> /dev/null` in #(
3189 *the\ am__doit\ target*)
3190 am__include=.include
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3199 $as_echo "$_am_result" >&6; }
3200 rm -f confinc confmf
3202 # Check whether --enable-dependency-tracking was given.
3203 if test "${enable_dependency_tracking+set}" = set; then :
3204 enableval=$enable_dependency_tracking;
3207 if test "x$enable_dependency_tracking" != xno; then
3208 am_depcomp="$ac_aux_dir/depcomp"
3212 if test "x$enable_dependency_tracking" != xno; then
3222 ac_cpp='$CPP $CPPFLAGS'
3223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3226 if test -n "$ac_tool_prefix"; then
3227 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3228 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3230 $as_echo_n "checking for $ac_word... " >&6; }
3231 if ${ac_cv_prog_CC+:} false; then :
3232 $as_echo_n "(cached) " >&6
3234 if test -n "$CC"; then
3235 ac_cv_prog_CC="$CC" # Let the user override the test.
3237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3241 test -z "$as_dir" && as_dir=.
3242 for ac_exec_ext in '' $ac_executable_extensions; do
3243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3244 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3255 if test -n "$CC"; then
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3257 $as_echo "$CC" >&6; }
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3260 $as_echo "no" >&6; }
3265 if test -z "$ac_cv_prog_CC"; then
3267 # Extract the first word of "gcc", so it can be a program name with args.
3268 set dummy gcc; ac_word=$2
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3270 $as_echo_n "checking for $ac_word... " >&6; }
3271 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3272 $as_echo_n "(cached) " >&6
3274 if test -n "$ac_ct_CC"; then
3275 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3281 test -z "$as_dir" && as_dir=.
3282 for ac_exec_ext in '' $ac_executable_extensions; do
3283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3284 ac_cv_prog_ac_ct_CC="gcc"
3285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3294 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3295 if test -n "$ac_ct_CC"; then
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3297 $as_echo "$ac_ct_CC" >&6; }
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3300 $as_echo "no" >&6; }
3303 if test "x$ac_ct_CC" = x; then
3306 case $cross_compiling:$ac_tool_warned in
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3309 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3310 ac_tool_warned=yes ;;
3318 if test -z "$CC"; then
3319 if test -n "$ac_tool_prefix"; then
3320 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3321 set dummy ${ac_tool_prefix}cc; ac_word=$2
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3323 $as_echo_n "checking for $ac_word... " >&6; }
3324 if ${ac_cv_prog_CC+:} false; then :
3325 $as_echo_n "(cached) " >&6
3327 if test -n "$CC"; then
3328 ac_cv_prog_CC="$CC" # Let the user override the test.
3330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3334 test -z "$as_dir" && as_dir=.
3335 for ac_exec_ext in '' $ac_executable_extensions; do
3336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3337 ac_cv_prog_CC="${ac_tool_prefix}cc"
3338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3348 if test -n "$CC"; then
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3350 $as_echo "$CC" >&6; }
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3353 $as_echo "no" >&6; }
3359 if test -z "$CC"; then
3360 # Extract the first word of "cc", so it can be a program name with args.
3361 set dummy cc; ac_word=$2
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3363 $as_echo_n "checking for $ac_word... " >&6; }
3364 if ${ac_cv_prog_CC+:} false; then :
3365 $as_echo_n "(cached) " >&6
3367 if test -n "$CC"; then
3368 ac_cv_prog_CC="$CC" # Let the user override the test.
3371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3375 test -z "$as_dir" && as_dir=.
3376 for ac_exec_ext in '' $ac_executable_extensions; do
3377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3378 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3379 ac_prog_rejected=yes
3383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3390 if test $ac_prog_rejected = yes; then
3391 # We found a bogon in the path, so make sure we never use it.
3392 set dummy $ac_cv_prog_CC
3394 if test $# != 0; then
3395 # We chose a different compiler from the bogus one.
3396 # However, it has the same basename, so the bogon will be chosen
3397 # first if we set CC to just the basename; use the full file name.
3399 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3405 if test -n "$CC"; then
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3407 $as_echo "$CC" >&6; }
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3410 $as_echo "no" >&6; }
3415 if test -z "$CC"; then
3416 if test -n "$ac_tool_prefix"; then
3417 for ac_prog in cl.exe
3419 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3420 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3422 $as_echo_n "checking for $ac_word... " >&6; }
3423 if ${ac_cv_prog_CC+:} false; then :
3424 $as_echo_n "(cached) " >&6
3426 if test -n "$CC"; then
3427 ac_cv_prog_CC="$CC" # Let the user override the test.
3429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3433 test -z "$as_dir" && as_dir=.
3434 for ac_exec_ext in '' $ac_executable_extensions; do
3435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3436 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3447 if test -n "$CC"; then
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3449 $as_echo "$CC" >&6; }
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3452 $as_echo "no" >&6; }
3456 test -n "$CC" && break
3459 if test -z "$CC"; then
3461 for ac_prog in cl.exe
3463 # Extract the first word of "$ac_prog", so it can be a program name with args.
3464 set dummy $ac_prog; ac_word=$2
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3466 $as_echo_n "checking for $ac_word... " >&6; }
3467 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3468 $as_echo_n "(cached) " >&6
3470 if test -n "$ac_ct_CC"; then
3471 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3477 test -z "$as_dir" && as_dir=.
3478 for ac_exec_ext in '' $ac_executable_extensions; do
3479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3480 ac_cv_prog_ac_ct_CC="$ac_prog"
3481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3490 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3491 if test -n "$ac_ct_CC"; then
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3493 $as_echo "$ac_ct_CC" >&6; }
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3496 $as_echo "no" >&6; }
3500 test -n "$ac_ct_CC" && break
3503 if test "x$ac_ct_CC" = x; then
3506 case $cross_compiling:$ac_tool_warned in
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3509 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3510 ac_tool_warned=yes ;;
3519 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3520 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3521 as_fn_error $? "no acceptable C compiler found in \$PATH
3522 See \`config.log' for more details" "$LINENO" 5; }
3524 # Provide some information about the compiler.
3525 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3528 for ac_option in --version -v -V -qversion; do
3529 { { ac_try="$ac_compiler $ac_option >&5"
3531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3532 *) ac_try_echo=$ac_try;;
3534 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3535 $as_echo "$ac_try_echo"; } >&5
3536 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3538 if test -s conftest.err; then
3540 ... rest of stderr output deleted ...
3541 10q' conftest.err >conftest.er1
3542 cat conftest.er1 >&5
3544 rm -f conftest.er1 conftest.err
3545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3546 test $ac_status = 0; }
3549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3550 /* end confdefs.h. */
3560 ac_clean_files_save=$ac_clean_files
3561 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3562 # Try to create an executable without -o first, disregard a.out.
3563 # It will help us diagnose broken compilers, and finding out an intuition
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3566 $as_echo_n "checking whether the C compiler works... " >&6; }
3567 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3569 # The possible output files:
3570 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3573 for ac_file in $ac_files
3576 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3577 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3582 if { { ac_try="$ac_link_default"
3584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3585 *) ac_try_echo=$ac_try;;
3587 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3588 $as_echo "$ac_try_echo"; } >&5
3589 (eval "$ac_link_default") 2>&5
3591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3592 test $ac_status = 0; }; then :
3593 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3594 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3595 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3596 # so that the user can short-circuit this test for compilers unknown to
3598 for ac_file in $ac_files ''
3600 test -f "$ac_file" || continue
3602 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3605 # We found the default executable, but exeext='' is most
3609 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3611 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3613 # We set ac_cv_exeext here because the later test for it is not
3614 # safe: cross compilers may not add the suffix if given an `-o'
3615 # argument, so we may need to know it at that point already.
3616 # Even if this section looks crufty: it has the advantage of
3623 test "$ac_cv_exeext" = no && ac_cv_exeext=
3628 if test -z "$ac_file"; then :
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3630 $as_echo "no" >&6; }
3631 $as_echo "$as_me: failed program was:" >&5
3632 sed 's/^/| /' conftest.$ac_ext >&5
3634 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3635 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3636 as_fn_error 77 "C compiler cannot create executables
3637 See \`config.log' for more details" "$LINENO" 5; }
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3640 $as_echo "yes" >&6; }
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3643 $as_echo_n "checking for C compiler default output file name... " >&6; }
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3645 $as_echo "$ac_file" >&6; }
3646 ac_exeext=$ac_cv_exeext
3648 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3649 ac_clean_files=$ac_clean_files_save
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3651 $as_echo_n "checking for suffix of executables... " >&6; }
3652 if { { ac_try="$ac_link"
3654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3655 *) ac_try_echo=$ac_try;;
3657 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3658 $as_echo "$ac_try_echo"; } >&5
3659 (eval "$ac_link") 2>&5
3661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3662 test $ac_status = 0; }; then :
3663 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3664 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3665 # work properly (i.e., refer to `conftest.exe'), while it won't with
3667 for ac_file in conftest.exe conftest conftest.*; do
3668 test -f "$ac_file" || continue
3670 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3671 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3677 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3678 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3679 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3680 See \`config.log' for more details" "$LINENO" 5; }
3682 rm -f conftest conftest$ac_cv_exeext
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3684 $as_echo "$ac_cv_exeext" >&6; }
3686 rm -f conftest.$ac_ext
3687 EXEEXT=$ac_cv_exeext
3689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3690 /* end confdefs.h. */
3695 FILE *f = fopen ("conftest.out", "w");
3696 return ferror (f) || fclose (f) != 0;
3702 ac_clean_files="$ac_clean_files conftest.out"
3703 # Check that the compiler produces executables we can run. If not, either
3704 # the compiler is broken, or we cross compile.
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3706 $as_echo_n "checking whether we are cross compiling... " >&6; }
3707 if test "$cross_compiling" != yes; then
3708 { { ac_try="$ac_link"
3710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3711 *) ac_try_echo=$ac_try;;
3713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3714 $as_echo "$ac_try_echo"; } >&5
3715 (eval "$ac_link") 2>&5
3717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3718 test $ac_status = 0; }
3719 if { ac_try='./conftest$ac_cv_exeext'
3720 { { case "(($ac_try" in
3721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3722 *) ac_try_echo=$ac_try;;
3724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3725 $as_echo "$ac_try_echo"; } >&5
3726 (eval "$ac_try") 2>&5
3728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3729 test $ac_status = 0; }; }; then
3732 if test "$cross_compiling" = maybe; then
3735 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3736 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3737 as_fn_error $? "cannot run C compiled programs.
3738 If you meant to cross compile, use \`--host'.
3739 See \`config.log' for more details" "$LINENO" 5; }
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3744 $as_echo "$cross_compiling" >&6; }
3746 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3747 ac_clean_files=$ac_clean_files_save
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3749 $as_echo_n "checking for suffix of object files... " >&6; }
3750 if ${ac_cv_objext+:} false; then :
3751 $as_echo_n "(cached) " >&6
3753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3754 /* end confdefs.h. */
3764 rm -f conftest.o conftest.obj
3765 if { { ac_try="$ac_compile"
3767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3768 *) ac_try_echo=$ac_try;;
3770 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3771 $as_echo "$ac_try_echo"; } >&5
3772 (eval "$ac_compile") 2>&5
3774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3775 test $ac_status = 0; }; then :
3776 for ac_file in conftest.o conftest.obj conftest.*; do
3777 test -f "$ac_file" || continue;
3779 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3780 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3785 $as_echo "$as_me: failed program was:" >&5
3786 sed 's/^/| /' conftest.$ac_ext >&5
3788 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3789 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3790 as_fn_error $? "cannot compute suffix of object files: cannot compile
3791 See \`config.log' for more details" "$LINENO" 5; }
3793 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3796 $as_echo "$ac_cv_objext" >&6; }
3797 OBJEXT=$ac_cv_objext
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3800 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3801 if ${ac_cv_c_compiler_gnu+:} false; then :
3802 $as_echo_n "(cached) " >&6
3804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3805 /* end confdefs.h. */
3818 if ac_fn_c_try_compile "$LINENO"; then :
3823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3824 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3828 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3829 if test $ac_compiler_gnu = yes; then
3834 ac_test_CFLAGS=${CFLAGS+set}
3835 ac_save_CFLAGS=$CFLAGS
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3837 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3838 if ${ac_cv_prog_cc_g+:} false; then :
3839 $as_echo_n "(cached) " >&6
3841 ac_save_c_werror_flag=$ac_c_werror_flag
3842 ac_c_werror_flag=yes
3845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3846 /* end confdefs.h. */
3856 if ac_fn_c_try_compile "$LINENO"; then :
3860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3861 /* end confdefs.h. */
3871 if ac_fn_c_try_compile "$LINENO"; then :
3874 ac_c_werror_flag=$ac_save_c_werror_flag
3876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3877 /* end confdefs.h. */
3887 if ac_fn_c_try_compile "$LINENO"; then :
3890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3895 ac_c_werror_flag=$ac_save_c_werror_flag
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3898 $as_echo "$ac_cv_prog_cc_g" >&6; }
3899 if test "$ac_test_CFLAGS" = set; then
3900 CFLAGS=$ac_save_CFLAGS
3901 elif test $ac_cv_prog_cc_g = yes; then
3902 if test "$GCC" = yes; then
3908 if test "$GCC" = yes; then
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3915 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3916 if ${ac_cv_prog_cc_c89+:} false; then :
3917 $as_echo_n "(cached) " >&6
3919 ac_cv_prog_cc_c89=no
3921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3922 /* end confdefs.h. */
3926 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3927 struct buf { int x; };
3928 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3929 static char *e (p, i)
3935 static char *f (char * (*g) (char **, int), char **p, ...)
3940 s = g (p, va_arg (v,int));
3945 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3946 function prototypes and stuff, but not '\xHH' hex character constants.
3947 These don't provoke an error unfortunately, instead are silently treated
3948 as 'x'. The following induces an error, until -std is added to get
3949 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3950 array size at least. It's necessary to write '\x00'==0 to get something
3951 that's true only with -std. */
3952 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3954 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3955 inside strings and character constants. */
3957 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3959 int test (int i, double x);
3960 struct s1 {int (*f) (int a);};
3961 struct s2 {int (*f) (double a);};
3962 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3968 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3973 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3974 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3976 CC="$ac_save_CC $ac_arg"
3977 if ac_fn_c_try_compile "$LINENO"; then :
3978 ac_cv_prog_cc_c89=$ac_arg
3980 rm -f core conftest.err conftest.$ac_objext
3981 test "x$ac_cv_prog_cc_c89" != "xno" && break
3983 rm -f conftest.$ac_ext
3988 case "x$ac_cv_prog_cc_c89" in
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3991 $as_echo "none needed" >&6; } ;;
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3994 $as_echo "unsupported" >&6; } ;;
3996 CC="$CC $ac_cv_prog_cc_c89"
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3998 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4000 if test "x$ac_cv_prog_cc_c89" != xno; then :
4005 ac_cpp='$CPP $CPPFLAGS'
4006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4010 depcc="$CC" am_compiler_list=
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4013 $as_echo_n "checking dependency style of $depcc... " >&6; }
4014 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4015 $as_echo_n "(cached) " >&6
4017 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4018 # We make a subdir and do the tests there. Otherwise we can end up
4019 # making bogus files that we don't know about and never remove. For
4020 # instance it was reported that on HP-UX the gcc test will end up
4021 # making a dummy file named 'D' -- because '-MD' means "put the output
4025 # Copy depcomp to subdir because otherwise we won't find it if we're
4026 # using a relative directory.
4027 cp "$am_depcomp" conftest.dir
4029 # We will build objects and dependencies in a subdirectory because
4030 # it helps to detect inapplicable dependency modes. For instance
4031 # both Tru64's cc and ICC support -MD to output dependencies as a
4032 # side effect of compilation, but ICC will put the dependencies in
4033 # the current directory while Tru64 will put them in the object
4037 am_cv_CC_dependencies_compiler_type=none
4038 if test "$am_compiler_list" = ""; then
4039 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4042 case " $depcc " in #(
4043 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4046 for depmode in $am_compiler_list; do
4047 # Setup a source with many dependencies, because some compilers
4048 # like to wrap large dependency lists on column 80 (with \), and
4049 # we should not choose a depcomp mode which is confused by this.
4051 # We need to recreate these files for each test, as the compiler may
4052 # overwrite some of them when testing with obscure command lines.
4053 # This happens at least with the AIX C compiler.
4055 for i in 1 2 3 4 5 6; do
4056 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4057 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4058 # Solaris 10 /bin/sh.
4059 echo '/* dummy */' > sub/conftst$i.h
4061 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4063 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4064 # mode. It turns out that the SunPro C++ compiler does not properly
4065 # handle '-M -o', and we need to detect this. Also, some Intel
4066 # versions had trouble with output in subdirs.
4067 am__obj=sub/conftest.${OBJEXT-o}
4068 am__minus_obj="-o $am__obj"
4071 # This depmode causes a compiler race in universal mode.
4072 test "$am__universal" = false || continue
4075 # After this tag, mechanisms are not by side-effect, so they'll
4076 # only be used when explicitly requested.
4077 if test "x$enable_dependency_tracking" = xyes; then
4083 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4084 # This compiler won't grok '-c -o', but also, the minuso test has
4085 # not run yet. These depmodes are late enough in the game, and
4086 # so weak that their functioning should not be impacted.
4087 am__obj=conftest.${OBJEXT-o}
4092 if depmode=$depmode \
4093 source=sub/conftest.c object=$am__obj \
4094 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4095 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4096 >/dev/null 2>conftest.err &&
4097 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4098 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4099 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4100 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4101 # icc doesn't choke on unknown options, it will just issue warnings
4102 # or remarks (even with -Werror). So we grep stderr for any message
4103 # that says an option was ignored or not supported.
4104 # When given -MP, icc 7.0 and 7.1 complain thusly:
4105 # icc: Command line warning: ignoring option '-M'; no argument required
4106 # The diagnosis changed in icc 8.0:
4107 # icc: Command line remark: option '-MP' not supported
4108 if (grep 'ignoring option' conftest.err ||
4109 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4110 am_cv_CC_dependencies_compiler_type=$depmode
4119 am_cv_CC_dependencies_compiler_type=none
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4124 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4125 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4128 test "x$enable_dependency_tracking" != xno \
4129 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4131 am__fastdepCC_FALSE='#'
4133 am__fastdepCC_TRUE='#'
4134 am__fastdepCC_FALSE=
4140 ac_cpp='$CPP $CPPFLAGS'
4141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4145 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4146 # On Suns, sometimes $CPP names a directory.
4147 if test -n "$CPP" && test -d "$CPP"; then
4150 if test -z "$CPP"; then
4151 if ${ac_cv_prog_CPP+:} false; then :
4152 $as_echo_n "(cached) " >&6
4154 # Double quotes because CPP needs to be expanded
4155 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4158 for ac_c_preproc_warn_flag in '' yes
4160 # Use a header file that comes with gcc, so configuring glibc
4161 # with a fresh cross-compiler works.
4162 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4163 # <limits.h> exists even on freestanding compilers.
4164 # On the NeXT, cc -E runs the code through the compiler's parser,
4165 # not just through cpp. "Syntax error" is here to catch this case.
4166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4167 /* end confdefs.h. */
4169 # include <limits.h>
4171 # include <assert.h>
4175 if ac_fn_c_try_cpp "$LINENO"; then :
4178 # Broken: fails on valid input.
4181 rm -f conftest.err conftest.i conftest.$ac_ext
4183 # OK, works on sane cases. Now check whether nonexistent headers
4184 # can be detected and how.
4185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4186 /* end confdefs.h. */
4187 #include <ac_nonexistent.h>
4189 if ac_fn_c_try_cpp "$LINENO"; then :
4190 # Broken: success on invalid input.
4193 # Passes both tests.
4197 rm -f conftest.err conftest.i conftest.$ac_ext
4200 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4201 rm -f conftest.i conftest.err conftest.$ac_ext
4202 if $ac_preproc_ok; then :
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4215 $as_echo "$CPP" >&6; }
4217 for ac_c_preproc_warn_flag in '' yes
4219 # Use a header file that comes with gcc, so configuring glibc
4220 # with a fresh cross-compiler works.
4221 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4222 # <limits.h> exists even on freestanding compilers.
4223 # On the NeXT, cc -E runs the code through the compiler's parser,
4224 # not just through cpp. "Syntax error" is here to catch this case.
4225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4226 /* end confdefs.h. */
4228 # include <limits.h>
4230 # include <assert.h>
4234 if ac_fn_c_try_cpp "$LINENO"; then :
4237 # Broken: fails on valid input.
4240 rm -f conftest.err conftest.i conftest.$ac_ext
4242 # OK, works on sane cases. Now check whether nonexistent headers
4243 # can be detected and how.
4244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4245 /* end confdefs.h. */
4246 #include <ac_nonexistent.h>
4248 if ac_fn_c_try_cpp "$LINENO"; then :
4249 # Broken: success on invalid input.
4252 # Passes both tests.
4256 rm -f conftest.err conftest.i conftest.$ac_ext
4259 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4260 rm -f conftest.i conftest.err conftest.$ac_ext
4261 if $ac_preproc_ok; then :
4264 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4265 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4266 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4267 See \`config.log' for more details" "$LINENO" 5; }
4271 ac_cpp='$CPP $CPPFLAGS'
4272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4278 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4279 if ${ac_cv_path_GREP+:} false; then :
4280 $as_echo_n "(cached) " >&6
4282 if test -z "$GREP"; then
4283 ac_path_GREP_found=false
4284 # Loop through the user's path and test for each of PROGNAME-LIST
4285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4286 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4289 test -z "$as_dir" && as_dir=.
4290 for ac_prog in grep ggrep; do
4291 for ac_exec_ext in '' $ac_executable_extensions; do
4292 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4293 as_fn_executable_p "$ac_path_GREP" || continue
4294 # Check for GNU ac_path_GREP and select it if it is found.
4295 # Check for GNU $ac_path_GREP
4296 case `"$ac_path_GREP" --version 2>&1` in
4298 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4301 $as_echo_n 0123456789 >"conftest.in"
4304 cat "conftest.in" "conftest.in" >"conftest.tmp"
4305 mv "conftest.tmp" "conftest.in"
4306 cp "conftest.in" "conftest.nl"
4307 $as_echo 'GREP' >> "conftest.nl"
4308 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4309 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4310 as_fn_arith $ac_count + 1 && ac_count=$as_val
4311 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4312 # Best one so far, save it but keep looking for a better one
4313 ac_cv_path_GREP="$ac_path_GREP"
4314 ac_path_GREP_max=$ac_count
4316 # 10*(2^10) chars as input seems more than enough
4317 test $ac_count -gt 10 && break
4319 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4322 $ac_path_GREP_found && break 3
4327 if test -z "$ac_cv_path_GREP"; then
4328 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4331 ac_cv_path_GREP=$GREP
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4336 $as_echo "$ac_cv_path_GREP" >&6; }
4337 GREP="$ac_cv_path_GREP"
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4341 $as_echo_n "checking for egrep... " >&6; }
4342 if ${ac_cv_path_EGREP+:} false; then :
4343 $as_echo_n "(cached) " >&6
4345 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4346 then ac_cv_path_EGREP="$GREP -E"
4348 if test -z "$EGREP"; then
4349 ac_path_EGREP_found=false
4350 # Loop through the user's path and test for each of PROGNAME-LIST
4351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4352 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4355 test -z "$as_dir" && as_dir=.
4356 for ac_prog in egrep; do
4357 for ac_exec_ext in '' $ac_executable_extensions; do
4358 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4359 as_fn_executable_p "$ac_path_EGREP" || continue
4360 # Check for GNU ac_path_EGREP and select it if it is found.
4361 # Check for GNU $ac_path_EGREP
4362 case `"$ac_path_EGREP" --version 2>&1` in
4364 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4367 $as_echo_n 0123456789 >"conftest.in"
4370 cat "conftest.in" "conftest.in" >"conftest.tmp"
4371 mv "conftest.tmp" "conftest.in"
4372 cp "conftest.in" "conftest.nl"
4373 $as_echo 'EGREP' >> "conftest.nl"
4374 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4375 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4376 as_fn_arith $ac_count + 1 && ac_count=$as_val
4377 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4378 # Best one so far, save it but keep looking for a better one
4379 ac_cv_path_EGREP="$ac_path_EGREP"
4380 ac_path_EGREP_max=$ac_count
4382 # 10*(2^10) chars as input seems more than enough
4383 test $ac_count -gt 10 && break
4385 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4388 $ac_path_EGREP_found && break 3
4393 if test -z "$ac_cv_path_EGREP"; then
4394 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4397 ac_cv_path_EGREP=$EGREP
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4403 $as_echo "$ac_cv_path_EGREP" >&6; }
4404 EGREP="$ac_cv_path_EGREP"
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4408 $as_echo_n "checking for ANSI C header files... " >&6; }
4409 if ${ac_cv_header_stdc+:} false; then :
4410 $as_echo_n "(cached) " >&6
4412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4413 /* end confdefs.h. */
4427 if ac_fn_c_try_compile "$LINENO"; then :
4428 ac_cv_header_stdc=yes
4430 ac_cv_header_stdc=no
4432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4434 if test $ac_cv_header_stdc = yes; then
4435 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4437 /* end confdefs.h. */
4441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4442 $EGREP "memchr" >/dev/null 2>&1; then :
4445 ac_cv_header_stdc=no
4451 if test $ac_cv_header_stdc = yes; then
4452 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4454 /* end confdefs.h. */
4458 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4459 $EGREP "free" >/dev/null 2>&1; then :
4462 ac_cv_header_stdc=no
4468 if test $ac_cv_header_stdc = yes; then
4469 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4470 if test "$cross_compiling" = yes; then :
4473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4474 /* end confdefs.h. */
4477 #if ((' ' & 0x0FF) == 0x020)
4478 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4479 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4481 # define ISLOWER(c) \
4482 (('a' <= (c) && (c) <= 'i') \
4483 || ('j' <= (c) && (c) <= 'r') \
4484 || ('s' <= (c) && (c) <= 'z'))
4485 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4488 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4493 for (i = 0; i < 256; i++)
4494 if (XOR (islower (i), ISLOWER (i))
4495 || toupper (i) != TOUPPER (i))
4500 if ac_fn_c_try_run "$LINENO"; then :
4503 ac_cv_header_stdc=no
4505 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4506 conftest.$ac_objext conftest.beam conftest.$ac_ext
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4512 $as_echo "$ac_cv_header_stdc" >&6; }
4513 if test $ac_cv_header_stdc = yes; then
4515 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4519 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4520 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4521 inttypes.h stdint.h unistd.h
4523 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4524 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4526 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4527 cat >>confdefs.h <<_ACEOF
4528 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4537 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4538 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4545 if test "$MINIX" = yes; then
4547 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4550 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4553 $as_echo "#define _MINIX 1" >>confdefs.h
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4559 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4560 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4561 $as_echo_n "(cached) " >&6
4563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4564 /* end confdefs.h. */
4566 # define __EXTENSIONS__ 1
4567 $ac_includes_default
4576 if ac_fn_c_try_compile "$LINENO"; then :
4577 ac_cv_safe_to_define___extensions__=yes
4579 ac_cv_safe_to_define___extensions__=no
4581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4584 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4585 test $ac_cv_safe_to_define___extensions__ = yes &&
4586 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4588 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4590 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4592 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4594 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4599 ac_config_headers="$ac_config_headers config.h"
4602 # Check whether --enable-silent-rules was given.
4603 if test "${enable_silent_rules+set}" = set; then :
4604 enableval=$enable_silent_rules;
4607 case $enable_silent_rules in # (((
4608 yes) AM_DEFAULT_VERBOSITY=0;;
4609 no) AM_DEFAULT_VERBOSITY=1;;
4610 *) AM_DEFAULT_VERBOSITY=0;;
4612 am_make=${MAKE-make}
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4614 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4615 if ${am_cv_make_support_nested_variables+:} false; then :
4616 $as_echo_n "(cached) " >&6
4618 if $as_echo 'TRUE=$(BAR$(V))
4624 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4625 am_cv_make_support_nested_variables=yes
4627 am_cv_make_support_nested_variables=no
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4631 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4632 if test $am_cv_make_support_nested_variables = yes; then
4634 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4636 AM_V=$AM_DEFAULT_VERBOSITY
4637 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4642 # define PACKAGE_VERSION_* variables
4644 PACKAGE_VERSION_MAJOR=$(echo 1.6.92 | cut -d'.' -f1)
4645 PACKAGE_VERSION_MINOR=$(echo 1.6.92 | cut -d'.' -f2)
4646 PACKAGE_VERSION_MICRO=$(echo 1.6.92 | cut -d'.' -f3)
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking nano version" >&5
4654 $as_echo_n "checking nano version... " >&6; }
4656 NANO=$(echo 1.6.92 | cut -d'.' -f4)
4658 if test x"$NANO" = x || test "x$NANO" = "x0" ; then
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 0 (release)" >&5
4660 $as_echo "0 (release)" >&6; }
4662 PACKAGE_VERSION_RELEASE=1
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NANO" >&5
4666 $as_echo "$NANO" >&6; }
4667 PACKAGE_VERSION_RELEASE=0.`date +%Y%m%d.%H%M%S`
4670 PACKAGE_VERSION_NANO=$NANO
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4675 $as_echo_n "checking whether build environment is sane... " >&6; }
4676 # Reject unsafe characters in $srcdir or the absolute working directory
4677 # name. Accept space and tab only in the latter.
4681 *[\\\"\#\$\&\'\`$am_lf]*)
4682 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4685 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4686 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4689 # Do 'set' in a subshell so we don't clobber the current shell's
4690 # arguments. Must try -L first in case configure is actually a
4691 # symlink; some systems play weird games with the mod time of symlinks
4692 # (eg FreeBSD returns the mod time of the symlink's containing
4696 for am_try in 1 2; do
4697 echo "timestamp, slept: $am_has_slept" > conftest.file
4698 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4699 if test "$*" = "X"; then
4701 set X `ls -t "$srcdir/configure" conftest.file`
4703 if test "$*" != "X $srcdir/configure conftest.file" \
4704 && test "$*" != "X conftest.file $srcdir/configure"; then
4706 # If neither matched, then we have a broken ls. This can happen
4707 # if, for instance, CONFIG_SHELL is bash and it inherits a
4708 # broken ls alias from the environment. This has actually
4709 # happened. Such a system could not be considered "sane".
4710 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4711 alias in your environment" "$LINENO" 5
4713 if test "$2" = conftest.file || test $am_try -eq 2; then
4720 test "$2" = conftest.file
4726 as_fn_error $? "newly created file is older than distributed files!
4727 Check your system clock" "$LINENO" 5
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4730 $as_echo "yes" >&6; }
4731 # If we didn't sleep, we still need to ensure time stamps of config.status and
4732 # generated files are strictly newer.
4734 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4743 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4744 # Check whether --enable-maintainer-mode was given.
4745 if test "${enable_maintainer_mode+set}" = set; then :
4746 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4748 USE_MAINTAINER_MODE=no
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4752 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4753 if test $USE_MAINTAINER_MODE = yes; then
4754 MAINTAINER_MODE_TRUE=
4755 MAINTAINER_MODE_FALSE='#'
4757 MAINTAINER_MODE_TRUE='#'
4758 MAINTAINER_MODE_FALSE=
4761 MAINT=$MAINTAINER_MODE_TRUE
4764 # Check whether --enable-static was given.
4765 if test "${enable_static+set}" = set; then :
4766 enableval=$enable_static; p=${PACKAGE-default}
4768 yes) enable_static=yes ;;
4769 no) enable_static=no ;;
4772 # Look at the argument we got. We use all the common list separators.
4773 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4774 for pkg in $enableval; do
4776 if test "X$pkg" = "X$p"; then
4796 ac_cpp='$CPP $CPPFLAGS'
4797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4800 if test -n "$ac_tool_prefix"; then
4801 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4802 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4804 $as_echo_n "checking for $ac_word... " >&6; }
4805 if ${ac_cv_prog_CC+:} false; then :
4806 $as_echo_n "(cached) " >&6
4808 if test -n "$CC"; then
4809 ac_cv_prog_CC="$CC" # Let the user override the test.
4811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4815 test -z "$as_dir" && as_dir=.
4816 for ac_exec_ext in '' $ac_executable_extensions; do
4817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4818 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4829 if test -n "$CC"; then
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4831 $as_echo "$CC" >&6; }
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4834 $as_echo "no" >&6; }
4839 if test -z "$ac_cv_prog_CC"; then
4841 # Extract the first word of "gcc", so it can be a program name with args.
4842 set dummy gcc; ac_word=$2
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4844 $as_echo_n "checking for $ac_word... " >&6; }
4845 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4846 $as_echo_n "(cached) " >&6
4848 if test -n "$ac_ct_CC"; then
4849 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4855 test -z "$as_dir" && as_dir=.
4856 for ac_exec_ext in '' $ac_executable_extensions; do
4857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4858 ac_cv_prog_ac_ct_CC="gcc"
4859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4868 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4869 if test -n "$ac_ct_CC"; then
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4871 $as_echo "$ac_ct_CC" >&6; }
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4874 $as_echo "no" >&6; }
4877 if test "x$ac_ct_CC" = x; then
4880 case $cross_compiling:$ac_tool_warned in
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4883 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4884 ac_tool_warned=yes ;;
4892 if test -z "$CC"; then
4893 if test -n "$ac_tool_prefix"; then
4894 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4895 set dummy ${ac_tool_prefix}cc; ac_word=$2
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4897 $as_echo_n "checking for $ac_word... " >&6; }
4898 if ${ac_cv_prog_CC+:} false; then :
4899 $as_echo_n "(cached) " >&6
4901 if test -n "$CC"; then
4902 ac_cv_prog_CC="$CC" # Let the user override the test.
4904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4908 test -z "$as_dir" && as_dir=.
4909 for ac_exec_ext in '' $ac_executable_extensions; do
4910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4911 ac_cv_prog_CC="${ac_tool_prefix}cc"
4912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4922 if test -n "$CC"; then
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4924 $as_echo "$CC" >&6; }
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4927 $as_echo "no" >&6; }
4933 if test -z "$CC"; then
4934 # Extract the first word of "cc", so it can be a program name with args.
4935 set dummy cc; ac_word=$2
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4937 $as_echo_n "checking for $ac_word... " >&6; }
4938 if ${ac_cv_prog_CC+:} false; then :
4939 $as_echo_n "(cached) " >&6
4941 if test -n "$CC"; then
4942 ac_cv_prog_CC="$CC" # Let the user override the test.
4945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4949 test -z "$as_dir" && as_dir=.
4950 for ac_exec_ext in '' $ac_executable_extensions; do
4951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4952 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4953 ac_prog_rejected=yes
4957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4964 if test $ac_prog_rejected = yes; then
4965 # We found a bogon in the path, so make sure we never use it.
4966 set dummy $ac_cv_prog_CC
4968 if test $# != 0; then
4969 # We chose a different compiler from the bogus one.
4970 # However, it has the same basename, so the bogon will be chosen
4971 # first if we set CC to just the basename; use the full file name.
4973 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4979 if test -n "$CC"; then
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4981 $as_echo "$CC" >&6; }
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4984 $as_echo "no" >&6; }
4989 if test -z "$CC"; then
4990 if test -n "$ac_tool_prefix"; then
4991 for ac_prog in cl.exe
4993 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4994 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4996 $as_echo_n "checking for $ac_word... " >&6; }
4997 if ${ac_cv_prog_CC+:} false; then :
4998 $as_echo_n "(cached) " >&6
5000 if test -n "$CC"; then
5001 ac_cv_prog_CC="$CC" # Let the user override the test.
5003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5007 test -z "$as_dir" && as_dir=.
5008 for ac_exec_ext in '' $ac_executable_extensions; do
5009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5010 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5021 if test -n "$CC"; then
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5023 $as_echo "$CC" >&6; }
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5026 $as_echo "no" >&6; }
5030 test -n "$CC" && break
5033 if test -z "$CC"; then
5035 for ac_prog in cl.exe
5037 # Extract the first word of "$ac_prog", so it can be a program name with args.
5038 set dummy $ac_prog; ac_word=$2
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5040 $as_echo_n "checking for $ac_word... " >&6; }
5041 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5042 $as_echo_n "(cached) " >&6
5044 if test -n "$ac_ct_CC"; then
5045 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5051 test -z "$as_dir" && as_dir=.
5052 for ac_exec_ext in '' $ac_executable_extensions; do
5053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5054 ac_cv_prog_ac_ct_CC="$ac_prog"
5055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5064 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5065 if test -n "$ac_ct_CC"; then
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5067 $as_echo "$ac_ct_CC" >&6; }
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5070 $as_echo "no" >&6; }
5074 test -n "$ac_ct_CC" && break
5077 if test "x$ac_ct_CC" = x; then
5080 case $cross_compiling:$ac_tool_warned in
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5083 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5084 ac_tool_warned=yes ;;
5093 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5094 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5095 as_fn_error $? "no acceptable C compiler found in \$PATH
5096 See \`config.log' for more details" "$LINENO" 5; }
5098 # Provide some information about the compiler.
5099 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5102 for ac_option in --version -v -V -qversion; do
5103 { { ac_try="$ac_compiler $ac_option >&5"
5105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5106 *) ac_try_echo=$ac_try;;
5108 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5109 $as_echo "$ac_try_echo"; } >&5
5110 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5112 if test -s conftest.err; then
5114 ... rest of stderr output deleted ...
5115 10q' conftest.err >conftest.er1
5116 cat conftest.er1 >&5
5118 rm -f conftest.er1 conftest.err
5119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5120 test $ac_status = 0; }
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5124 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5125 if ${ac_cv_c_compiler_gnu+:} false; then :
5126 $as_echo_n "(cached) " >&6
5128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5129 /* end confdefs.h. */
5142 if ac_fn_c_try_compile "$LINENO"; then :
5147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5148 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5152 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5153 if test $ac_compiler_gnu = yes; then
5158 ac_test_CFLAGS=${CFLAGS+set}
5159 ac_save_CFLAGS=$CFLAGS
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5161 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5162 if ${ac_cv_prog_cc_g+:} false; then :
5163 $as_echo_n "(cached) " >&6
5165 ac_save_c_werror_flag=$ac_c_werror_flag
5166 ac_c_werror_flag=yes
5169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5170 /* end confdefs.h. */
5180 if ac_fn_c_try_compile "$LINENO"; then :
5184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5185 /* end confdefs.h. */
5195 if ac_fn_c_try_compile "$LINENO"; then :
5198 ac_c_werror_flag=$ac_save_c_werror_flag
5200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5201 /* end confdefs.h. */
5211 if ac_fn_c_try_compile "$LINENO"; then :
5214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5219 ac_c_werror_flag=$ac_save_c_werror_flag
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5222 $as_echo "$ac_cv_prog_cc_g" >&6; }
5223 if test "$ac_test_CFLAGS" = set; then
5224 CFLAGS=$ac_save_CFLAGS
5225 elif test $ac_cv_prog_cc_g = yes; then
5226 if test "$GCC" = yes; then
5232 if test "$GCC" = yes; then
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5239 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5240 if ${ac_cv_prog_cc_c89+:} false; then :
5241 $as_echo_n "(cached) " >&6
5243 ac_cv_prog_cc_c89=no
5245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5246 /* end confdefs.h. */
5250 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5251 struct buf { int x; };
5252 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5253 static char *e (p, i)
5259 static char *f (char * (*g) (char **, int), char **p, ...)
5264 s = g (p, va_arg (v,int));
5269 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5270 function prototypes and stuff, but not '\xHH' hex character constants.
5271 These don't provoke an error unfortunately, instead are silently treated
5272 as 'x'. The following induces an error, until -std is added to get
5273 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5274 array size at least. It's necessary to write '\x00'==0 to get something
5275 that's true only with -std. */
5276 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5278 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5279 inside strings and character constants. */
5281 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5283 int test (int i, double x);
5284 struct s1 {int (*f) (int a);};
5285 struct s2 {int (*f) (double a);};
5286 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5292 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5297 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5298 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5300 CC="$ac_save_CC $ac_arg"
5301 if ac_fn_c_try_compile "$LINENO"; then :
5302 ac_cv_prog_cc_c89=$ac_arg
5304 rm -f core conftest.err conftest.$ac_objext
5305 test "x$ac_cv_prog_cc_c89" != "xno" && break
5307 rm -f conftest.$ac_ext
5312 case "x$ac_cv_prog_cc_c89" in
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5315 $as_echo "none needed" >&6; } ;;
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5318 $as_echo "unsupported" >&6; } ;;
5320 CC="$CC $ac_cv_prog_cc_c89"
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5322 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5324 if test "x$ac_cv_prog_cc_c89" != xno; then :
5329 ac_cpp='$CPP $CPPFLAGS'
5330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5334 depcc="$CC" am_compiler_list=
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5337 $as_echo_n "checking dependency style of $depcc... " >&6; }
5338 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5339 $as_echo_n "(cached) " >&6
5341 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5342 # We make a subdir and do the tests there. Otherwise we can end up
5343 # making bogus files that we don't know about and never remove. For
5344 # instance it was reported that on HP-UX the gcc test will end up
5345 # making a dummy file named 'D' -- because '-MD' means "put the output
5349 # Copy depcomp to subdir because otherwise we won't find it if we're
5350 # using a relative directory.
5351 cp "$am_depcomp" conftest.dir
5353 # We will build objects and dependencies in a subdirectory because
5354 # it helps to detect inapplicable dependency modes. For instance
5355 # both Tru64's cc and ICC support -MD to output dependencies as a
5356 # side effect of compilation, but ICC will put the dependencies in
5357 # the current directory while Tru64 will put them in the object
5361 am_cv_CC_dependencies_compiler_type=none
5362 if test "$am_compiler_list" = ""; then
5363 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5366 case " $depcc " in #(
5367 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5370 for depmode in $am_compiler_list; do
5371 # Setup a source with many dependencies, because some compilers
5372 # like to wrap large dependency lists on column 80 (with \), and
5373 # we should not choose a depcomp mode which is confused by this.
5375 # We need to recreate these files for each test, as the compiler may
5376 # overwrite some of them when testing with obscure command lines.
5377 # This happens at least with the AIX C compiler.
5379 for i in 1 2 3 4 5 6; do
5380 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5381 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5382 # Solaris 10 /bin/sh.
5383 echo '/* dummy */' > sub/conftst$i.h
5385 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5387 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5388 # mode. It turns out that the SunPro C++ compiler does not properly
5389 # handle '-M -o', and we need to detect this. Also, some Intel
5390 # versions had trouble with output in subdirs.
5391 am__obj=sub/conftest.${OBJEXT-o}
5392 am__minus_obj="-o $am__obj"
5395 # This depmode causes a compiler race in universal mode.
5396 test "$am__universal" = false || continue
5399 # After this tag, mechanisms are not by side-effect, so they'll
5400 # only be used when explicitly requested.
5401 if test "x$enable_dependency_tracking" = xyes; then
5407 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5408 # This compiler won't grok '-c -o', but also, the minuso test has
5409 # not run yet. These depmodes are late enough in the game, and
5410 # so weak that their functioning should not be impacted.
5411 am__obj=conftest.${OBJEXT-o}
5416 if depmode=$depmode \
5417 source=sub/conftest.c object=$am__obj \
5418 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5419 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5420 >/dev/null 2>conftest.err &&
5421 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5422 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5423 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5424 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5425 # icc doesn't choke on unknown options, it will just issue warnings
5426 # or remarks (even with -Werror). So we grep stderr for any message
5427 # that says an option was ignored or not supported.
5428 # When given -MP, icc 7.0 and 7.1 complain thusly:
5429 # icc: Command line warning: ignoring option '-M'; no argument required
5430 # The diagnosis changed in icc 8.0:
5431 # icc: Command line remark: option '-MP' not supported
5432 if (grep 'ignoring option' conftest.err ||
5433 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5434 am_cv_CC_dependencies_compiler_type=$depmode
5443 am_cv_CC_dependencies_compiler_type=none
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5448 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5449 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5452 test "x$enable_dependency_tracking" != xno \
5453 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5455 am__fastdepCC_FALSE='#'
5457 am__fastdepCC_TRUE='#'
5458 am__fastdepCC_FALSE=
5463 ac_cpp='$CXXCPP $CPPFLAGS'
5464 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5465 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5466 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5467 if test -z "$CXX"; then
5468 if test -n "$CCC"; then
5471 if test -n "$ac_tool_prefix"; then
5472 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5474 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5475 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5477 $as_echo_n "checking for $ac_word... " >&6; }
5478 if ${ac_cv_prog_CXX+:} false; then :
5479 $as_echo_n "(cached) " >&6
5481 if test -n "$CXX"; then
5482 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5488 test -z "$as_dir" && as_dir=.
5489 for ac_exec_ext in '' $ac_executable_extensions; do
5490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5491 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5502 if test -n "$CXX"; then
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5504 $as_echo "$CXX" >&6; }
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5507 $as_echo "no" >&6; }
5511 test -n "$CXX" && break
5514 if test -z "$CXX"; then
5516 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5518 # Extract the first word of "$ac_prog", so it can be a program name with args.
5519 set dummy $ac_prog; ac_word=$2
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5521 $as_echo_n "checking for $ac_word... " >&6; }
5522 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5523 $as_echo_n "(cached) " >&6
5525 if test -n "$ac_ct_CXX"; then
5526 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5532 test -z "$as_dir" && as_dir=.
5533 for ac_exec_ext in '' $ac_executable_extensions; do
5534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5535 ac_cv_prog_ac_ct_CXX="$ac_prog"
5536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5545 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5546 if test -n "$ac_ct_CXX"; then
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5548 $as_echo "$ac_ct_CXX" >&6; }
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5551 $as_echo "no" >&6; }
5555 test -n "$ac_ct_CXX" && break
5558 if test "x$ac_ct_CXX" = x; then
5561 case $cross_compiling:$ac_tool_warned in
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5564 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5565 ac_tool_warned=yes ;;
5573 # Provide some information about the compiler.
5574 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5577 for ac_option in --version -v -V -qversion; do
5578 { { ac_try="$ac_compiler $ac_option >&5"
5580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5581 *) ac_try_echo=$ac_try;;
5583 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5584 $as_echo "$ac_try_echo"; } >&5
5585 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5587 if test -s conftest.err; then
5589 ... rest of stderr output deleted ...
5590 10q' conftest.err >conftest.er1
5591 cat conftest.er1 >&5
5593 rm -f conftest.er1 conftest.err
5594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5595 test $ac_status = 0; }
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5599 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5600 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5601 $as_echo_n "(cached) " >&6
5603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5604 /* end confdefs.h. */
5617 if ac_fn_cxx_try_compile "$LINENO"; then :
5622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5623 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5627 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5628 if test $ac_compiler_gnu = yes; then
5633 ac_test_CXXFLAGS=${CXXFLAGS+set}
5634 ac_save_CXXFLAGS=$CXXFLAGS
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5636 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5637 if ${ac_cv_prog_cxx_g+:} false; then :
5638 $as_echo_n "(cached) " >&6
5640 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5641 ac_cxx_werror_flag=yes
5644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5645 /* end confdefs.h. */
5655 if ac_fn_cxx_try_compile "$LINENO"; then :
5656 ac_cv_prog_cxx_g=yes
5659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5660 /* end confdefs.h. */
5670 if ac_fn_cxx_try_compile "$LINENO"; then :
5673 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5676 /* end confdefs.h. */
5686 if ac_fn_cxx_try_compile "$LINENO"; then :
5687 ac_cv_prog_cxx_g=yes
5689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5694 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5697 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5698 if test "$ac_test_CXXFLAGS" = set; then
5699 CXXFLAGS=$ac_save_CXXFLAGS
5700 elif test $ac_cv_prog_cxx_g = yes; then
5701 if test "$GXX" = yes; then
5707 if test "$GXX" = yes; then
5714 ac_cpp='$CPP $CPPFLAGS'
5715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5719 depcc="$CXX" am_compiler_list=
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5722 $as_echo_n "checking dependency style of $depcc... " >&6; }
5723 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5724 $as_echo_n "(cached) " >&6
5726 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5727 # We make a subdir and do the tests there. Otherwise we can end up
5728 # making bogus files that we don't know about and never remove. For
5729 # instance it was reported that on HP-UX the gcc test will end up
5730 # making a dummy file named 'D' -- because '-MD' means "put the output
5734 # Copy depcomp to subdir because otherwise we won't find it if we're
5735 # using a relative directory.
5736 cp "$am_depcomp" conftest.dir
5738 # We will build objects and dependencies in a subdirectory because
5739 # it helps to detect inapplicable dependency modes. For instance
5740 # both Tru64's cc and ICC support -MD to output dependencies as a
5741 # side effect of compilation, but ICC will put the dependencies in
5742 # the current directory while Tru64 will put them in the object
5746 am_cv_CXX_dependencies_compiler_type=none
5747 if test "$am_compiler_list" = ""; then
5748 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5751 case " $depcc " in #(
5752 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5755 for depmode in $am_compiler_list; do
5756 # Setup a source with many dependencies, because some compilers
5757 # like to wrap large dependency lists on column 80 (with \), and
5758 # we should not choose a depcomp mode which is confused by this.
5760 # We need to recreate these files for each test, as the compiler may
5761 # overwrite some of them when testing with obscure command lines.
5762 # This happens at least with the AIX C compiler.
5764 for i in 1 2 3 4 5 6; do
5765 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5766 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5767 # Solaris 10 /bin/sh.
5768 echo '/* dummy */' > sub/conftst$i.h
5770 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5772 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5773 # mode. It turns out that the SunPro C++ compiler does not properly
5774 # handle '-M -o', and we need to detect this. Also, some Intel
5775 # versions had trouble with output in subdirs.
5776 am__obj=sub/conftest.${OBJEXT-o}
5777 am__minus_obj="-o $am__obj"
5780 # This depmode causes a compiler race in universal mode.
5781 test "$am__universal" = false || continue
5784 # After this tag, mechanisms are not by side-effect, so they'll
5785 # only be used when explicitly requested.
5786 if test "x$enable_dependency_tracking" = xyes; then
5792 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5793 # This compiler won't grok '-c -o', but also, the minuso test has
5794 # not run yet. These depmodes are late enough in the game, and
5795 # so weak that their functioning should not be impacted.
5796 am__obj=conftest.${OBJEXT-o}
5801 if depmode=$depmode \
5802 source=sub/conftest.c object=$am__obj \
5803 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5804 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5805 >/dev/null 2>conftest.err &&
5806 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5807 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5808 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5809 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5810 # icc doesn't choke on unknown options, it will just issue warnings
5811 # or remarks (even with -Werror). So we grep stderr for any message
5812 # that says an option was ignored or not supported.
5813 # When given -MP, icc 7.0 and 7.1 complain thusly:
5814 # icc: Command line warning: ignoring option '-M'; no argument required
5815 # The diagnosis changed in icc 8.0:
5816 # icc: Command line remark: option '-MP' not supported
5817 if (grep 'ignoring option' conftest.err ||
5818 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5819 am_cv_CXX_dependencies_compiler_type=$depmode
5828 am_cv_CXX_dependencies_compiler_type=none
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5833 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5834 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5837 test "x$enable_dependency_tracking" != xno \
5838 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5839 am__fastdepCXX_TRUE=
5840 am__fastdepCXX_FALSE='#'
5842 am__fastdepCXX_TRUE='#'
5843 am__fastdepCXX_FALSE=
5847 if test "x$CC" != xcc; then
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5849 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5852 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5854 set dummy $CC; ac_cc=`$as_echo "$2" |
5855 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5856 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
5857 $as_echo_n "(cached) " >&6
5859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5860 /* end confdefs.h. */
5870 # Make sure it works both with $CC and with simple cc.
5871 # We do the test twice because some compilers refuse to overwrite an
5872 # existing .o file with -o, though they will create one.
5873 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5875 if { { case "(($ac_try" in
5876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5877 *) ac_try_echo=$ac_try;;
5879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5880 $as_echo "$ac_try_echo"; } >&5
5881 (eval "$ac_try") 2>&5
5883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5884 test $ac_status = 0; } &&
5885 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5887 *) ac_try_echo=$ac_try;;
5889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5890 $as_echo "$ac_try_echo"; } >&5
5891 (eval "$ac_try") 2>&5
5893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5894 test $ac_status = 0; };
5896 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5897 if test "x$CC" != xcc; then
5898 # Test first that cc exists at all.
5899 if { ac_try='cc -c conftest.$ac_ext >&5'
5900 { { case "(($ac_try" in
5901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5902 *) ac_try_echo=$ac_try;;
5904 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5905 $as_echo "$ac_try_echo"; } >&5
5906 (eval "$ac_try") 2>&5
5908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5909 test $ac_status = 0; }; }; then
5910 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5912 if { { case "(($ac_try" in
5913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5914 *) ac_try_echo=$ac_try;;
5916 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5917 $as_echo "$ac_try_echo"; } >&5
5918 (eval "$ac_try") 2>&5
5920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5921 test $ac_status = 0; } &&
5922 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5924 *) ac_try_echo=$ac_try;;
5926 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5927 $as_echo "$ac_try_echo"; } >&5
5928 (eval "$ac_try") 2>&5
5930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5931 test $ac_status = 0; };
5936 # cc exists but doesn't like -o.
5937 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5942 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5944 rm -f core conftest*
5947 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5949 $as_echo "yes" >&6; }
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5952 $as_echo "no" >&6; }
5954 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5958 # FIXME: we rely on the cache variable name because
5959 # there is no other way.
5961 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5962 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5963 if test "$am_t" != yes; then
5964 # Losing compiler, so override with the script.
5965 # FIXME: It is wrong to rewrite CC.
5966 # But if we don't then we get into trouble of one sort or another.
5967 # A longer-term fix would be to have automake use am__CC in this case,
5968 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5969 CC="$am_aux_dir/compile $CC"
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
5974 $as_echo_n "checking for library containing strerror... " >&6; }
5975 if ${ac_cv_search_strerror+:} false; then :
5976 $as_echo_n "(cached) " >&6
5978 ac_func_search_save_LIBS=$LIBS
5979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5980 /* end confdefs.h. */
5982 /* Override any GCC internal prototype to avoid an error.
5983 Use char because int might match the return type of a GCC
5984 builtin and then its argument prototype would still apply. */
5997 for ac_lib in '' cposix; do
5998 if test -z "$ac_lib"; then
5999 ac_res="none required"
6002 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6004 if ac_fn_c_try_link "$LINENO"; then :
6005 ac_cv_search_strerror=$ac_res
6007 rm -f core conftest.err conftest.$ac_objext \
6009 if ${ac_cv_search_strerror+:} false; then :
6013 if ${ac_cv_search_strerror+:} false; then :
6016 ac_cv_search_strerror=no
6019 LIBS=$ac_func_search_save_LIBS
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
6022 $as_echo "$ac_cv_search_strerror" >&6; }
6023 ac_res=$ac_cv_search_strerror
6024 if test "$ac_res" != no; then :
6025 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6030 $as_echo_n "checking for ANSI C header files... " >&6; }
6031 if ${ac_cv_header_stdc+:} false; then :
6032 $as_echo_n "(cached) " >&6
6034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6035 /* end confdefs.h. */
6049 if ac_fn_c_try_compile "$LINENO"; then :
6050 ac_cv_header_stdc=yes
6052 ac_cv_header_stdc=no
6054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6056 if test $ac_cv_header_stdc = yes; then
6057 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6059 /* end confdefs.h. */
6063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6064 $EGREP "memchr" >/dev/null 2>&1; then :
6067 ac_cv_header_stdc=no
6073 if test $ac_cv_header_stdc = yes; then
6074 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6076 /* end confdefs.h. */
6080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6081 $EGREP "free" >/dev/null 2>&1; then :
6084 ac_cv_header_stdc=no
6090 if test $ac_cv_header_stdc = yes; then
6091 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6092 if test "$cross_compiling" = yes; then :
6095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6096 /* end confdefs.h. */
6099 #if ((' ' & 0x0FF) == 0x020)
6100 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6101 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6103 # define ISLOWER(c) \
6104 (('a' <= (c) && (c) <= 'i') \
6105 || ('j' <= (c) && (c) <= 'r') \
6106 || ('s' <= (c) && (c) <= 'z'))
6107 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6110 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6115 for (i = 0; i < 256; i++)
6116 if (XOR (islower (i), ISLOWER (i))
6117 || toupper (i) != TOUPPER (i))
6122 if ac_fn_c_try_run "$LINENO"; then :
6125 ac_cv_header_stdc=no
6127 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6128 conftest.$ac_objext conftest.beam conftest.$ac_ext
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6134 $as_echo "$ac_cv_header_stdc" >&6; }
6135 if test $ac_cv_header_stdc = yes; then
6137 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6143 $as_echo_n "checking whether NLS is requested... " >&6; }
6144 # Check whether --enable-nls was given.
6145 if test "${enable_nls+set}" = set; then :
6146 enableval=$enable_nls; USE_NLS=$enableval
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6152 $as_echo "$USE_NLS" >&6; }
6157 case "$am__api_version" in
6159 as_fn_error $? "Automake 1.5 or newer is required to use intltool" "$LINENO" 5
6165 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.35.0 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
6166 INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
6167 INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
6168 if test -n "0.35.0"; then
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intltool >= 0.35.0" >&5
6170 $as_echo_n "checking for intltool >= 0.35.0... " >&6; }
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_APPLIED_VERSION found" >&5
6172 $as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; }
6173 test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
6174 as_fn_error $? "Your intltool is too old. You need intltool 0.35.0 or later." "$LINENO" 5
6177 # Extract the first word of "intltool-update", so it can be a program name with args.
6178 set dummy intltool-update; ac_word=$2
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6180 $as_echo_n "checking for $ac_word... " >&6; }
6181 if ${ac_cv_path_INTLTOOL_UPDATE+:} false; then :
6182 $as_echo_n "(cached) " >&6
6184 case $INTLTOOL_UPDATE in
6186 ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path.
6189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6193 test -z "$as_dir" && as_dir=.
6194 for ac_exec_ext in '' $ac_executable_extensions; do
6195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6196 ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext"
6197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6207 INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE
6208 if test -n "$INTLTOOL_UPDATE"; then
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_UPDATE" >&5
6210 $as_echo "$INTLTOOL_UPDATE" >&6; }
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6213 $as_echo "no" >&6; }
6217 # Extract the first word of "intltool-merge", so it can be a program name with args.
6218 set dummy intltool-merge; ac_word=$2
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6220 $as_echo_n "checking for $ac_word... " >&6; }
6221 if ${ac_cv_path_INTLTOOL_MERGE+:} false; then :
6222 $as_echo_n "(cached) " >&6
6224 case $INTLTOOL_MERGE in
6226 ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # Let the user override the test with a path.
6229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6233 test -z "$as_dir" && as_dir=.
6234 for ac_exec_ext in '' $ac_executable_extensions; do
6235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6236 ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext"
6237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6247 INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE
6248 if test -n "$INTLTOOL_MERGE"; then
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_MERGE" >&5
6250 $as_echo "$INTLTOOL_MERGE" >&6; }
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6253 $as_echo "no" >&6; }
6257 # Extract the first word of "intltool-extract", so it can be a program name with args.
6258 set dummy intltool-extract; ac_word=$2
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6260 $as_echo_n "checking for $ac_word... " >&6; }
6261 if ${ac_cv_path_INTLTOOL_EXTRACT+:} false; then :
6262 $as_echo_n "(cached) " >&6
6264 case $INTLTOOL_EXTRACT in
6266 ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # Let the user override the test with a path.
6269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6273 test -z "$as_dir" && as_dir=.
6274 for ac_exec_ext in '' $ac_executable_extensions; do
6275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6276 ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext"
6277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6287 INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT
6288 if test -n "$INTLTOOL_EXTRACT"; then
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_EXTRACT" >&5
6290 $as_echo "$INTLTOOL_EXTRACT" >&6; }
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6293 $as_echo "no" >&6; }
6297 if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
6298 as_fn_error $? "The intltool scripts were not found. Please install intltool." "$LINENO" 5
6301 if test -z "$AM_DEFAULT_VERBOSITY"; then
6302 AM_DEFAULT_VERBOSITY=1
6306 INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))'
6307 INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))'
6308 INTLTOOL__v_MERGE_0='@echo " ITMRG " $@;'
6313 INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))'
6314 intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))'
6315 intltool__v_merge_options_0='-q'
6320 INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6321 INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6322 INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6323 INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6324 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -p $(top_srcdir)/po $< $@'
6325 INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6326 INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6327 INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6328 INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6329 INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6330 INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6331 if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then
6332 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< $@'
6334 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)_it_tmp_dir=tmp.intltool.$$RANDOM && mkdir $$_it_tmp_dir && LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u $$_it_tmp_dir $< $@ && rmdir $$_it_tmp_dir'
6336 INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6337 INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6338 INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6339 INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6340 INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6341 INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6342 INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6440 # Check the gettext tools to make sure they are GNU
6441 # Extract the first word of "xgettext", so it can be a program name with args.
6442 set dummy xgettext; ac_word=$2
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6444 $as_echo_n "checking for $ac_word... " >&6; }
6445 if ${ac_cv_path_XGETTEXT+:} false; then :
6446 $as_echo_n "(cached) " >&6
6450 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6457 test -z "$as_dir" && as_dir=.
6458 for ac_exec_ext in '' $ac_executable_extensions; do
6459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6460 ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
6461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6471 XGETTEXT=$ac_cv_path_XGETTEXT
6472 if test -n "$XGETTEXT"; then
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6474 $as_echo "$XGETTEXT" >&6; }
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6477 $as_echo "no" >&6; }
6481 # Extract the first word of "msgmerge", so it can be a program name with args.
6482 set dummy msgmerge; ac_word=$2
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6484 $as_echo_n "checking for $ac_word... " >&6; }
6485 if ${ac_cv_path_MSGMERGE+:} false; then :
6486 $as_echo_n "(cached) " >&6
6490 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6497 test -z "$as_dir" && as_dir=.
6498 for ac_exec_ext in '' $ac_executable_extensions; do
6499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6500 ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
6501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6511 MSGMERGE=$ac_cv_path_MSGMERGE
6512 if test -n "$MSGMERGE"; then
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6514 $as_echo "$MSGMERGE" >&6; }
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6517 $as_echo "no" >&6; }
6521 # Extract the first word of "msgfmt", so it can be a program name with args.
6522 set dummy msgfmt; ac_word=$2
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6524 $as_echo_n "checking for $ac_word... " >&6; }
6525 if ${ac_cv_path_MSGFMT+:} false; then :
6526 $as_echo_n "(cached) " >&6
6530 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6537 test -z "$as_dir" && as_dir=.
6538 for ac_exec_ext in '' $ac_executable_extensions; do
6539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6540 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
6541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6551 MSGFMT=$ac_cv_path_MSGFMT
6552 if test -n "$MSGFMT"; then
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6554 $as_echo "$MSGFMT" >&6; }
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6557 $as_echo "no" >&6; }
6561 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6562 set dummy gmsgfmt; ac_word=$2
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6564 $as_echo_n "checking for $ac_word... " >&6; }
6565 if ${ac_cv_path_GMSGFMT+:} false; then :
6566 $as_echo_n "(cached) " >&6
6570 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6577 test -z "$as_dir" && as_dir=.
6578 for ac_exec_ext in '' $ac_executable_extensions; do
6579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6580 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6588 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6592 GMSGFMT=$ac_cv_path_GMSGFMT
6593 if test -n "$GMSGFMT"; then
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6595 $as_echo "$GMSGFMT" >&6; }
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6598 $as_echo "no" >&6; }
6602 if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
6603 as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5
6605 xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
6606 mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
6607 mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
6608 if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
6609 as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5
6612 # Extract the first word of "perl", so it can be a program name with args.
6613 set dummy perl; ac_word=$2
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6615 $as_echo_n "checking for $ac_word... " >&6; }
6616 if ${ac_cv_path_INTLTOOL_PERL+:} false; then :
6617 $as_echo_n "(cached) " >&6
6619 case $INTLTOOL_PERL in
6621 ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
6624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6628 test -z "$as_dir" && as_dir=.
6629 for ac_exec_ext in '' $ac_executable_extensions; do
6630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6631 ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
6632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6642 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
6643 if test -n "$INTLTOOL_PERL"; then
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_PERL" >&5
6645 $as_echo "$INTLTOOL_PERL" >&6; }
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6648 $as_echo "no" >&6; }
6652 if test -z "$INTLTOOL_PERL"; then
6653 as_fn_error $? "perl not found" "$LINENO" 5
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl >= 5.8.1" >&5
6656 $as_echo_n "checking for perl >= 5.8.1... " >&6; }
6657 $INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
6658 if test $? -ne 0; then
6659 as_fn_error $? "perl 5.8.1 is required for intltool" "$LINENO" 5
6661 IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"`
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IT_PERL_VERSION" >&5
6663 $as_echo "$IT_PERL_VERSION" >&6; }
6665 if test "x" != "xno-xml"; then
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML::Parser" >&5
6667 $as_echo_n "checking for XML::Parser... " >&6; }
6668 if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6670 $as_echo "ok" >&6; }
6672 as_fn_error $? "XML::Parser perl module is required for intltool" "$LINENO" 5
6676 # Substitute ALL_LINGUAS so we can use it in po/Makefile
6679 # Set DATADIRNAME correctly if it is not set yet
6680 # (copied from glib-gettext.m4)
6681 if test -z "$DATADIRNAME"; then
6682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6683 /* end confdefs.h. */
6688 extern int _nl_msg_cat_cntr;
6689 return _nl_msg_cat_cntr
6694 if ac_fn_c_try_link "$LINENO"; then :
6699 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
6700 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
6712 rm -f core conftest.err conftest.$ac_objext \
6713 conftest$ac_exeext conftest.$ac_ext
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6723 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6728 macro_version='2.4.2'
6729 macro_revision='1.3337'
6743 ltmain="$ac_aux_dir/ltmain.sh"
6745 # Make sure we can run config.sub.
6746 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6747 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6750 $as_echo_n "checking build system type... " >&6; }
6751 if ${ac_cv_build+:} false; then :
6752 $as_echo_n "(cached) " >&6
6754 ac_build_alias=$build_alias
6755 test "x$ac_build_alias" = x &&
6756 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6757 test "x$ac_build_alias" = x &&
6758 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6759 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6760 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6764 $as_echo "$ac_cv_build" >&6; }
6765 case $ac_cv_build in
6767 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6770 ac_save_IFS=$IFS; IFS='-'
6776 # Remember, the first character of IFS is used to create $*,
6777 # except with old shells:
6780 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6784 $as_echo_n "checking host system type... " >&6; }
6785 if ${ac_cv_host+:} false; then :
6786 $as_echo_n "(cached) " >&6
6788 if test "x$host_alias" = x; then
6789 ac_cv_host=$ac_cv_build
6791 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6792 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6797 $as_echo "$ac_cv_host" >&6; }
6800 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6803 ac_save_IFS=$IFS; IFS='-'
6809 # Remember, the first character of IFS is used to create $*,
6810 # except with old shells:
6813 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6816 # Backslashify metacharacters that are still active within
6817 # double-quoted strings.
6818 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6820 # Same as above, but do not quote variable references.
6821 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6823 # Sed substitution to delay expansion of an escaped shell variable in a
6824 # double_quote_subst'ed string.
6825 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6827 # Sed substitution to delay expansion of an escaped single quote.
6828 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6830 # Sed substitution to avoid accidental globbing in evaled expressions
6831 no_glob_subst='s/\*/\\\*/g'
6833 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6834 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6835 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6838 $as_echo_n "checking how to print strings... " >&6; }
6839 # Test print first, because it will be a builtin if present.
6840 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6841 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6843 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6846 # Use this function as a fallback that always works.
6847 func_fallback_echo ()
6849 eval 'cat <<_LTECHO_EOF
6853 ECHO='func_fallback_echo'
6856 # func_echo_all arg...
6857 # Invoke $ECHO with all args, space-separated.
6864 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6865 $as_echo "printf" >&6; } ;;
6866 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6867 $as_echo "print -r" >&6; } ;;
6868 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6869 $as_echo "cat" >&6; } ;;
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6886 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6887 if ${ac_cv_path_SED+:} false; then :
6888 $as_echo_n "(cached) " >&6
6890 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6891 for ac_i in 1 2 3 4 5 6 7; do
6892 ac_script="$ac_script$as_nl$ac_script"
6894 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6895 { ac_script=; unset ac_script;}
6896 if test -z "$SED"; then
6897 ac_path_SED_found=false
6898 # Loop through the user's path and test for each of PROGNAME-LIST
6899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6903 test -z "$as_dir" && as_dir=.
6904 for ac_prog in sed gsed; do
6905 for ac_exec_ext in '' $ac_executable_extensions; do
6906 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6907 as_fn_executable_p "$ac_path_SED" || continue
6908 # Check for GNU ac_path_SED and select it if it is found.
6909 # Check for GNU $ac_path_SED
6910 case `"$ac_path_SED" --version 2>&1` in
6912 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6915 $as_echo_n 0123456789 >"conftest.in"
6918 cat "conftest.in" "conftest.in" >"conftest.tmp"
6919 mv "conftest.tmp" "conftest.in"
6920 cp "conftest.in" "conftest.nl"
6921 $as_echo '' >> "conftest.nl"
6922 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6923 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6924 as_fn_arith $ac_count + 1 && ac_count=$as_val
6925 if test $ac_count -gt ${ac_path_SED_max-0}; then
6926 # Best one so far, save it but keep looking for a better one
6927 ac_cv_path_SED="$ac_path_SED"
6928 ac_path_SED_max=$ac_count
6930 # 10*(2^10) chars as input seems more than enough
6931 test $ac_count -gt 10 && break
6933 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6936 $ac_path_SED_found && break 3
6941 if test -z "$ac_cv_path_SED"; then
6942 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6950 $as_echo "$ac_cv_path_SED" >&6; }
6951 SED="$ac_cv_path_SED"
6954 test -z "$SED" && SED=sed
6955 Xsed="$SED -e 1s/^X//"
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6968 $as_echo_n "checking for fgrep... " >&6; }
6969 if ${ac_cv_path_FGREP+:} false; then :
6970 $as_echo_n "(cached) " >&6
6972 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6973 then ac_cv_path_FGREP="$GREP -F"
6975 if test -z "$FGREP"; then
6976 ac_path_FGREP_found=false
6977 # Loop through the user's path and test for each of PROGNAME-LIST
6978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6979 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6982 test -z "$as_dir" && as_dir=.
6983 for ac_prog in fgrep; do
6984 for ac_exec_ext in '' $ac_executable_extensions; do
6985 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6986 as_fn_executable_p "$ac_path_FGREP" || continue
6987 # Check for GNU ac_path_FGREP and select it if it is found.
6988 # Check for GNU $ac_path_FGREP
6989 case `"$ac_path_FGREP" --version 2>&1` in
6991 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6994 $as_echo_n 0123456789 >"conftest.in"
6997 cat "conftest.in" "conftest.in" >"conftest.tmp"
6998 mv "conftest.tmp" "conftest.in"
6999 cp "conftest.in" "conftest.nl"
7000 $as_echo 'FGREP' >> "conftest.nl"
7001 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7002 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7003 as_fn_arith $ac_count + 1 && ac_count=$as_val
7004 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7005 # Best one so far, save it but keep looking for a better one
7006 ac_cv_path_FGREP="$ac_path_FGREP"
7007 ac_path_FGREP_max=$ac_count
7009 # 10*(2^10) chars as input seems more than enough
7010 test $ac_count -gt 10 && break
7012 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7015 $ac_path_FGREP_found && break 3
7020 if test -z "$ac_cv_path_FGREP"; then
7021 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7024 ac_cv_path_FGREP=$FGREP
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7030 $as_echo "$ac_cv_path_FGREP" >&6; }
7031 FGREP="$ac_cv_path_FGREP"
7034 test -z "$GREP" && GREP=grep
7054 # Check whether --with-gnu-ld was given.
7055 if test "${with_gnu_ld+set}" = set; then :
7056 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7062 if test "$GCC" = yes; then
7063 # Check if gcc -print-prog-name=ld gives a path.
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7065 $as_echo_n "checking for ld used by $CC... " >&6; }
7068 # gcc leaves a trailing carriage return which upsets mingw
7069 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7071 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7074 # Accept absolute paths.
7076 re_direlt='/[^/][^/]*/\.\./'
7077 # Canonicalize the pathname of ld
7078 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7079 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7080 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7082 test -z "$LD" && LD="$ac_prog"
7085 # If it fails, then pretend we aren't using GCC.
7089 # If it is relative, then search for the first ld in PATH.
7093 elif test "$with_gnu_ld" = yes; then
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7095 $as_echo_n "checking for GNU ld... " >&6; }
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7098 $as_echo_n "checking for non-GNU ld... " >&6; }
7100 if ${lt_cv_path_LD+:} false; then :
7101 $as_echo_n "(cached) " >&6
7103 if test -z "$LD"; then
7104 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7105 for ac_dir in $PATH; do
7107 test -z "$ac_dir" && ac_dir=.
7108 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7109 lt_cv_path_LD="$ac_dir/$ac_prog"
7110 # Check to see if the program is GNU ld. I'd rather use --version,
7111 # but apparently some variants of GNU ld only accept -v.
7112 # Break only if it was the GNU/non-GNU ld that we prefer.
7113 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7114 *GNU* | *'with BFD'*)
7115 test "$with_gnu_ld" != no && break
7118 test "$with_gnu_ld" != yes && break
7125 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7130 if test -n "$LD"; then
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7132 $as_echo "$LD" >&6; }
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7135 $as_echo "no" >&6; }
7137 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7139 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7140 if ${lt_cv_prog_gnu_ld+:} false; then :
7141 $as_echo_n "(cached) " >&6
7143 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7144 case `$LD -v 2>&1 </dev/null` in
7145 *GNU* | *'with BFD'*)
7146 lt_cv_prog_gnu_ld=yes
7149 lt_cv_prog_gnu_ld=no
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7154 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7155 with_gnu_ld=$lt_cv_prog_gnu_ld
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7166 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7167 if ${lt_cv_path_NM+:} false; then :
7168 $as_echo_n "(cached) " >&6
7170 if test -n "$NM"; then
7171 # Let the user override the test.
7174 lt_nm_to_check="${ac_tool_prefix}nm"
7175 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7176 lt_nm_to_check="$lt_nm_to_check nm"
7178 for lt_tmp_nm in $lt_nm_to_check; do
7179 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7180 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7182 test -z "$ac_dir" && ac_dir=.
7183 tmp_nm="$ac_dir/$lt_tmp_nm"
7184 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7185 # Check to see if the nm accepts a BSD-compat flag.
7186 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7187 # nm: unknown option "B" ignored
7188 # Tru64's nm complains that /dev/null is an invalid object file
7189 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7190 */dev/null* | *'Invalid file or object type'*)
7191 lt_cv_path_NM="$tmp_nm -B"
7195 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7197 lt_cv_path_NM="$tmp_nm -p"
7201 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7202 continue # so that we can try to find one that supports BSD flags
7211 : ${lt_cv_path_NM=no}
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7215 $as_echo "$lt_cv_path_NM" >&6; }
7216 if test "$lt_cv_path_NM" != "no"; then
7219 # Didn't find any BSD compatible name lister, look for dumpbin.
7220 if test -n "$DUMPBIN"; then :
7221 # Let the user override the test.
7223 if test -n "$ac_tool_prefix"; then
7224 for ac_prog in dumpbin "link -dump"
7226 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7227 set dummy $ac_tool_prefix$ac_prog; 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 ${ac_cv_prog_DUMPBIN+:} false; then :
7231 $as_echo_n "(cached) " >&6
7233 if test -n "$DUMPBIN"; then
7234 ac_cv_prog_DUMPBIN="$DUMPBIN" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7243 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7253 DUMPBIN=$ac_cv_prog_DUMPBIN
7254 if test -n "$DUMPBIN"; then
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7256 $as_echo "$DUMPBIN" >&6; }
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7259 $as_echo "no" >&6; }
7263 test -n "$DUMPBIN" && break
7266 if test -z "$DUMPBIN"; then
7267 ac_ct_DUMPBIN=$DUMPBIN
7268 for ac_prog in dumpbin "link -dump"
7270 # Extract the first word of "$ac_prog", so it can be a program name with args.
7271 set dummy $ac_prog; ac_word=$2
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7273 $as_echo_n "checking for $ac_word... " >&6; }
7274 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7275 $as_echo_n "(cached) " >&6
7277 if test -n "$ac_ct_DUMPBIN"; then
7278 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7284 test -z "$as_dir" && as_dir=.
7285 for ac_exec_ext in '' $ac_executable_extensions; do
7286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7287 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7297 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7298 if test -n "$ac_ct_DUMPBIN"; then
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7300 $as_echo "$ac_ct_DUMPBIN" >&6; }
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7303 $as_echo "no" >&6; }
7307 test -n "$ac_ct_DUMPBIN" && break
7310 if test "x$ac_ct_DUMPBIN" = x; then
7313 case $cross_compiling:$ac_tool_warned in
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7316 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7317 ac_tool_warned=yes ;;
7319 DUMPBIN=$ac_ct_DUMPBIN
7323 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7325 DUMPBIN="$DUMPBIN -symbols"
7333 if test "$DUMPBIN" != ":"; then
7337 test -z "$NM" && NM=nm
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7345 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7346 if ${lt_cv_nm_interface+:} false; then :
7347 $as_echo_n "(cached) " >&6
7349 lt_cv_nm_interface="BSD nm"
7350 echo "int some_variable = 0;" > conftest.$ac_ext
7351 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7352 (eval "$ac_compile" 2>conftest.err)
7353 cat conftest.err >&5
7354 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7355 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7356 cat conftest.err >&5
7357 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7358 cat conftest.out >&5
7359 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7360 lt_cv_nm_interface="MS dumpbin"
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7365 $as_echo "$lt_cv_nm_interface" >&6; }
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7368 $as_echo_n "checking whether ln -s works... " >&6; }
7370 if test "$LN_S" = "ln -s"; then
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7372 $as_echo "yes" >&6; }
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7375 $as_echo "no, using $LN_S" >&6; }
7378 # find the maximum length of command line arguments
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7380 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7381 if ${lt_cv_sys_max_cmd_len+:} false; then :
7382 $as_echo_n "(cached) " >&6
7389 # On DJGPP, this test can blow up pretty badly due to problems in libc
7390 # (any single argument exceeding 2000 bytes causes a buffer overrun
7391 # during glob expansion). Even if it were fixed, the result of this
7392 # check would be larger than it should be.
7393 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7397 # Under GNU Hurd, this test is not required because there is
7398 # no limit to the length of command line arguments.
7399 # Libtool will interpret -1 as no limit whatsoever
7400 lt_cv_sys_max_cmd_len=-1;
7403 cygwin* | mingw* | cegcc*)
7404 # On Win9x/ME, this test blows up -- it succeeds, but takes
7405 # about 5 minutes as the teststring grows exponentially.
7406 # Worse, since 9x/ME are not pre-emptively multitasking,
7407 # you end up with a "frozen" computer, even though with patience
7408 # the test eventually succeeds (with a max line length of 256k).
7409 # Instead, let's just punt: use the minimum linelength reported by
7410 # all of the supported platforms: 8192 (on NT/2K/XP).
7411 lt_cv_sys_max_cmd_len=8192;
7415 # On MiNT this can take a long time and run out of memory.
7416 lt_cv_sys_max_cmd_len=8192;
7420 # On AmigaOS with pdksh, this test takes hours, literally.
7421 # So we just punt and use a minimum line length of 8192.
7422 lt_cv_sys_max_cmd_len=8192;
7425 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7426 # This has been around since 386BSD, at least. Likely further.
7427 if test -x /sbin/sysctl; then
7428 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7429 elif test -x /usr/sbin/sysctl; then
7430 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7432 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7434 # And add a safety zone
7435 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7436 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7440 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7441 lt_cv_sys_max_cmd_len=196608
7445 # The test takes a long time on OS/2.
7446 lt_cv_sys_max_cmd_len=8192
7450 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7451 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7452 # nice to cause kernel panics so lets avoid the loop below.
7453 # First set a reasonable default.
7454 lt_cv_sys_max_cmd_len=16384
7456 if test -x /sbin/sysconfig; then
7457 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7458 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7463 lt_cv_sys_max_cmd_len=102400
7465 sysv5* | sco5v6* | sysv4.2uw2*)
7466 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7467 if test -n "$kargmax"; then
7468 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7470 lt_cv_sys_max_cmd_len=32768
7474 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7475 if test -n "$lt_cv_sys_max_cmd_len"; then
7476 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7477 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7479 # Make teststring a little bigger before we do anything with it.
7480 # a 1K string should be a reasonable start.
7481 for i in 1 2 3 4 5 6 7 8 ; do
7482 teststring=$teststring$teststring
7484 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7485 # If test is not a shell built-in, we'll probably end up computing a
7486 # maximum length that is only half of the actual maximum length, but
7488 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
7489 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7490 test $i != 17 # 1/2 MB should be enough
7493 teststring=$teststring$teststring
7495 # Only check the string length outside the loop.
7496 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7498 # Add a significant safety factor because C++ compilers can tack on
7499 # massive amounts of additional arguments before passing them to the
7500 # linker. It appears as though 1/2 is a usable value.
7501 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7508 if test -n $lt_cv_sys_max_cmd_len ; then
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7510 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7513 $as_echo "none" >&6; }
7515 max_cmd_len=$lt_cv_sys_max_cmd_len
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7527 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7528 # Try some XSI features
7531 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7533 && eval 'test $(( 1 + 1 )) -eq 2 \
7534 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7537 $as_echo "$xsi_shell" >&6; }
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7541 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7543 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7545 && lt_shell_append=yes
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7547 $as_echo "$lt_shell_append" >&6; }
7550 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7560 # test EBCDIC or ASCII
7561 case `echo X|tr X '\101'` in
7562 A) # ASCII based system
7563 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7564 lt_SP2NL='tr \040 \012'
7565 lt_NL2SP='tr \015\012 \040\040'
7567 *) # EBCDIC based system
7568 lt_SP2NL='tr \100 \n'
7569 lt_NL2SP='tr \r\n \100\100'
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7582 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7583 if ${lt_cv_to_host_file_cmd+:} false; then :
7584 $as_echo_n "(cached) " >&6
7589 *-*-mingw* ) # actually msys
7590 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7593 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7595 * ) # otherwise, assume *nix
7596 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7602 *-*-mingw* ) # actually msys
7603 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7606 lt_cv_to_host_file_cmd=func_convert_file_noop
7608 * ) # otherwise, assume *nix
7609 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7613 * ) # unhandled hosts (and "normal" native builds)
7614 lt_cv_to_host_file_cmd=func_convert_file_noop
7620 to_host_file_cmd=$lt_cv_to_host_file_cmd
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7622 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7629 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7630 if ${lt_cv_to_tool_file_cmd+:} false; then :
7631 $as_echo_n "(cached) " >&6
7633 #assume ordinary cross tools, or native build.
7634 lt_cv_to_tool_file_cmd=func_convert_file_noop
7638 *-*-mingw* ) # actually msys
7639 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7647 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7649 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7656 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7657 if ${lt_cv_ld_reload_flag+:} false; then :
7658 $as_echo_n "(cached) " >&6
7660 lt_cv_ld_reload_flag='-r'
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7663 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7664 reload_flag=$lt_cv_ld_reload_flag
7665 case $reload_flag in
7667 *) reload_flag=" $reload_flag" ;;
7669 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7671 cygwin* | mingw* | pw32* | cegcc*)
7672 if test "$GCC" != yes; then
7677 if test "$GCC" = yes; then
7678 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7680 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7693 if test -n "$ac_tool_prefix"; then
7694 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7695 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7697 $as_echo_n "checking for $ac_word... " >&6; }
7698 if ${ac_cv_prog_OBJDUMP+:} false; then :
7699 $as_echo_n "(cached) " >&6
7701 if test -n "$OBJDUMP"; then
7702 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7708 test -z "$as_dir" && as_dir=.
7709 for ac_exec_ext in '' $ac_executable_extensions; do
7710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7711 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7721 OBJDUMP=$ac_cv_prog_OBJDUMP
7722 if test -n "$OBJDUMP"; then
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7724 $as_echo "$OBJDUMP" >&6; }
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7727 $as_echo "no" >&6; }
7732 if test -z "$ac_cv_prog_OBJDUMP"; then
7733 ac_ct_OBJDUMP=$OBJDUMP
7734 # Extract the first word of "objdump", so it can be a program name with args.
7735 set dummy objdump; ac_word=$2
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7737 $as_echo_n "checking for $ac_word... " >&6; }
7738 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7739 $as_echo_n "(cached) " >&6
7741 if test -n "$ac_ct_OBJDUMP"; then
7742 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7748 test -z "$as_dir" && as_dir=.
7749 for ac_exec_ext in '' $ac_executable_extensions; do
7750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7751 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7761 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7762 if test -n "$ac_ct_OBJDUMP"; then
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7764 $as_echo "$ac_ct_OBJDUMP" >&6; }
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7767 $as_echo "no" >&6; }
7770 if test "x$ac_ct_OBJDUMP" = x; then
7773 case $cross_compiling:$ac_tool_warned in
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7776 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7777 ac_tool_warned=yes ;;
7779 OBJDUMP=$ac_ct_OBJDUMP
7782 OBJDUMP="$ac_cv_prog_OBJDUMP"
7785 test -z "$OBJDUMP" && OBJDUMP=objdump
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7796 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7797 if ${lt_cv_deplibs_check_method+:} false; then :
7798 $as_echo_n "(cached) " >&6
7800 lt_cv_file_magic_cmd='$MAGIC_CMD'
7801 lt_cv_file_magic_test_file=
7802 lt_cv_deplibs_check_method='unknown'
7803 # Need to set the preceding variable on all platforms that support
7804 # interlibrary dependencies.
7805 # 'none' -- dependencies not supported.
7806 # `unknown' -- same as none, but documents that we really don't know.
7807 # 'pass_all' -- all dependencies passed with no checks.
7808 # 'test_compile' -- check by making test program.
7809 # 'file_magic [[regex]]' -- check by looking for files in library path
7810 # which responds to the $file_magic_cmd with a given extended regex.
7811 # If you have `file' or equivalent on your system and you're not sure
7812 # whether `pass_all' will *always* work, you probably want this one.
7816 lt_cv_deplibs_check_method=pass_all
7820 lt_cv_deplibs_check_method=pass_all
7824 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7825 lt_cv_file_magic_cmd='/usr/bin/file -L'
7826 lt_cv_file_magic_test_file=/shlib/libc.so
7830 # func_win32_libid is a shell function defined in ltmain.sh
7831 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7832 lt_cv_file_magic_cmd='func_win32_libid'
7836 # Base MSYS/MinGW do not provide the 'file' command needed by
7837 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7838 # unless we find 'file', for example because we are cross-compiling.
7839 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7840 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7841 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7842 lt_cv_file_magic_cmd='func_win32_libid'
7844 # Keep this pattern in sync with the one in func_win32_libid.
7845 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7846 lt_cv_file_magic_cmd='$OBJDUMP -f'
7851 # use the weaker test based on 'objdump'. See mingw*.
7852 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7853 lt_cv_file_magic_cmd='$OBJDUMP -f'
7856 darwin* | rhapsody*)
7857 lt_cv_deplibs_check_method=pass_all
7860 freebsd* | dragonfly*)
7861 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7864 # Not sure whether the presence of OpenBSD here was a mistake.
7865 # Let's accept both of them until this is cleared up.
7866 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7867 lt_cv_file_magic_cmd=/usr/bin/file
7868 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7872 lt_cv_deplibs_check_method=pass_all
7877 lt_cv_deplibs_check_method=pass_all
7881 lt_cv_deplibs_check_method=pass_all
7884 hpux10.20* | hpux11*)
7885 lt_cv_file_magic_cmd=/usr/bin/file
7888 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7889 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7892 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
7893 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7896 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7897 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7903 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7904 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7907 irix5* | irix6* | nonstopux*)
7909 *-32|*"-32 ") libmagic=32-bit;;
7910 *-n32|*"-n32 ") libmagic=N32;;
7911 *-64|*"-64 ") libmagic=64-bit;;
7912 *) libmagic=never-match;;
7914 lt_cv_deplibs_check_method=pass_all
7917 # This must be glibc/ELF.
7918 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7919 lt_cv_deplibs_check_method=pass_all
7923 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7924 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7926 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7931 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7932 lt_cv_file_magic_cmd=/usr/bin/file
7933 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7937 lt_cv_deplibs_check_method=pass_all
7941 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7942 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7944 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7948 osf3* | osf4* | osf5*)
7949 lt_cv_deplibs_check_method=pass_all
7953 lt_cv_deplibs_check_method=pass_all
7957 lt_cv_deplibs_check_method=pass_all
7960 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7961 lt_cv_deplibs_check_method=pass_all
7965 case $host_vendor in
7967 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]'
7968 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7971 lt_cv_deplibs_check_method=pass_all
7974 lt_cv_file_magic_cmd='/bin/file'
7975 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7978 lt_cv_file_magic_cmd='/bin/file'
7979 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7980 lt_cv_file_magic_test_file=/lib/libc.so
7983 lt_cv_deplibs_check_method=pass_all
7986 lt_cv_deplibs_check_method=pass_all
7992 lt_cv_deplibs_check_method=pass_all
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7998 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8002 if test "$build" = "$host"; then
8005 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8008 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8014 file_magic_cmd=$lt_cv_file_magic_cmd
8015 deplibs_check_method=$lt_cv_deplibs_check_method
8016 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8039 if test -n "$ac_tool_prefix"; then
8040 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8041 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8043 $as_echo_n "checking for $ac_word... " >&6; }
8044 if ${ac_cv_prog_DLLTOOL+:} false; then :
8045 $as_echo_n "(cached) " >&6
8047 if test -n "$DLLTOOL"; then
8048 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8054 test -z "$as_dir" && as_dir=.
8055 for ac_exec_ext in '' $ac_executable_extensions; do
8056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8057 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8067 DLLTOOL=$ac_cv_prog_DLLTOOL
8068 if test -n "$DLLTOOL"; then
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8070 $as_echo "$DLLTOOL" >&6; }
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8073 $as_echo "no" >&6; }
8078 if test -z "$ac_cv_prog_DLLTOOL"; then
8079 ac_ct_DLLTOOL=$DLLTOOL
8080 # Extract the first word of "dlltool", so it can be a program name with args.
8081 set dummy dlltool; ac_word=$2
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8083 $as_echo_n "checking for $ac_word... " >&6; }
8084 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8085 $as_echo_n "(cached) " >&6
8087 if test -n "$ac_ct_DLLTOOL"; then
8088 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8094 test -z "$as_dir" && as_dir=.
8095 for ac_exec_ext in '' $ac_executable_extensions; do
8096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8097 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8107 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8108 if test -n "$ac_ct_DLLTOOL"; then
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8110 $as_echo "$ac_ct_DLLTOOL" >&6; }
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8113 $as_echo "no" >&6; }
8116 if test "x$ac_ct_DLLTOOL" = x; then
8119 case $cross_compiling:$ac_tool_warned in
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8122 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8123 ac_tool_warned=yes ;;
8125 DLLTOOL=$ac_ct_DLLTOOL
8128 DLLTOOL="$ac_cv_prog_DLLTOOL"
8131 test -z "$DLLTOOL" && DLLTOOL=dlltool
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8143 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8144 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8145 $as_echo_n "(cached) " >&6
8147 lt_cv_sharedlib_from_linklib_cmd='unknown'
8150 cygwin* | mingw* | pw32* | cegcc*)
8151 # two different shell functions defined in ltmain.sh
8152 # decide which to use based on capabilities of $DLLTOOL
8153 case `$DLLTOOL --help 2>&1` in
8154 *--identify-strict*)
8155 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8158 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8163 # fallback: assume linklib IS sharedlib
8164 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8170 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8171 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8172 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8180 if test -n "$ac_tool_prefix"; then
8183 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8184 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8186 $as_echo_n "checking for $ac_word... " >&6; }
8187 if ${ac_cv_prog_AR+:} false; then :
8188 $as_echo_n "(cached) " >&6
8190 if test -n "$AR"; then
8191 ac_cv_prog_AR="$AR" # Let the user override the test.
8193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8197 test -z "$as_dir" && as_dir=.
8198 for ac_exec_ext in '' $ac_executable_extensions; do
8199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8200 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8211 if test -n "$AR"; then
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8213 $as_echo "$AR" >&6; }
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8216 $as_echo "no" >&6; }
8220 test -n "$AR" && break
8223 if test -z "$AR"; then
8227 # Extract the first word of "$ac_prog", so it can be a program name with args.
8228 set dummy $ac_prog; ac_word=$2
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8230 $as_echo_n "checking for $ac_word... " >&6; }
8231 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8232 $as_echo_n "(cached) " >&6
8234 if test -n "$ac_ct_AR"; then
8235 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8241 test -z "$as_dir" && as_dir=.
8242 for ac_exec_ext in '' $ac_executable_extensions; do
8243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8244 ac_cv_prog_ac_ct_AR="$ac_prog"
8245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8254 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8255 if test -n "$ac_ct_AR"; then
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8257 $as_echo "$ac_ct_AR" >&6; }
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8260 $as_echo "no" >&6; }
8264 test -n "$ac_ct_AR" && break
8267 if test "x$ac_ct_AR" = x; then
8270 case $cross_compiling:$ac_tool_warned in
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8273 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8274 ac_tool_warned=yes ;;
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8294 $as_echo_n "checking for archiver @FILE support... " >&6; }
8295 if ${lt_cv_ar_at_file+:} false; then :
8296 $as_echo_n "(cached) " >&6
8299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8300 /* end confdefs.h. */
8310 if ac_fn_c_try_compile "$LINENO"; then :
8311 echo conftest.$ac_objext > conftest.lst
8312 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8313 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8314 (eval $lt_ar_try) 2>&5
8316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8317 test $ac_status = 0; }
8318 if test "$ac_status" -eq 0; then
8319 # Ensure the archiver fails upon bogus file names.
8320 rm -f conftest.$ac_objext libconftest.a
8321 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8322 (eval $lt_ar_try) 2>&5
8324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8325 test $ac_status = 0; }
8326 if test "$ac_status" -ne 0; then
8330 rm -f conftest.* libconftest.a
8333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8337 $as_echo "$lt_cv_ar_at_file" >&6; }
8339 if test "x$lt_cv_ar_at_file" = xno; then
8342 archiver_list_spec=$lt_cv_ar_at_file
8351 if test -n "$ac_tool_prefix"; then
8352 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8353 set dummy ${ac_tool_prefix}strip; ac_word=$2
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8355 $as_echo_n "checking for $ac_word... " >&6; }
8356 if ${ac_cv_prog_STRIP+:} false; then :
8357 $as_echo_n "(cached) " >&6
8359 if test -n "$STRIP"; then
8360 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8366 test -z "$as_dir" && as_dir=.
8367 for ac_exec_ext in '' $ac_executable_extensions; do
8368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8369 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8379 STRIP=$ac_cv_prog_STRIP
8380 if test -n "$STRIP"; then
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8382 $as_echo "$STRIP" >&6; }
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8385 $as_echo "no" >&6; }
8390 if test -z "$ac_cv_prog_STRIP"; then
8392 # Extract the first word of "strip", so it can be a program name with args.
8393 set dummy strip; ac_word=$2
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8395 $as_echo_n "checking for $ac_word... " >&6; }
8396 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8397 $as_echo_n "(cached) " >&6
8399 if test -n "$ac_ct_STRIP"; then
8400 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8406 test -z "$as_dir" && as_dir=.
8407 for ac_exec_ext in '' $ac_executable_extensions; do
8408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8409 ac_cv_prog_ac_ct_STRIP="strip"
8410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8419 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8420 if test -n "$ac_ct_STRIP"; then
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8422 $as_echo "$ac_ct_STRIP" >&6; }
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8425 $as_echo "no" >&6; }
8428 if test "x$ac_ct_STRIP" = x; then
8431 case $cross_compiling:$ac_tool_warned in
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8434 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8435 ac_tool_warned=yes ;;
8440 STRIP="$ac_cv_prog_STRIP"
8443 test -z "$STRIP" && STRIP=:
8450 if test -n "$ac_tool_prefix"; then
8451 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8452 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8454 $as_echo_n "checking for $ac_word... " >&6; }
8455 if ${ac_cv_prog_RANLIB+:} false; then :
8456 $as_echo_n "(cached) " >&6
8458 if test -n "$RANLIB"; then
8459 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8465 test -z "$as_dir" && as_dir=.
8466 for ac_exec_ext in '' $ac_executable_extensions; do
8467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8468 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8478 RANLIB=$ac_cv_prog_RANLIB
8479 if test -n "$RANLIB"; then
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8481 $as_echo "$RANLIB" >&6; }
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8484 $as_echo "no" >&6; }
8489 if test -z "$ac_cv_prog_RANLIB"; then
8490 ac_ct_RANLIB=$RANLIB
8491 # Extract the first word of "ranlib", so it can be a program name with args.
8492 set dummy ranlib; ac_word=$2
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8494 $as_echo_n "checking for $ac_word... " >&6; }
8495 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8496 $as_echo_n "(cached) " >&6
8498 if test -n "$ac_ct_RANLIB"; then
8499 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8505 test -z "$as_dir" && as_dir=.
8506 for ac_exec_ext in '' $ac_executable_extensions; do
8507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8508 ac_cv_prog_ac_ct_RANLIB="ranlib"
8509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8518 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8519 if test -n "$ac_ct_RANLIB"; then
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8521 $as_echo "$ac_ct_RANLIB" >&6; }
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8524 $as_echo "no" >&6; }
8527 if test "x$ac_ct_RANLIB" = x; then
8530 case $cross_compiling:$ac_tool_warned in
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8533 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8534 ac_tool_warned=yes ;;
8536 RANLIB=$ac_ct_RANLIB
8539 RANLIB="$ac_cv_prog_RANLIB"
8542 test -z "$RANLIB" && RANLIB=:
8549 # Determine commands to create old-style static archives.
8550 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8551 old_postinstall_cmds='chmod 644 $oldlib'
8552 old_postuninstall_cmds=
8554 if test -n "$RANLIB"; then
8557 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8560 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8563 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8568 lock_old_archive_extraction=yes ;;
8570 lock_old_archive_extraction=no ;;
8611 # If no C compiler was specified, use CC.
8614 # If no C compiler flags were specified, use CFLAGS.
8615 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8617 # Allow CC to be a program name with arguments.
8621 # Check for command to grab the raw symbol name followed by C symbol from nm.
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8623 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8624 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8625 $as_echo_n "(cached) " >&6
8628 # These are sane defaults that work on at least a few old systems.
8629 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8631 # Character class describing NM global symbol codes.
8632 symcode='[BCDEGRST]'
8634 # Regexp to match symbols that can be accessed directly from C.
8635 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8637 # Define system-specific variables.
8642 cygwin* | mingw* | pw32* | cegcc*)
8643 symcode='[ABCDGISTW]'
8646 if test "$host_cpu" = ia64; then
8647 symcode='[ABCDEGRST]'
8651 symcode='[BCDEGRST]'
8654 symcode='[BCDEGQRST]'
8665 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8673 # If we're using GNU nm, then use its standard symbol codes.
8674 case `$NM -V 2>&1` in
8675 *GNU* | *'with BFD'*)
8676 symcode='[ABCDGIRSTW]' ;;
8679 # Transform an extracted symbol line into a proper C declaration.
8680 # Some systems (esp. on ia64) link data and code symbols differently,
8681 # so use this general approach.
8682 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8684 # Transform an extracted symbol line into symbol name and symbol address
8685 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8686 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'"
8688 # Handle CRLF in mingw tool chain
8692 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8696 # Try without a prefix underscore, then with it.
8697 for ac_symprfx in "" "_"; do
8699 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8700 symxfrm="\\1 $ac_symprfx\\2 \\2"
8702 # Write the raw and C identifiers.
8703 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8704 # Fake it for dumpbin and say T for any non-static function
8705 # and D for any global variable.
8706 # Also find C++ and __fastcall symbols from MSVC++,
8707 # which start with @ or ?.
8708 lt_cv_sys_global_symbol_pipe="$AWK '"\
8709 " {last_section=section; section=\$ 3};"\
8710 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8711 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8712 " \$ 0!~/External *\|/{next};"\
8713 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8714 " {if(hide[section]) next};"\
8715 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8716 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8717 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8718 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8719 " ' prfx=^$ac_symprfx"
8721 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8723 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8725 # Check to see that the pipe works correctly.
8729 cat > conftest.$ac_ext <<_LT_EOF
8734 void nm_test_func(void);
8735 void nm_test_func(void){}
8739 int main(){nm_test_var='a';nm_test_func();return(0);}
8742 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8743 (eval $ac_compile) 2>&5
8745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8746 test $ac_status = 0; }; then
8747 # Now try to grab the symbols.
8749 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8750 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8753 test $ac_status = 0; } && test -s "$nlist"; then
8754 # Try sorting and uniquifying the output.
8755 if sort "$nlist" | uniq > "$nlist"T; then
8756 mv -f "$nlist"T "$nlist"
8761 # Make sure that we snagged all the symbols we need.
8762 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8763 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8764 cat <<_LT_EOF > conftest.$ac_ext
8765 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8766 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8767 /* DATA imports from DLLs on WIN32 con't be const, because runtime
8768 relocations are performed -- see ld's documentation on pseudo-relocs. */
8769 # define LT_DLSYM_CONST
8770 #elif defined(__osf__)
8771 /* This system does not cope well with relocations in const data. */
8772 # define LT_DLSYM_CONST
8774 # define LT_DLSYM_CONST const
8782 # Now generate the symbol file.
8783 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8785 cat <<_LT_EOF >> conftest.$ac_ext
8787 /* The mapping between symbol names and symbols. */
8788 LT_DLSYM_CONST struct {
8792 lt__PROGRAM__LTX_preloaded_symbols[] =
8794 { "@PROGRAM@", (void *) 0 },
8796 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8797 cat <<\_LT_EOF >> conftest.$ac_ext
8801 /* This works around a problem in FreeBSD linker */
8802 #ifdef FREEBSD_WORKAROUND
8803 static const void *lt_preloaded_setup() {
8804 return lt__PROGRAM__LTX_preloaded_symbols;
8812 # Now try linking the two files.
8813 mv conftest.$ac_objext conftstm.$ac_objext
8814 lt_globsym_save_LIBS=$LIBS
8815 lt_globsym_save_CFLAGS=$CFLAGS
8816 LIBS="conftstm.$ac_objext"
8817 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8818 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8819 (eval $ac_link) 2>&5
8821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8822 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8825 LIBS=$lt_globsym_save_LIBS
8826 CFLAGS=$lt_globsym_save_CFLAGS
8828 echo "cannot find nm_test_func in $nlist" >&5
8831 echo "cannot find nm_test_var in $nlist" >&5
8834 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8837 echo "$progname: failed program was:" >&5
8838 cat conftest.$ac_ext >&5
8840 rm -rf conftest* conftst*
8842 # Do not use the global_symbol_pipe unless it works.
8843 if test "$pipe_works" = yes; then
8846 lt_cv_sys_global_symbol_pipe=
8852 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8853 lt_cv_sys_global_symbol_to_cdecl=
8855 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8857 $as_echo "failed" >&6; }
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8860 $as_echo "ok" >&6; }
8863 # Response file support.
8864 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8865 nm_file_list_spec='@'
8866 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8867 nm_file_list_spec='@'
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8897 $as_echo_n "checking for sysroot... " >&6; }
8899 # Check whether --with-sysroot was given.
8900 if test "${with_sysroot+set}" = set; then :
8901 withval=$with_sysroot;
8908 case ${with_sysroot} in #(
8910 if test "$GCC" = yes; then
8911 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8915 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8921 $as_echo "${with_sysroot}" >&6; }
8922 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8927 $as_echo "${lt_sysroot:-no}" >&6; }
8933 # Check whether --enable-libtool-lock was given.
8934 if test "${enable_libtool_lock+set}" = set; then :
8935 enableval=$enable_libtool_lock;
8938 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8940 # Some flags need to be propagated to the compiler or linker for good
8944 # Find out which ABI we are using.
8945 echo 'int i;' > conftest.$ac_ext
8946 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8947 (eval $ac_compile) 2>&5
8949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8950 test $ac_status = 0; }; then
8951 case `/usr/bin/file conftest.$ac_objext` in
8963 # Find out which ABI we are using.
8964 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8965 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8966 (eval $ac_compile) 2>&5
8968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8969 test $ac_status = 0; }; then
8970 if test "$lt_cv_prog_gnu_ld" = yes; then
8971 case `/usr/bin/file conftest.$ac_objext` in
8973 LD="${LD-ld} -melf32bsmip"
8976 LD="${LD-ld} -melf32bmipn32"
8979 LD="${LD-ld} -melf64bmip"
8983 case `/usr/bin/file conftest.$ac_objext` in
8999 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9000 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9001 # Find out which ABI we are using.
9002 echo 'int i;' > conftest.$ac_ext
9003 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9004 (eval $ac_compile) 2>&5
9006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9007 test $ac_status = 0; }; then
9008 case `/usr/bin/file conftest.o` in
9011 x86_64-*kfreebsd*-gnu)
9012 LD="${LD-ld} -m elf_i386_fbsd"
9015 LD="${LD-ld} -m elf_i386"
9018 LD="${LD-ld} -m elf32lppclinux"
9021 LD="${LD-ld} -m elf32ppclinux"
9024 LD="${LD-ld} -m elf_s390"
9027 LD="${LD-ld} -m elf32_sparc"
9033 x86_64-*kfreebsd*-gnu)
9034 LD="${LD-ld} -m elf_x86_64_fbsd"
9037 LD="${LD-ld} -m elf_x86_64"
9040 LD="${LD-ld} -m elf64lppc"
9043 LD="${LD-ld} -m elf64ppc"
9045 s390*-*linux*|s390*-*tpf*)
9046 LD="${LD-ld} -m elf64_s390"
9049 LD="${LD-ld} -m elf64_sparc"
9059 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9060 SAVE_CFLAGS="$CFLAGS"
9061 CFLAGS="$CFLAGS -belf"
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9063 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9064 if ${lt_cv_cc_needs_belf+:} false; then :
9065 $as_echo_n "(cached) " >&6
9068 ac_cpp='$CPP $CPPFLAGS'
9069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9074 /* end confdefs.h. */
9084 if ac_fn_c_try_link "$LINENO"; then :
9085 lt_cv_cc_needs_belf=yes
9087 lt_cv_cc_needs_belf=no
9089 rm -f core conftest.err conftest.$ac_objext \
9090 conftest$ac_exeext conftest.$ac_ext
9092 ac_cpp='$CPP $CPPFLAGS'
9093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9099 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9100 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
9101 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9102 CFLAGS="$SAVE_CFLAGS"
9106 # Find out which ABI we are using.
9107 echo 'int i;' > conftest.$ac_ext
9108 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9109 (eval $ac_compile) 2>&5
9111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9112 test $ac_status = 0; }; then
9113 case `/usr/bin/file conftest.o` in
9115 case $lt_cv_prog_gnu_ld in
9119 LD="${LD-ld} -m elf_x86_64"
9122 LD="${LD-ld} -m elf64_sparc"
9125 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9126 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9131 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9143 need_locks="$enable_libtool_lock"
9145 if test -n "$ac_tool_prefix"; then
9146 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9147 set dummy ${ac_tool_prefix}mt; ac_word=$2
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9149 $as_echo_n "checking for $ac_word... " >&6; }
9150 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9151 $as_echo_n "(cached) " >&6
9153 if test -n "$MANIFEST_TOOL"; then
9154 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9160 test -z "$as_dir" && as_dir=.
9161 for ac_exec_ext in '' $ac_executable_extensions; do
9162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9163 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9173 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9174 if test -n "$MANIFEST_TOOL"; then
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9176 $as_echo "$MANIFEST_TOOL" >&6; }
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9179 $as_echo "no" >&6; }
9184 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9185 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9186 # Extract the first word of "mt", so it can be a program name with args.
9187 set dummy mt; ac_word=$2
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9189 $as_echo_n "checking for $ac_word... " >&6; }
9190 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9191 $as_echo_n "(cached) " >&6
9193 if test -n "$ac_ct_MANIFEST_TOOL"; then
9194 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9200 test -z "$as_dir" && as_dir=.
9201 for ac_exec_ext in '' $ac_executable_extensions; do
9202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9203 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9213 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9214 if test -n "$ac_ct_MANIFEST_TOOL"; then
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9216 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9219 $as_echo "no" >&6; }
9222 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9225 case $cross_compiling:$ac_tool_warned in
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9228 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9229 ac_tool_warned=yes ;;
9231 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9234 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9237 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9239 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9240 if ${lt_cv_path_mainfest_tool+:} false; then :
9241 $as_echo_n "(cached) " >&6
9243 lt_cv_path_mainfest_tool=no
9244 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9245 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9246 cat conftest.err >&5
9247 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9248 lt_cv_path_mainfest_tool=yes
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9253 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9254 if test "x$lt_cv_path_mainfest_tool" != xyes; then
9264 rhapsody* | darwin*)
9265 if test -n "$ac_tool_prefix"; then
9266 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9267 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9269 $as_echo_n "checking for $ac_word... " >&6; }
9270 if ${ac_cv_prog_DSYMUTIL+:} false; then :
9271 $as_echo_n "(cached) " >&6
9273 if test -n "$DSYMUTIL"; then
9274 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9280 test -z "$as_dir" && as_dir=.
9281 for ac_exec_ext in '' $ac_executable_extensions; do
9282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9283 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9293 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9294 if test -n "$DSYMUTIL"; then
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9296 $as_echo "$DSYMUTIL" >&6; }
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9299 $as_echo "no" >&6; }
9304 if test -z "$ac_cv_prog_DSYMUTIL"; then
9305 ac_ct_DSYMUTIL=$DSYMUTIL
9306 # Extract the first word of "dsymutil", so it can be a program name with args.
9307 set dummy dsymutil; ac_word=$2
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9309 $as_echo_n "checking for $ac_word... " >&6; }
9310 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9311 $as_echo_n "(cached) " >&6
9313 if test -n "$ac_ct_DSYMUTIL"; then
9314 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9320 test -z "$as_dir" && as_dir=.
9321 for ac_exec_ext in '' $ac_executable_extensions; do
9322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9323 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9333 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9334 if test -n "$ac_ct_DSYMUTIL"; then
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9336 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9339 $as_echo "no" >&6; }
9342 if test "x$ac_ct_DSYMUTIL" = x; then
9345 case $cross_compiling:$ac_tool_warned in
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9348 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9349 ac_tool_warned=yes ;;
9351 DSYMUTIL=$ac_ct_DSYMUTIL
9354 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9357 if test -n "$ac_tool_prefix"; then
9358 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9359 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9361 $as_echo_n "checking for $ac_word... " >&6; }
9362 if ${ac_cv_prog_NMEDIT+:} false; then :
9363 $as_echo_n "(cached) " >&6
9365 if test -n "$NMEDIT"; then
9366 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9372 test -z "$as_dir" && as_dir=.
9373 for ac_exec_ext in '' $ac_executable_extensions; do
9374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9375 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9385 NMEDIT=$ac_cv_prog_NMEDIT
9386 if test -n "$NMEDIT"; then
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9388 $as_echo "$NMEDIT" >&6; }
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9391 $as_echo "no" >&6; }
9396 if test -z "$ac_cv_prog_NMEDIT"; then
9397 ac_ct_NMEDIT=$NMEDIT
9398 # Extract the first word of "nmedit", so it can be a program name with args.
9399 set dummy nmedit; ac_word=$2
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9401 $as_echo_n "checking for $ac_word... " >&6; }
9402 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9403 $as_echo_n "(cached) " >&6
9405 if test -n "$ac_ct_NMEDIT"; then
9406 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9412 test -z "$as_dir" && as_dir=.
9413 for ac_exec_ext in '' $ac_executable_extensions; do
9414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9415 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9425 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9426 if test -n "$ac_ct_NMEDIT"; then
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9428 $as_echo "$ac_ct_NMEDIT" >&6; }
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9431 $as_echo "no" >&6; }
9434 if test "x$ac_ct_NMEDIT" = x; then
9437 case $cross_compiling:$ac_tool_warned in
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9440 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9441 ac_tool_warned=yes ;;
9443 NMEDIT=$ac_ct_NMEDIT
9446 NMEDIT="$ac_cv_prog_NMEDIT"
9449 if test -n "$ac_tool_prefix"; then
9450 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9451 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9453 $as_echo_n "checking for $ac_word... " >&6; }
9454 if ${ac_cv_prog_LIPO+:} false; then :
9455 $as_echo_n "(cached) " >&6
9457 if test -n "$LIPO"; then
9458 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9464 test -z "$as_dir" && as_dir=.
9465 for ac_exec_ext in '' $ac_executable_extensions; do
9466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9467 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9477 LIPO=$ac_cv_prog_LIPO
9478 if test -n "$LIPO"; then
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9480 $as_echo "$LIPO" >&6; }
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9483 $as_echo "no" >&6; }
9488 if test -z "$ac_cv_prog_LIPO"; then
9490 # Extract the first word of "lipo", so it can be a program name with args.
9491 set dummy lipo; ac_word=$2
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9493 $as_echo_n "checking for $ac_word... " >&6; }
9494 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9495 $as_echo_n "(cached) " >&6
9497 if test -n "$ac_ct_LIPO"; then
9498 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9504 test -z "$as_dir" && as_dir=.
9505 for ac_exec_ext in '' $ac_executable_extensions; do
9506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9507 ac_cv_prog_ac_ct_LIPO="lipo"
9508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9517 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9518 if test -n "$ac_ct_LIPO"; then
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9520 $as_echo "$ac_ct_LIPO" >&6; }
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9523 $as_echo "no" >&6; }
9526 if test "x$ac_ct_LIPO" = x; then
9529 case $cross_compiling:$ac_tool_warned in
9531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9532 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9533 ac_tool_warned=yes ;;
9538 LIPO="$ac_cv_prog_LIPO"
9541 if test -n "$ac_tool_prefix"; then
9542 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9543 set dummy ${ac_tool_prefix}otool; ac_word=$2
9544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9545 $as_echo_n "checking for $ac_word... " >&6; }
9546 if ${ac_cv_prog_OTOOL+:} false; then :
9547 $as_echo_n "(cached) " >&6
9549 if test -n "$OTOOL"; then
9550 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9556 test -z "$as_dir" && as_dir=.
9557 for ac_exec_ext in '' $ac_executable_extensions; do
9558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9559 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9569 OTOOL=$ac_cv_prog_OTOOL
9570 if test -n "$OTOOL"; then
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9572 $as_echo "$OTOOL" >&6; }
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9575 $as_echo "no" >&6; }
9580 if test -z "$ac_cv_prog_OTOOL"; then
9582 # Extract the first word of "otool", so it can be a program name with args.
9583 set dummy otool; ac_word=$2
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9585 $as_echo_n "checking for $ac_word... " >&6; }
9586 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9587 $as_echo_n "(cached) " >&6
9589 if test -n "$ac_ct_OTOOL"; then
9590 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9596 test -z "$as_dir" && as_dir=.
9597 for ac_exec_ext in '' $ac_executable_extensions; do
9598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9599 ac_cv_prog_ac_ct_OTOOL="otool"
9600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9609 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9610 if test -n "$ac_ct_OTOOL"; then
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9612 $as_echo "$ac_ct_OTOOL" >&6; }
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9615 $as_echo "no" >&6; }
9618 if test "x$ac_ct_OTOOL" = x; then
9621 case $cross_compiling:$ac_tool_warned in
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9624 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9625 ac_tool_warned=yes ;;
9630 OTOOL="$ac_cv_prog_OTOOL"
9633 if test -n "$ac_tool_prefix"; then
9634 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9635 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9637 $as_echo_n "checking for $ac_word... " >&6; }
9638 if ${ac_cv_prog_OTOOL64+:} false; then :
9639 $as_echo_n "(cached) " >&6
9641 if test -n "$OTOOL64"; then
9642 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9648 test -z "$as_dir" && as_dir=.
9649 for ac_exec_ext in '' $ac_executable_extensions; do
9650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9651 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9661 OTOOL64=$ac_cv_prog_OTOOL64
9662 if test -n "$OTOOL64"; then
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9664 $as_echo "$OTOOL64" >&6; }
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9667 $as_echo "no" >&6; }
9672 if test -z "$ac_cv_prog_OTOOL64"; then
9673 ac_ct_OTOOL64=$OTOOL64
9674 # Extract the first word of "otool64", so it can be a program name with args.
9675 set dummy otool64; ac_word=$2
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9677 $as_echo_n "checking for $ac_word... " >&6; }
9678 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9679 $as_echo_n "(cached) " >&6
9681 if test -n "$ac_ct_OTOOL64"; then
9682 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9688 test -z "$as_dir" && as_dir=.
9689 for ac_exec_ext in '' $ac_executable_extensions; do
9690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9691 ac_cv_prog_ac_ct_OTOOL64="otool64"
9692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9701 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9702 if test -n "$ac_ct_OTOOL64"; then
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9704 $as_echo "$ac_ct_OTOOL64" >&6; }
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9707 $as_echo "no" >&6; }
9710 if test "x$ac_ct_OTOOL64" = x; then
9713 case $cross_compiling:$ac_tool_warned in
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9716 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9717 ac_tool_warned=yes ;;
9719 OTOOL64=$ac_ct_OTOOL64
9722 OTOOL64="$ac_cv_prog_OTOOL64"
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9752 $as_echo_n "checking for -single_module linker flag... " >&6; }
9753 if ${lt_cv_apple_cc_single_mod+:} false; then :
9754 $as_echo_n "(cached) " >&6
9756 lt_cv_apple_cc_single_mod=no
9757 if test -z "${LT_MULTI_MODULE}"; then
9758 # By default we will add the -single_module flag. You can override
9759 # by either setting the environment variable LT_MULTI_MODULE
9760 # non-empty at configure time, or by adding -multi_module to the
9762 rm -rf libconftest.dylib*
9763 echo "int foo(void){return 1;}" > conftest.c
9764 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9765 -dynamiclib -Wl,-single_module conftest.c" >&5
9766 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9767 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9769 # If there is a non-empty error log, and "single_module"
9770 # appears in it, assume the flag caused a linker warning
9771 if test -s conftest.err && $GREP single_module conftest.err; then
9772 cat conftest.err >&5
9773 # Otherwise, if the output was created with a 0 exit code from
9774 # the compiler, it worked.
9775 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
9776 lt_cv_apple_cc_single_mod=yes
9778 cat conftest.err >&5
9780 rm -rf libconftest.dylib*
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9785 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9788 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9789 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9790 $as_echo_n "(cached) " >&6
9792 lt_cv_ld_exported_symbols_list=no
9793 save_LDFLAGS=$LDFLAGS
9794 echo "_main" > conftest.sym
9795 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9797 /* end confdefs.h. */
9807 if ac_fn_c_try_link "$LINENO"; then :
9808 lt_cv_ld_exported_symbols_list=yes
9810 lt_cv_ld_exported_symbols_list=no
9812 rm -f core conftest.err conftest.$ac_objext \
9813 conftest$ac_exeext conftest.$ac_ext
9814 LDFLAGS="$save_LDFLAGS"
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9818 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9821 $as_echo_n "checking for -force_load linker flag... " >&6; }
9822 if ${lt_cv_ld_force_load+:} false; then :
9823 $as_echo_n "(cached) " >&6
9825 lt_cv_ld_force_load=no
9826 cat > conftest.c << _LT_EOF
9827 int forced_loaded() { return 2;}
9829 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9830 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9831 echo "$AR cru libconftest.a conftest.o" >&5
9832 $AR cru libconftest.a conftest.o 2>&5
9833 echo "$RANLIB libconftest.a" >&5
9834 $RANLIB libconftest.a 2>&5
9835 cat > conftest.c << _LT_EOF
9836 int main() { return 0;}
9838 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9839 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9841 if test -s conftest.err && $GREP force_load conftest.err; then
9842 cat conftest.err >&5
9843 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
9844 lt_cv_ld_force_load=yes
9846 cat conftest.err >&5
9848 rm -f conftest.err libconftest.a conftest conftest.c
9849 rm -rf conftest.dSYM
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9853 $as_echo "$lt_cv_ld_force_load" >&6; }
9855 rhapsody* | darwin1.[012])
9856 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9858 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9859 darwin*) # darwin 5.x on
9860 # if running on 10.5 or later, the deployment target defaults
9861 # to the OS version, if on x86, and 10.4, the deployment
9862 # target defaults to 10.4. Don't you love it?
9863 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9864 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9865 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9867 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9869 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9873 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9874 _lt_dar_single_mod='$single_module'
9876 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9877 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9879 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9881 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9882 _lt_dsymutil='~$DSYMUTIL $lib || :'
9889 for ac_header in dlfcn.h
9891 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9893 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9894 cat >>confdefs.h <<_ACEOF
9895 #define HAVE_DLFCN_H 1
9905 func_stripname_cnf ()
9908 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9909 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9911 } # func_stripname_cnf
9927 # Check whether --enable-shared was given.
9928 if test "${enable_shared+set}" = set; then :
9929 enableval=$enable_shared; p=${PACKAGE-default}
9931 yes) enable_shared=yes ;;
9932 no) enable_shared=no ;;
9935 # Look at the argument we got. We use all the common list separators.
9936 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9937 for pkg in $enableval; do
9939 if test "X$pkg" = "X$p"; then
9960 # Check whether --with-pic was given.
9961 if test "${with_pic+set}" = set; then :
9962 withval=$with_pic; lt_p=${PACKAGE-default}
9964 yes|no) pic_mode=$withval ;;
9967 # Look at the argument we got. We use all the common list separators.
9968 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9969 for lt_pkg in $withval; do
9971 if test "X$lt_pkg" = "X$lt_p"; then
9983 test -z "$pic_mode" && pic_mode=default
9991 # Check whether --enable-fast-install was given.
9992 if test "${enable_fast_install+set}" = set; then :
9993 enableval=$enable_fast_install; p=${PACKAGE-default}
9995 yes) enable_fast_install=yes ;;
9996 no) enable_fast_install=no ;;
9998 enable_fast_install=no
9999 # Look at the argument we got. We use all the common list separators.
10000 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10001 for pkg in $enableval; do
10003 if test "X$pkg" = "X$p"; then
10004 enable_fast_install=yes
10011 enable_fast_install=yes
10024 # This can be used to rebuild libtool when needed
10025 LIBTOOL_DEPS="$ltmain"
10027 # Always use our own libtool.
10028 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10059 test -z "$LN_S" && LN_S="ln -s"
10074 if test -n "${ZSH_VERSION+set}" ; then
10075 setopt NO_GLOB_SUBST
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10079 $as_echo_n "checking for objdir... " >&6; }
10080 if ${lt_cv_objdir+:} false; then :
10081 $as_echo_n "(cached) " >&6
10083 rm -f .libs 2>/dev/null
10084 mkdir .libs 2>/dev/null
10085 if test -d .libs; then
10088 # MS-DOS does not allow filenames that begin with a dot.
10091 rmdir .libs 2>/dev/null
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10094 $as_echo "$lt_cv_objdir" >&6; }
10095 objdir=$lt_cv_objdir
10101 cat >>confdefs.h <<_ACEOF
10102 #define LT_OBJDIR "$lt_cv_objdir/"
10110 # AIX sometimes has problems with the GCC collect2 program. For some
10111 # reason, if we set the COLLECT_NAMES environment variable, the problems
10112 # vanish in a puff of smoke.
10113 if test "X${COLLECT_NAMES+set}" != Xset; then
10115 export COLLECT_NAMES
10120 # Global variables:
10122 can_build_shared=yes
10124 # All known linkers require a `.a' archive for static linking (except MSVC,
10125 # which needs '.lib').
10128 with_gnu_ld="$lt_cv_prog_gnu_ld"
10131 old_CFLAGS="$CFLAGS"
10133 # Set sane defaults for various variables
10134 test -z "$CC" && CC=cc
10135 test -z "$LTCC" && LTCC=$CC
10136 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10137 test -z "$LD" && LD=ld
10138 test -z "$ac_objext" && ac_objext=o
10140 for cc_temp in $compiler""; do
10142 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10143 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10148 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10151 # Only perform the check for file, if the check method requires it
10152 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10153 case $deplibs_check_method in
10155 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10157 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10158 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10159 $as_echo_n "(cached) " >&6
10163 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10166 lt_save_MAGIC_CMD="$MAGIC_CMD"
10167 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10168 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10169 for ac_dir in $ac_dummy; do
10171 test -z "$ac_dir" && ac_dir=.
10172 if test -f $ac_dir/${ac_tool_prefix}file; then
10173 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10174 if test -n "$file_magic_test_file"; then
10175 case $deplibs_check_method in
10177 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10178 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10179 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10180 $EGREP "$file_magic_regex" > /dev/null; then
10185 *** Warning: the command libtool uses to detect shared libraries,
10186 *** $file_magic_cmd, produces output that libtool cannot recognize.
10187 *** The result is that libtool may fail to recognize shared libraries
10188 *** as such. This will affect the creation of libtool libraries that
10189 *** depend on shared libraries, but programs linked with such libtool
10190 *** libraries will work regardless of this problem. Nevertheless, you
10191 *** may want to report the problem to your system manager and/or to
10192 *** bug-libtool@gnu.org
10202 MAGIC_CMD="$lt_save_MAGIC_CMD"
10207 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10208 if test -n "$MAGIC_CMD"; then
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10210 $as_echo "$MAGIC_CMD" >&6; }
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10213 $as_echo "no" >&6; }
10220 if test -z "$lt_cv_path_MAGIC_CMD"; then
10221 if test -n "$ac_tool_prefix"; then
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10223 $as_echo_n "checking for file... " >&6; }
10224 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10225 $as_echo_n "(cached) " >&6
10229 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10232 lt_save_MAGIC_CMD="$MAGIC_CMD"
10233 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10234 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10235 for ac_dir in $ac_dummy; do
10237 test -z "$ac_dir" && ac_dir=.
10238 if test -f $ac_dir/file; then
10239 lt_cv_path_MAGIC_CMD="$ac_dir/file"
10240 if test -n "$file_magic_test_file"; then
10241 case $deplibs_check_method in
10243 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10244 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10245 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10246 $EGREP "$file_magic_regex" > /dev/null; then
10251 *** Warning: the command libtool uses to detect shared libraries,
10252 *** $file_magic_cmd, produces output that libtool cannot recognize.
10253 *** The result is that libtool may fail to recognize shared libraries
10254 *** as such. This will affect the creation of libtool libraries that
10255 *** depend on shared libraries, but programs linked with such libtool
10256 *** libraries will work regardless of this problem. Nevertheless, you
10257 *** may want to report the problem to your system manager and/or to
10258 *** bug-libtool@gnu.org
10268 MAGIC_CMD="$lt_save_MAGIC_CMD"
10273 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10274 if test -n "$MAGIC_CMD"; then
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10276 $as_echo "$MAGIC_CMD" >&6; }
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10279 $as_echo "no" >&6; }
10292 # Use C for the default configuration in the libtool script
10296 ac_cpp='$CPP $CPPFLAGS'
10297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10302 # Source file extension for C test sources.
10305 # Object file extension for compiled C test sources.
10309 # Code to be used in simple compile tests
10310 lt_simple_compile_test_code="int some_variable = 0;"
10312 # Code to be used in simple link tests
10313 lt_simple_link_test_code='int main(){return(0);}'
10321 # If no C compiler was specified, use CC.
10324 # If no C compiler flags were specified, use CFLAGS.
10325 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10327 # Allow CC to be a program name with arguments.
10330 # Save the default compiler, since it gets overwritten when the other
10331 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10332 compiler_DEFAULT=$CC
10334 # save warnings/boilerplate of simple test code
10335 ac_outfile=conftest.$ac_objext
10336 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10337 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10338 _lt_compiler_boilerplate=`cat conftest.err`
10341 ac_outfile=conftest.$ac_objext
10342 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10343 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10344 _lt_linker_boilerplate=`cat conftest.err`
10349 ## There is no encapsulation within the following macros, do not change
10350 ## the running order or otherwise move them around unless you know exactly
10351 ## what you are doing...
10352 if test -n "$compiler"; then
10354 lt_prog_compiler_no_builtin_flag=
10356 if test "$GCC" = yes; then
10357 case $cc_basename in
10359 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10361 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10365 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10366 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10367 $as_echo_n "(cached) " >&6
10369 lt_cv_prog_compiler_rtti_exceptions=no
10370 ac_outfile=conftest.$ac_objext
10371 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10372 lt_compiler_flag="-fno-rtti -fno-exceptions"
10373 # Insert the option either (1) after the last *FLAGS variable, or
10374 # (2) before a word containing "conftest.", or (3) at the end.
10375 # Note that $ac_compile itself does not contain backslashes and begins
10376 # with a dollar sign (not a hyphen), so the echo should work correctly.
10377 # The option is referenced via a variable to avoid confusing sed.
10378 lt_compile=`echo "$ac_compile" | $SED \
10379 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10380 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10381 -e 's:$: $lt_compiler_flag:'`
10382 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10383 (eval "$lt_compile" 2>conftest.err)
10385 cat conftest.err >&5
10386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387 if (exit $ac_status) && test -s "$ac_outfile"; then
10388 # The compiler can only warn and ignore the option if not recognized
10389 # So say no if there are warnings other than the usual output.
10390 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10391 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10392 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10393 lt_cv_prog_compiler_rtti_exceptions=yes
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10400 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10402 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10403 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10415 lt_prog_compiler_wl=
10416 lt_prog_compiler_pic=
10417 lt_prog_compiler_static=
10420 if test "$GCC" = yes; then
10421 lt_prog_compiler_wl='-Wl,'
10422 lt_prog_compiler_static='-static'
10426 # All AIX code is PIC.
10427 if test "$host_cpu" = ia64; then
10428 # AIX 5 now supports IA64 processor
10429 lt_prog_compiler_static='-Bstatic'
10436 # see comment about AmigaOS4 .so support
10437 lt_prog_compiler_pic='-fPIC'
10440 # FIXME: we need at least 68020 code to build shared libraries, but
10441 # adding the `-m68020' flag to GCC prevents building anything better,
10443 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10448 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10449 # PIC is the default for these OSes.
10452 mingw* | cygwin* | pw32* | os2* | cegcc*)
10453 # This hack is so that the source file can tell whether it is being
10454 # built for inclusion in a dll (and should export symbols for example).
10455 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10456 # (--disable-auto-import) libraries
10457 lt_prog_compiler_pic='-DDLL_EXPORT'
10460 darwin* | rhapsody*)
10461 # PIC is the default on this platform
10462 # Common symbols not allowed in MH_DYLIB files
10463 lt_prog_compiler_pic='-fno-common'
10467 # PIC is the default for Haiku.
10468 # The "-static" flag exists, but is broken.
10469 lt_prog_compiler_static=
10473 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10474 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10475 # sets the default TLS model and affects inlining.
10481 lt_prog_compiler_pic='-fPIC'
10487 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10488 # Instead, we relocate shared libraries at runtime.
10492 # Just because we use GCC doesn't mean we suddenly get shared libraries
10493 # on systems that don't support them.
10494 lt_prog_compiler_can_build_shared=no
10499 # QNX uses GNU C++, but need to define -shared option too, otherwise
10500 # it will coredump.
10501 lt_prog_compiler_pic='-fPIC -shared'
10505 if test -d /usr/nec; then
10506 lt_prog_compiler_pic=-Kconform_pic
10511 lt_prog_compiler_pic='-fPIC'
10515 case $cc_basename in
10516 nvcc*) # Cuda Compiler Driver 2.2
10517 lt_prog_compiler_wl='-Xlinker '
10518 if test -n "$lt_prog_compiler_pic"; then
10519 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10524 # PORTME Check for flag to pass linker flags through the system compiler.
10527 lt_prog_compiler_wl='-Wl,'
10528 if test "$host_cpu" = ia64; then
10529 # AIX 5 now supports IA64 processor
10530 lt_prog_compiler_static='-Bstatic'
10532 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10536 mingw* | cygwin* | pw32* | os2* | cegcc*)
10537 # This hack is so that the source file can tell whether it is being
10538 # built for inclusion in a dll (and should export symbols for example).
10539 lt_prog_compiler_pic='-DDLL_EXPORT'
10542 hpux9* | hpux10* | hpux11*)
10543 lt_prog_compiler_wl='-Wl,'
10544 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10545 # not for PA HP-UX.
10551 lt_prog_compiler_pic='+Z'
10554 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10555 lt_prog_compiler_static='${wl}-a ${wl}archive'
10558 irix5* | irix6* | nonstopux*)
10559 lt_prog_compiler_wl='-Wl,'
10560 # PIC (with -KPIC) is the default.
10561 lt_prog_compiler_static='-non_shared'
10564 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10565 case $cc_basename in
10566 # old Intel for x86_64 which still supported -KPIC.
10568 lt_prog_compiler_wl='-Wl,'
10569 lt_prog_compiler_pic='-KPIC'
10570 lt_prog_compiler_static='-static'
10572 # icc used to be incompatible with GCC.
10573 # ICC 10 doesn't accept -KPIC any more.
10575 lt_prog_compiler_wl='-Wl,'
10576 lt_prog_compiler_pic='-fPIC'
10577 lt_prog_compiler_static='-static'
10579 # Lahey Fortran 8.1.
10581 lt_prog_compiler_wl='-Wl,'
10582 lt_prog_compiler_pic='--shared'
10583 lt_prog_compiler_static='--static'
10586 # NAG Fortran compiler
10587 lt_prog_compiler_wl='-Wl,-Wl,,'
10588 lt_prog_compiler_pic='-PIC'
10589 lt_prog_compiler_static='-Bstatic'
10591 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10592 # Portland Group compilers (*not* the Pentium gcc compiler,
10593 # which looks to be a dead project)
10594 lt_prog_compiler_wl='-Wl,'
10595 lt_prog_compiler_pic='-fpic'
10596 lt_prog_compiler_static='-Bstatic'
10599 lt_prog_compiler_wl='-Wl,'
10600 # All Alpha code is PIC.
10601 lt_prog_compiler_static='-non_shared'
10603 xl* | bgxl* | bgf* | mpixl*)
10604 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10605 lt_prog_compiler_wl='-Wl,'
10606 lt_prog_compiler_pic='-qpic'
10607 lt_prog_compiler_static='-qstaticlink'
10610 case `$CC -V 2>&1 | sed 5q` in
10611 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10612 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10613 lt_prog_compiler_pic='-KPIC'
10614 lt_prog_compiler_static='-Bstatic'
10615 lt_prog_compiler_wl=''
10617 *Sun\ F* | *Sun*Fortran*)
10618 lt_prog_compiler_pic='-KPIC'
10619 lt_prog_compiler_static='-Bstatic'
10620 lt_prog_compiler_wl='-Qoption ld '
10624 lt_prog_compiler_pic='-KPIC'
10625 lt_prog_compiler_static='-Bstatic'
10626 lt_prog_compiler_wl='-Wl,'
10628 *Intel*\ [CF]*Compiler*)
10629 lt_prog_compiler_wl='-Wl,'
10630 lt_prog_compiler_pic='-fPIC'
10631 lt_prog_compiler_static='-static'
10634 lt_prog_compiler_wl='-Wl,'
10635 lt_prog_compiler_pic='-fpic'
10636 lt_prog_compiler_static='-Bstatic'
10644 lt_prog_compiler_pic='-KPIC'
10645 lt_prog_compiler_static='-Bstatic'
10649 # QNX uses GNU C++, but need to define -shared option too, otherwise
10650 # it will coredump.
10651 lt_prog_compiler_pic='-fPIC -shared'
10654 osf3* | osf4* | osf5*)
10655 lt_prog_compiler_wl='-Wl,'
10656 # All OSF/1 code is PIC.
10657 lt_prog_compiler_static='-non_shared'
10661 lt_prog_compiler_static='-non_shared'
10665 lt_prog_compiler_pic='-KPIC'
10666 lt_prog_compiler_static='-Bstatic'
10667 case $cc_basename in
10668 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10669 lt_prog_compiler_wl='-Qoption ld ';;
10671 lt_prog_compiler_wl='-Wl,';;
10676 lt_prog_compiler_wl='-Qoption ld '
10677 lt_prog_compiler_pic='-PIC'
10678 lt_prog_compiler_static='-Bstatic'
10681 sysv4 | sysv4.2uw2* | sysv4.3*)
10682 lt_prog_compiler_wl='-Wl,'
10683 lt_prog_compiler_pic='-KPIC'
10684 lt_prog_compiler_static='-Bstatic'
10688 if test -d /usr/nec ;then
10689 lt_prog_compiler_pic='-Kconform_pic'
10690 lt_prog_compiler_static='-Bstatic'
10694 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10695 lt_prog_compiler_wl='-Wl,'
10696 lt_prog_compiler_pic='-KPIC'
10697 lt_prog_compiler_static='-Bstatic'
10701 lt_prog_compiler_wl='-Wl,'
10702 lt_prog_compiler_can_build_shared=no
10706 lt_prog_compiler_pic='-pic'
10707 lt_prog_compiler_static='-Bstatic'
10711 lt_prog_compiler_can_build_shared=no
10717 # For platforms which do not support PIC, -DPIC is meaningless:
10719 lt_prog_compiler_pic=
10722 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10727 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10728 if ${lt_cv_prog_compiler_pic+:} false; then :
10729 $as_echo_n "(cached) " >&6
10731 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10734 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10735 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10738 # Check to make sure the PIC flag actually works.
10740 if test -n "$lt_prog_compiler_pic"; then
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10742 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10743 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10744 $as_echo_n "(cached) " >&6
10746 lt_cv_prog_compiler_pic_works=no
10747 ac_outfile=conftest.$ac_objext
10748 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10749 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10750 # Insert the option either (1) after the last *FLAGS variable, or
10751 # (2) before a word containing "conftest.", or (3) at the end.
10752 # Note that $ac_compile itself does not contain backslashes and begins
10753 # with a dollar sign (not a hyphen), so the echo should work correctly.
10754 # The option is referenced via a variable to avoid confusing sed.
10755 lt_compile=`echo "$ac_compile" | $SED \
10756 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10757 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10758 -e 's:$: $lt_compiler_flag:'`
10759 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10760 (eval "$lt_compile" 2>conftest.err)
10762 cat conftest.err >&5
10763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764 if (exit $ac_status) && test -s "$ac_outfile"; then
10765 # The compiler can only warn and ignore the option if not recognized
10766 # So say no if there are warnings other than the usual output.
10767 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10768 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10769 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10770 lt_cv_prog_compiler_pic_works=yes
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10777 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10779 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10780 case $lt_prog_compiler_pic in
10782 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10785 lt_prog_compiler_pic=
10786 lt_prog_compiler_can_build_shared=no
10802 # Check to make sure the static flag actually works.
10804 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10806 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10807 if ${lt_cv_prog_compiler_static_works+:} false; then :
10808 $as_echo_n "(cached) " >&6
10810 lt_cv_prog_compiler_static_works=no
10811 save_LDFLAGS="$LDFLAGS"
10812 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10813 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10814 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10815 # The linker can only warn and ignore the option if not recognized
10816 # So say no if there are warnings
10817 if test -s conftest.err; then
10818 # Append any errors to the config.log.
10819 cat conftest.err 1>&5
10820 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10821 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10822 if diff conftest.exp conftest.er2 >/dev/null; then
10823 lt_cv_prog_compiler_static_works=yes
10826 lt_cv_prog_compiler_static_works=yes
10830 LDFLAGS="$save_LDFLAGS"
10833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10834 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10836 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10839 lt_prog_compiler_static=
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10849 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10850 if ${lt_cv_prog_compiler_c_o+:} false; then :
10851 $as_echo_n "(cached) " >&6
10853 lt_cv_prog_compiler_c_o=no
10854 $RM -r conftest 2>/dev/null
10858 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10860 lt_compiler_flag="-o out/conftest2.$ac_objext"
10861 # Insert the option either (1) after the last *FLAGS variable, or
10862 # (2) before a word containing "conftest.", or (3) at the end.
10863 # Note that $ac_compile itself does not contain backslashes and begins
10864 # with a dollar sign (not a hyphen), so the echo should work correctly.
10865 lt_compile=`echo "$ac_compile" | $SED \
10866 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10867 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10868 -e 's:$: $lt_compiler_flag:'`
10869 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10870 (eval "$lt_compile" 2>out/conftest.err)
10872 cat out/conftest.err >&5
10873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10876 # The compiler can only warn and ignore the option if not recognized
10877 # So say no if there are warnings
10878 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10879 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10880 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10881 lt_cv_prog_compiler_c_o=yes
10886 # SGI C++ compiler will create directory out/ii_files/ for
10887 # template instantiation
10888 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10889 $RM out/* && rmdir out
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10896 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10904 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10905 if ${lt_cv_prog_compiler_c_o+:} false; then :
10906 $as_echo_n "(cached) " >&6
10908 lt_cv_prog_compiler_c_o=no
10909 $RM -r conftest 2>/dev/null
10913 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10915 lt_compiler_flag="-o out/conftest2.$ac_objext"
10916 # Insert the option either (1) after the last *FLAGS variable, or
10917 # (2) before a word containing "conftest.", or (3) at the end.
10918 # Note that $ac_compile itself does not contain backslashes and begins
10919 # with a dollar sign (not a hyphen), so the echo should work correctly.
10920 lt_compile=`echo "$ac_compile" | $SED \
10921 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10922 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10923 -e 's:$: $lt_compiler_flag:'`
10924 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10925 (eval "$lt_compile" 2>out/conftest.err)
10927 cat out/conftest.err >&5
10928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10931 # The compiler can only warn and ignore the option if not recognized
10932 # So say no if there are warnings
10933 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10934 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10935 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10936 lt_cv_prog_compiler_c_o=yes
10941 # SGI C++ compiler will create directory out/ii_files/ for
10942 # template instantiation
10943 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10944 $RM out/* && rmdir out
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10951 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10956 hard_links="nottested"
10957 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10958 # do not overwrite the value of need_locks provided by the user
10959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10960 $as_echo_n "checking if we can lock with hard links... " >&6; }
10963 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10965 ln conftest.a conftest.b 2>&5 || hard_links=no
10966 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10968 $as_echo "$hard_links" >&6; }
10969 if test "$hard_links" = no; then
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10971 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10984 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10987 allow_undefined_flag=
10988 always_export_symbols=no
10990 archive_expsym_cmds=
10991 compiler_needs_object=no
10992 enable_shared_with_static_runtimes=no
10993 export_dynamic_flag_spec=
10994 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10995 hardcode_automatic=no
10997 hardcode_direct_absolute=no
10998 hardcode_libdir_flag_spec=
10999 hardcode_libdir_separator=
11000 hardcode_minus_L=no
11001 hardcode_shlibpath_var=unsupported
11003 link_all_deplibs=unknown
11005 module_expsym_cmds=
11006 old_archive_from_new_cmds=
11007 old_archive_from_expsyms_cmds=
11008 thread_safe_flag_spec=
11009 whole_archive_flag_spec=
11010 # include_expsyms should be a list of space-separated symbols to be *always*
11011 # included in the symbol list
11013 # exclude_expsyms can be an extended regexp of symbols to exclude
11014 # it will be wrapped by ` (' and `)$', so one must not match beginning or
11015 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11016 # as well as any symbol that contains `d'.
11017 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11018 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11019 # platforms (ab)use it in PIC code, but their linkers get confused if
11020 # the symbol is explicitly referenced. Since portable code cannot
11021 # rely on this symbol name, it's probably fine to never include it in
11022 # preloaded symbol tables.
11023 # Exclude shared library initialization/finalization symbols.
11024 extract_expsyms_cmds=
11027 cygwin* | mingw* | pw32* | cegcc*)
11028 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11029 # When not using gcc, we currently assume that we are using
11030 # Microsoft Visual C++.
11031 if test "$GCC" != yes; then
11036 # we just hope/assume this is gcc and not c89 (= MSVC++)
11046 # On some targets, GNU ld is compatible enough with the native linker
11047 # that we're better off using the native interface for both.
11048 lt_use_gnu_ld_interface=no
11049 if test "$with_gnu_ld" = yes; then
11052 # The AIX port of GNU ld has always aspired to compatibility
11053 # with the native linker. However, as the warning in the GNU ld
11054 # block says, versions before 2.19.5* couldn't really create working
11055 # shared libraries, regardless of the interface used.
11056 case `$LD -v 2>&1` in
11057 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11058 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11059 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11061 lt_use_gnu_ld_interface=yes
11066 lt_use_gnu_ld_interface=yes
11071 if test "$lt_use_gnu_ld_interface" = yes; then
11072 # If archive_cmds runs LD, not CC, wlarc should be empty
11075 # Set some defaults for GNU ld with shared library support. These
11076 # are reset later if shared libraries are not supported. Putting them
11077 # here allows them to be overridden if necessary.
11078 runpath_var=LD_RUN_PATH
11079 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11080 export_dynamic_flag_spec='${wl}--export-dynamic'
11081 # ancient GNU ld didn't support --whole-archive et. al.
11082 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11083 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11085 whole_archive_flag_spec=
11087 supports_anon_versioning=no
11088 case `$LD -v 2>&1` in
11089 *GNU\ gold*) supports_anon_versioning=yes ;;
11090 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11091 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11092 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11093 *\ 2.11.*) ;; # other 2.11 versions
11094 *) supports_anon_versioning=yes ;;
11097 # See if GNU ld supports shared libraries.
11100 # On AIX/PPC, the GNU linker is very broken
11101 if test "$host_cpu" != ia64; then
11105 *** Warning: the GNU linker, at least up to release 2.19, is reported
11106 *** to be unable to reliably create shared libraries on AIX.
11107 *** Therefore, libtool is disabling shared libraries support. If you
11108 *** really care for shared libraries, you may want to install binutils
11109 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11110 *** You will then need to restart the configuration process.
11119 # see comment about AmigaOS4 .so support
11120 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11121 archive_expsym_cmds=''
11124 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)'
11125 hardcode_libdir_flag_spec='-L$libdir'
11126 hardcode_minus_L=yes
11132 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11133 allow_undefined_flag=unsupported
11134 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11135 # support --undefined. This deserves some investigation. FIXME
11136 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11142 cygwin* | mingw* | pw32* | cegcc*)
11143 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11144 # as there is no search path for DLLs.
11145 hardcode_libdir_flag_spec='-L$libdir'
11146 export_dynamic_flag_spec='${wl}--export-all-symbols'
11147 allow_undefined_flag=unsupported
11148 always_export_symbols=no
11149 enable_shared_with_static_runtimes=yes
11150 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
11151 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11153 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11154 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11155 # If the export-symbols file already is a .def file (1st line
11156 # is EXPORTS), use it as is; otherwise, prepend...
11157 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11158 cp $export_symbols $output_objdir/$soname.def;
11160 echo EXPORTS > $output_objdir/$soname.def;
11161 cat $export_symbols >> $output_objdir/$soname.def;
11163 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11170 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11171 link_all_deplibs=yes
11176 hardcode_shlibpath_var=no
11177 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11178 export_dynamic_flag_spec='${wl}-E'
11179 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11180 # Instead, shared libraries are loaded at an image base (0x10000000 by
11181 # default) and relocated if they conflict, which is a slow very memory
11182 # consuming and fragmenting process. To avoid this, we pick a random,
11183 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11184 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11185 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11186 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'
11189 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11191 if test "$host_os" = linux-dietlibc; then
11192 case $cc_basename in
11193 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11196 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11197 && test "$tmp_diet" = no
11199 tmp_addflag=' $pic_flag'
11200 tmp_sharedflag='-shared'
11201 case $cc_basename,$host_cpu in
11202 pgcc*) # Portland Group C compiler
11203 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
11204 tmp_addflag=' $pic_flag'
11206 pgf77* | pgf90* | pgf95* | pgfortran*)
11207 # Portland Group f77 and f90 compilers
11208 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
11209 tmp_addflag=' $pic_flag -Mnomain' ;;
11210 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11211 tmp_addflag=' -i_dynamic' ;;
11212 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11213 tmp_addflag=' -i_dynamic -nofor_main' ;;
11214 ifc* | ifort*) # Intel Fortran compiler
11215 tmp_addflag=' -nofor_main' ;;
11216 lf95*) # Lahey Fortran 8.1
11217 whole_archive_flag_spec=
11218 tmp_sharedflag='--shared' ;;
11219 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11220 tmp_sharedflag='-qmkshrobj'
11222 nvcc*) # Cuda Compiler Driver 2.2
11223 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
11224 compiler_needs_object=yes
11227 case `$CC -V 2>&1 | sed 5q` in
11228 *Sun\ C*) # Sun C 5.9
11229 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
11230 compiler_needs_object=yes
11231 tmp_sharedflag='-G' ;;
11232 *Sun\ F*) # Sun Fortran 8.3
11233 tmp_sharedflag='-G' ;;
11235 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11237 if test "x$supports_anon_versioning" = xyes; then
11238 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11239 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11240 echo "local: *; };" >> $output_objdir/$libname.ver~
11241 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11244 case $cc_basename in
11245 xlf* | bgf* | bgxlf* | mpixlf*)
11246 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11247 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11248 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11249 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11250 if test "x$supports_anon_versioning" = xyes; then
11251 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11252 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11253 echo "local: *; };" >> $output_objdir/$libname.ver~
11254 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11264 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11265 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11268 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11269 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11274 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11278 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11279 *** create shared libraries on Solaris systems. Therefore, libtool
11280 *** is disabling shared libraries support. We urge you to upgrade GNU
11281 *** binutils to release 2.9.1 or newer. Another option is to modify
11282 *** your PATH or compiler configuration so that the native linker is
11283 *** used, and then restart.
11286 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11287 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11288 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11294 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11295 case `$LD -v 2>&1` in
11296 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11300 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11301 *** reliably create shared libraries on SCO systems. Therefore, libtool
11302 *** is disabling shared libraries support. We urge you to upgrade GNU
11303 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11304 *** your PATH or compiler configuration so that the native linker is
11305 *** used, and then restart.
11310 # For security reasons, it is highly recommended that you always
11311 # use absolute paths for naming shared libraries, and exclude the
11312 # DT_RUNPATH tag from executables and libraries. But doing so
11313 # requires that you compile everything twice, which is a pain.
11314 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11315 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11316 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11317 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11326 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11328 hardcode_direct=yes
11329 hardcode_shlibpath_var=no
11333 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11334 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11335 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11342 if test "$ld_shlibs" = no; then
11344 hardcode_libdir_flag_spec=
11345 export_dynamic_flag_spec=
11346 whole_archive_flag_spec=
11349 # PORTME fill in a description of your system's linker (not GNU ld)
11352 allow_undefined_flag=unsupported
11353 always_export_symbols=yes
11354 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'
11355 # Note: this linker hardcodes the directories in LIBPATH if there
11356 # are no directories specified by -L.
11357 hardcode_minus_L=yes
11358 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11359 # Neither direct hardcoding nor static linking is supported with a
11361 hardcode_direct=unsupported
11366 if test "$host_cpu" = ia64; then
11367 # On IA64, the linker does run time linking by default, so we don't
11368 # have to do anything special.
11369 aix_use_runtimelinking=no
11370 exp_sym_flag='-Bexport'
11373 # If we're using GNU nm, then we don't want the "-C" option.
11374 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11375 # Also, AIX nm treats weak defined symbols like other global
11376 # defined symbols, whereas GNU nm marks them as "W".
11377 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11378 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11380 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'
11382 aix_use_runtimelinking=no
11384 # Test if we are trying to use run time linking or normal
11385 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11386 # need to do runtime linking.
11387 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11388 for ld_flag in $LDFLAGS; do
11389 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11390 aix_use_runtimelinking=yes
11397 exp_sym_flag='-bexport'
11398 no_entry_flag='-bnoentry'
11401 # When large executables or shared objects are built, AIX ld can
11402 # have problems creating the table of contents. If linking a library
11403 # or program results in "error TOC overflow" add -mminimal-toc to
11404 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11405 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11408 hardcode_direct=yes
11409 hardcode_direct_absolute=yes
11410 hardcode_libdir_separator=':'
11411 link_all_deplibs=yes
11412 file_list_spec='${wl}-f,'
11414 if test "$GCC" = yes; then
11415 case $host_os in aix4.[012]|aix4.[012].*)
11416 # We only want to do this on AIX 4.2 and lower, the check
11417 # below for broken collect2 doesn't work under 4.3+
11418 collect2name=`${CC} -print-prog-name=collect2`
11419 if test -f "$collect2name" &&
11420 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11422 # We have reworked collect2
11425 # We have old collect2
11426 hardcode_direct=unsupported
11427 # It fails to find uninstalled libraries when the uninstalled
11428 # path is not listed in the libpath. Setting hardcode_minus_L
11429 # to unsupported forces relinking
11430 hardcode_minus_L=yes
11431 hardcode_libdir_flag_spec='-L$libdir'
11432 hardcode_libdir_separator=
11436 shared_flag='-shared'
11437 if test "$aix_use_runtimelinking" = yes; then
11438 shared_flag="$shared_flag "'${wl}-G'
11442 if test "$host_cpu" = ia64; then
11443 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11444 # chokes on -Wl,-G. The following line is correct:
11447 if test "$aix_use_runtimelinking" = yes; then
11448 shared_flag='${wl}-G'
11450 shared_flag='${wl}-bM:SRE'
11455 export_dynamic_flag_spec='${wl}-bexpall'
11456 # It seems that -bexpall does not export symbols beginning with
11457 # underscore (_), so it is better to generate a list of symbols to export.
11458 always_export_symbols=yes
11459 if test "$aix_use_runtimelinking" = yes; then
11460 # Warning - without using the other runtime loading flags (-brtl),
11461 # -berok will link without error, but may produce a broken library.
11462 allow_undefined_flag='-berok'
11463 # Determine the default libpath from the value encoded in an
11464 # empty executable.
11465 if test "${lt_cv_aix_libpath+set}" = set; then
11466 aix_libpath=$lt_cv_aix_libpath
11468 if ${lt_cv_aix_libpath_+:} false; then :
11469 $as_echo_n "(cached) " >&6
11471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11472 /* end confdefs.h. */
11482 if ac_fn_c_try_link "$LINENO"; then :
11484 lt_aix_libpath_sed='
11485 /Import File Strings/,/^$/ {
11487 s/^0 *\([^ ]*\) *$/\1/
11491 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11492 # Check for a 64-bit object if we didn't find anything.
11493 if test -z "$lt_cv_aix_libpath_"; then
11494 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11497 rm -f core conftest.err conftest.$ac_objext \
11498 conftest$ac_exeext conftest.$ac_ext
11499 if test -z "$lt_cv_aix_libpath_"; then
11500 lt_cv_aix_libpath_="/usr/lib:/lib"
11505 aix_libpath=$lt_cv_aix_libpath_
11508 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11509 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11511 if test "$host_cpu" = ia64; then
11512 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11513 allow_undefined_flag="-z nodefs"
11514 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"
11516 # Determine the default libpath from the value encoded in an
11517 # empty executable.
11518 if test "${lt_cv_aix_libpath+set}" = set; then
11519 aix_libpath=$lt_cv_aix_libpath
11521 if ${lt_cv_aix_libpath_+:} false; then :
11522 $as_echo_n "(cached) " >&6
11524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11525 /* end confdefs.h. */
11535 if ac_fn_c_try_link "$LINENO"; then :
11537 lt_aix_libpath_sed='
11538 /Import File Strings/,/^$/ {
11540 s/^0 *\([^ ]*\) *$/\1/
11544 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11545 # Check for a 64-bit object if we didn't find anything.
11546 if test -z "$lt_cv_aix_libpath_"; then
11547 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11550 rm -f core conftest.err conftest.$ac_objext \
11551 conftest$ac_exeext conftest.$ac_ext
11552 if test -z "$lt_cv_aix_libpath_"; then
11553 lt_cv_aix_libpath_="/usr/lib:/lib"
11558 aix_libpath=$lt_cv_aix_libpath_
11561 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11562 # Warning - without using the other run time loading flags,
11563 # -berok will link without error, but may produce a broken library.
11564 no_undefined_flag=' ${wl}-bernotok'
11565 allow_undefined_flag=' ${wl}-berok'
11566 if test "$with_gnu_ld" = yes; then
11567 # We only use this code for GNU lds that support --whole-archive.
11568 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11570 # Exported symbols can be pulled into shared objects from archives
11571 whole_archive_flag_spec='$convenience'
11573 archive_cmds_need_lc=yes
11574 # This is similar to how AIX traditionally builds its shared libraries.
11575 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'
11583 # see comment about AmigaOS4 .so support
11584 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11585 archive_expsym_cmds=''
11588 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)'
11589 hardcode_libdir_flag_spec='-L$libdir'
11590 hardcode_minus_L=yes
11596 export_dynamic_flag_spec=-rdynamic
11599 cygwin* | mingw* | pw32* | cegcc*)
11600 # When not using gcc, we currently assume that we are using
11601 # Microsoft Visual C++.
11602 # hardcode_libdir_flag_spec is actually meaningless, as there is
11603 # no search path for DLLs.
11604 case $cc_basename in
11607 hardcode_libdir_flag_spec=' '
11608 allow_undefined_flag=unsupported
11609 always_export_symbols=yes
11611 # Tell ltmain to make .lib files, not .a files.
11613 # Tell ltmain to make .dll files, not .so files.
11615 # FIXME: Setting linknames here is a bad hack.
11616 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11617 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11618 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11620 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11622 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11624 # The linker will not automatically build a static lib if we build a DLL.
11625 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11626 enable_shared_with_static_runtimes=yes
11627 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11628 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11630 old_postinstall_cmds='chmod 644 $oldlib'
11631 postlink_cmds='lt_outputfile="@OUTPUT@"~
11632 lt_tool_outputfile="@TOOL_OUTPUT@"~
11633 case $lt_outputfile in
11636 lt_outputfile="$lt_outputfile.exe"
11637 lt_tool_outputfile="$lt_tool_outputfile.exe"
11640 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11641 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11642 $RM "$lt_outputfile.manifest";
11646 # Assume MSVC wrapper
11647 hardcode_libdir_flag_spec=' '
11648 allow_undefined_flag=unsupported
11649 # Tell ltmain to make .lib files, not .a files.
11651 # Tell ltmain to make .dll files, not .so files.
11653 # FIXME: Setting linknames here is a bad hack.
11654 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11655 # The linker will automatically build a .lib file if we build a DLL.
11656 old_archive_from_new_cmds='true'
11657 # FIXME: Should let the user specify the lib program.
11658 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11659 enable_shared_with_static_runtimes=yes
11664 darwin* | rhapsody*)
11667 archive_cmds_need_lc=no
11669 hardcode_automatic=yes
11670 hardcode_shlibpath_var=unsupported
11671 if test "$lt_cv_ld_force_load" = "yes"; then
11672 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
11675 whole_archive_flag_spec=''
11677 link_all_deplibs=yes
11678 allow_undefined_flag="$_lt_dar_allow_undefined"
11679 case $cc_basename in
11680 ifort*) _lt_dar_can_shared=yes ;;
11681 *) _lt_dar_can_shared=$GCC ;;
11683 if test "$_lt_dar_can_shared" = "yes"; then
11684 output_verbose_link_cmd=func_echo_all
11685 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11686 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11687 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}"
11688 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}"
11697 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11698 hardcode_libdir_flag_spec='-L$libdir'
11699 hardcode_shlibpath_var=no
11702 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11703 # support. Future versions do this automatically, but an explicit c++rt0.o
11704 # does not break anything, and helps significantly (at the cost of a little
11707 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11708 hardcode_libdir_flag_spec='-R$libdir'
11709 hardcode_direct=yes
11710 hardcode_shlibpath_var=no
11713 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11715 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11716 hardcode_direct=yes
11717 hardcode_minus_L=yes
11718 hardcode_shlibpath_var=no
11721 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11722 freebsd* | dragonfly*)
11723 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11724 hardcode_libdir_flag_spec='-R$libdir'
11725 hardcode_direct=yes
11726 hardcode_shlibpath_var=no
11730 if test "$GCC" = yes; then
11731 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11733 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'
11735 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11736 hardcode_libdir_separator=:
11737 hardcode_direct=yes
11739 # hardcode_minus_L: Not really in the search PATH,
11740 # but as the default location of the library.
11741 hardcode_minus_L=yes
11742 export_dynamic_flag_spec='${wl}-E'
11746 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11747 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11749 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11751 if test "$with_gnu_ld" = no; then
11752 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11753 hardcode_libdir_separator=:
11754 hardcode_direct=yes
11755 hardcode_direct_absolute=yes
11756 export_dynamic_flag_spec='${wl}-E'
11757 # hardcode_minus_L: Not really in the search PATH,
11758 # but as the default location of the library.
11759 hardcode_minus_L=yes
11764 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11767 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11770 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11773 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11779 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11782 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11786 # Older versions of the 11.00 compiler do not understand -b yet
11787 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11789 $as_echo_n "checking if $CC understands -b... " >&6; }
11790 if ${lt_cv_prog_compiler__b+:} false; then :
11791 $as_echo_n "(cached) " >&6
11793 lt_cv_prog_compiler__b=no
11794 save_LDFLAGS="$LDFLAGS"
11795 LDFLAGS="$LDFLAGS -b"
11796 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11797 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11798 # The linker can only warn and ignore the option if not recognized
11799 # So say no if there are warnings
11800 if test -s conftest.err; then
11801 # Append any errors to the config.log.
11802 cat conftest.err 1>&5
11803 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11804 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11805 if diff conftest.exp conftest.er2 >/dev/null; then
11806 lt_cv_prog_compiler__b=yes
11809 lt_cv_prog_compiler__b=yes
11813 LDFLAGS="$save_LDFLAGS"
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11817 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11819 if test x"$lt_cv_prog_compiler__b" = xyes; then
11820 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11822 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11828 if test "$with_gnu_ld" = no; then
11829 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11830 hardcode_libdir_separator=:
11835 hardcode_shlibpath_var=no
11838 hardcode_direct=yes
11839 hardcode_direct_absolute=yes
11840 export_dynamic_flag_spec='${wl}-E'
11842 # hardcode_minus_L: Not really in the search PATH,
11843 # but as the default location of the library.
11844 hardcode_minus_L=yes
11850 irix5* | irix6* | nonstopux*)
11851 if test "$GCC" = yes; then
11852 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11853 # Try to use the -exported_symbol ld option, if it does not
11854 # work, assume that -exports_file does not work either and
11855 # implicitly export all symbols.
11856 # This should be the same for all languages, so no per-tag cache variable.
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11858 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11859 if ${lt_cv_irix_exported_symbol+:} false; then :
11860 $as_echo_n "(cached) " >&6
11862 save_LDFLAGS="$LDFLAGS"
11863 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11865 /* end confdefs.h. */
11866 int foo (void) { return 0; }
11868 if ac_fn_c_try_link "$LINENO"; then :
11869 lt_cv_irix_exported_symbol=yes
11871 lt_cv_irix_exported_symbol=no
11873 rm -f core conftest.err conftest.$ac_objext \
11874 conftest$ac_exeext conftest.$ac_ext
11875 LDFLAGS="$save_LDFLAGS"
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11878 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11879 if test "$lt_cv_irix_exported_symbol" = yes; then
11880 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
11883 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11884 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
11886 archive_cmds_need_lc='no'
11887 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11888 hardcode_libdir_separator=:
11890 link_all_deplibs=yes
11894 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11895 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11897 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11899 hardcode_libdir_flag_spec='-R$libdir'
11900 hardcode_direct=yes
11901 hardcode_shlibpath_var=no
11905 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11906 hardcode_direct=yes
11907 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11908 hardcode_libdir_separator=:
11909 hardcode_shlibpath_var=no
11916 if test -f /usr/libexec/ld.so; then
11917 hardcode_direct=yes
11918 hardcode_shlibpath_var=no
11919 hardcode_direct_absolute=yes
11920 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11921 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11922 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11923 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11924 export_dynamic_flag_spec='${wl}-E'
11927 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11928 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11929 hardcode_libdir_flag_spec='-R$libdir'
11932 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11933 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11943 hardcode_libdir_flag_spec='-L$libdir'
11944 hardcode_minus_L=yes
11945 allow_undefined_flag=unsupported
11946 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'
11947 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11951 if test "$GCC" = yes; then
11952 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11953 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11955 allow_undefined_flag=' -expect_unresolved \*'
11956 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11958 archive_cmds_need_lc='no'
11959 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11960 hardcode_libdir_separator=:
11963 osf4* | osf5*) # as osf3* with the addition of -msym flag
11964 if test "$GCC" = yes; then
11965 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11966 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11967 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11969 allow_undefined_flag=' -expect_unresolved \*'
11970 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11971 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~
11972 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
11974 # Both c and cxx compiler support -rpath directly
11975 hardcode_libdir_flag_spec='-rpath $libdir'
11977 archive_cmds_need_lc='no'
11978 hardcode_libdir_separator=:
11982 no_undefined_flag=' -z defs'
11983 if test "$GCC" = yes; then
11985 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11986 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11987 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11989 case `$CC -V 2>&1` in
11992 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11993 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11994 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11998 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11999 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12000 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12004 hardcode_libdir_flag_spec='-R$libdir'
12005 hardcode_shlibpath_var=no
12007 solaris2.[0-5] | solaris2.[0-5].*) ;;
12009 # The compiler driver will combine and reorder linker options,
12010 # but understands `-z linker_flag'. GCC discards it without `$wl',
12011 # but is careful enough not to reorder.
12012 # Supported since Solaris 2.6 (maybe 2.5.1?)
12013 if test "$GCC" = yes; then
12014 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12016 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12020 link_all_deplibs=yes
12024 if test "x$host_vendor" = xsequent; then
12025 # Use $CC to link under sequent, because it throws in some extra .o
12026 # files that make .init and .fini sections work.
12027 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12029 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12031 hardcode_libdir_flag_spec='-L$libdir'
12032 hardcode_direct=yes
12033 hardcode_minus_L=yes
12034 hardcode_shlibpath_var=no
12038 case $host_vendor in
12040 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12041 hardcode_direct=yes # is this really true???
12044 ## LD is ld it makes a PLAMLIB
12045 ## CC just makes a GrossModule.
12046 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12047 reload_cmds='$CC -r -o $output$reload_objs'
12051 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12052 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12055 runpath_var='LD_RUN_PATH'
12056 hardcode_shlibpath_var=no
12060 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12061 hardcode_shlibpath_var=no
12062 export_dynamic_flag_spec='-Bexport'
12066 if test -d /usr/nec; then
12067 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12068 hardcode_shlibpath_var=no
12069 runpath_var=LD_RUN_PATH
12070 hardcode_runpath_var=yes
12075 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12076 no_undefined_flag='${wl}-z,text'
12077 archive_cmds_need_lc=no
12078 hardcode_shlibpath_var=no
12079 runpath_var='LD_RUN_PATH'
12081 if test "$GCC" = yes; then
12082 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12083 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12085 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12086 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12090 sysv5* | sco3.2v5* | sco5v6*)
12091 # Note: We can NOT use -z defs as we might desire, because we do not
12092 # link with -lc, and that would cause any symbols used from libc to
12093 # always be unresolved, which means just about no library would
12094 # ever link correctly. If we're not using GNU ld we use -z text
12095 # though, which does catch some bad symbols but isn't as heavy-handed
12097 no_undefined_flag='${wl}-z,text'
12098 allow_undefined_flag='${wl}-z,nodefs'
12099 archive_cmds_need_lc=no
12100 hardcode_shlibpath_var=no
12101 hardcode_libdir_flag_spec='${wl}-R,$libdir'
12102 hardcode_libdir_separator=':'
12103 link_all_deplibs=yes
12104 export_dynamic_flag_spec='${wl}-Bexport'
12105 runpath_var='LD_RUN_PATH'
12107 if test "$GCC" = yes; then
12108 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12109 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12111 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12112 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12117 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12118 hardcode_libdir_flag_spec='-L$libdir'
12119 hardcode_shlibpath_var=no
12127 if test x$host_vendor = xsni; then
12129 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12130 export_dynamic_flag_spec='${wl}-Blargedynsym'
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12137 $as_echo "$ld_shlibs" >&6; }
12138 test "$ld_shlibs" = no && can_build_shared=no
12140 with_gnu_ld=$with_gnu_ld
12157 # Do we need to explicitly link libc?
12159 case "x$archive_cmds_need_lc" in
12161 # Assume -lc should be added
12162 archive_cmds_need_lc=yes
12164 if test "$enable_shared" = yes && test "$GCC" = yes; then
12165 case $archive_cmds in
12167 # FIXME: we may have to deal with multi-command sequences.
12170 # Test whether the compiler implicitly links with -lc since on some
12171 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12172 # to ld, don't add -lc before -lgcc.
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12174 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12175 if ${lt_cv_archive_cmds_need_lc+:} false; then :
12176 $as_echo_n "(cached) " >&6
12179 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12181 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12182 (eval $ac_compile) 2>&5
12184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12185 test $ac_status = 0; } 2>conftest.err; then
12188 libobjs=conftest.$ac_objext
12190 wl=$lt_prog_compiler_wl
12191 pic_flag=$lt_prog_compiler_pic
12197 lt_save_allow_undefined_flag=$allow_undefined_flag
12198 allow_undefined_flag=
12199 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12200 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12203 test $ac_status = 0; }
12205 lt_cv_archive_cmds_need_lc=no
12207 lt_cv_archive_cmds_need_lc=yes
12209 allow_undefined_flag=$lt_save_allow_undefined_flag
12211 cat conftest.err 1>&5
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12217 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12218 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12377 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12379 if test "$GCC" = yes; then
12381 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12382 *) lt_awk_arg="/^libraries:/" ;;
12385 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12386 *) lt_sed_strip_eq="s,=/,/,g" ;;
12388 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12389 case $lt_search_path_spec in
12391 # if the path contains ";" then we assume it to be the separator
12392 # otherwise default to the standard path separator (i.e. ":") - it is
12393 # assumed that no part of a normal pathname contains ";" but that should
12394 # okay in the real world where ";" in dirpaths is itself problematic.
12395 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12398 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12401 # Ok, now we have the path, separated by spaces, we can step through it
12402 # and add multilib dir if necessary.
12403 lt_tmp_lt_search_path_spec=
12404 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12405 for lt_sys_path in $lt_search_path_spec; do
12406 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12407 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12409 test -d "$lt_sys_path" && \
12410 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12413 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12414 BEGIN {RS=" "; FS="/|\n";} {
12417 for (lt_i = NF; lt_i > 0; lt_i--) {
12418 if ($lt_i != "" && $lt_i != ".") {
12419 if ($lt_i == "..") {
12422 if (lt_count == 0) {
12423 lt_foo="/" $lt_i lt_foo;
12430 if (lt_foo != "") { lt_freq[lt_foo]++; }
12431 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12433 # AWK program above erroneously prepends '/' to C:/dos/paths
12436 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12437 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12439 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12441 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12443 library_names_spec=
12444 libname_spec='lib$name'
12448 postuninstall_cmds=
12452 shlibpath_overrides_runpath=unknown
12454 dynamic_linker="$host_os ld.so"
12455 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12456 need_lib_prefix=unknown
12457 hardcode_into_libs=no
12459 # when you set need_version to no, make sure it does not cause -set_version
12460 # flags to be left without arguments
12461 need_version=unknown
12465 version_type=linux # correct to gnu/linux during the next big refactor
12466 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12467 shlibpath_var=LIBPATH
12469 # AIX 3 has no versioning support, so we append a major version to the name.
12470 soname_spec='${libname}${release}${shared_ext}$major'
12474 version_type=linux # correct to gnu/linux during the next big refactor
12477 hardcode_into_libs=yes
12478 if test "$host_cpu" = ia64; then
12479 # AIX 5 supports IA64
12480 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12481 shlibpath_var=LD_LIBRARY_PATH
12483 # With GCC up to 2.95.x, collect2 would create an import file
12484 # for dependence libraries. The import file would start with
12485 # the line `#! .'. This would cause the generated library to
12486 # depend on `.', always an invalid library. This was fixed in
12487 # development snapshots of GCC prior to 3.0.
12489 aix4 | aix4.[01] | aix4.[01].*)
12490 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12492 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12495 can_build_shared=no
12499 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12500 # soname into executable. Probably we can add versioning support to
12501 # collect2, so additional links can be useful in future.
12502 if test "$aix_use_runtimelinking" = yes; then
12503 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12504 # instead of lib<name>.a to let people know that these are not
12505 # typical AIX shared libraries.
12506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12508 # We preserve .a as extension for shared libraries through AIX4.2
12509 # and later when we are not doing run time linking.
12510 library_names_spec='${libname}${release}.a $libname.a'
12511 soname_spec='${libname}${release}${shared_ext}$major'
12513 shlibpath_var=LIBPATH
12520 # Since July 2007 AmigaOS4 officially supports .so libraries.
12521 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12525 library_names_spec='$libname.ixlibrary $libname.a'
12526 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12527 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
12533 library_names_spec='${libname}${shared_ext}'
12534 dynamic_linker="$host_os ld.so"
12535 shlibpath_var=LIBRARY_PATH
12539 version_type=linux # correct to gnu/linux during the next big refactor
12541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12542 soname_spec='${libname}${release}${shared_ext}$major'
12543 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12544 shlibpath_var=LD_LIBRARY_PATH
12545 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12546 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12547 # the default ld.so.conf also contains /usr/contrib/lib and
12548 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12549 # libtool to hard-code these into programs
12552 cygwin* | mingw* | pw32* | cegcc*)
12553 version_type=windows
12558 case $GCC,$cc_basename in
12561 library_names_spec='$libname.dll.a'
12562 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12563 postinstall_cmds='base_file=`basename \${file}`~
12564 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12565 dldir=$destdir/`dirname \$dlpath`~
12566 test -d \$dldir || mkdir -p \$dldir~
12567 $install_prog $dir/$dlname \$dldir/$dlname~
12568 chmod a+x \$dldir/$dlname~
12569 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12570 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12572 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12573 dlpath=$dir/\$dldll~
12575 shlibpath_overrides_runpath=yes
12579 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12580 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12582 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12585 # MinGW DLLs use traditional 'lib' prefix
12586 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12589 # pw32 DLLs use 'pw' prefix rather than 'lib'
12590 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12593 dynamic_linker='Win32 ld.exe'
12598 libname_spec='$name'
12599 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12600 library_names_spec='${libname}.dll.lib'
12604 sys_lib_search_path_spec=
12607 for lt_path in $LIB
12610 # Let DOS variable expansion print the short 8.3 style file name.
12611 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12612 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12615 # Convert to MSYS style.
12616 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12619 # Convert to unix form, then to dos form, then back to unix form
12620 # but this time dos style (no spaces!) so that the unix form looks
12621 # like /cygdrive/c/PROGRA~1:/cygdr...
12622 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12623 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12624 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12627 sys_lib_search_path_spec="$LIB"
12628 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12629 # It is most probably a Windows format PATH.
12630 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12632 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12634 # FIXME: find the short name or the path components, as spaces are
12635 # common. (e.g. "Program Files" -> "PROGRA~1")
12639 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12640 postinstall_cmds='base_file=`basename \${file}`~
12641 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12642 dldir=$destdir/`dirname \$dlpath`~
12643 test -d \$dldir || mkdir -p \$dldir~
12644 $install_prog $dir/$dlname \$dldir/$dlname'
12645 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12646 dlpath=$dir/\$dldll~
12648 shlibpath_overrides_runpath=yes
12649 dynamic_linker='Win32 link.exe'
12653 # Assume MSVC wrapper
12654 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12655 dynamic_linker='Win32 ld.exe'
12658 # FIXME: first we should search . and the directory the executable is in
12662 darwin* | rhapsody*)
12663 dynamic_linker="$host_os dyld"
12664 version_type=darwin
12667 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12668 soname_spec='${libname}${release}${major}$shared_ext'
12669 shlibpath_overrides_runpath=yes
12670 shlibpath_var=DYLD_LIBRARY_PATH
12671 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12673 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12674 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12678 version_type=linux # correct to gnu/linux during the next big refactor
12681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12682 soname_spec='${libname}${release}${shared_ext}$major'
12683 shlibpath_var=LD_LIBRARY_PATH
12686 freebsd* | dragonfly*)
12687 # DragonFly does not have aout. When/if they implement a new
12688 # versioning mechanism, adjust this.
12689 if test -x /usr/bin/objformat; then
12690 objformat=`/usr/bin/objformat`
12693 freebsd[23].*) objformat=aout ;;
12694 *) objformat=elf ;;
12697 version_type=freebsd-$objformat
12698 case $version_type in
12700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12705 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12709 shlibpath_var=LD_LIBRARY_PATH
12712 shlibpath_overrides_runpath=yes
12714 freebsd3.[01]* | freebsdelf3.[01]*)
12715 shlibpath_overrides_runpath=yes
12716 hardcode_into_libs=yes
12718 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12719 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12720 shlibpath_overrides_runpath=no
12721 hardcode_into_libs=yes
12723 *) # from 4.6 on, and DragonFly
12724 shlibpath_overrides_runpath=yes
12725 hardcode_into_libs=yes
12731 version_type=linux # correct to gnu/linux during the next big refactor
12734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12735 soname_spec='${libname}${release}${shared_ext}$major'
12736 shlibpath_var=LD_LIBRARY_PATH
12737 shlibpath_overrides_runpath=no
12738 hardcode_into_libs=yes
12742 version_type=linux # correct to gnu/linux during the next big refactor
12745 dynamic_linker="$host_os runtime_loader"
12746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12747 soname_spec='${libname}${release}${shared_ext}$major'
12748 shlibpath_var=LIBRARY_PATH
12749 shlibpath_overrides_runpath=yes
12750 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12751 hardcode_into_libs=yes
12754 hpux9* | hpux10* | hpux11*)
12755 # Give a soname corresponding to the major version so that dld.sl refuses to
12756 # link against other versions.
12763 hardcode_into_libs=yes
12764 dynamic_linker="$host_os dld.so"
12765 shlibpath_var=LD_LIBRARY_PATH
12766 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12768 soname_spec='${libname}${release}${shared_ext}$major'
12769 if test "X$HPUX_IA64_MODE" = X32; then
12770 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12772 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12774 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12778 hardcode_into_libs=yes
12779 dynamic_linker="$host_os dld.sl"
12780 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12781 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12783 soname_spec='${libname}${release}${shared_ext}$major'
12784 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12785 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12789 dynamic_linker="$host_os dld.sl"
12790 shlibpath_var=SHLIB_PATH
12791 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12793 soname_spec='${libname}${release}${shared_ext}$major'
12796 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12797 postinstall_cmds='chmod 555 $lib'
12798 # or fails outright, so override atomically:
12799 install_override_mode=555
12803 version_type=linux # correct to gnu/linux during the next big refactor
12806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12807 soname_spec='${libname}${release}${shared_ext}$major'
12808 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12809 shlibpath_var=LD_LIBRARY_PATH
12810 shlibpath_overrides_runpath=no
12811 hardcode_into_libs=yes
12814 irix5* | irix6* | nonstopux*)
12816 nonstopux*) version_type=nonstopux ;;
12818 if test "$lt_cv_prog_gnu_ld" = yes; then
12819 version_type=linux # correct to gnu/linux during the next big refactor
12826 soname_spec='${libname}${release}${shared_ext}$major'
12827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12829 irix5* | nonstopux*)
12830 libsuff= shlibsuff=
12833 case $LD in # libtool.m4 will add one of these switches to LD
12834 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12835 libsuff= shlibsuff= libmagic=32-bit;;
12836 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12837 libsuff=32 shlibsuff=N32 libmagic=N32;;
12838 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12839 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12840 *) libsuff= shlibsuff= libmagic=never-match;;
12844 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12845 shlibpath_overrides_runpath=no
12846 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12847 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12848 hardcode_into_libs=yes
12851 # No shared lib support for Linux oldld, aout, or coff.
12852 linux*oldld* | linux*aout* | linux*coff*)
12856 # This must be glibc/ELF.
12857 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12858 version_type=linux # correct to gnu/linux during the next big refactor
12861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12862 soname_spec='${libname}${release}${shared_ext}$major'
12863 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12864 shlibpath_var=LD_LIBRARY_PATH
12865 shlibpath_overrides_runpath=no
12867 # Some binutils ld are patched to set DT_RUNPATH
12868 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12869 $as_echo_n "(cached) " >&6
12871 lt_cv_shlibpath_overrides_runpath=no
12872 save_LDFLAGS=$LDFLAGS
12873 save_libdir=$libdir
12874 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12875 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12877 /* end confdefs.h. */
12887 if ac_fn_c_try_link "$LINENO"; then :
12888 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12889 lt_cv_shlibpath_overrides_runpath=yes
12892 rm -f core conftest.err conftest.$ac_objext \
12893 conftest$ac_exeext conftest.$ac_ext
12894 LDFLAGS=$save_LDFLAGS
12895 libdir=$save_libdir
12899 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12901 # This implies no fast_install, which is unacceptable.
12902 # Some rework will be needed to allow for fast_install
12903 # before this can be enabled.
12904 hardcode_into_libs=yes
12906 # Add ABI-specific directories to the system library path.
12907 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
12909 # Append ld.so.conf contents to the search path
12910 if test -f /etc/ld.so.conf; then
12911 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;s/"//g;/^$/d' | tr '\n' ' '`
12912 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12916 # We used to test for /lib/ld.so.1 and disable shared libraries on
12917 # powerpc, because MkLinux only supported shared libraries with the
12918 # GNU dynamic linker. Since this was broken with cross compilers,
12919 # most powerpc-linux boxes support dynamic linking these days and
12920 # people can always --disable-shared, the test was removed, and we
12921 # assume the GNU/Linux dynamic linker is in use.
12922 dynamic_linker='GNU/Linux ld.so'
12929 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12931 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12932 dynamic_linker='NetBSD (a.out) ld.so'
12934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12935 soname_spec='${libname}${release}${shared_ext}$major'
12936 dynamic_linker='NetBSD ld.elf_so'
12938 shlibpath_var=LD_LIBRARY_PATH
12939 shlibpath_overrides_runpath=yes
12940 hardcode_into_libs=yes
12944 version_type=linux # correct to gnu/linux during the next big refactor
12945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12946 shlibpath_var=LD_LIBRARY_PATH
12947 shlibpath_overrides_runpath=yes
12954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12955 soname_spec='${libname}${release}${shared_ext}$major'
12956 shlibpath_var=LD_LIBRARY_PATH
12957 shlibpath_overrides_runpath=no
12958 hardcode_into_libs=yes
12959 dynamic_linker='ldqnx.so'
12964 sys_lib_dlsearch_path_spec="/usr/lib"
12966 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12968 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12969 *) need_version=no ;;
12971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12972 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12973 shlibpath_var=LD_LIBRARY_PATH
12974 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12976 openbsd2.[89] | openbsd2.[89].*)
12977 shlibpath_overrides_runpath=no
12980 shlibpath_overrides_runpath=yes
12984 shlibpath_overrides_runpath=yes
12989 libname_spec='$name'
12992 library_names_spec='$libname${shared_ext} $libname.a'
12993 dynamic_linker='OS/2 ld.exe'
12994 shlibpath_var=LIBPATH
12997 osf3* | osf4* | osf5*)
13001 soname_spec='${libname}${release}${shared_ext}$major'
13002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13003 shlibpath_var=LD_LIBRARY_PATH
13004 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13005 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13013 version_type=linux # correct to gnu/linux during the next big refactor
13016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13017 soname_spec='${libname}${release}${shared_ext}$major'
13018 shlibpath_var=LD_LIBRARY_PATH
13019 shlibpath_overrides_runpath=yes
13020 hardcode_into_libs=yes
13021 # ldd complains unless libraries are executable
13022 postinstall_cmds='chmod +x $lib'
13027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13028 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13029 shlibpath_var=LD_LIBRARY_PATH
13030 shlibpath_overrides_runpath=yes
13031 if test "$with_gnu_ld" = yes; then
13038 version_type=linux # correct to gnu/linux during the next big refactor
13039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13040 soname_spec='${libname}${release}${shared_ext}$major'
13041 shlibpath_var=LD_LIBRARY_PATH
13042 case $host_vendor in
13044 shlibpath_overrides_runpath=no
13046 runpath_var=LD_RUN_PATH
13054 shlibpath_overrides_runpath=no
13055 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13061 if test -d /usr/nec ;then
13062 version_type=linux # correct to gnu/linux during the next big refactor
13063 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13064 soname_spec='$libname${shared_ext}.$major'
13065 shlibpath_var=LD_LIBRARY_PATH
13069 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13070 version_type=freebsd-elf
13073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13074 soname_spec='${libname}${release}${shared_ext}$major'
13075 shlibpath_var=LD_LIBRARY_PATH
13076 shlibpath_overrides_runpath=yes
13077 hardcode_into_libs=yes
13078 if test "$with_gnu_ld" = yes; then
13079 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13081 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13084 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13088 sys_lib_dlsearch_path_spec='/usr/lib'
13092 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13093 version_type=linux # correct to gnu/linux during the next big refactor
13096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13097 shlibpath_var=LD_LIBRARY_PATH
13098 shlibpath_overrides_runpath=no
13099 hardcode_into_libs=yes
13103 version_type=linux # correct to gnu/linux during the next big refactor
13104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13105 soname_spec='${libname}${release}${shared_ext}$major'
13106 shlibpath_var=LD_LIBRARY_PATH
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13114 $as_echo "$dynamic_linker" >&6; }
13115 test "$dynamic_linker" = no && can_build_shared=no
13117 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13118 if test "$GCC" = yes; then
13119 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13122 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13123 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13125 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13126 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13221 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13223 if test -n "$hardcode_libdir_flag_spec" ||
13224 test -n "$runpath_var" ||
13225 test "X$hardcode_automatic" = "Xyes" ; then
13227 # We can hardcode non-existent directories.
13228 if test "$hardcode_direct" != no &&
13229 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13230 # have to relink, otherwise we might link with an installed library
13231 # when we should be linking with a yet-to-be-installed one
13232 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13233 test "$hardcode_minus_L" != no; then
13234 # Linking always hardcodes the temporary library directory.
13235 hardcode_action=relink
13237 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13238 hardcode_action=immediate
13241 # We cannot hardcode anything, or else we can only hardcode existing
13243 hardcode_action=unsupported
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13246 $as_echo "$hardcode_action" >&6; }
13248 if test "$hardcode_action" = relink ||
13249 test "$inherit_rpath" = yes; then
13250 # Fast installation is not supported
13251 enable_fast_install=no
13252 elif test "$shlibpath_overrides_runpath" = yes ||
13253 test "$enable_shared" = no; then
13254 # Fast installation is not necessary
13255 enable_fast_install=needless
13263 if test "x$enable_dlopen" != xyes; then
13264 enable_dlopen=unknown
13265 enable_dlopen_self=unknown
13266 enable_dlopen_self_static=unknown
13273 lt_cv_dlopen="load_add_on"
13275 lt_cv_dlopen_self=yes
13278 mingw* | pw32* | cegcc*)
13279 lt_cv_dlopen="LoadLibrary"
13284 lt_cv_dlopen="dlopen"
13289 # if libdl is installed we need to link against it
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13291 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13292 if ${ac_cv_lib_dl_dlopen+:} false; then :
13293 $as_echo_n "(cached) " >&6
13295 ac_check_lib_save_LIBS=$LIBS
13297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13298 /* end confdefs.h. */
13300 /* Override any GCC internal prototype to avoid an error.
13301 Use char because int might match the return type of a GCC
13302 builtin and then its argument prototype would still apply. */
13315 if ac_fn_c_try_link "$LINENO"; then :
13316 ac_cv_lib_dl_dlopen=yes
13318 ac_cv_lib_dl_dlopen=no
13320 rm -f core conftest.err conftest.$ac_objext \
13321 conftest$ac_exeext conftest.$ac_ext
13322 LIBS=$ac_check_lib_save_LIBS
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13325 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13326 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13327 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13330 lt_cv_dlopen="dyld"
13332 lt_cv_dlopen_self=yes
13339 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13340 if test "x$ac_cv_func_shl_load" = xyes; then :
13341 lt_cv_dlopen="shl_load"
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13344 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13345 if ${ac_cv_lib_dld_shl_load+:} false; then :
13346 $as_echo_n "(cached) " >&6
13348 ac_check_lib_save_LIBS=$LIBS
13350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13351 /* end confdefs.h. */
13353 /* Override any GCC internal prototype to avoid an error.
13354 Use char because int might match the return type of a GCC
13355 builtin and then its argument prototype would still apply. */
13363 return shl_load ();
13368 if ac_fn_c_try_link "$LINENO"; then :
13369 ac_cv_lib_dld_shl_load=yes
13371 ac_cv_lib_dld_shl_load=no
13373 rm -f core conftest.err conftest.$ac_objext \
13374 conftest$ac_exeext conftest.$ac_ext
13375 LIBS=$ac_check_lib_save_LIBS
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13378 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13379 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13380 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13382 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13383 if test "x$ac_cv_func_dlopen" = xyes; then :
13384 lt_cv_dlopen="dlopen"
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13387 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13388 if ${ac_cv_lib_dl_dlopen+:} false; then :
13389 $as_echo_n "(cached) " >&6
13391 ac_check_lib_save_LIBS=$LIBS
13393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13394 /* end confdefs.h. */
13396 /* Override any GCC internal prototype to avoid an error.
13397 Use char because int might match the return type of a GCC
13398 builtin and then its argument prototype would still apply. */
13411 if ac_fn_c_try_link "$LINENO"; then :
13412 ac_cv_lib_dl_dlopen=yes
13414 ac_cv_lib_dl_dlopen=no
13416 rm -f core conftest.err conftest.$ac_objext \
13417 conftest$ac_exeext conftest.$ac_ext
13418 LIBS=$ac_check_lib_save_LIBS
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13421 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13422 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13423 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13426 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13427 if ${ac_cv_lib_svld_dlopen+:} false; then :
13428 $as_echo_n "(cached) " >&6
13430 ac_check_lib_save_LIBS=$LIBS
13431 LIBS="-lsvld $LIBS"
13432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13433 /* end confdefs.h. */
13435 /* Override any GCC internal prototype to avoid an error.
13436 Use char because int might match the return type of a GCC
13437 builtin and then its argument prototype would still apply. */
13450 if ac_fn_c_try_link "$LINENO"; then :
13451 ac_cv_lib_svld_dlopen=yes
13453 ac_cv_lib_svld_dlopen=no
13455 rm -f core conftest.err conftest.$ac_objext \
13456 conftest$ac_exeext conftest.$ac_ext
13457 LIBS=$ac_check_lib_save_LIBS
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13460 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13461 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13462 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13465 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13466 if ${ac_cv_lib_dld_dld_link+:} false; then :
13467 $as_echo_n "(cached) " >&6
13469 ac_check_lib_save_LIBS=$LIBS
13471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13472 /* end confdefs.h. */
13474 /* Override any GCC internal prototype to avoid an error.
13475 Use char because int might match the return type of a GCC
13476 builtin and then its argument prototype would still apply. */
13484 return dld_link ();
13489 if ac_fn_c_try_link "$LINENO"; then :
13490 ac_cv_lib_dld_dld_link=yes
13492 ac_cv_lib_dld_dld_link=no
13494 rm -f core conftest.err conftest.$ac_objext \
13495 conftest$ac_exeext conftest.$ac_ext
13496 LIBS=$ac_check_lib_save_LIBS
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13499 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13500 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13501 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13522 if test "x$lt_cv_dlopen" != xno; then
13528 case $lt_cv_dlopen in
13530 save_CPPFLAGS="$CPPFLAGS"
13531 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13533 save_LDFLAGS="$LDFLAGS"
13534 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13537 LIBS="$lt_cv_dlopen_libs $LIBS"
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13540 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13541 if ${lt_cv_dlopen_self+:} false; then :
13542 $as_echo_n "(cached) " >&6
13544 if test "$cross_compiling" = yes; then :
13545 lt_cv_dlopen_self=cross
13547 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13548 lt_status=$lt_dlunknown
13549 cat > conftest.$ac_ext <<_LT_EOF
13550 #line $LINENO "configure"
13551 #include "confdefs.h"
13560 # define LT_DLGLOBAL RTLD_GLOBAL
13563 # define LT_DLGLOBAL DL_GLOBAL
13565 # define LT_DLGLOBAL 0
13569 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13570 find out it does not work in some platform. */
13571 #ifndef LT_DLLAZY_OR_NOW
13573 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13576 # define LT_DLLAZY_OR_NOW DL_LAZY
13579 # define LT_DLLAZY_OR_NOW RTLD_NOW
13582 # define LT_DLLAZY_OR_NOW DL_NOW
13584 # define LT_DLLAZY_OR_NOW 0
13591 /* When -fvisbility=hidden is used, assume the code has been annotated
13592 correspondingly for the symbols needed. */
13593 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13594 int fnord () __attribute__((visibility("default")));
13597 int fnord () { return 42; }
13600 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13601 int status = $lt_dlunknown;
13605 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13608 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13609 else puts (dlerror ());
13611 /* dlclose (self); */
13619 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13620 (eval $ac_link) 2>&5
13622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13623 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13624 (./conftest; exit; ) >&5 2>/dev/null
13626 case x$lt_status in
13627 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13628 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13629 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13632 # compilation failed
13633 lt_cv_dlopen_self=no
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13641 $as_echo "$lt_cv_dlopen_self" >&6; }
13643 if test "x$lt_cv_dlopen_self" = xyes; then
13644 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13646 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13647 if ${lt_cv_dlopen_self_static+:} false; then :
13648 $as_echo_n "(cached) " >&6
13650 if test "$cross_compiling" = yes; then :
13651 lt_cv_dlopen_self_static=cross
13653 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13654 lt_status=$lt_dlunknown
13655 cat > conftest.$ac_ext <<_LT_EOF
13656 #line $LINENO "configure"
13657 #include "confdefs.h"
13666 # define LT_DLGLOBAL RTLD_GLOBAL
13669 # define LT_DLGLOBAL DL_GLOBAL
13671 # define LT_DLGLOBAL 0
13675 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13676 find out it does not work in some platform. */
13677 #ifndef LT_DLLAZY_OR_NOW
13679 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13682 # define LT_DLLAZY_OR_NOW DL_LAZY
13685 # define LT_DLLAZY_OR_NOW RTLD_NOW
13688 # define LT_DLLAZY_OR_NOW DL_NOW
13690 # define LT_DLLAZY_OR_NOW 0
13697 /* When -fvisbility=hidden is used, assume the code has been annotated
13698 correspondingly for the symbols needed. */
13699 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13700 int fnord () __attribute__((visibility("default")));
13703 int fnord () { return 42; }
13706 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13707 int status = $lt_dlunknown;
13711 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13714 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13715 else puts (dlerror ());
13717 /* dlclose (self); */
13725 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13726 (eval $ac_link) 2>&5
13728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13729 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13730 (./conftest; exit; ) >&5 2>/dev/null
13732 case x$lt_status in
13733 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13734 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13735 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13738 # compilation failed
13739 lt_cv_dlopen_self_static=no
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13747 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13750 CPPFLAGS="$save_CPPFLAGS"
13751 LDFLAGS="$save_LDFLAGS"
13756 case $lt_cv_dlopen_self in
13757 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13758 *) enable_dlopen_self=unknown ;;
13761 case $lt_cv_dlopen_self_static in
13762 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13763 *) enable_dlopen_self_static=unknown ;;
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13786 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13787 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13788 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13789 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13791 $as_echo "yes" >&6; }
13793 # FIXME - insert some real tests, host_os isn't really good enough
13796 if test -n "$STRIP" ; then
13797 striplib="$STRIP -x"
13798 old_striplib="$STRIP -S"
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13800 $as_echo "yes" >&6; }
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13803 $as_echo "no" >&6; }
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13808 $as_echo "no" >&6; }
13824 # Report which library types will actually be built
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13826 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13828 $as_echo "$can_build_shared" >&6; }
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13831 $as_echo_n "checking whether to build shared libraries... " >&6; }
13832 test "$can_build_shared" = "no" && enable_shared=no
13834 # On AIX, shared libraries and static libraries use the same namespace, and
13835 # are all built from PIC.
13838 test "$enable_shared" = yes && enable_static=no
13839 if test -n "$RANLIB"; then
13840 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13841 postinstall_cmds='$RANLIB $lib'
13846 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13847 test "$enable_shared" = yes && enable_static=no
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13852 $as_echo "$enable_shared" >&6; }
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13855 $as_echo_n "checking whether to build static libraries... " >&6; }
13856 # Make sure either enable_shared or enable_static is yes.
13857 test "$enable_shared" = yes || enable_static=yes
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13859 $as_echo "$enable_static" >&6; }
13866 ac_cpp='$CPP $CPPFLAGS'
13867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13873 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13874 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13875 (test "X$CXX" != "Xg++"))) ; then
13877 ac_cpp='$CXXCPP $CPPFLAGS'
13878 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13879 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13880 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13882 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13883 if test -z "$CXXCPP"; then
13884 if ${ac_cv_prog_CXXCPP+:} false; then :
13885 $as_echo_n "(cached) " >&6
13887 # Double quotes because CXXCPP needs to be expanded
13888 for CXXCPP in "$CXX -E" "/lib/cpp"
13890 ac_preproc_ok=false
13891 for ac_cxx_preproc_warn_flag in '' yes
13893 # Use a header file that comes with gcc, so configuring glibc
13894 # with a fresh cross-compiler works.
13895 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13896 # <limits.h> exists even on freestanding compilers.
13897 # On the NeXT, cc -E runs the code through the compiler's parser,
13898 # not just through cpp. "Syntax error" is here to catch this case.
13899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13900 /* end confdefs.h. */
13902 # include <limits.h>
13904 # include <assert.h>
13908 if ac_fn_cxx_try_cpp "$LINENO"; then :
13911 # Broken: fails on valid input.
13914 rm -f conftest.err conftest.i conftest.$ac_ext
13916 # OK, works on sane cases. Now check whether nonexistent headers
13917 # can be detected and how.
13918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13919 /* end confdefs.h. */
13920 #include <ac_nonexistent.h>
13922 if ac_fn_cxx_try_cpp "$LINENO"; then :
13923 # Broken: success on invalid input.
13926 # Passes both tests.
13930 rm -f conftest.err conftest.i conftest.$ac_ext
13933 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13934 rm -f conftest.i conftest.err conftest.$ac_ext
13935 if $ac_preproc_ok; then :
13940 ac_cv_prog_CXXCPP=$CXXCPP
13943 CXXCPP=$ac_cv_prog_CXXCPP
13945 ac_cv_prog_CXXCPP=$CXXCPP
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13948 $as_echo "$CXXCPP" >&6; }
13949 ac_preproc_ok=false
13950 for ac_cxx_preproc_warn_flag in '' yes
13952 # Use a header file that comes with gcc, so configuring glibc
13953 # with a fresh cross-compiler works.
13954 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13955 # <limits.h> exists even on freestanding compilers.
13956 # On the NeXT, cc -E runs the code through the compiler's parser,
13957 # not just through cpp. "Syntax error" is here to catch this case.
13958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13959 /* end confdefs.h. */
13961 # include <limits.h>
13963 # include <assert.h>
13967 if ac_fn_cxx_try_cpp "$LINENO"; then :
13970 # Broken: fails on valid input.
13973 rm -f conftest.err conftest.i conftest.$ac_ext
13975 # OK, works on sane cases. Now check whether nonexistent headers
13976 # can be detected and how.
13977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13978 /* end confdefs.h. */
13979 #include <ac_nonexistent.h>
13981 if ac_fn_cxx_try_cpp "$LINENO"; then :
13982 # Broken: success on invalid input.
13985 # Passes both tests.
13989 rm -f conftest.err conftest.i conftest.$ac_ext
13992 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13993 rm -f conftest.i conftest.err conftest.$ac_ext
13994 if $ac_preproc_ok; then :
13997 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13998 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13999 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14000 See \`config.log' for more details" "$LINENO" 5; }
14004 ac_cpp='$CPP $CPPFLAGS'
14005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14010 _lt_caught_CXX_error=yes
14014 ac_cpp='$CXXCPP $CPPFLAGS'
14015 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14016 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14017 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14019 archive_cmds_need_lc_CXX=no
14020 allow_undefined_flag_CXX=
14021 always_export_symbols_CXX=no
14022 archive_expsym_cmds_CXX=
14023 compiler_needs_object_CXX=no
14024 export_dynamic_flag_spec_CXX=
14025 hardcode_direct_CXX=no
14026 hardcode_direct_absolute_CXX=no
14027 hardcode_libdir_flag_spec_CXX=
14028 hardcode_libdir_separator_CXX=
14029 hardcode_minus_L_CXX=no
14030 hardcode_shlibpath_var_CXX=unsupported
14031 hardcode_automatic_CXX=no
14032 inherit_rpath_CXX=no
14034 module_expsym_cmds_CXX=
14035 link_all_deplibs_CXX=unknown
14036 old_archive_cmds_CXX=$old_archive_cmds
14037 reload_flag_CXX=$reload_flag
14038 reload_cmds_CXX=$reload_cmds
14039 no_undefined_flag_CXX=
14040 whole_archive_flag_spec_CXX=
14041 enable_shared_with_static_runtimes_CXX=no
14043 # Source file extension for C++ test sources.
14046 # Object file extension for compiled C++ test sources.
14050 # No sense in running all these tests if we already determined that
14051 # the CXX compiler isn't working. Some variables (like enable_shared)
14052 # are currently assumed to apply to all compilers on this platform,
14053 # and will be corrupted by setting them based on a non-working compiler.
14054 if test "$_lt_caught_CXX_error" != yes; then
14055 # Code to be used in simple compile tests
14056 lt_simple_compile_test_code="int some_variable = 0;"
14058 # Code to be used in simple link tests
14059 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14061 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14068 # If no C compiler was specified, use CC.
14071 # If no C compiler flags were specified, use CFLAGS.
14072 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14074 # Allow CC to be a program name with arguments.
14078 # save warnings/boilerplate of simple test code
14079 ac_outfile=conftest.$ac_objext
14080 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14081 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14082 _lt_compiler_boilerplate=`cat conftest.err`
14085 ac_outfile=conftest.$ac_objext
14086 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14087 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14088 _lt_linker_boilerplate=`cat conftest.err`
14092 # Allow CC to be a program name with arguments.
14094 lt_save_CFLAGS=$CFLAGS
14098 lt_save_with_gnu_ld=$with_gnu_ld
14099 lt_save_path_LD=$lt_cv_path_LD
14100 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14101 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14103 $as_unset lt_cv_prog_gnu_ld
14105 if test -n "${lt_cv_path_LDCXX+set}"; then
14106 lt_cv_path_LD=$lt_cv_path_LDCXX
14108 $as_unset lt_cv_path_LD
14110 test -z "${LDCXX+set}" || LD=$LDCXX
14115 for cc_temp in $compiler""; do
14117 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14118 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14123 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14126 if test -n "$compiler"; then
14127 # We don't want -fno-exception when compiling C++ code, so set the
14128 # no_builtin_flag separately
14129 if test "$GXX" = yes; then
14130 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14132 lt_prog_compiler_no_builtin_flag_CXX=
14135 if test "$GXX" = yes; then
14136 # Set up default GNU C++ configuration
14140 # Check whether --with-gnu-ld was given.
14141 if test "${with_gnu_ld+set}" = set; then :
14142 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14148 if test "$GCC" = yes; then
14149 # Check if gcc -print-prog-name=ld gives a path.
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14151 $as_echo_n "checking for ld used by $CC... " >&6; }
14154 # gcc leaves a trailing carriage return which upsets mingw
14155 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14157 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14160 # Accept absolute paths.
14162 re_direlt='/[^/][^/]*/\.\./'
14163 # Canonicalize the pathname of ld
14164 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14165 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14166 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14168 test -z "$LD" && LD="$ac_prog"
14171 # If it fails, then pretend we aren't using GCC.
14175 # If it is relative, then search for the first ld in PATH.
14176 with_gnu_ld=unknown
14179 elif test "$with_gnu_ld" = yes; then
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14181 $as_echo_n "checking for GNU ld... " >&6; }
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14184 $as_echo_n "checking for non-GNU ld... " >&6; }
14186 if ${lt_cv_path_LD+:} false; then :
14187 $as_echo_n "(cached) " >&6
14189 if test -z "$LD"; then
14190 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14191 for ac_dir in $PATH; do
14193 test -z "$ac_dir" && ac_dir=.
14194 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14195 lt_cv_path_LD="$ac_dir/$ac_prog"
14196 # Check to see if the program is GNU ld. I'd rather use --version,
14197 # but apparently some variants of GNU ld only accept -v.
14198 # Break only if it was the GNU/non-GNU ld that we prefer.
14199 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14200 *GNU* | *'with BFD'*)
14201 test "$with_gnu_ld" != no && break
14204 test "$with_gnu_ld" != yes && break
14211 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14215 LD="$lt_cv_path_LD"
14216 if test -n "$LD"; then
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14218 $as_echo "$LD" >&6; }
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14221 $as_echo "no" >&6; }
14223 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14225 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14226 if ${lt_cv_prog_gnu_ld+:} false; then :
14227 $as_echo_n "(cached) " >&6
14229 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14230 case `$LD -v 2>&1 </dev/null` in
14231 *GNU* | *'with BFD'*)
14232 lt_cv_prog_gnu_ld=yes
14235 lt_cv_prog_gnu_ld=no
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14240 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14241 with_gnu_ld=$lt_cv_prog_gnu_ld
14249 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14250 # archiving commands below assume that GNU ld is being used.
14251 if test "$with_gnu_ld" = yes; then
14252 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14253 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14255 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14256 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14258 # If archive_cmds runs LD, not CC, wlarc should be empty
14259 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14260 # investigate it a little bit more. (MM)
14263 # ancient GNU ld didn't support --whole-archive et. al.
14264 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14265 $GREP 'no-whole-archive' > /dev/null; then
14266 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14268 whole_archive_flag_spec_CXX=
14274 # A generic and very simple default shared library creation
14275 # command for GNU C++ for the case where it uses the native
14276 # linker, instead of GNU ld. If possible, this setting should
14277 # overridden to take advantage of the native linker features on
14278 # the platform it is being used on.
14279 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14282 # Commands to make compiler produce verbose output that lists
14283 # what "hidden" libraries, object files and flags are used when
14284 # linking a shared library.
14285 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14293 # PORTME: fill in a description of your system's C++ link characteristics
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14295 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14299 # FIXME: insert proper C++ library support
14303 if test "$host_cpu" = ia64; then
14304 # On IA64, the linker does run time linking by default, so we don't
14305 # have to do anything special.
14306 aix_use_runtimelinking=no
14307 exp_sym_flag='-Bexport'
14310 aix_use_runtimelinking=no
14312 # Test if we are trying to use run time linking or normal
14313 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14314 # need to do runtime linking.
14315 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14316 for ld_flag in $LDFLAGS; do
14319 aix_use_runtimelinking=yes
14327 exp_sym_flag='-bexport'
14328 no_entry_flag='-bnoentry'
14331 # When large executables or shared objects are built, AIX ld can
14332 # have problems creating the table of contents. If linking a library
14333 # or program results in "error TOC overflow" add -mminimal-toc to
14334 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14335 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14337 archive_cmds_CXX=''
14338 hardcode_direct_CXX=yes
14339 hardcode_direct_absolute_CXX=yes
14340 hardcode_libdir_separator_CXX=':'
14341 link_all_deplibs_CXX=yes
14342 file_list_spec_CXX='${wl}-f,'
14344 if test "$GXX" = yes; then
14345 case $host_os in aix4.[012]|aix4.[012].*)
14346 # We only want to do this on AIX 4.2 and lower, the check
14347 # below for broken collect2 doesn't work under 4.3+
14348 collect2name=`${CC} -print-prog-name=collect2`
14349 if test -f "$collect2name" &&
14350 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14352 # We have reworked collect2
14355 # We have old collect2
14356 hardcode_direct_CXX=unsupported
14357 # It fails to find uninstalled libraries when the uninstalled
14358 # path is not listed in the libpath. Setting hardcode_minus_L
14359 # to unsupported forces relinking
14360 hardcode_minus_L_CXX=yes
14361 hardcode_libdir_flag_spec_CXX='-L$libdir'
14362 hardcode_libdir_separator_CXX=
14365 shared_flag='-shared'
14366 if test "$aix_use_runtimelinking" = yes; then
14367 shared_flag="$shared_flag "'${wl}-G'
14371 if test "$host_cpu" = ia64; then
14372 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14373 # chokes on -Wl,-G. The following line is correct:
14376 if test "$aix_use_runtimelinking" = yes; then
14377 shared_flag='${wl}-G'
14379 shared_flag='${wl}-bM:SRE'
14384 export_dynamic_flag_spec_CXX='${wl}-bexpall'
14385 # It seems that -bexpall does not export symbols beginning with
14386 # underscore (_), so it is better to generate a list of symbols to
14388 always_export_symbols_CXX=yes
14389 if test "$aix_use_runtimelinking" = yes; then
14390 # Warning - without using the other runtime loading flags (-brtl),
14391 # -berok will link without error, but may produce a broken library.
14392 allow_undefined_flag_CXX='-berok'
14393 # Determine the default libpath from the value encoded in an empty
14395 if test "${lt_cv_aix_libpath+set}" = set; then
14396 aix_libpath=$lt_cv_aix_libpath
14398 if ${lt_cv_aix_libpath__CXX+:} false; then :
14399 $as_echo_n "(cached) " >&6
14401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14402 /* end confdefs.h. */
14412 if ac_fn_cxx_try_link "$LINENO"; then :
14414 lt_aix_libpath_sed='
14415 /Import File Strings/,/^$/ {
14417 s/^0 *\([^ ]*\) *$/\1/
14421 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14422 # Check for a 64-bit object if we didn't find anything.
14423 if test -z "$lt_cv_aix_libpath__CXX"; then
14424 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14427 rm -f core conftest.err conftest.$ac_objext \
14428 conftest$ac_exeext conftest.$ac_ext
14429 if test -z "$lt_cv_aix_libpath__CXX"; then
14430 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14435 aix_libpath=$lt_cv_aix_libpath__CXX
14438 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14440 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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14442 if test "$host_cpu" = ia64; then
14443 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14444 allow_undefined_flag_CXX="-z nodefs"
14445 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"
14447 # Determine the default libpath from the value encoded in an
14448 # empty executable.
14449 if test "${lt_cv_aix_libpath+set}" = set; then
14450 aix_libpath=$lt_cv_aix_libpath
14452 if ${lt_cv_aix_libpath__CXX+:} false; then :
14453 $as_echo_n "(cached) " >&6
14455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14456 /* end confdefs.h. */
14466 if ac_fn_cxx_try_link "$LINENO"; then :
14468 lt_aix_libpath_sed='
14469 /Import File Strings/,/^$/ {
14471 s/^0 *\([^ ]*\) *$/\1/
14475 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14476 # Check for a 64-bit object if we didn't find anything.
14477 if test -z "$lt_cv_aix_libpath__CXX"; then
14478 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14481 rm -f core conftest.err conftest.$ac_objext \
14482 conftest$ac_exeext conftest.$ac_ext
14483 if test -z "$lt_cv_aix_libpath__CXX"; then
14484 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14489 aix_libpath=$lt_cv_aix_libpath__CXX
14492 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14493 # Warning - without using the other run time loading flags,
14494 # -berok will link without error, but may produce a broken library.
14495 no_undefined_flag_CXX=' ${wl}-bernotok'
14496 allow_undefined_flag_CXX=' ${wl}-berok'
14497 if test "$with_gnu_ld" = yes; then
14498 # We only use this code for GNU lds that support --whole-archive.
14499 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14501 # Exported symbols can be pulled into shared objects from archives
14502 whole_archive_flag_spec_CXX='$convenience'
14504 archive_cmds_need_lc_CXX=yes
14505 # This is similar to how AIX traditionally builds its shared
14507 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'
14513 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14514 allow_undefined_flag_CXX=unsupported
14515 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14516 # support --undefined. This deserves some investigation. FIXME
14517 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14524 case $cc_basename in
14526 # FIXME: insert proper C++ library support
14532 cygwin* | mingw* | pw32* | cegcc*)
14533 case $GXX,$cc_basename in
14536 # hardcode_libdir_flag_spec is actually meaningless, as there is
14537 # no search path for DLLs.
14538 hardcode_libdir_flag_spec_CXX=' '
14539 allow_undefined_flag_CXX=unsupported
14540 always_export_symbols_CXX=yes
14541 file_list_spec_CXX='@'
14542 # Tell ltmain to make .lib files, not .a files.
14544 # Tell ltmain to make .dll files, not .so files.
14546 # FIXME: Setting linknames here is a bad hack.
14547 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14548 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14549 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14551 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14553 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14555 # The linker will not automatically build a static lib if we build a DLL.
14556 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14557 enable_shared_with_static_runtimes_CXX=yes
14559 old_postinstall_cmds_CXX='chmod 644 $oldlib'
14560 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14561 lt_tool_outputfile="@TOOL_OUTPUT@"~
14562 case $lt_outputfile in
14565 lt_outputfile="$lt_outputfile.exe"
14566 lt_tool_outputfile="$lt_tool_outputfile.exe"
14569 func_to_tool_file "$lt_outputfile"~
14570 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14571 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14572 $RM "$lt_outputfile.manifest";
14577 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14578 # as there is no search path for DLLs.
14579 hardcode_libdir_flag_spec_CXX='-L$libdir'
14580 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
14581 allow_undefined_flag_CXX=unsupported
14582 always_export_symbols_CXX=no
14583 enable_shared_with_static_runtimes_CXX=yes
14585 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14586 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'
14587 # If the export-symbols file already is a .def file (1st line
14588 # is EXPORTS), use it as is; otherwise, prepend...
14589 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14590 cp $export_symbols $output_objdir/$soname.def;
14592 echo EXPORTS > $output_objdir/$soname.def;
14593 cat $export_symbols >> $output_objdir/$soname.def;
14595 $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'
14602 darwin* | rhapsody*)
14605 archive_cmds_need_lc_CXX=no
14606 hardcode_direct_CXX=no
14607 hardcode_automatic_CXX=yes
14608 hardcode_shlibpath_var_CXX=unsupported
14609 if test "$lt_cv_ld_force_load" = "yes"; then
14610 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
14613 whole_archive_flag_spec_CXX=''
14615 link_all_deplibs_CXX=yes
14616 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14617 case $cc_basename in
14618 ifort*) _lt_dar_can_shared=yes ;;
14619 *) _lt_dar_can_shared=$GCC ;;
14621 if test "$_lt_dar_can_shared" = "yes"; then
14622 output_verbose_link_cmd=func_echo_all
14623 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}"
14624 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14625 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}"
14626 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}"
14627 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14628 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}"
14629 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}"
14639 case $cc_basename in
14641 # FIXME: insert proper C++ library support
14645 # Green Hills C++ Compiler
14646 # FIXME: insert proper C++ library support
14650 # FIXME: insert proper C++ library support
14657 # C++ shared libraries reported to be fairly broken before
14663 archive_cmds_need_lc_CXX=no
14666 freebsd* | dragonfly*)
14667 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14676 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14677 link_all_deplibs_CXX=yes
14681 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14682 hardcode_libdir_separator_CXX=:
14683 export_dynamic_flag_spec_CXX='${wl}-E'
14684 hardcode_direct_CXX=yes
14685 hardcode_minus_L_CXX=yes # Not in the search PATH,
14686 # but as the default
14687 # location of the library.
14689 case $cc_basename in
14691 # FIXME: insert proper C++ library support
14695 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'
14696 # Commands to make compiler produce verbose output that lists
14697 # what "hidden" libraries, object files and flags are used when
14698 # linking a shared library.
14700 # There doesn't appear to be a way to prevent this compiler from
14701 # explicitly linking system object files so we need to strip them
14702 # from the output so that they don't get included in the library
14704 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; func_echo_all "$list"'
14707 if test "$GXX" = yes; then
14708 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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'
14710 # FIXME: insert proper C++ library support
14718 if test $with_gnu_ld = no; then
14719 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14720 hardcode_libdir_separator_CXX=:
14726 export_dynamic_flag_spec_CXX='${wl}-E'
14732 hardcode_direct_CXX=no
14733 hardcode_shlibpath_var_CXX=no
14736 hardcode_direct_CXX=yes
14737 hardcode_direct_absolute_CXX=yes
14738 hardcode_minus_L_CXX=yes # Not in the search PATH,
14739 # but as the default
14740 # location of the library.
14744 case $cc_basename in
14746 # FIXME: insert proper C++ library support
14752 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14755 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14758 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14761 # Commands to make compiler produce verbose output that lists
14762 # what "hidden" libraries, object files and flags are used when
14763 # linking a shared library.
14765 # There doesn't appear to be a way to prevent this compiler from
14766 # explicitly linking system object files so we need to strip them
14767 # from the output so that they don't get included in the library
14769 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; func_echo_all "$list"'
14772 if test "$GXX" = yes; then
14773 if test $with_gnu_ld = no; then
14776 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14779 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14782 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14787 # FIXME: insert proper C++ library support
14795 hardcode_direct_CXX=no
14796 hardcode_shlibpath_var_CXX=no
14797 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14798 export_dynamic_flag_spec_CXX='${wl}-E'
14799 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14800 # Instead, shared libraries are loaded at an image base (0x10000000 by
14801 # default) and relocated if they conflict, which is a slow very memory
14802 # consuming and fragmenting process. To avoid this, we pick a random,
14803 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14804 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14805 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'
14806 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'
14809 case $cc_basename in
14812 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14814 # Archives containing C++ object files must be created using
14815 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14816 # necessary to make sure instantiated templates are included
14818 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14821 if test "$GXX" = yes; then
14822 if test "$with_gnu_ld" = no; then
14823 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14825 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
14828 link_all_deplibs_CXX=yes
14831 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14832 hardcode_libdir_separator_CXX=:
14833 inherit_rpath_CXX=yes
14836 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14837 case $cc_basename in
14839 # Kuck and Associates, Inc. (KAI) C++ Compiler
14841 # KCC will only create a shared library if the output file
14842 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14843 # to its proper name (with version) after linking.
14844 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'
14845 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'
14846 # Commands to make compiler produce verbose output that lists
14847 # what "hidden" libraries, object files and flags are used when
14848 # linking a shared library.
14850 # There doesn't appear to be a way to prevent this compiler from
14851 # explicitly linking system object files so we need to strip them
14852 # from the output so that they don't get included in the library
14854 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; func_echo_all "$list"'
14856 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14857 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14859 # Archives containing C++ object files must be created using
14860 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14861 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14866 # version 8.0 and above of icpc choke on multiply defined symbols
14867 # if we add $predep_objects and $postdep_objects, however 7.1 and
14868 # earlier do not add the objects themselves.
14869 case `$CC -V 2>&1` in
14871 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14872 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'
14874 *) # Version 8.0 or newer
14877 ia64*) tmp_idyn=' -i_dynamic';;
14879 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14880 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'
14883 archive_cmds_need_lc_CXX=no
14884 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14885 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14886 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14889 # Portland Group C++ compiler
14891 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14892 prelink_cmds_CXX='tpldir=Template.dir~
14894 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14895 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14896 old_archive_cmds_CXX='tpldir=Template.dir~
14898 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14899 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14901 archive_cmds_CXX='tpldir=Template.dir~
14903 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14904 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14905 archive_expsym_cmds_CXX='tpldir=Template.dir~
14907 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14908 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14910 *) # Version 6 and above use weak symbols
14911 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14912 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'
14916 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14917 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14918 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
14922 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14923 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'
14925 runpath_var=LD_RUN_PATH
14926 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14927 hardcode_libdir_separator_CXX=:
14929 # Commands to make compiler produce verbose output that lists
14930 # what "hidden" libraries, object files and flags are used when
14931 # linking a shared library.
14933 # There doesn't appear to be a way to prevent this compiler from
14934 # explicitly linking system object files so we need to strip them
14935 # from the output so that they don't get included in the library
14937 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
14939 xl* | mpixl* | bgxl*)
14940 # IBM XL 8.0 on PPC, with GNU ld
14941 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14942 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14943 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14944 if test "x$supports_anon_versioning" = xyes; then
14945 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14946 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14947 echo "local: *; };" >> $output_objdir/$libname.ver~
14948 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14952 case `$CC -V 2>&1 | sed 5q` in
14955 no_undefined_flag_CXX=' -zdefs'
14956 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14957 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'
14958 hardcode_libdir_flag_spec_CXX='-R$libdir'
14959 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
14960 compiler_needs_object_CXX=yes
14962 # Not sure whether something based on
14963 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14965 output_verbose_link_cmd='func_echo_all'
14967 # Archives containing C++ object files must be created using
14968 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14969 # necessary to make sure instantiated templates are included
14971 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14979 # FIXME: insert proper C++ library support
14984 # FIXME: insert proper C++ library support
14989 case $cc_basename in
14991 # FIXME: insert proper C++ library support
14995 # FIXME: insert proper C++ library support
15002 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15003 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15005 hardcode_libdir_flag_spec_CXX='-R$libdir'
15006 hardcode_direct_CXX=yes
15007 hardcode_shlibpath_var_CXX=no
15009 # Workaround some broken pre-1.5 toolchains
15010 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15018 # C++ shared libraries are fairly broken
15023 if test -f /usr/libexec/ld.so; then
15024 hardcode_direct_CXX=yes
15025 hardcode_shlibpath_var_CXX=no
15026 hardcode_direct_absolute_CXX=yes
15027 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15028 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15029 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15030 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15031 export_dynamic_flag_spec_CXX='${wl}-E'
15032 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15034 output_verbose_link_cmd=func_echo_all
15040 osf3* | osf4* | osf5*)
15041 case $cc_basename in
15043 # Kuck and Associates, Inc. (KAI) C++ Compiler
15045 # KCC will only create a shared library if the output file
15046 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15047 # to its proper name (with version) after linking.
15048 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'
15050 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15051 hardcode_libdir_separator_CXX=:
15053 # Archives containing C++ object files must be created using
15054 # the KAI C++ compiler.
15056 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15057 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15061 # Rational C++ 2.4.1
15062 # FIXME: insert proper C++ library support
15068 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15069 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
15070 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15073 allow_undefined_flag_CXX=' -expect_unresolved \*'
15074 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
15075 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15076 echo "-hidden">> $lib.exp~
15077 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
15079 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15083 hardcode_libdir_separator_CXX=:
15085 # Commands to make compiler produce verbose output that lists
15086 # what "hidden" libraries, object files and flags are used when
15087 # linking a shared library.
15089 # There doesn't appear to be a way to prevent this compiler from
15090 # explicitly linking system object files so we need to strip them
15091 # from the output so that they don't get included in the library
15093 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
15096 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15097 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15100 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15103 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15107 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15108 hardcode_libdir_separator_CXX=:
15110 # Commands to make compiler produce verbose output that lists
15111 # what "hidden" libraries, object files and flags are used when
15112 # linking a shared library.
15113 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15116 # FIXME: insert proper C++ library support
15124 # FIXME: insert proper C++ library support
15129 case $cc_basename in
15132 # FIXME: insert proper C++ library support
15137 # FIXME: insert proper C++ library support
15141 # FIXME: insert proper C++ library support
15148 case $cc_basename in
15150 # Sun C++ 4.2, 5.x and Centerline C++
15151 archive_cmds_need_lc_CXX=yes
15152 no_undefined_flag_CXX=' -zdefs'
15153 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15154 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15155 $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'
15157 hardcode_libdir_flag_spec_CXX='-R$libdir'
15158 hardcode_shlibpath_var_CXX=no
15160 solaris2.[0-5] | solaris2.[0-5].*) ;;
15162 # The compiler driver will combine and reorder linker options,
15163 # but understands `-z linker_flag'.
15164 # Supported since Solaris 2.6 (maybe 2.5.1?)
15165 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15168 link_all_deplibs_CXX=yes
15170 output_verbose_link_cmd='func_echo_all'
15172 # Archives containing C++ object files must be created using
15173 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15174 # necessary to make sure instantiated templates are included
15176 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15179 # Green Hills C++ Compiler
15180 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15182 # The C++ compiler must be used to create the archive.
15183 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15186 # GNU C++ compiler with Solaris linker
15187 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15188 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15189 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15190 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15191 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15192 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15194 # Commands to make compiler produce verbose output that lists
15195 # what "hidden" libraries, object files and flags are used when
15196 # linking a shared library.
15197 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15199 # g++ 2.7 appears to require `-G' NOT `-shared' on this
15201 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15202 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15203 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15205 # Commands to make compiler produce verbose output that lists
15206 # what "hidden" libraries, object files and flags are used when
15207 # linking a shared library.
15208 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15211 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15213 solaris2.[0-5] | solaris2.[0-5].*) ;;
15215 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15223 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15224 no_undefined_flag_CXX='${wl}-z,text'
15225 archive_cmds_need_lc_CXX=no
15226 hardcode_shlibpath_var_CXX=no
15227 runpath_var='LD_RUN_PATH'
15229 case $cc_basename in
15231 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15232 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15235 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15236 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15241 sysv5* | sco3.2v5* | sco5v6*)
15242 # Note: We can NOT use -z defs as we might desire, because we do not
15243 # link with -lc, and that would cause any symbols used from libc to
15244 # always be unresolved, which means just about no library would
15245 # ever link correctly. If we're not using GNU ld we use -z text
15246 # though, which does catch some bad symbols but isn't as heavy-handed
15248 no_undefined_flag_CXX='${wl}-z,text'
15249 allow_undefined_flag_CXX='${wl}-z,nodefs'
15250 archive_cmds_need_lc_CXX=no
15251 hardcode_shlibpath_var_CXX=no
15252 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15253 hardcode_libdir_separator_CXX=':'
15254 link_all_deplibs_CXX=yes
15255 export_dynamic_flag_spec_CXX='${wl}-Bexport'
15256 runpath_var='LD_RUN_PATH'
15258 case $cc_basename in
15260 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15261 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15262 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15263 '"$old_archive_cmds_CXX"
15264 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15265 '"$reload_cmds_CXX"
15268 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15269 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15275 case $cc_basename in
15277 # NonStop-UX NCC 3.20
15278 # FIXME: insert proper C++ library support
15282 # FIXME: insert proper C++ library support
15289 # FIXME: insert proper C++ library support
15294 # FIXME: insert proper C++ library support
15299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15300 $as_echo "$ld_shlibs_CXX" >&6; }
15301 test "$ld_shlibs_CXX" = no && can_build_shared=no
15307 ## There is no encapsulation within the following macros, do not change
15308 ## the running order or otherwise move them around unless you know exactly
15309 ## what you are doing...
15310 # Dependencies to place before and after the object being linked:
15311 predep_objects_CXX=
15312 postdep_objects_CXX=
15315 compiler_lib_search_path_CXX=
15317 cat > conftest.$ac_ext <<_LT_EOF
15321 Foo (void) { a = 0; }
15328 _lt_libdeps_save_CFLAGS=$CFLAGS
15329 case "$CC $CFLAGS " in #(
15330 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15331 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15332 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15335 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15336 (eval $ac_compile) 2>&5
15338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15339 test $ac_status = 0; }; then
15340 # Parse the compiler output and extract the necessary
15341 # objects, libraries and library flags.
15343 # Sentinel used to keep track of whether or not we are before
15344 # the conftest object file.
15345 pre_test_object_deps_done=no
15347 for p in `eval "$output_verbose_link_cmd"`; do
15348 case ${prev}${p} in
15351 # Some compilers place space between "-{L,R}" and the path.
15352 # Remove the space.
15353 if test $p = "-L" ||
15354 test $p = "-R"; then
15359 # Expand the sysroot to ease extracting the directories later.
15360 if test -z "$prev"; then
15362 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15363 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15364 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15368 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15370 if test "$pre_test_object_deps_done" = no; then
15373 # Internal compiler library paths should come after those
15374 # provided the user. The postdeps already come after the
15375 # user supplied libs so there is no need to process them.
15376 if test -z "$compiler_lib_search_path_CXX"; then
15377 compiler_lib_search_path_CXX="${prev}${p}"
15379 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15382 # The "-l" case would never come before the object being
15383 # linked, so don't bother handling this case.
15386 if test -z "$postdeps_CXX"; then
15387 postdeps_CXX="${prev}${p}"
15389 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15395 *.lto.$objext) ;; # Ignore GCC LTO objects
15397 # This assumes that the test object file only shows up
15398 # once in the compiler output.
15399 if test "$p" = "conftest.$objext"; then
15400 pre_test_object_deps_done=yes
15404 if test "$pre_test_object_deps_done" = no; then
15405 if test -z "$predep_objects_CXX"; then
15406 predep_objects_CXX="$p"
15408 predep_objects_CXX="$predep_objects_CXX $p"
15411 if test -z "$postdep_objects_CXX"; then
15412 postdep_objects_CXX="$p"
15414 postdep_objects_CXX="$postdep_objects_CXX $p"
15419 *) ;; # Ignore the rest.
15427 echo "libtool.m4: error: problem compiling CXX test program"
15430 $RM -f confest.$objext
15431 CFLAGS=$_lt_libdeps_save_CFLAGS
15433 # PORTME: override above test on systems where it is broken
15436 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15437 # hack all around it, let's just trust "g++" to DTRT.
15438 predep_objects_CXX=
15439 postdep_objects_CXX=
15444 case `$CC -V 2>&1 | sed 5q` in
15448 # The more standards-conforming stlport4 library is
15449 # incompatible with the Cstd library. Avoid specifying
15450 # it if it's in CXXFLAGS. Ignore libCrun as
15451 # -library=stlport4 depends on it.
15452 case " $CXX $CXXFLAGS " in
15453 *" -library=stlport4 "*)
15454 solaris_use_stlport4=yes
15458 if test "$solaris_use_stlport4" != yes; then
15459 postdeps_CXX='-library=Cstd -library=Crun'
15466 case $cc_basename in
15468 # The more standards-conforming stlport4 library is
15469 # incompatible with the Cstd library. Avoid specifying
15470 # it if it's in CXXFLAGS. Ignore libCrun as
15471 # -library=stlport4 depends on it.
15472 case " $CXX $CXXFLAGS " in
15473 *" -library=stlport4 "*)
15474 solaris_use_stlport4=yes
15478 # Adding this requires a known-good setup of shared libraries for
15479 # Sun compiler versions before 5.6, else PIC objects from an old
15480 # archive will be linked into the output, leading to subtle bugs.
15481 if test "$solaris_use_stlport4" != yes; then
15482 postdeps_CXX='-library=Cstd -library=Crun'
15490 case " $postdeps_CXX " in
15491 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15493 compiler_lib_search_dirs_CXX=
15494 if test -n "${compiler_lib_search_path_CXX}"; then
15495 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15528 lt_prog_compiler_wl_CXX=
15529 lt_prog_compiler_pic_CXX=
15530 lt_prog_compiler_static_CXX=
15533 # C++ specific cases for pic, static, wl, etc.
15534 if test "$GXX" = yes; then
15535 lt_prog_compiler_wl_CXX='-Wl,'
15536 lt_prog_compiler_static_CXX='-static'
15540 # All AIX code is PIC.
15541 if test "$host_cpu" = ia64; then
15542 # AIX 5 now supports IA64 processor
15543 lt_prog_compiler_static_CXX='-Bstatic'
15550 # see comment about AmigaOS4 .so support
15551 lt_prog_compiler_pic_CXX='-fPIC'
15554 # FIXME: we need at least 68020 code to build shared libraries, but
15555 # adding the `-m68020' flag to GCC prevents building anything better,
15557 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15562 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15563 # PIC is the default for these OSes.
15565 mingw* | cygwin* | os2* | pw32* | cegcc*)
15566 # This hack is so that the source file can tell whether it is being
15567 # built for inclusion in a dll (and should export symbols for example).
15568 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15569 # (--disable-auto-import) libraries
15570 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15572 darwin* | rhapsody*)
15573 # PIC is the default on this platform
15574 # Common symbols not allowed in MH_DYLIB files
15575 lt_prog_compiler_pic_CXX='-fno-common'
15578 # DJGPP does not support shared libraries at all
15579 lt_prog_compiler_pic_CXX=
15582 # PIC is the default for Haiku.
15583 # The "-static" flag exists, but is broken.
15584 lt_prog_compiler_static_CXX=
15587 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15588 # Instead, we relocate shared libraries at runtime.
15591 if test -d /usr/nec; then
15592 lt_prog_compiler_pic_CXX=-Kconform_pic
15596 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15597 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15598 # sets the default TLS model and affects inlining.
15603 lt_prog_compiler_pic_CXX='-fPIC'
15608 # QNX uses GNU C++, but need to define -shared option too, otherwise
15609 # it will coredump.
15610 lt_prog_compiler_pic_CXX='-fPIC -shared'
15613 lt_prog_compiler_pic_CXX='-fPIC'
15619 # All AIX code is PIC.
15620 if test "$host_cpu" = ia64; then
15621 # AIX 5 now supports IA64 processor
15622 lt_prog_compiler_static_CXX='-Bstatic'
15624 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15628 case $cc_basename in
15630 # Green Hills C++ Compiler
15631 # _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"
15635 mingw* | cygwin* | os2* | pw32* | cegcc*)
15636 # This hack is so that the source file can tell whether it is being
15637 # built for inclusion in a dll (and should export symbols for example).
15638 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15641 case $cc_basename in
15643 lt_prog_compiler_pic_CXX='-KPIC'
15646 # Green Hills C++ Compiler
15647 lt_prog_compiler_pic_CXX='-pic'
15653 freebsd* | dragonfly*)
15654 # FreeBSD uses GNU C++
15656 hpux9* | hpux10* | hpux11*)
15657 case $cc_basename in
15659 lt_prog_compiler_wl_CXX='-Wl,'
15660 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15661 if test "$host_cpu" != ia64; then
15662 lt_prog_compiler_pic_CXX='+Z'
15666 lt_prog_compiler_wl_CXX='-Wl,'
15667 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15673 lt_prog_compiler_pic_CXX='+Z'
15682 # This is c89, which is MS Visual C++ (no shared libs)
15683 # Anyone wants to do a port?
15685 irix5* | irix6* | nonstopux*)
15686 case $cc_basename in
15688 lt_prog_compiler_wl_CXX='-Wl,'
15689 lt_prog_compiler_static_CXX='-non_shared'
15690 # CC pic flag -KPIC is the default.
15696 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15697 case $cc_basename in
15700 lt_prog_compiler_wl_CXX='--backend -Wl,'
15701 lt_prog_compiler_pic_CXX='-fPIC'
15704 # old Intel C++ for x86_64 which still supported -KPIC.
15705 lt_prog_compiler_wl_CXX='-Wl,'
15706 lt_prog_compiler_pic_CXX='-KPIC'
15707 lt_prog_compiler_static_CXX='-static'
15710 # Intel C++, used to be incompatible with GCC.
15711 # ICC 10 doesn't accept -KPIC any more.
15712 lt_prog_compiler_wl_CXX='-Wl,'
15713 lt_prog_compiler_pic_CXX='-fPIC'
15714 lt_prog_compiler_static_CXX='-static'
15717 # Portland Group C++ compiler
15718 lt_prog_compiler_wl_CXX='-Wl,'
15719 lt_prog_compiler_pic_CXX='-fpic'
15720 lt_prog_compiler_static_CXX='-Bstatic'
15724 # Make sure the PIC flag is empty. It appears that all Alpha
15725 # Linux and Compaq Tru64 Unix objects are PIC.
15726 lt_prog_compiler_pic_CXX=
15727 lt_prog_compiler_static_CXX='-non_shared'
15729 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15730 # IBM XL 8.0, 9.0 on PPC and BlueGene
15731 lt_prog_compiler_wl_CXX='-Wl,'
15732 lt_prog_compiler_pic_CXX='-qpic'
15733 lt_prog_compiler_static_CXX='-qstaticlink'
15736 case `$CC -V 2>&1 | sed 5q` in
15739 lt_prog_compiler_pic_CXX='-KPIC'
15740 lt_prog_compiler_static_CXX='-Bstatic'
15741 lt_prog_compiler_wl_CXX='-Qoption ld '
15752 case $cc_basename in
15754 lt_prog_compiler_pic_CXX='-W c,exportall'
15763 # QNX uses GNU C++, but need to define -shared option too, otherwise
15764 # it will coredump.
15765 lt_prog_compiler_pic_CXX='-fPIC -shared'
15767 osf3* | osf4* | osf5*)
15768 case $cc_basename in
15770 lt_prog_compiler_wl_CXX='--backend -Wl,'
15773 # Rational C++ 2.4.1
15774 lt_prog_compiler_pic_CXX='-pic'
15777 # Digital/Compaq C++
15778 lt_prog_compiler_wl_CXX='-Wl,'
15779 # Make sure the PIC flag is empty. It appears that all Alpha
15780 # Linux and Compaq Tru64 Unix objects are PIC.
15781 lt_prog_compiler_pic_CXX=
15782 lt_prog_compiler_static_CXX='-non_shared'
15791 case $cc_basename in
15793 # Sun C++ 4.2, 5.x and Centerline C++
15794 lt_prog_compiler_pic_CXX='-KPIC'
15795 lt_prog_compiler_static_CXX='-Bstatic'
15796 lt_prog_compiler_wl_CXX='-Qoption ld '
15799 # Green Hills C++ Compiler
15800 lt_prog_compiler_pic_CXX='-PIC'
15807 case $cc_basename in
15810 lt_prog_compiler_pic_CXX='-pic'
15811 lt_prog_compiler_static_CXX='-Bstatic'
15815 lt_prog_compiler_pic_CXX='-pic'
15821 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15822 case $cc_basename in
15824 lt_prog_compiler_wl_CXX='-Wl,'
15825 lt_prog_compiler_pic_CXX='-KPIC'
15826 lt_prog_compiler_static_CXX='-Bstatic'
15831 case $cc_basename in
15833 # NonStop-UX NCC 3.20
15834 lt_prog_compiler_pic_CXX='-KPIC'
15843 lt_prog_compiler_can_build_shared_CXX=no
15849 # For platforms which do not support PIC, -DPIC is meaningless:
15851 lt_prog_compiler_pic_CXX=
15854 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15859 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15860 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15861 $as_echo_n "(cached) " >&6
15863 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15866 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15867 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15870 # Check to make sure the PIC flag actually works.
15872 if test -n "$lt_prog_compiler_pic_CXX"; then
15873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15874 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15875 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15876 $as_echo_n "(cached) " >&6
15878 lt_cv_prog_compiler_pic_works_CXX=no
15879 ac_outfile=conftest.$ac_objext
15880 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15881 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15882 # Insert the option either (1) after the last *FLAGS variable, or
15883 # (2) before a word containing "conftest.", or (3) at the end.
15884 # Note that $ac_compile itself does not contain backslashes and begins
15885 # with a dollar sign (not a hyphen), so the echo should work correctly.
15886 # The option is referenced via a variable to avoid confusing sed.
15887 lt_compile=`echo "$ac_compile" | $SED \
15888 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15889 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15890 -e 's:$: $lt_compiler_flag:'`
15891 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15892 (eval "$lt_compile" 2>conftest.err)
15894 cat conftest.err >&5
15895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896 if (exit $ac_status) && test -s "$ac_outfile"; then
15897 # The compiler can only warn and ignore the option if not recognized
15898 # So say no if there are warnings other than the usual output.
15899 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15900 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15901 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15902 lt_cv_prog_compiler_pic_works_CXX=yes
15908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15909 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15911 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15912 case $lt_prog_compiler_pic_CXX in
15914 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15917 lt_prog_compiler_pic_CXX=
15918 lt_prog_compiler_can_build_shared_CXX=no
15928 # Check to make sure the static flag actually works.
15930 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15932 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15933 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15934 $as_echo_n "(cached) " >&6
15936 lt_cv_prog_compiler_static_works_CXX=no
15937 save_LDFLAGS="$LDFLAGS"
15938 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15939 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15940 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15941 # The linker can only warn and ignore the option if not recognized
15942 # So say no if there are warnings
15943 if test -s conftest.err; then
15944 # Append any errors to the config.log.
15945 cat conftest.err 1>&5
15946 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15947 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15948 if diff conftest.exp conftest.er2 >/dev/null; then
15949 lt_cv_prog_compiler_static_works_CXX=yes
15952 lt_cv_prog_compiler_static_works_CXX=yes
15956 LDFLAGS="$save_LDFLAGS"
15959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15960 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15962 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15965 lt_prog_compiler_static_CXX=
15971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15972 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15973 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15974 $as_echo_n "(cached) " >&6
15976 lt_cv_prog_compiler_c_o_CXX=no
15977 $RM -r conftest 2>/dev/null
15981 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15983 lt_compiler_flag="-o out/conftest2.$ac_objext"
15984 # Insert the option either (1) after the last *FLAGS variable, or
15985 # (2) before a word containing "conftest.", or (3) at the end.
15986 # Note that $ac_compile itself does not contain backslashes and begins
15987 # with a dollar sign (not a hyphen), so the echo should work correctly.
15988 lt_compile=`echo "$ac_compile" | $SED \
15989 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15990 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15991 -e 's:$: $lt_compiler_flag:'`
15992 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15993 (eval "$lt_compile" 2>out/conftest.err)
15995 cat out/conftest.err >&5
15996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15997 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15999 # The compiler can only warn and ignore the option if not recognized
16000 # So say no if there are warnings
16001 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16002 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16003 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16004 lt_cv_prog_compiler_c_o_CXX=yes
16009 # SGI C++ compiler will create directory out/ii_files/ for
16010 # template instantiation
16011 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16012 $RM out/* && rmdir out
16018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16019 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16024 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16025 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16026 $as_echo_n "(cached) " >&6
16028 lt_cv_prog_compiler_c_o_CXX=no
16029 $RM -r conftest 2>/dev/null
16033 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16035 lt_compiler_flag="-o out/conftest2.$ac_objext"
16036 # Insert the option either (1) after the last *FLAGS variable, or
16037 # (2) before a word containing "conftest.", or (3) at the end.
16038 # Note that $ac_compile itself does not contain backslashes and begins
16039 # with a dollar sign (not a hyphen), so the echo should work correctly.
16040 lt_compile=`echo "$ac_compile" | $SED \
16041 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16042 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16043 -e 's:$: $lt_compiler_flag:'`
16044 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16045 (eval "$lt_compile" 2>out/conftest.err)
16047 cat out/conftest.err >&5
16048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16049 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16051 # The compiler can only warn and ignore the option if not recognized
16052 # So say no if there are warnings
16053 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16054 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16055 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16056 lt_cv_prog_compiler_c_o_CXX=yes
16061 # SGI C++ compiler will create directory out/ii_files/ for
16062 # template instantiation
16063 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16064 $RM out/* && rmdir out
16070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16071 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16076 hard_links="nottested"
16077 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16078 # do not overwrite the value of need_locks provided by the user
16079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16080 $as_echo_n "checking if we can lock with hard links... " >&6; }
16083 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16085 ln conftest.a conftest.b 2>&5 || hard_links=no
16086 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16088 $as_echo "$hard_links" >&6; }
16089 if test "$hard_links" = no; then
16090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16091 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16101 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16103 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16104 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16107 # If we're using GNU nm, then we don't want the "-C" option.
16108 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16109 # Also, AIX nm treats weak defined symbols like other global defined
16110 # symbols, whereas GNU nm marks them as "W".
16111 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16112 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
16114 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'
16118 export_symbols_cmds_CXX="$ltdll_cmds"
16120 cygwin* | mingw* | cegcc*)
16121 case $cc_basename in
16123 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16126 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
16127 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16132 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16137 $as_echo "$ld_shlibs_CXX" >&6; }
16138 test "$ld_shlibs_CXX" = no && can_build_shared=no
16140 with_gnu_ld_CXX=$with_gnu_ld
16148 # Do we need to explicitly link libc?
16150 case "x$archive_cmds_need_lc_CXX" in
16152 # Assume -lc should be added
16153 archive_cmds_need_lc_CXX=yes
16155 if test "$enable_shared" = yes && test "$GCC" = yes; then
16156 case $archive_cmds_CXX in
16158 # FIXME: we may have to deal with multi-command sequences.
16161 # Test whether the compiler implicitly links with -lc since on some
16162 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16163 # to ld, don't add -lc before -lgcc.
16164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16165 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16166 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
16167 $as_echo_n "(cached) " >&6
16170 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16172 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16173 (eval $ac_compile) 2>&5
16175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16176 test $ac_status = 0; } 2>conftest.err; then
16179 libobjs=conftest.$ac_objext
16181 wl=$lt_prog_compiler_wl_CXX
16182 pic_flag=$lt_prog_compiler_pic_CXX
16188 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16189 allow_undefined_flag_CXX=
16190 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16191 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16194 test $ac_status = 0; }
16196 lt_cv_archive_cmds_need_lc_CXX=no
16198 lt_cv_archive_cmds_need_lc_CXX=yes
16200 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16202 cat conftest.err 1>&5
16207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16208 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16209 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
16277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16278 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16280 library_names_spec=
16281 libname_spec='lib$name'
16285 postuninstall_cmds=
16289 shlibpath_overrides_runpath=unknown
16291 dynamic_linker="$host_os ld.so"
16292 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16293 need_lib_prefix=unknown
16294 hardcode_into_libs=no
16296 # when you set need_version to no, make sure it does not cause -set_version
16297 # flags to be left without arguments
16298 need_version=unknown
16302 version_type=linux # correct to gnu/linux during the next big refactor
16303 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16304 shlibpath_var=LIBPATH
16306 # AIX 3 has no versioning support, so we append a major version to the name.
16307 soname_spec='${libname}${release}${shared_ext}$major'
16311 version_type=linux # correct to gnu/linux during the next big refactor
16314 hardcode_into_libs=yes
16315 if test "$host_cpu" = ia64; then
16316 # AIX 5 supports IA64
16317 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16318 shlibpath_var=LD_LIBRARY_PATH
16320 # With GCC up to 2.95.x, collect2 would create an import file
16321 # for dependence libraries. The import file would start with
16322 # the line `#! .'. This would cause the generated library to
16323 # depend on `.', always an invalid library. This was fixed in
16324 # development snapshots of GCC prior to 3.0.
16326 aix4 | aix4.[01] | aix4.[01].*)
16327 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16329 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16332 can_build_shared=no
16336 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16337 # soname into executable. Probably we can add versioning support to
16338 # collect2, so additional links can be useful in future.
16339 if test "$aix_use_runtimelinking" = yes; then
16340 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16341 # instead of lib<name>.a to let people know that these are not
16342 # typical AIX shared libraries.
16343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16345 # We preserve .a as extension for shared libraries through AIX4.2
16346 # and later when we are not doing run time linking.
16347 library_names_spec='${libname}${release}.a $libname.a'
16348 soname_spec='${libname}${release}${shared_ext}$major'
16350 shlibpath_var=LIBPATH
16357 # Since July 2007 AmigaOS4 officially supports .so libraries.
16358 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16362 library_names_spec='$libname.ixlibrary $libname.a'
16363 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16364 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
16370 library_names_spec='${libname}${shared_ext}'
16371 dynamic_linker="$host_os ld.so"
16372 shlibpath_var=LIBRARY_PATH
16376 version_type=linux # correct to gnu/linux during the next big refactor
16378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16379 soname_spec='${libname}${release}${shared_ext}$major'
16380 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16381 shlibpath_var=LD_LIBRARY_PATH
16382 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16383 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16384 # the default ld.so.conf also contains /usr/contrib/lib and
16385 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16386 # libtool to hard-code these into programs
16389 cygwin* | mingw* | pw32* | cegcc*)
16390 version_type=windows
16395 case $GCC,$cc_basename in
16398 library_names_spec='$libname.dll.a'
16399 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16400 postinstall_cmds='base_file=`basename \${file}`~
16401 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16402 dldir=$destdir/`dirname \$dlpath`~
16403 test -d \$dldir || mkdir -p \$dldir~
16404 $install_prog $dir/$dlname \$dldir/$dlname~
16405 chmod a+x \$dldir/$dlname~
16406 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16407 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16409 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16410 dlpath=$dir/\$dldll~
16412 shlibpath_overrides_runpath=yes
16416 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16417 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16421 # MinGW DLLs use traditional 'lib' prefix
16422 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16425 # pw32 DLLs use 'pw' prefix rather than 'lib'
16426 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16429 dynamic_linker='Win32 ld.exe'
16434 libname_spec='$name'
16435 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16436 library_names_spec='${libname}.dll.lib'
16440 sys_lib_search_path_spec=
16443 for lt_path in $LIB
16446 # Let DOS variable expansion print the short 8.3 style file name.
16447 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16448 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16451 # Convert to MSYS style.
16452 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16455 # Convert to unix form, then to dos form, then back to unix form
16456 # but this time dos style (no spaces!) so that the unix form looks
16457 # like /cygdrive/c/PROGRA~1:/cygdr...
16458 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16459 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16460 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16463 sys_lib_search_path_spec="$LIB"
16464 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16465 # It is most probably a Windows format PATH.
16466 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16468 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16470 # FIXME: find the short name or the path components, as spaces are
16471 # common. (e.g. "Program Files" -> "PROGRA~1")
16475 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16476 postinstall_cmds='base_file=`basename \${file}`~
16477 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16478 dldir=$destdir/`dirname \$dlpath`~
16479 test -d \$dldir || mkdir -p \$dldir~
16480 $install_prog $dir/$dlname \$dldir/$dlname'
16481 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16482 dlpath=$dir/\$dldll~
16484 shlibpath_overrides_runpath=yes
16485 dynamic_linker='Win32 link.exe'
16489 # Assume MSVC wrapper
16490 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16491 dynamic_linker='Win32 ld.exe'
16494 # FIXME: first we should search . and the directory the executable is in
16498 darwin* | rhapsody*)
16499 dynamic_linker="$host_os dyld"
16500 version_type=darwin
16503 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16504 soname_spec='${libname}${release}${major}$shared_ext'
16505 shlibpath_overrides_runpath=yes
16506 shlibpath_var=DYLD_LIBRARY_PATH
16507 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16509 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16513 version_type=linux # correct to gnu/linux during the next big refactor
16516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16517 soname_spec='${libname}${release}${shared_ext}$major'
16518 shlibpath_var=LD_LIBRARY_PATH
16521 freebsd* | dragonfly*)
16522 # DragonFly does not have aout. When/if they implement a new
16523 # versioning mechanism, adjust this.
16524 if test -x /usr/bin/objformat; then
16525 objformat=`/usr/bin/objformat`
16528 freebsd[23].*) objformat=aout ;;
16529 *) objformat=elf ;;
16532 version_type=freebsd-$objformat
16533 case $version_type in
16535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16540 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16544 shlibpath_var=LD_LIBRARY_PATH
16547 shlibpath_overrides_runpath=yes
16549 freebsd3.[01]* | freebsdelf3.[01]*)
16550 shlibpath_overrides_runpath=yes
16551 hardcode_into_libs=yes
16553 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16554 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16555 shlibpath_overrides_runpath=no
16556 hardcode_into_libs=yes
16558 *) # from 4.6 on, and DragonFly
16559 shlibpath_overrides_runpath=yes
16560 hardcode_into_libs=yes
16566 version_type=linux # correct to gnu/linux during the next big refactor
16569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16570 soname_spec='${libname}${release}${shared_ext}$major'
16571 shlibpath_var=LD_LIBRARY_PATH
16572 shlibpath_overrides_runpath=no
16573 hardcode_into_libs=yes
16577 version_type=linux # correct to gnu/linux during the next big refactor
16580 dynamic_linker="$host_os runtime_loader"
16581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16582 soname_spec='${libname}${release}${shared_ext}$major'
16583 shlibpath_var=LIBRARY_PATH
16584 shlibpath_overrides_runpath=yes
16585 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16586 hardcode_into_libs=yes
16589 hpux9* | hpux10* | hpux11*)
16590 # Give a soname corresponding to the major version so that dld.sl refuses to
16591 # link against other versions.
16598 hardcode_into_libs=yes
16599 dynamic_linker="$host_os dld.so"
16600 shlibpath_var=LD_LIBRARY_PATH
16601 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16603 soname_spec='${libname}${release}${shared_ext}$major'
16604 if test "X$HPUX_IA64_MODE" = X32; then
16605 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16607 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16609 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16613 hardcode_into_libs=yes
16614 dynamic_linker="$host_os dld.sl"
16615 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16616 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16618 soname_spec='${libname}${release}${shared_ext}$major'
16619 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16620 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16624 dynamic_linker="$host_os dld.sl"
16625 shlibpath_var=SHLIB_PATH
16626 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16628 soname_spec='${libname}${release}${shared_ext}$major'
16631 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16632 postinstall_cmds='chmod 555 $lib'
16633 # or fails outright, so override atomically:
16634 install_override_mode=555
16638 version_type=linux # correct to gnu/linux during the next big refactor
16641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16642 soname_spec='${libname}${release}${shared_ext}$major'
16643 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16644 shlibpath_var=LD_LIBRARY_PATH
16645 shlibpath_overrides_runpath=no
16646 hardcode_into_libs=yes
16649 irix5* | irix6* | nonstopux*)
16651 nonstopux*) version_type=nonstopux ;;
16653 if test "$lt_cv_prog_gnu_ld" = yes; then
16654 version_type=linux # correct to gnu/linux during the next big refactor
16661 soname_spec='${libname}${release}${shared_ext}$major'
16662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16664 irix5* | nonstopux*)
16665 libsuff= shlibsuff=
16668 case $LD in # libtool.m4 will add one of these switches to LD
16669 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16670 libsuff= shlibsuff= libmagic=32-bit;;
16671 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16672 libsuff=32 shlibsuff=N32 libmagic=N32;;
16673 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16674 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16675 *) libsuff= shlibsuff= libmagic=never-match;;
16679 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16680 shlibpath_overrides_runpath=no
16681 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16682 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16683 hardcode_into_libs=yes
16686 # No shared lib support for Linux oldld, aout, or coff.
16687 linux*oldld* | linux*aout* | linux*coff*)
16691 # This must be glibc/ELF.
16692 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16693 version_type=linux # correct to gnu/linux during the next big refactor
16696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16697 soname_spec='${libname}${release}${shared_ext}$major'
16698 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16699 shlibpath_var=LD_LIBRARY_PATH
16700 shlibpath_overrides_runpath=no
16702 # Some binutils ld are patched to set DT_RUNPATH
16703 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16704 $as_echo_n "(cached) " >&6
16706 lt_cv_shlibpath_overrides_runpath=no
16707 save_LDFLAGS=$LDFLAGS
16708 save_libdir=$libdir
16709 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16710 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16712 /* end confdefs.h. */
16722 if ac_fn_cxx_try_link "$LINENO"; then :
16723 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16724 lt_cv_shlibpath_overrides_runpath=yes
16727 rm -f core conftest.err conftest.$ac_objext \
16728 conftest$ac_exeext conftest.$ac_ext
16729 LDFLAGS=$save_LDFLAGS
16730 libdir=$save_libdir
16734 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16736 # This implies no fast_install, which is unacceptable.
16737 # Some rework will be needed to allow for fast_install
16738 # before this can be enabled.
16739 hardcode_into_libs=yes
16741 # Add ABI-specific directories to the system library path.
16742 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16744 # Append ld.so.conf contents to the search path
16745 if test -f /etc/ld.so.conf; then
16746 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;s/"//g;/^$/d' | tr '\n' ' '`
16747 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16751 # We used to test for /lib/ld.so.1 and disable shared libraries on
16752 # powerpc, because MkLinux only supported shared libraries with the
16753 # GNU dynamic linker. Since this was broken with cross compilers,
16754 # most powerpc-linux boxes support dynamic linking these days and
16755 # people can always --disable-shared, the test was removed, and we
16756 # assume the GNU/Linux dynamic linker is in use.
16757 dynamic_linker='GNU/Linux ld.so'
16764 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16766 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16767 dynamic_linker='NetBSD (a.out) ld.so'
16769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16770 soname_spec='${libname}${release}${shared_ext}$major'
16771 dynamic_linker='NetBSD ld.elf_so'
16773 shlibpath_var=LD_LIBRARY_PATH
16774 shlibpath_overrides_runpath=yes
16775 hardcode_into_libs=yes
16779 version_type=linux # correct to gnu/linux during the next big refactor
16780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16781 shlibpath_var=LD_LIBRARY_PATH
16782 shlibpath_overrides_runpath=yes
16789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16790 soname_spec='${libname}${release}${shared_ext}$major'
16791 shlibpath_var=LD_LIBRARY_PATH
16792 shlibpath_overrides_runpath=no
16793 hardcode_into_libs=yes
16794 dynamic_linker='ldqnx.so'
16799 sys_lib_dlsearch_path_spec="/usr/lib"
16801 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16803 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16804 *) need_version=no ;;
16806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16807 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16808 shlibpath_var=LD_LIBRARY_PATH
16809 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16811 openbsd2.[89] | openbsd2.[89].*)
16812 shlibpath_overrides_runpath=no
16815 shlibpath_overrides_runpath=yes
16819 shlibpath_overrides_runpath=yes
16824 libname_spec='$name'
16827 library_names_spec='$libname${shared_ext} $libname.a'
16828 dynamic_linker='OS/2 ld.exe'
16829 shlibpath_var=LIBPATH
16832 osf3* | osf4* | osf5*)
16836 soname_spec='${libname}${release}${shared_ext}$major'
16837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16838 shlibpath_var=LD_LIBRARY_PATH
16839 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16840 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16848 version_type=linux # correct to gnu/linux during the next big refactor
16851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16852 soname_spec='${libname}${release}${shared_ext}$major'
16853 shlibpath_var=LD_LIBRARY_PATH
16854 shlibpath_overrides_runpath=yes
16855 hardcode_into_libs=yes
16856 # ldd complains unless libraries are executable
16857 postinstall_cmds='chmod +x $lib'
16862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16863 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16864 shlibpath_var=LD_LIBRARY_PATH
16865 shlibpath_overrides_runpath=yes
16866 if test "$with_gnu_ld" = yes; then
16873 version_type=linux # correct to gnu/linux during the next big refactor
16874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16875 soname_spec='${libname}${release}${shared_ext}$major'
16876 shlibpath_var=LD_LIBRARY_PATH
16877 case $host_vendor in
16879 shlibpath_overrides_runpath=no
16881 runpath_var=LD_RUN_PATH
16889 shlibpath_overrides_runpath=no
16890 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16896 if test -d /usr/nec ;then
16897 version_type=linux # correct to gnu/linux during the next big refactor
16898 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16899 soname_spec='$libname${shared_ext}.$major'
16900 shlibpath_var=LD_LIBRARY_PATH
16904 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16905 version_type=freebsd-elf
16908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16909 soname_spec='${libname}${release}${shared_ext}$major'
16910 shlibpath_var=LD_LIBRARY_PATH
16911 shlibpath_overrides_runpath=yes
16912 hardcode_into_libs=yes
16913 if test "$with_gnu_ld" = yes; then
16914 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16916 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16919 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16923 sys_lib_dlsearch_path_spec='/usr/lib'
16927 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16928 version_type=linux # correct to gnu/linux during the next big refactor
16931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16932 shlibpath_var=LD_LIBRARY_PATH
16933 shlibpath_overrides_runpath=no
16934 hardcode_into_libs=yes
16938 version_type=linux # correct to gnu/linux during the next big refactor
16939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16940 soname_spec='${libname}${release}${shared_ext}$major'
16941 shlibpath_var=LD_LIBRARY_PATH
16948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16949 $as_echo "$dynamic_linker" >&6; }
16950 test "$dynamic_linker" = no && can_build_shared=no
16952 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16953 if test "$GCC" = yes; then
16954 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16957 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16958 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16960 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16961 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17002 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17003 hardcode_action_CXX=
17004 if test -n "$hardcode_libdir_flag_spec_CXX" ||
17005 test -n "$runpath_var_CXX" ||
17006 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17008 # We can hardcode non-existent directories.
17009 if test "$hardcode_direct_CXX" != no &&
17010 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17011 # have to relink, otherwise we might link with an installed library
17012 # when we should be linking with a yet-to-be-installed one
17013 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17014 test "$hardcode_minus_L_CXX" != no; then
17015 # Linking always hardcodes the temporary library directory.
17016 hardcode_action_CXX=relink
17018 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17019 hardcode_action_CXX=immediate
17022 # We cannot hardcode anything, or else we can only hardcode existing
17024 hardcode_action_CXX=unsupported
17026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17027 $as_echo "$hardcode_action_CXX" >&6; }
17029 if test "$hardcode_action_CXX" = relink ||
17030 test "$inherit_rpath_CXX" = yes; then
17031 # Fast installation is not supported
17032 enable_fast_install=no
17033 elif test "$shlibpath_overrides_runpath" = yes ||
17034 test "$enable_shared" = no; then
17035 # Fast installation is not necessary
17036 enable_fast_install=needless
17045 fi # test -n "$compiler"
17048 CFLAGS=$lt_save_CFLAGS
17052 with_gnu_ld=$lt_save_with_gnu_ld
17053 lt_cv_path_LDCXX=$lt_cv_path_LD
17054 lt_cv_path_LD=$lt_save_path_LD
17055 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17056 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17057 fi # test "$_lt_caught_CXX_error" != yes
17060 ac_cpp='$CPP $CPPFLAGS'
17061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17079 ac_config_commands="$ac_config_commands libtool"
17084 # Only expand once:
17087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
17088 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
17089 if ${ac_cv_path_SED+:} false; then :
17090 $as_echo_n "(cached) " >&6
17092 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
17093 for ac_i in 1 2 3 4 5 6 7; do
17094 ac_script="$ac_script$as_nl$ac_script"
17096 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
17097 { ac_script=; unset ac_script;}
17098 if test -z "$SED"; then
17099 ac_path_SED_found=false
17100 # Loop through the user's path and test for each of PROGNAME-LIST
17101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17102 for as_dir in $PATH
17105 test -z "$as_dir" && as_dir=.
17106 for ac_prog in sed gsed; do
17107 for ac_exec_ext in '' $ac_executable_extensions; do
17108 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
17109 as_fn_executable_p "$ac_path_SED" || continue
17110 # Check for GNU ac_path_SED and select it if it is found.
17111 # Check for GNU $ac_path_SED
17112 case `"$ac_path_SED" --version 2>&1` in
17114 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
17117 $as_echo_n 0123456789 >"conftest.in"
17120 cat "conftest.in" "conftest.in" >"conftest.tmp"
17121 mv "conftest.tmp" "conftest.in"
17122 cp "conftest.in" "conftest.nl"
17123 $as_echo '' >> "conftest.nl"
17124 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
17125 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
17126 as_fn_arith $ac_count + 1 && ac_count=$as_val
17127 if test $ac_count -gt ${ac_path_SED_max-0}; then
17128 # Best one so far, save it but keep looking for a better one
17129 ac_cv_path_SED="$ac_path_SED"
17130 ac_path_SED_max=$ac_count
17132 # 10*(2^10) chars as input seems more than enough
17133 test $ac_count -gt 10 && break
17135 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
17138 $ac_path_SED_found && break 3
17143 if test -z "$ac_cv_path_SED"; then
17144 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
17147 ac_cv_path_SED=$SED
17151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
17152 $as_echo "$ac_cv_path_SED" >&6; }
17153 SED="$ac_cv_path_SED"
17165 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
17166 if test -n "$ac_tool_prefix"; then
17167 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
17168 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
17169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17170 $as_echo_n "checking for $ac_word... " >&6; }
17171 if ${ac_cv_path_PKG_CONFIG+:} false; then :
17172 $as_echo_n "(cached) " >&6
17174 case $PKG_CONFIG in
17176 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17180 for as_dir in $PATH
17183 test -z "$as_dir" && as_dir=.
17184 for ac_exec_ext in '' $ac_executable_extensions; do
17185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17186 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17197 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17198 if test -n "$PKG_CONFIG"; then
17199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17200 $as_echo "$PKG_CONFIG" >&6; }
17202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17203 $as_echo "no" >&6; }
17208 if test -z "$ac_cv_path_PKG_CONFIG"; then
17209 ac_pt_PKG_CONFIG=$PKG_CONFIG
17210 # Extract the first word of "pkg-config", so it can be a program name with args.
17211 set dummy pkg-config; ac_word=$2
17212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17213 $as_echo_n "checking for $ac_word... " >&6; }
17214 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
17215 $as_echo_n "(cached) " >&6
17217 case $ac_pt_PKG_CONFIG in
17219 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
17222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17223 for as_dir in $PATH
17226 test -z "$as_dir" && as_dir=.
17227 for ac_exec_ext in '' $ac_executable_extensions; do
17228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17229 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17240 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
17241 if test -n "$ac_pt_PKG_CONFIG"; then
17242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
17243 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
17245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17246 $as_echo "no" >&6; }
17249 if test "x$ac_pt_PKG_CONFIG" = x; then
17252 case $cross_compiling:$ac_tool_warned in
17254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17255 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17256 ac_tool_warned=yes ;;
17258 PKG_CONFIG=$ac_pt_PKG_CONFIG
17261 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
17265 if test -n "$PKG_CONFIG"; then
17266 _pkg_min_version=0.9.0
17267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
17268 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
17269 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
17270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17271 $as_echo "yes" >&6; }
17273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17274 $as_echo "no" >&6; }
17280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IBUS" >&5
17281 $as_echo_n "checking for IBUS... " >&6; }
17283 if test -n "$IBUS_CFLAGS"; then
17284 pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
17285 elif test -n "$PKG_CONFIG"; then
17286 if test -n "$PKG_CONFIG" && \
17287 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
17290 ($PKG_CONFIG --exists --print-errors "
17294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17295 test $ac_status = 0; }; then
17296 pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "
17299 test "x$?" != "x0" && pkg_failed=yes
17306 if test -n "$IBUS_LIBS"; then
17307 pkg_cv_IBUS_LIBS="$IBUS_LIBS"
17308 elif test -n "$PKG_CONFIG"; then
17309 if test -n "$PKG_CONFIG" && \
17310 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
17313 ($PKG_CONFIG --exists --print-errors "
17317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17318 test $ac_status = 0; }; then
17319 pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "
17322 test "x$?" != "x0" && pkg_failed=yes
17332 if test $pkg_failed = yes; then
17333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17334 $as_echo "no" >&6; }
17336 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17337 _pkg_short_errors_supported=yes
17339 _pkg_short_errors_supported=no
17341 if test $_pkg_short_errors_supported = yes; then
17342 IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
17346 IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
17350 # Put the nasty error message in config.log where it belongs
17351 echo "$IBUS_PKG_ERRORS" >&5
17353 as_fn_error $? "Package requirements (
17359 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17360 installed software in a non-standard prefix.
17362 Alternatively, you may set the environment variables IBUS_CFLAGS
17363 and IBUS_LIBS to avoid the need to call pkg-config.
17364 See the pkg-config man page for more details." "$LINENO" 5
17365 elif test $pkg_failed = untried; then
17366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17367 $as_echo "no" >&6; }
17368 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17369 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17370 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17371 is in your PATH or set the PKG_CONFIG environment variable to the full
17372 path to pkg-config.
17374 Alternatively, you may set the environment variables IBUS_CFLAGS
17375 and IBUS_LIBS to avoid the need to call pkg-config.
17376 See the pkg-config man page for more details.
17378 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17379 See \`config.log' for more details" "$LINENO" 5; }
17381 IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
17382 IBUS_LIBS=$pkg_cv_IBUS_LIBS
17383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17384 $as_echo "yes" >&6; }
17391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE" >&5
17392 $as_echo_n "checking for SQLITE... " >&6; }
17394 if test -n "$SQLITE_CFLAGS"; then
17395 pkg_cv_SQLITE_CFLAGS="$SQLITE_CFLAGS"
17396 elif test -n "$PKG_CONFIG"; then
17397 if test -n "$PKG_CONFIG" && \
17398 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
17401 ($PKG_CONFIG --exists --print-errors "
17405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17406 test $ac_status = 0; }; then
17407 pkg_cv_SQLITE_CFLAGS=`$PKG_CONFIG --cflags "
17410 test "x$?" != "x0" && pkg_failed=yes
17417 if test -n "$SQLITE_LIBS"; then
17418 pkg_cv_SQLITE_LIBS="$SQLITE_LIBS"
17419 elif test -n "$PKG_CONFIG"; then
17420 if test -n "$PKG_CONFIG" && \
17421 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
17424 ($PKG_CONFIG --exists --print-errors "
17428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17429 test $ac_status = 0; }; then
17430 pkg_cv_SQLITE_LIBS=`$PKG_CONFIG --libs "
17433 test "x$?" != "x0" && pkg_failed=yes
17443 if test $pkg_failed = yes; then
17444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17445 $as_echo "no" >&6; }
17447 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17448 _pkg_short_errors_supported=yes
17450 _pkg_short_errors_supported=no
17452 if test $_pkg_short_errors_supported = yes; then
17453 SQLITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
17457 SQLITE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
17461 # Put the nasty error message in config.log where it belongs
17462 echo "$SQLITE_PKG_ERRORS" >&5
17464 as_fn_error $? "Package requirements (
17470 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17471 installed software in a non-standard prefix.
17473 Alternatively, you may set the environment variables SQLITE_CFLAGS
17474 and SQLITE_LIBS to avoid the need to call pkg-config.
17475 See the pkg-config man page for more details." "$LINENO" 5
17476 elif test $pkg_failed = untried; then
17477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17478 $as_echo "no" >&6; }
17479 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17480 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17481 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17482 is in your PATH or set the PKG_CONFIG environment variable to the full
17483 path to pkg-config.
17485 Alternatively, you may set the environment variables SQLITE_CFLAGS
17486 and SQLITE_LIBS to avoid the need to call pkg-config.
17487 See the pkg-config man page for more details.
17489 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17490 See \`config.log' for more details" "$LINENO" 5; }
17492 SQLITE_CFLAGS=$pkg_cv_SQLITE_CFLAGS
17493 SQLITE_LIBS=$pkg_cv_SQLITE_LIBS
17494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17495 $as_echo "yes" >&6; }
17498 # Extract the first word of "sqlite3", so it can be a program name with args.
17499 set dummy sqlite3; ac_word=$2
17500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17501 $as_echo_n "checking for $ac_word... " >&6; }
17502 if ${ac_cv_path_SQLITE3+:} false; then :
17503 $as_echo_n "(cached) " >&6
17507 ac_cv_path_SQLITE3="$SQLITE3" # Let the user override the test with a path.
17510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17511 for as_dir in $PATH
17514 test -z "$as_dir" && as_dir=.
17515 for ac_exec_ext in '' $ac_executable_extensions; do
17516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17517 ac_cv_path_SQLITE3="$as_dir/$ac_word$ac_exec_ext"
17518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17528 SQLITE3=$ac_cv_path_SQLITE3
17529 if test -n "$SQLITE3"; then
17530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SQLITE3" >&5
17531 $as_echo "$SQLITE3" >&6; }
17533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17534 $as_echo "no" >&6; }
17541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPINYIN" >&5
17542 $as_echo_n "checking for LIBPINYIN... " >&6; }
17544 if test -n "$LIBPINYIN_CFLAGS"; then
17545 pkg_cv_LIBPINYIN_CFLAGS="$LIBPINYIN_CFLAGS"
17546 elif test -n "$PKG_CONFIG"; then
17547 if test -n "$PKG_CONFIG" && \
17548 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
17549 libpinyin >= 0.9.91
17551 ($PKG_CONFIG --exists --print-errors "
17552 libpinyin >= 0.9.91
17555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17556 test $ac_status = 0; }; then
17557 pkg_cv_LIBPINYIN_CFLAGS=`$PKG_CONFIG --cflags "
17558 libpinyin >= 0.9.91
17560 test "x$?" != "x0" && pkg_failed=yes
17567 if test -n "$LIBPINYIN_LIBS"; then
17568 pkg_cv_LIBPINYIN_LIBS="$LIBPINYIN_LIBS"
17569 elif test -n "$PKG_CONFIG"; then
17570 if test -n "$PKG_CONFIG" && \
17571 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
17572 libpinyin >= 0.9.91
17574 ($PKG_CONFIG --exists --print-errors "
17575 libpinyin >= 0.9.91
17578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17579 test $ac_status = 0; }; then
17580 pkg_cv_LIBPINYIN_LIBS=`$PKG_CONFIG --libs "
17581 libpinyin >= 0.9.91
17583 test "x$?" != "x0" && pkg_failed=yes
17593 if test $pkg_failed = yes; then
17594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17595 $as_echo "no" >&6; }
17597 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17598 _pkg_short_errors_supported=yes
17600 _pkg_short_errors_supported=no
17602 if test $_pkg_short_errors_supported = yes; then
17603 LIBPINYIN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
17604 libpinyin >= 0.9.91
17607 LIBPINYIN_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
17608 libpinyin >= 0.9.91
17611 # Put the nasty error message in config.log where it belongs
17612 echo "$LIBPINYIN_PKG_ERRORS" >&5
17614 as_fn_error $? "Package requirements (
17615 libpinyin >= 0.9.91
17618 $LIBPINYIN_PKG_ERRORS
17620 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17621 installed software in a non-standard prefix.
17623 Alternatively, you may set the environment variables LIBPINYIN_CFLAGS
17624 and LIBPINYIN_LIBS to avoid the need to call pkg-config.
17625 See the pkg-config man page for more details." "$LINENO" 5
17626 elif test $pkg_failed = untried; then
17627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17628 $as_echo "no" >&6; }
17629 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17630 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17631 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17632 is in your PATH or set the PKG_CONFIG environment variable to the full
17633 path to pkg-config.
17635 Alternatively, you may set the environment variables LIBPINYIN_CFLAGS
17636 and LIBPINYIN_LIBS to avoid the need to call pkg-config.
17637 See the pkg-config man page for more details.
17639 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17640 See \`config.log' for more details" "$LINENO" 5; }
17642 LIBPINYIN_CFLAGS=$pkg_cv_LIBPINYIN_CFLAGS
17643 LIBPINYIN_LIBS=$pkg_cv_LIBPINYIN_LIBS
17644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17645 $as_echo "yes" >&6; }
17646 enable_libpinyin=yes
17649 if test x"$enable_libpinyin" = x"yes"; then
17650 IBUS_BUILD_LIBPINYIN_TRUE=
17651 IBUS_BUILD_LIBPINYIN_FALSE='#'
17653 IBUS_BUILD_LIBPINYIN_TRUE='#'
17654 IBUS_BUILD_LIBPINYIN_FALSE=
17658 LIBPINYIN_DATADIR=`$PKG_CONFIG --variable=pkgdatadir libpinyin`
17663 for ac_func in uuid_create
17665 ac_fn_c_check_func "$LINENO" "uuid_create" "ac_cv_func_uuid_create"
17666 if test "x$ac_cv_func_uuid_create" = xyes; then :
17667 cat >>confdefs.h <<_ACEOF
17668 #define HAVE_UUID_CREATE 1
17675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUUID" >&5
17676 $as_echo_n "checking for LIBUUID... " >&6; }
17678 if test -n "$LIBUUID_CFLAGS"; then
17679 pkg_cv_LIBUUID_CFLAGS="$LIBUUID_CFLAGS"
17680 elif test -n "$PKG_CONFIG"; then
17681 if test -n "$PKG_CONFIG" && \
17682 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid\""; } >&5
17683 ($PKG_CONFIG --exists --print-errors "uuid") 2>&5
17685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17686 test $ac_status = 0; }; then
17687 pkg_cv_LIBUUID_CFLAGS=`$PKG_CONFIG --cflags "uuid" 2>/dev/null`
17688 test "x$?" != "x0" && pkg_failed=yes
17695 if test -n "$LIBUUID_LIBS"; then
17696 pkg_cv_LIBUUID_LIBS="$LIBUUID_LIBS"
17697 elif test -n "$PKG_CONFIG"; then
17698 if test -n "$PKG_CONFIG" && \
17699 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid\""; } >&5
17700 ($PKG_CONFIG --exists --print-errors "uuid") 2>&5
17702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17703 test $ac_status = 0; }; then
17704 pkg_cv_LIBUUID_LIBS=`$PKG_CONFIG --libs "uuid" 2>/dev/null`
17705 test "x$?" != "x0" && pkg_failed=yes
17715 if test $pkg_failed = yes; then
17716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17717 $as_echo "no" >&6; }
17719 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17720 _pkg_short_errors_supported=yes
17722 _pkg_short_errors_supported=no
17724 if test $_pkg_short_errors_supported = yes; then
17725 LIBUUID_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "uuid" 2>&1`
17727 LIBUUID_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "uuid" 2>&1`
17729 # Put the nasty error message in config.log where it belongs
17730 echo "$LIBUUID_PKG_ERRORS" >&5
17733 # uuid.pc does not exist
17734 uuid_old_LIBS=$LIBS
17735 for ac_header in uuid/uuid.h
17737 ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
17738 if test "x$ac_cv_header_uuid_uuid_h" = xyes; then :
17739 cat >>confdefs.h <<_ACEOF
17740 #define HAVE_UUID_UUID_H 1
17743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_generate" >&5
17744 $as_echo_n "checking for library containing uuid_generate... " >&6; }
17745 if ${ac_cv_search_uuid_generate+:} false; then :
17746 $as_echo_n "(cached) " >&6
17748 ac_func_search_save_LIBS=$LIBS
17749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17750 /* end confdefs.h. */
17752 /* Override any GCC internal prototype to avoid an error.
17753 Use char because int might match the return type of a GCC
17754 builtin and then its argument prototype would still apply. */
17758 char uuid_generate ();
17762 return uuid_generate ();
17767 for ac_lib in '' uuid; do
17768 if test -z "$ac_lib"; then
17769 ac_res="none required"
17772 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17774 if ac_fn_c_try_link "$LINENO"; then :
17775 ac_cv_search_uuid_generate=$ac_res
17777 rm -f core conftest.err conftest.$ac_objext \
17779 if ${ac_cv_search_uuid_generate+:} false; then :
17783 if ${ac_cv_search_uuid_generate+:} false; then :
17786 ac_cv_search_uuid_generate=no
17788 rm conftest.$ac_ext
17789 LIBS=$ac_func_search_save_LIBS
17791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_generate" >&5
17792 $as_echo "$ac_cv_search_uuid_generate" >&6; }
17793 ac_res=$ac_cv_search_uuid_generate
17794 if test "$ac_res" != no; then :
17795 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17797 test x"$ac_cv_search_uuid_generate" != x"none required" && LIBUUID_LIBS=$ac_cv_search_uuid_generate
17799 $as_echo "#define HAVE_LIBUUID 1" >>confdefs.h
17805 as_fn_error $? "Can not find uuid_create and uuid_generate in libc or libuuid" "$LINENO" 5
17812 as_fn_error $? "Can not find uuid_create and uuid_generate in libc or libuuid" "$LINENO" 5
17818 LIBS=$uuid_old_LIBS
17820 elif test $pkg_failed = untried; then
17821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17822 $as_echo "no" >&6; }
17824 # uuid.pc does not exist
17825 uuid_old_LIBS=$LIBS
17826 for ac_header in uuid/uuid.h
17828 ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
17829 if test "x$ac_cv_header_uuid_uuid_h" = xyes; then :
17830 cat >>confdefs.h <<_ACEOF
17831 #define HAVE_UUID_UUID_H 1
17834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_generate" >&5
17835 $as_echo_n "checking for library containing uuid_generate... " >&6; }
17836 if ${ac_cv_search_uuid_generate+:} false; then :
17837 $as_echo_n "(cached) " >&6
17839 ac_func_search_save_LIBS=$LIBS
17840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17841 /* end confdefs.h. */
17843 /* Override any GCC internal prototype to avoid an error.
17844 Use char because int might match the return type of a GCC
17845 builtin and then its argument prototype would still apply. */
17849 char uuid_generate ();
17853 return uuid_generate ();
17858 for ac_lib in '' uuid; do
17859 if test -z "$ac_lib"; then
17860 ac_res="none required"
17863 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17865 if ac_fn_c_try_link "$LINENO"; then :
17866 ac_cv_search_uuid_generate=$ac_res
17868 rm -f core conftest.err conftest.$ac_objext \
17870 if ${ac_cv_search_uuid_generate+:} false; then :
17874 if ${ac_cv_search_uuid_generate+:} false; then :
17877 ac_cv_search_uuid_generate=no
17879 rm conftest.$ac_ext
17880 LIBS=$ac_func_search_save_LIBS
17882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_generate" >&5
17883 $as_echo "$ac_cv_search_uuid_generate" >&6; }
17884 ac_res=$ac_cv_search_uuid_generate
17885 if test "$ac_res" != no; then :
17886 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17888 test x"$ac_cv_search_uuid_generate" != x"none required" && LIBUUID_LIBS=$ac_cv_search_uuid_generate
17890 $as_echo "#define HAVE_LIBUUID 1" >>confdefs.h
17896 as_fn_error $? "Can not find uuid_create and uuid_generate in libc or libuuid" "$LINENO" 5
17903 as_fn_error $? "Can not find uuid_create and uuid_generate in libc or libuuid" "$LINENO" 5
17909 LIBS=$uuid_old_LIBS
17912 LIBUUID_CFLAGS=$pkg_cv_LIBUUID_CFLAGS
17913 LIBUUID_LIBS=$pkg_cv_LIBUUID_LIBS
17914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17915 $as_echo "yes" >&6; }
17919 $as_echo "#define HAVE_LIBUUID 1" >>confdefs.h
17929 if test x"$HAVE_LIBUUID" = x"yes"; then
17931 HAVE_LIBUUID_FALSE='#'
17933 HAVE_LIBUUID_TRUE='#'
17934 HAVE_LIBUUID_FALSE=
17938 # check if ibus_config_get_values, which is available in ibus-1.3.99+ (git master)
17939 save_CFLAGS="$CFLAGS"
17941 CFLAGS="$CFLAGS $IBUS_CFLAGS"
17942 LIBS="$LIBS $IBUS_LIBS"
17943 for ac_func in ibus_config_get_values
17945 ac_fn_c_check_func "$LINENO" "ibus_config_get_values" "ac_cv_func_ibus_config_get_values"
17946 if test "x$ac_cv_func_ibus_config_get_values" = xyes; then :
17947 cat >>confdefs.h <<_ACEOF
17948 #define HAVE_IBUS_CONFIG_GET_VALUES 1
17954 CFLAGS="$save_CFLAGS"
17959 # Extract the first word of "env", so it can be a program name with args.
17960 set dummy env; ac_word=$2
17961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17962 $as_echo_n "checking for $ac_word... " >&6; }
17963 if ${ac_cv_path_ENV+:} false; then :
17964 $as_echo_n "(cached) " >&6
17968 ac_cv_path_ENV="$ENV" # Let the user override the test with a path.
17971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17972 for as_dir in $PATH
17975 test -z "$as_dir" && as_dir=.
17976 for ac_exec_ext in '' $ac_executable_extensions; do
17977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17978 ac_cv_path_ENV="$as_dir/$ac_word$ac_exec_ext"
17979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17989 ENV=$ac_cv_path_ENV
17990 if test -n "$ENV"; then
17991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENV" >&5
17992 $as_echo "$ENV" >&6; }
17994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17995 $as_echo "no" >&6; }
18008 if test -n "$PYTHON"; then
18009 # If the user set $PYTHON, use it and don't search something else.
18010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.5" >&5
18011 $as_echo_n "checking whether $PYTHON version is >= 2.5... " >&6; }
18013 # split strings by '.' and convert to numeric. Append some zeros
18014 # because we need at least 4 digits for the hex conversion.
18015 # map returns an iterator in Python 3.0 and a list in 2.x
18016 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
18018 # xrange is not present in Python 3.0 and range returns an iterator
18019 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
18020 sys.exit(sys.hexversion < minverhex)"
18021 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
18022 ($PYTHON -c "$prog") >&5 2>&5
18024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18025 (exit $ac_status); }; then :
18026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18027 $as_echo "yes" >&6; }
18029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18030 $as_echo "no" >&6; }
18031 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
18033 am_display_PYTHON=$PYTHON
18035 # Otherwise, try each interpreter until we find one that satisfies
18037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
18038 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
18039 if ${am_cv_pathless_PYTHON+:} false; then :
18040 $as_echo_n "(cached) " >&6
18043 for am_cv_pathless_PYTHON in python python2 python3 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
18044 test "$am_cv_pathless_PYTHON" = none && break
18046 # split strings by '.' and convert to numeric. Append some zeros
18047 # because we need at least 4 digits for the hex conversion.
18048 # map returns an iterator in Python 3.0 and a list in 2.x
18049 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
18051 # xrange is not present in Python 3.0 and range returns an iterator
18052 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
18053 sys.exit(sys.hexversion < minverhex)"
18054 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
18055 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
18057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18058 (exit $ac_status); }; then :
18063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
18064 $as_echo "$am_cv_pathless_PYTHON" >&6; }
18065 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
18066 if test "$am_cv_pathless_PYTHON" = none; then
18069 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
18070 set dummy $am_cv_pathless_PYTHON; ac_word=$2
18071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18072 $as_echo_n "checking for $ac_word... " >&6; }
18073 if ${ac_cv_path_PYTHON+:} false; then :
18074 $as_echo_n "(cached) " >&6
18078 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18082 for as_dir in $PATH
18085 test -z "$as_dir" && as_dir=.
18086 for ac_exec_ext in '' $ac_executable_extensions; do
18087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18088 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18099 PYTHON=$ac_cv_path_PYTHON
18100 if test -n "$PYTHON"; then
18101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
18102 $as_echo "$PYTHON" >&6; }
18104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18105 $as_echo "no" >&6; }
18110 am_display_PYTHON=$am_cv_pathless_PYTHON
18114 if test "$PYTHON" = :; then
18115 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
18119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
18120 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
18121 if ${am_cv_python_version+:} false; then :
18122 $as_echo_n "(cached) " >&6
18124 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
18126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
18127 $as_echo "$am_cv_python_version" >&6; }
18128 PYTHON_VERSION=$am_cv_python_version
18132 PYTHON_PREFIX='${prefix}'
18134 PYTHON_EXEC_PREFIX='${exec_prefix}'
18138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
18139 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
18140 if ${am_cv_python_platform+:} false; then :
18141 $as_echo_n "(cached) " >&6
18143 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
18145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
18146 $as_echo "$am_cv_python_platform" >&6; }
18147 PYTHON_PLATFORM=$am_cv_python_platform
18150 # Just factor out some code duplication.
18151 am_python_setup_sysconfig="\
18153 # Prefer sysconfig over distutils.sysconfig, for better compatibility
18154 # with python 3.x. See automake bug#10227.
18157 except ImportError:
18158 can_use_sysconfig = 0
18160 can_use_sysconfig = 1
18161 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
18162 # <https://github.com/pypa/virtualenv/issues/118>
18164 from platform import python_implementation
18165 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
18166 can_use_sysconfig = 0
18167 except ImportError:
18171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
18172 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
18173 if ${am_cv_python_pythondir+:} false; then :
18174 $as_echo_n "(cached) " >&6
18176 if test "x$prefix" = xNONE
18178 am_py_prefix=$ac_default_prefix
18180 am_py_prefix=$prefix
18182 am_cv_python_pythondir=`$PYTHON -c "
18183 $am_python_setup_sysconfig
18184 if can_use_sysconfig:
18185 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
18187 from distutils import sysconfig
18188 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
18189 sys.stdout.write(sitedir)"`
18190 case $am_cv_python_pythondir in
18192 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
18193 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
18196 case $am_py_prefix in
18199 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
18206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
18207 $as_echo "$am_cv_python_pythondir" >&6; }
18208 pythondir=$am_cv_python_pythondir
18212 pkgpythondir=\${pythondir}/$PACKAGE
18215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
18216 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
18217 if ${am_cv_python_pyexecdir+:} false; then :
18218 $as_echo_n "(cached) " >&6
18220 if test "x$exec_prefix" = xNONE
18222 am_py_exec_prefix=$am_py_prefix
18224 am_py_exec_prefix=$exec_prefix
18226 am_cv_python_pyexecdir=`$PYTHON -c "
18227 $am_python_setup_sysconfig
18228 if can_use_sysconfig:
18229 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
18231 from distutils import sysconfig
18232 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
18233 sys.stdout.write(sitedir)"`
18234 case $am_cv_python_pyexecdir in
18235 $am_py_exec_prefix*)
18236 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
18237 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
18240 case $am_py_exec_prefix in
18243 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
18250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
18251 $as_echo "$am_cv_python_pyexecdir" >&6; }
18252 pyexecdir=$am_cv_python_pyexecdir
18256 pkgpyexecdir=\${pyexecdir}/$PACKAGE
18265 # Check whether --enable-boost was given.
18266 if test "${enable_boost+set}" = set; then :
18267 enableval=$enable_boost; enable_boost=$enableval
18273 if test x"$enable_boost" = x"yes"; then
18275 echo "$as_me: this is boost.m4 serial 12" >&5
18276 boost_save_IFS=$IFS
18277 boost_version_req=1.39
18279 set x $boost_version_req 0 0 0
18280 IFS=$boost_save_IFS
18282 boost_version_req=`expr "$1" '*' 100000 + "$2" '*' 100 + "$3"`
18284 # Check whether --with-boost was given.
18285 if test "${with_boost+set}" = set; then :
18286 withval=$with_boost;
18288 # If BOOST_ROOT is set and the user has not provided a value to
18289 # --with-boost, then treat BOOST_ROOT as if it the user supplied it.
18290 if test x"$BOOST_ROOT" != x; then
18291 if test x"$with_boost" = x; then
18292 { $as_echo "$as_me:${as_lineno-$LINENO}: Detected BOOST_ROOT; continuing with --with-boost=$BOOST_ROOT" >&5
18293 $as_echo "$as_me: Detected BOOST_ROOT; continuing with --with-boost=$BOOST_ROOT" >&6;}
18294 with_boost=$BOOST_ROOT
18296 { $as_echo "$as_me:${as_lineno-$LINENO}: Detected BOOST_ROOT=$BOOST_ROOT, but overridden by --with-boost=$with_boost" >&5
18297 $as_echo "$as_me: Detected BOOST_ROOT=$BOOST_ROOT, but overridden by --with-boost=$with_boost" >&6;}
18300 DISTCHECK_CONFIGURE_FLAGS="$DISTCHECK_CONFIGURE_FLAGS '--with-boost=$with_boost'"
18302 boost_save_CPPFLAGS=$CPPFLAGS
18303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost headers version >= $boost_version_req" >&5
18304 $as_echo_n "checking for Boost headers version >= $boost_version_req... " >&6; }
18305 if ${boost_cv_inc_path+:} false; then :
18306 $as_echo_n "(cached) " >&6
18308 boost_cv_inc_path=no
18310 ac_cpp='$CXXCPP $CPPFLAGS'
18311 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18312 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18313 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18315 /* end confdefs.h. */
18316 #include <boost/version.hpp>
18317 #if !defined BOOST_VERSION
18318 # error BOOST_VERSION is not defined
18319 #elif BOOST_VERSION < $boost_version_req
18320 # error Boost headers version < $boost_version_req
18331 # If the user provided a value to --with-boost, use it and only it.
18332 case $with_boost in #(
18333 ''|yes) set x '' /opt/local/include /usr/local/include /opt/include \
18334 /usr/include C:/Boost/include;; #(
18335 *) set x "$with_boost/include" "$with_boost";;
18340 # Without --layout=system, Boost (or at least some versions) installs
18341 # itself in <prefix>/include/boost-<version>. This inner loop helps to
18342 # find headers in such directories.
18344 # Any ${boost_dir}/boost-x_xx directories are searched in reverse version
18345 # order followed by ${boost_dir}. The final '.' is a sentinel for
18346 # searching $boost_dir" itself. Entries are whitespace separated.
18348 # I didn't indent this loop on purpose (to avoid over-indented code)
18349 boost_layout_system_search_list=`cd "$boost_dir" 2>/dev/null \
18350 && ls -1 | "${GREP}" '^boost-' | sort -rn -t- -k2 \
18352 for boost_inc in $boost_layout_system_search_list
18354 if test x"$boost_inc" != x.; then
18355 boost_inc="$boost_dir/$boost_inc"
18357 boost_inc="$boost_dir" # Uses sentinel in boost_layout_system_search_list
18359 if test x"$boost_inc" != x; then
18360 # We are going to check whether the version of Boost installed
18361 # in $boost_inc is usable by running a compilation that
18362 # #includes it. But if we pass a -I/some/path in which Boost
18363 # is not installed, the compiler will just skip this -I and
18364 # use other locations (either from CPPFLAGS, or from its list
18365 # of system include directories). As a result we would use
18366 # header installed on the machine instead of the /some/path
18367 # specified by the user. So in that precise case (trying
18368 # $boost_inc), make sure the version.hpp exists.
18370 # Use test -e as there can be symlinks.
18371 test -e "$boost_inc/boost/version.hpp" || continue
18372 CPPFLAGS="$CPPFLAGS -I$boost_inc"
18374 if ac_fn_cxx_try_compile "$LINENO"; then :
18375 boost_cv_inc_path=yes
18377 boost_cv_version=no
18379 rm -f core conftest.err conftest.$ac_objext
18380 if test x"$boost_cv_inc_path" = xyes; then
18381 if test x"$boost_inc" != x; then
18382 boost_cv_inc_path=$boost_inc
18389 ac_cpp='$CPP $CPPFLAGS'
18390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_inc_path" >&5
18396 $as_echo "$boost_cv_inc_path" >&6; }
18397 case $boost_cv_inc_path in #(
18399 boost_errmsg="cannot find Boost headers version >= $boost_version_req"
18400 as_fn_error $? "$boost_errmsg" "$LINENO" 5
18407 BOOST_CPPFLAGS="-I$boost_cv_inc_path"
18411 if test x"$boost_cv_inc_path" != xno; then
18413 $as_echo "#define HAVE_BOOST 1" >>confdefs.h
18415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost's header version" >&5
18416 $as_echo_n "checking for Boost's header version... " >&6; }
18417 if ${boost_cv_lib_version+:} false; then :
18418 $as_echo_n "(cached) " >&6
18420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18421 /* end confdefs.h. */
18422 #include <boost/version.hpp>
18423 boost-lib-version = BOOST_LIB_VERSION
18425 if (eval "$ac_cpp $CXXFLAGS conftest.$ac_ext") 2>&5 |
18427 $SED -n -e "/^boost-lib-version = /{s///;s/\"//g;p;g;}" >conftest.i 2>&1; then :
18428 boost_cv_lib_version=`cat conftest.i`
18433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_version" >&5
18434 $as_echo "$boost_cv_lib_version" >&6; }
18435 # e.g. "134" for 1_34_1 or "135" for 1_35
18436 boost_major_version=`echo "$boost_cv_lib_version" | sed 's/_//;s/_.*//'`
18437 case $boost_major_version in #(
18439 as_fn_error $? "invalid value: boost_major_version=$boost_major_version" "$LINENO" 5
18443 CPPFLAGS=$boost_save_CPPFLAGS
18446 if test x"$boost_cv_inc_path" = xno; then
18447 { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/bind.hpp" >&5
18448 $as_echo "$as_me: Boost not available, not searching for boost/bind.hpp" >&6;}
18451 ac_cpp='$CXXCPP $CPPFLAGS'
18452 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18453 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18454 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18455 boost_save_CPPFLAGS=$CPPFLAGS
18456 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
18457 ac_fn_cxx_check_header_mongrel "$LINENO" "boost/bind.hpp" "ac_cv_header_boost_bind_hpp" "$ac_includes_default"
18458 if test "x$ac_cv_header_boost_bind_hpp" = xyes; then :
18460 $as_echo "#define HAVE_BOOST_BIND_HPP 1" >>confdefs.h
18463 as_fn_error $? "cannot find boost/bind.hpp" "$LINENO" 5
18467 CPPFLAGS=$boost_save_CPPFLAGS
18469 ac_cpp='$CPP $CPPFLAGS'
18470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18475 if test x"$boost_cv_inc_path" = xno; then
18476 { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/signals2.hpp" >&5
18477 $as_echo "$as_me: Boost not available, not searching for boost/signals2.hpp" >&6;}
18480 ac_cpp='$CXXCPP $CPPFLAGS'
18481 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18482 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18483 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18484 boost_save_CPPFLAGS=$CPPFLAGS
18485 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
18486 ac_fn_cxx_check_header_mongrel "$LINENO" "boost/signals2.hpp" "ac_cv_header_boost_signals2_hpp" "$ac_includes_default"
18487 if test "x$ac_cv_header_boost_signals2_hpp" = xyes; then :
18489 $as_echo "#define HAVE_BOOST_SIGNALS2_HPP 1" >>confdefs.h
18492 as_fn_error $? "cannot find boost/signals2.hpp" "$LINENO" 5
18496 CPPFLAGS=$boost_save_CPPFLAGS
18498 ac_cpp='$CPP $CPPFLAGS'
18499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18505 if test x"$enable_boost" = x"yes"; then
18507 HAVE_BOOST_FALSE='#'
18509 HAVE_BOOST_TRUE='#'
18515 # Check whether --enable-opencc was given.
18516 if test "${enable_opencc+set}" = set; then :
18517 enableval=$enable_opencc; enable_opencc=$enableval
18523 if test x"$enable_opencc" = x"yes"; then
18527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENCC" >&5
18528 $as_echo_n "checking for OPENCC... " >&6; }
18530 if test -n "$OPENCC_CFLAGS"; then
18531 pkg_cv_OPENCC_CFLAGS="$OPENCC_CFLAGS"
18532 elif test -n "$PKG_CONFIG"; then
18533 if test -n "$PKG_CONFIG" && \
18534 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"opencc\""; } >&5
18535 ($PKG_CONFIG --exists --print-errors "opencc") 2>&5
18537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18538 test $ac_status = 0; }; then
18539 pkg_cv_OPENCC_CFLAGS=`$PKG_CONFIG --cflags "opencc" 2>/dev/null`
18540 test "x$?" != "x0" && pkg_failed=yes
18547 if test -n "$OPENCC_LIBS"; then
18548 pkg_cv_OPENCC_LIBS="$OPENCC_LIBS"
18549 elif test -n "$PKG_CONFIG"; then
18550 if test -n "$PKG_CONFIG" && \
18551 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"opencc\""; } >&5
18552 ($PKG_CONFIG --exists --print-errors "opencc") 2>&5
18554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18555 test $ac_status = 0; }; then
18556 pkg_cv_OPENCC_LIBS=`$PKG_CONFIG --libs "opencc" 2>/dev/null`
18557 test "x$?" != "x0" && pkg_failed=yes
18567 if test $pkg_failed = yes; then
18568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18569 $as_echo "no" >&6; }
18571 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18572 _pkg_short_errors_supported=yes
18574 _pkg_short_errors_supported=no
18576 if test $_pkg_short_errors_supported = yes; then
18577 OPENCC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "opencc" 2>&1`
18579 OPENCC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "opencc" 2>&1`
18581 # Put the nasty error message in config.log where it belongs
18582 echo "$OPENCC_PKG_ERRORS" >&5
18584 as_fn_error $? "Package requirements (opencc) were not met:
18588 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18589 installed software in a non-standard prefix.
18591 Alternatively, you may set the environment variables OPENCC_CFLAGS
18592 and OPENCC_LIBS to avoid the need to call pkg-config.
18593 See the pkg-config man page for more details." "$LINENO" 5
18594 elif test $pkg_failed = untried; then
18595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18596 $as_echo "no" >&6; }
18597 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18598 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18599 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18600 is in your PATH or set the PKG_CONFIG environment variable to the full
18601 path to pkg-config.
18603 Alternatively, you may set the environment variables OPENCC_CFLAGS
18604 and OPENCC_LIBS to avoid the need to call pkg-config.
18605 See the pkg-config man page for more details.
18607 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18608 See \`config.log' for more details" "$LINENO" 5; }
18610 OPENCC_CFLAGS=$pkg_cv_OPENCC_CFLAGS
18611 OPENCC_LIBS=$pkg_cv_OPENCC_LIBS
18612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18613 $as_echo "yes" >&6; }
18616 $as_echo "#define HAVE_OPENCC 1" >>confdefs.h
18622 # define GETTEXT_* variables
18623 GETTEXT_PACKAGE=ibus-libpinyin
18626 cat >>confdefs.h <<_ACEOF
18627 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
18632 for ac_header in locale.h
18634 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
18635 if test "x$ac_cv_header_locale_h" = xyes; then :
18636 cat >>confdefs.h <<_ACEOF
18637 #define HAVE_LOCALE_H 1
18644 if test $ac_cv_header_locale_h = yes; then
18645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
18646 $as_echo_n "checking for LC_MESSAGES... " >&6; }
18647 if ${am_cv_val_LC_MESSAGES+:} false; then :
18648 $as_echo_n "(cached) " >&6
18650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18651 /* end confdefs.h. */
18652 #include <locale.h>
18661 if ac_fn_c_try_link "$LINENO"; then :
18662 am_cv_val_LC_MESSAGES=yes
18664 am_cv_val_LC_MESSAGES=no
18666 rm -f core conftest.err conftest.$ac_objext \
18667 conftest$ac_exeext conftest.$ac_ext
18669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
18670 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
18671 if test $am_cv_val_LC_MESSAGES = yes; then
18673 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
18680 gt_cv_have_gettext=no
18686 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
18687 if test "x$ac_cv_header_libintl_h" = xyes; then :
18688 gt_cv_func_dgettext_libintl="no"
18689 libintl_extra_libs=""
18692 # First check in libc
18694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in libc" >&5
18695 $as_echo_n "checking for ngettext in libc... " >&6; }
18696 if ${gt_cv_func_ngettext_libc+:} false; then :
18697 $as_echo_n "(cached) " >&6
18699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18700 /* end confdefs.h. */
18702 #include <libintl.h>
18707 return !ngettext ("","", 1)
18712 if ac_fn_c_try_link "$LINENO"; then :
18713 gt_cv_func_ngettext_libc=yes
18715 gt_cv_func_ngettext_libc=no
18717 rm -f core conftest.err conftest.$ac_objext \
18718 conftest$ac_exeext conftest.$ac_ext
18721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_ngettext_libc" >&5
18722 $as_echo "$gt_cv_func_ngettext_libc" >&6; }
18724 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
18725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in libc" >&5
18726 $as_echo_n "checking for dgettext in libc... " >&6; }
18727 if ${gt_cv_func_dgettext_libc+:} false; then :
18728 $as_echo_n "(cached) " >&6
18730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18731 /* end confdefs.h. */
18733 #include <libintl.h>
18738 return !dgettext ("","")
18743 if ac_fn_c_try_link "$LINENO"; then :
18744 gt_cv_func_dgettext_libc=yes
18746 gt_cv_func_dgettext_libc=no
18748 rm -f core conftest.err conftest.$ac_objext \
18749 conftest$ac_exeext conftest.$ac_ext
18752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_dgettext_libc" >&5
18753 $as_echo "$gt_cv_func_dgettext_libc" >&6; }
18756 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
18757 for ac_func in bind_textdomain_codeset
18759 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
18760 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
18761 cat >>confdefs.h <<_ACEOF
18762 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
18771 # If we don't have everything we want, check in libintl
18773 if test "$gt_cv_func_dgettext_libc" != "yes" \
18774 || test "$gt_cv_func_ngettext_libc" != "yes" \
18775 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
18777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5
18778 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
18779 if ${ac_cv_lib_intl_bindtextdomain+:} false; then :
18780 $as_echo_n "(cached) " >&6
18782 ac_check_lib_save_LIBS=$LIBS
18783 LIBS="-lintl $LIBS"
18784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18785 /* end confdefs.h. */
18787 /* Override any GCC internal prototype to avoid an error.
18788 Use char because int might match the return type of a GCC
18789 builtin and then its argument prototype would still apply. */
18793 char bindtextdomain ();
18797 return bindtextdomain ();
18802 if ac_fn_c_try_link "$LINENO"; then :
18803 ac_cv_lib_intl_bindtextdomain=yes
18805 ac_cv_lib_intl_bindtextdomain=no
18807 rm -f core conftest.err conftest.$ac_objext \
18808 conftest$ac_exeext conftest.$ac_ext
18809 LIBS=$ac_check_lib_save_LIBS
18811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5
18812 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
18813 if test "x$ac_cv_lib_intl_bindtextdomain" = xyes; then :
18814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
18815 $as_echo_n "checking for ngettext in -lintl... " >&6; }
18816 if ${ac_cv_lib_intl_ngettext+:} false; then :
18817 $as_echo_n "(cached) " >&6
18819 ac_check_lib_save_LIBS=$LIBS
18820 LIBS="-lintl $LIBS"
18821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18822 /* end confdefs.h. */
18824 /* Override any GCC internal prototype to avoid an error.
18825 Use char because int might match the return type of a GCC
18826 builtin and then its argument prototype would still apply. */
18834 return ngettext ();
18839 if ac_fn_c_try_link "$LINENO"; then :
18840 ac_cv_lib_intl_ngettext=yes
18842 ac_cv_lib_intl_ngettext=no
18844 rm -f core conftest.err conftest.$ac_objext \
18845 conftest$ac_exeext conftest.$ac_ext
18846 LIBS=$ac_check_lib_save_LIBS
18848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
18849 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
18850 if test "x$ac_cv_lib_intl_ngettext" = xyes; then :
18851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
18852 $as_echo_n "checking for dgettext in -lintl... " >&6; }
18853 if ${ac_cv_lib_intl_dgettext+:} false; then :
18854 $as_echo_n "(cached) " >&6
18856 ac_check_lib_save_LIBS=$LIBS
18857 LIBS="-lintl $LIBS"
18858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18859 /* end confdefs.h. */
18861 /* Override any GCC internal prototype to avoid an error.
18862 Use char because int might match the return type of a GCC
18863 builtin and then its argument prototype would still apply. */
18871 return dgettext ();
18876 if ac_fn_c_try_link "$LINENO"; then :
18877 ac_cv_lib_intl_dgettext=yes
18879 ac_cv_lib_intl_dgettext=no
18881 rm -f core conftest.err conftest.$ac_objext \
18882 conftest$ac_exeext conftest.$ac_ext
18883 LIBS=$ac_check_lib_save_LIBS
18885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
18886 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
18887 if test "x$ac_cv_lib_intl_dgettext" = xyes; then :
18888 gt_cv_func_dgettext_libintl=yes
18896 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
18897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -liconv is needed to use gettext" >&5
18898 $as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
18899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
18901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
18902 $as_echo_n "checking for ngettext in -lintl... " >&6; }
18903 if ${ac_cv_lib_intl_ngettext+:} false; then :
18904 $as_echo_n "(cached) " >&6
18906 ac_check_lib_save_LIBS=$LIBS
18907 LIBS="-lintl -liconv $LIBS"
18908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18909 /* end confdefs.h. */
18911 /* Override any GCC internal prototype to avoid an error.
18912 Use char because int might match the return type of a GCC
18913 builtin and then its argument prototype would still apply. */
18921 return ngettext ();
18926 if ac_fn_c_try_link "$LINENO"; then :
18927 ac_cv_lib_intl_ngettext=yes
18929 ac_cv_lib_intl_ngettext=no
18931 rm -f core conftest.err conftest.$ac_objext \
18932 conftest$ac_exeext conftest.$ac_ext
18933 LIBS=$ac_check_lib_save_LIBS
18935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
18936 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
18937 if test "x$ac_cv_lib_intl_ngettext" = xyes; then :
18938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dcgettext in -lintl" >&5
18939 $as_echo_n "checking for dcgettext in -lintl... " >&6; }
18940 if ${ac_cv_lib_intl_dcgettext+:} false; then :
18941 $as_echo_n "(cached) " >&6
18943 ac_check_lib_save_LIBS=$LIBS
18944 LIBS="-lintl -liconv $LIBS"
18945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18946 /* end confdefs.h. */
18948 /* Override any GCC internal prototype to avoid an error.
18949 Use char because int might match the return type of a GCC
18950 builtin and then its argument prototype would still apply. */
18958 return dcgettext ();
18963 if ac_fn_c_try_link "$LINENO"; then :
18964 ac_cv_lib_intl_dcgettext=yes
18966 ac_cv_lib_intl_dcgettext=no
18968 rm -f core conftest.err conftest.$ac_objext \
18969 conftest$ac_exeext conftest.$ac_ext
18970 LIBS=$ac_check_lib_save_LIBS
18972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dcgettext" >&5
18973 $as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
18974 if test "x$ac_cv_lib_intl_dcgettext" = xyes; then :
18975 gt_cv_func_dgettext_libintl=yes
18976 libintl_extra_libs=-liconv
18988 # If we found libintl, then check in it for bind_textdomain_codeset();
18989 # we'll prefer libc if neither have bind_textdomain_codeset(),
18990 # and both have dgettext and ngettext
18992 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
18993 glib_save_LIBS="$LIBS"
18994 LIBS="$LIBS -lintl $libintl_extra_libs"
18995 unset ac_cv_func_bind_textdomain_codeset
18996 for ac_func in bind_textdomain_codeset
18998 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
18999 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
19000 cat >>confdefs.h <<_ACEOF
19001 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
19007 LIBS="$glib_save_LIBS"
19009 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
19010 gt_cv_func_dgettext_libc=no
19012 if test "$gt_cv_func_dgettext_libc" = "yes" \
19013 && test "$gt_cv_func_ngettext_libc" = "yes"; then
19014 gt_cv_func_dgettext_libintl=no
19020 if test "$gt_cv_func_dgettext_libc" = "yes" \
19021 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
19022 gt_cv_have_gettext=yes
19025 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
19026 INTLLIBS="-lintl $libintl_extra_libs"
19029 if test "$gt_cv_have_gettext" = "yes"; then
19031 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
19033 # Extract the first word of "msgfmt", so it can be a program name with args.
19034 set dummy msgfmt; ac_word=$2
19035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19036 $as_echo_n "checking for $ac_word... " >&6; }
19037 if ${ac_cv_path_MSGFMT+:} false; then :
19038 $as_echo_n "(cached) " >&6
19042 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
19045 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
19046 for ac_dir in $PATH; do
19047 test -z "$ac_dir" && ac_dir=.
19048 if test -f $ac_dir/$ac_word; then
19049 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
19050 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
19056 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
19060 MSGFMT="$ac_cv_path_MSGFMT"
19061 if test "$MSGFMT" != "no"; then
19062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
19063 $as_echo "$MSGFMT" >&6; }
19065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19066 $as_echo "no" >&6; }
19068 if test "$MSGFMT" != "no"; then
19069 glib_save_LIBS="$LIBS"
19070 LIBS="$LIBS $INTLLIBS"
19071 for ac_func in dcgettext
19073 ac_fn_c_check_func "$LINENO" "dcgettext" "ac_cv_func_dcgettext"
19074 if test "x$ac_cv_func_dcgettext" = xyes; then :
19075 cat >>confdefs.h <<_ACEOF
19076 #define HAVE_DCGETTEXT 1
19083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if msgfmt accepts -c" >&5
19084 $as_echo_n "checking if msgfmt accepts -c... " >&6; }
19085 cat >conftest.foo <<_ACEOF
19089 "Content-Type: text/plain; charset=UTF-8\n"
19090 "Project-Id-Version: test 1.0\n"
19091 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
19092 "Last-Translator: test <foo@bar.xx>\n"
19093 "Language-Team: C <LL@li.org>\n"
19094 "MIME-Version: 1.0\n"
19095 "Content-Transfer-Encoding: 8bit\n"
19098 if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$MSGFMT -c -o /dev/null conftest.foo"; } >&5
19099 ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
19101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19102 test $ac_status = 0; }; then
19103 MSGFMT_OPTS=-c; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19104 $as_echo "yes" >&6; }
19105 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19106 $as_echo "no" >&6; }
19107 echo "$as_me: failed input was:" >&5
19108 sed 's/^/| /' conftest.foo >&5
19111 # Extract the first word of "gmsgfmt", so it can be a program name with args.
19112 set dummy gmsgfmt; ac_word=$2
19113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19114 $as_echo_n "checking for $ac_word... " >&6; }
19115 if ${ac_cv_path_GMSGFMT+:} false; then :
19116 $as_echo_n "(cached) " >&6
19120 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
19123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19124 for as_dir in $PATH
19127 test -z "$as_dir" && as_dir=.
19128 for ac_exec_ext in '' $ac_executable_extensions; do
19129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19130 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
19131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19138 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
19142 GMSGFMT=$ac_cv_path_GMSGFMT
19143 if test -n "$GMSGFMT"; then
19144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
19145 $as_echo "$GMSGFMT" >&6; }
19147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19148 $as_echo "no" >&6; }
19152 # Extract the first word of "xgettext", so it can be a program name with args.
19153 set dummy xgettext; ac_word=$2
19154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19155 $as_echo_n "checking for $ac_word... " >&6; }
19156 if ${ac_cv_path_XGETTEXT+:} false; then :
19157 $as_echo_n "(cached) " >&6
19159 case "$XGETTEXT" in
19161 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
19164 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
19165 for ac_dir in $PATH; do
19166 test -z "$ac_dir" && ac_dir=.
19167 if test -f $ac_dir/$ac_word; then
19168 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
19169 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
19175 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
19179 XGETTEXT="$ac_cv_path_XGETTEXT"
19180 if test "$XGETTEXT" != ":"; then
19181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
19182 $as_echo "$XGETTEXT" >&6; }
19184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19185 $as_echo "no" >&6; }
19188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19189 /* end confdefs.h. */
19194 extern int _nl_msg_cat_cntr;
19195 return _nl_msg_cat_cntr
19200 if ac_fn_c_try_link "$LINENO"; then :
19206 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
19207 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
19226 rm -f core conftest.err conftest.$ac_objext \
19227 conftest$ac_exeext conftest.$ac_ext
19228 LIBS="$glib_save_LIBS"
19231 gt_cv_have_gettext=no
19239 if test "$gt_cv_have_gettext" = "yes" ; then
19241 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
19245 if test "$XGETTEXT" != ":"; then
19246 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
19249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
19250 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
19255 # We need to process the po/ directory.
19258 ac_config_commands="$ac_config_commands default-1"
19261 for lang in $ALL_LINGUAS; do
19262 GMOFILES="$GMOFILES $lang.gmo"
19263 POFILES="$POFILES $lang.po"
19278 if test "$gt_cv_have_gettext" = "yes"; then
19279 if test "x$ALL_LINGUAS" = "x"; then
19282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
19283 $as_echo_n "checking for catalogs to be installed... " >&6; }
19285 for presentlang in $ALL_LINGUAS; do
19287 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
19288 desiredlanguages="$LINGUAS"
19290 desiredlanguages="$ALL_LINGUAS"
19292 for desiredlang in $desiredlanguages; do
19293 # Use the presentlang catalog if desiredlang is
19294 # a. equal to presentlang, or
19295 # b. a variant of presentlang (because in this case,
19296 # presentlang can be used as a fallback for messages
19297 # which are not translated in the desiredlang catalog).
19298 case "$desiredlang" in
19299 "$presentlang"*) useit=yes;;
19302 if test $useit = yes; then
19303 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
19306 LINGUAS=$NEW_LINGUAS
19307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
19308 $as_echo "$LINGUAS" >&6; }
19311 if test -n "$LINGUAS"; then
19312 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
19317 if test -n "$ac_aux_dir"; then
19318 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
19320 if test -z "$MKINSTALLDIRS"; then
19321 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
19325 test -d po || mkdir po
19326 if test "x$srcdir" != "x."; then
19327 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
19328 posrcprefix="$srcdir/"
19330 posrcprefix="../$srcdir/"
19336 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
19337 < $srcdir/po/POTFILES.in > po/POTFILES
19340 # --disable-lua-extension
19341 # Check whether --enable-lua-extension was given.
19342 if test "${enable_lua_extension+set}" = set; then :
19343 enableval=$enable_lua_extension; enable_lua_extension=$enableval
19345 enable_lua_extension=yes
19353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
19354 $as_echo_n "checking for LUA... " >&6; }
19356 if test -n "$LUA_CFLAGS"; then
19357 pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
19358 elif test -n "$PKG_CONFIG"; then
19359 if test -n "$PKG_CONFIG" && \
19360 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
19363 ($PKG_CONFIG --exists --print-errors "
19367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19368 test $ac_status = 0; }; then
19369 pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "
19372 test "x$?" != "x0" && pkg_failed=yes
19379 if test -n "$LUA_LIBS"; then
19380 pkg_cv_LUA_LIBS="$LUA_LIBS"
19381 elif test -n "$PKG_CONFIG"; then
19382 if test -n "$PKG_CONFIG" && \
19383 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
19386 ($PKG_CONFIG --exists --print-errors "
19390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19391 test $ac_status = 0; }; then
19392 pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "
19395 test "x$?" != "x0" && pkg_failed=yes
19405 if test $pkg_failed = yes; then
19406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19407 $as_echo "no" >&6; }
19409 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19410 _pkg_short_errors_supported=yes
19412 _pkg_short_errors_supported=no
19414 if test $_pkg_short_errors_supported = yes; then
19415 LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
19419 LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
19423 # Put the nasty error message in config.log where it belongs
19424 echo "$LUA_PKG_ERRORS" >&5
19426 has_lua_extension=no
19428 elif test $pkg_failed = untried; then
19429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19430 $as_echo "no" >&6; }
19431 has_lua_extension=no
19434 LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
19435 LUA_LIBS=$pkg_cv_LUA_LIBS
19436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19437 $as_echo "yes" >&6; }
19441 if test x"$has_lua_extension" = x"no";
19445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
19446 $as_echo_n "checking for LUA... " >&6; }
19448 if test -n "$LUA_CFLAGS"; then
19449 pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
19450 elif test -n "$PKG_CONFIG"; then
19451 if test -n "$PKG_CONFIG" && \
19452 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
19455 ($PKG_CONFIG --exists --print-errors "
19459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19460 test $ac_status = 0; }; then
19461 pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "
19464 test "x$?" != "x0" && pkg_failed=yes
19471 if test -n "$LUA_LIBS"; then
19472 pkg_cv_LUA_LIBS="$LUA_LIBS"
19473 elif test -n "$PKG_CONFIG"; then
19474 if test -n "$PKG_CONFIG" && \
19475 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
19478 ($PKG_CONFIG --exists --print-errors "
19482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19483 test $ac_status = 0; }; then
19484 pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "
19487 test "x$?" != "x0" && pkg_failed=yes
19497 if test $pkg_failed = yes; then
19498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19499 $as_echo "no" >&6; }
19501 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19502 _pkg_short_errors_supported=yes
19504 _pkg_short_errors_supported=no
19506 if test $_pkg_short_errors_supported = yes; then
19507 LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
19511 LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
19515 # Put the nasty error message in config.log where it belongs
19516 echo "$LUA_PKG_ERRORS" >&5
19518 enable_lua_extension=no
19520 elif test $pkg_failed = untried; then
19521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19522 $as_echo "no" >&6; }
19523 enable_lua_extension=no
19526 LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
19527 LUA_LIBS=$pkg_cv_LUA_LIBS
19528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19529 $as_echo "yes" >&6; }
19534 if test x"$enable_lua_extension" = x"yes"; then
19535 IBUS_BUILD_LUA_EXTENSION_TRUE=
19536 IBUS_BUILD_LUA_EXTENSION_FALSE='#'
19538 IBUS_BUILD_LUA_EXTENSION_TRUE='#'
19539 IBUS_BUILD_LUA_EXTENSION_FALSE=
19543 # --disable-english-input-mode
19544 # Check whether --enable-english-input-mode was given.
19545 if test "${enable_english_input_mode+set}" = set; then :
19546 enableval=$enable_english_input_mode; enable_english_input_mode=$enableval
19548 enable_english_input_mode=yes
19553 if test x"$enable_english_input_mode" = x"yes"; then
19554 IBUS_BUILD_ENGLISH_INPUT_MODE_TRUE=
19555 IBUS_BUILD_ENGLISH_INPUT_MODE_FALSE='#'
19557 IBUS_BUILD_ENGLISH_INPUT_MODE_TRUE='#'
19558 IBUS_BUILD_ENGLISH_INPUT_MODE_FALSE=
19562 # --disable-stroke-input-mode
19563 # Check whether --enable-stroke-input-mode was given.
19564 if test "${enable_stroke_input_mode+set}" = set; then :
19565 enableval=$enable_stroke_input_mode; enable_stroke_input_mode=$enableval
19567 enable_stroke_input_mode=yes
19572 if test x"$enable_stroke_input_mode" = x"yes"; then
19573 IBUS_BUILD_STROKE_INPUT_MODE_TRUE=
19574 IBUS_BUILD_STROKE_INPUT_MODE_FALSE='#'
19576 IBUS_BUILD_STROKE_INPUT_MODE_TRUE='#'
19577 IBUS_BUILD_STROKE_INPUT_MODE_FALSE=
19582 ac_config_files="$ac_config_files po/Makefile.in Makefile ibus-libpinyin.spec lua/Makefile src/Makefile src/libpinyin.xml.in setup/Makefile setup/ibus-setup-libpinyin setup/config.py data/Makefile data/icons/Makefile m4/Makefile"
19585 cat >confcache <<\_ACEOF
19586 # This file is a shell script that caches the results of configure
19587 # tests run on this system so they can be shared between configure
19588 # scripts and configure runs, see configure's option --config-cache.
19589 # It is not useful on other systems. If it contains results you don't
19590 # want to keep, you may remove or edit it.
19592 # config.status only pays attention to the cache file if you give it
19593 # the --recheck option to rerun configure.
19595 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19596 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19597 # following values.
19601 # The following way of writing the cache mishandles newlines in values,
19602 # but we know of no workaround that is simple, portable, and efficient.
19603 # So, we kill variables containing newlines.
19604 # Ultrix sh set writes to stderr and can't be redirected directly,
19605 # and sets the high bit in the cache file unless we assign to the vars.
19607 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19608 eval ac_val=\$$ac_var
19612 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19613 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19616 _ | IFS | as_nl) ;; #(
19617 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19618 *) { eval $ac_var=; unset $ac_var;} ;;
19624 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19625 *${as_nl}ac_space=\ *)
19626 # `set' does not quote correctly, so add quotes: double-quote
19627 # substitution turns \\\\ into \\, and sed turns \\ into \.
19630 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19633 # `set' quotes correctly as required by POSIX, so do not add quotes.
19634 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19643 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19645 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19647 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19648 if test -w "$cache_file"; then
19649 if test "x$cache_file" != "x/dev/null"; then
19650 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19651 $as_echo "$as_me: updating cache $cache_file" >&6;}
19652 if test ! -f "$cache_file" || test -h "$cache_file"; then
19653 cat confcache >"$cache_file"
19655 case $cache_file in #(
19657 mv -f confcache "$cache_file"$$ &&
19658 mv -f "$cache_file"$$ "$cache_file" ;; #(
19660 mv -f confcache "$cache_file" ;;
19665 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19666 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19671 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19672 # Let make expand exec_prefix.
19673 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19675 DEFS=-DHAVE_CONFIG_H
19680 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19681 # 1. Remove the extension, and $U if already installed.
19682 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19683 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19684 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19685 # will be set to the directory where LIBOBJS objects are built.
19686 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19687 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19689 LIBOBJS=$ac_libobjs
19691 LTLIBOBJS=$ac_ltlibobjs
19694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19695 $as_echo_n "checking that generated files are newer than configure... " >&6; }
19696 if test -n "$am_sleep_pid"; then
19697 # Hide warnings about reused PIDs.
19698 wait $am_sleep_pid 2>/dev/null
19700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19701 $as_echo "done" >&6; }
19702 if test -n "$EXEEXT"; then
19704 am__EXEEXT_FALSE='#'
19706 am__EXEEXT_TRUE='#'
19710 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19711 as_fn_error $? "conditional \"AMDEP\" was never defined.
19712 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19714 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19715 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19716 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19719 $as_echo_n "checking that generated files are newer than configure... " >&6; }
19720 if test -n "$am_sleep_pid"; then
19721 # Hide warnings about reused PIDs.
19722 wait $am_sleep_pid 2>/dev/null
19724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19725 $as_echo "done" >&6; }
19726 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19727 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
19728 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19730 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19731 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19732 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19734 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19735 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19736 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19739 ac_config_commands="$ac_config_commands po/stamp-it"
19742 if test -z "${IBUS_BUILD_LIBPINYIN_TRUE}" && test -z "${IBUS_BUILD_LIBPINYIN_FALSE}"; then
19743 as_fn_error $? "conditional \"IBUS_BUILD_LIBPINYIN\" was never defined.
19744 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19746 if test -z "${HAVE_LIBUUID_TRUE}" && test -z "${HAVE_LIBUUID_FALSE}"; then
19747 as_fn_error $? "conditional \"HAVE_LIBUUID\" was never defined.
19748 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19750 if test -z "${HAVE_BOOST_TRUE}" && test -z "${HAVE_BOOST_FALSE}"; then
19751 as_fn_error $? "conditional \"HAVE_BOOST\" was never defined.
19752 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19754 if test -z "${IBUS_BUILD_LUA_EXTENSION_TRUE}" && test -z "${IBUS_BUILD_LUA_EXTENSION_FALSE}"; then
19755 as_fn_error $? "conditional \"IBUS_BUILD_LUA_EXTENSION\" was never defined.
19756 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19758 if test -z "${IBUS_BUILD_ENGLISH_INPUT_MODE_TRUE}" && test -z "${IBUS_BUILD_ENGLISH_INPUT_MODE_FALSE}"; then
19759 as_fn_error $? "conditional \"IBUS_BUILD_ENGLISH_INPUT_MODE\" was never defined.
19760 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19762 if test -z "${IBUS_BUILD_STROKE_INPUT_MODE_TRUE}" && test -z "${IBUS_BUILD_STROKE_INPUT_MODE_FALSE}"; then
19763 as_fn_error $? "conditional \"IBUS_BUILD_STROKE_INPUT_MODE\" was never defined.
19764 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19767 : "${CONFIG_STATUS=./config.status}"
19769 ac_clean_files_save=$ac_clean_files
19770 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19771 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19772 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19774 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19776 # Generated by $as_me.
19777 # Run this file to recreate the current configuration.
19778 # Compiler output produced by configure, useful for debugging
19779 # configure, is in config.log if it exists.
19782 ac_cs_recheck=false
19785 SHELL=\${CONFIG_SHELL-$SHELL}
19788 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19789 ## -------------------- ##
19790 ## M4sh Initialization. ##
19791 ## -------------------- ##
19793 # Be more Bourne compatible
19794 DUALCASE=1; export DUALCASE # for MKS sh
19795 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19798 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19799 # is contrary to our usage. Disable this feature.
19800 alias -g '${1+"$@"}'='"$@"'
19801 setopt NO_GLOB_SUBST
19803 case `(set -o) 2>/dev/null` in #(
19815 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19816 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19817 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19818 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19819 # Prefer a ksh shell builtin over an external printf program on Solaris,
19820 # but without wasting forks for bash or zsh.
19821 if test -z "$BASH_VERSION$ZSH_VERSION" \
19822 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19823 as_echo='print -r --'
19824 as_echo_n='print -rn --'
19825 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19826 as_echo='printf %s\n'
19827 as_echo_n='printf %s'
19829 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19830 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19831 as_echo_n='/usr/ucb/echo -n'
19833 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19834 as_echo_n_body='eval
19838 expr "X$arg" : "X\\(.*\\)$as_nl";
19839 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19841 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19843 export as_echo_n_body
19844 as_echo_n='sh -c $as_echo_n_body as_echo'
19846 export as_echo_body
19847 as_echo='sh -c $as_echo_body as_echo'
19850 # The user is always right.
19851 if test "${PATH_SEPARATOR+set}" != set; then
19853 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19854 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19861 # We need space, tab and new line, in precisely that order. Quoting is
19862 # there to prevent editors from complaining about space-tab.
19863 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19864 # splitting by setting IFS to empty value.)
19867 # Find who we are. Look in the path if we contain no directory separator.
19870 *[\\/]* ) as_myself=$0 ;;
19871 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19872 for as_dir in $PATH
19875 test -z "$as_dir" && as_dir=.
19876 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19882 # We did not find ourselves, most probably we were run as `sh COMMAND'
19883 # in which case we are not to be found in the path.
19884 if test "x$as_myself" = x; then
19887 if test ! -f "$as_myself"; then
19888 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19892 # Unset variables that we do not need and which cause bugs (e.g. in
19893 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19894 # suppresses any "Segmentation fault" message there. '((' could
19895 # trigger a bug in pdksh 5.2.14.
19896 for as_var in BASH_ENV ENV MAIL MAILPATH
19897 do eval test x\${$as_var+set} = xset \
19898 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19911 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19914 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19915 # ----------------------------------------
19916 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19917 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19918 # script with STATUS, using 1 if that was 0.
19921 as_status=$1; test $as_status -eq 0 && as_status=1
19923 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19924 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19926 $as_echo "$as_me: error: $2" >&2
19927 as_fn_exit $as_status
19931 # as_fn_set_status STATUS
19932 # -----------------------
19933 # Set $? to STATUS, without forking.
19934 as_fn_set_status ()
19937 } # as_fn_set_status
19939 # as_fn_exit STATUS
19940 # -----------------
19941 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19945 as_fn_set_status $1
19951 # Portably unset VAR.
19954 { eval $1=; unset $1;}
19956 as_unset=as_fn_unset
19957 # as_fn_append VAR VALUE
19958 # ----------------------
19959 # Append the text in VALUE to the end of the definition contained in VAR. Take
19960 # advantage of any shell optimizations that allow amortized linear growth over
19961 # repeated appends, instead of the typical quadratic growth present in naive
19963 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19964 eval 'as_fn_append ()
19975 # as_fn_arith ARG...
19976 # ------------------
19977 # Perform arithmetic evaluation on the ARGs, and store the result in the
19978 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19979 # must be portable across $(()) and expr.
19980 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19981 eval 'as_fn_arith ()
19988 as_val=`expr "$@" || test $? -eq 1`
19993 if expr a : '\(a\)' >/dev/null 2>&1 &&
19994 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20000 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20001 as_basename=basename
20006 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20012 as_me=`$as_basename -- "$0" ||
20013 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20014 X"$0" : 'X\(//\)$' \| \
20015 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20017 sed '/^.*\/\([^/][^/]*\)\/*$/{
20031 # Avoid depending upon Character Ranges.
20032 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20033 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20034 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20035 as_cr_digits='0123456789'
20036 as_cr_alnum=$as_cr_Letters$as_cr_digits
20038 ECHO_C= ECHO_N= ECHO_T=
20039 case `echo -n x` in #(((((
20041 case `echo 'xy\c'` in
20042 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20044 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20051 rm -f conf$$ conf$$.exe conf$$.file
20052 if test -d conf$$.dir; then
20053 rm -f conf$$.dir/conf$$.file
20056 mkdir conf$$.dir 2>/dev/null
20058 if (echo >conf$$.file) 2>/dev/null; then
20059 if ln -s conf$$.file conf$$ 2>/dev/null; then
20061 # ... but there are two gotchas:
20062 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20063 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20064 # In both cases, we have to default to `cp -pR'.
20065 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20067 elif ln conf$$.file conf$$ 2>/dev/null; then
20075 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20076 rmdir conf$$.dir 2>/dev/null
20081 # Create "$as_dir" as a directory, including parents if necessary.
20086 -*) as_dir=./$as_dir;;
20088 test -d "$as_dir" || eval $as_mkdir_p || {
20092 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20093 *) as_qdir=$as_dir;;
20095 as_dirs="'$as_qdir' $as_dirs"
20096 as_dir=`$as_dirname -- "$as_dir" ||
20097 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20098 X"$as_dir" : 'X\(//\)[^/]' \| \
20099 X"$as_dir" : 'X\(//\)$' \| \
20100 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20101 $as_echo X"$as_dir" |
20102 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20106 /^X\(\/\/\)[^/].*/{
20119 test -d "$as_dir" && break
20121 test -z "$as_dirs" || eval "mkdir $as_dirs"
20122 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20126 if mkdir -p . 2>/dev/null; then
20127 as_mkdir_p='mkdir -p "$as_dir"'
20129 test -d ./-p && rmdir ./-p
20134 # as_fn_executable_p FILE
20135 # -----------------------
20136 # Test if FILE is an executable regular file.
20137 as_fn_executable_p ()
20139 test -f "$1" && test -x "$1"
20140 } # as_fn_executable_p
20141 as_test_x='test -x'
20142 as_executable_p=as_fn_executable_p
20144 # Sed expression to map a string onto a valid CPP name.
20145 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20147 # Sed expression to map a string onto a valid variable name.
20148 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20152 ## ----------------------------------- ##
20153 ## Main body of $CONFIG_STATUS script. ##
20154 ## ----------------------------------- ##
20156 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20158 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20159 # Save the log message, to keep $0 and so on meaningful, and to
20160 # report actual input values of CONFIG_FILES etc. instead of their
20161 # values after options handling.
20163 This file was extended by ibus-libpinyin $as_me 1.6.92, which was
20164 generated by GNU Autoconf 2.69. Invocation command line was
20166 CONFIG_FILES = $CONFIG_FILES
20167 CONFIG_HEADERS = $CONFIG_HEADERS
20168 CONFIG_LINKS = $CONFIG_LINKS
20169 CONFIG_COMMANDS = $CONFIG_COMMANDS
20172 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20177 case $ac_config_files in *"
20178 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20181 case $ac_config_headers in *"
20182 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20186 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20187 # Files that config.status was made for.
20188 config_files="$ac_config_files"
20189 config_headers="$ac_config_headers"
20190 config_commands="$ac_config_commands"
20194 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20196 \`$as_me' instantiates files and other configuration actions
20197 from templates according to the current configuration. Unless the files
20198 and actions are specified as TAGs, all are instantiated by default.
20200 Usage: $0 [OPTION]... [TAG]...
20202 -h, --help print this help, then exit
20203 -V, --version print version number and configuration settings, then exit
20204 --config print configuration, then exit
20205 -q, --quiet, --silent
20206 do not print progress messages
20207 -d, --debug don't remove temporary files
20208 --recheck update $as_me by reconfiguring in the same conditions
20209 --file=FILE[:TEMPLATE]
20210 instantiate the configuration file FILE
20211 --header=FILE[:TEMPLATE]
20212 instantiate the configuration header FILE
20214 Configuration files:
20217 Configuration headers:
20220 Configuration commands:
20223 Report bugs to <https://github.com/libpinyin/ibus-libpinyin/issues/new>."
20226 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20227 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20229 ibus-libpinyin config.status 1.6.92
20230 configured by $0, generated by GNU Autoconf 2.69,
20231 with options \\"\$ac_cs_config\\"
20233 Copyright (C) 2012 Free Software Foundation, Inc.
20234 This config.status script is free software; the Free Software Foundation
20235 gives unlimited permission to copy, distribute and modify it."
20242 test -n "\$AWK" || AWK=awk
20245 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20246 # The default lists apply if the user does not specify any file.
20252 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20253 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20257 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20269 # Handling of the options.
20270 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20272 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20273 $as_echo "$ac_cs_version"; exit ;;
20274 --config | --confi | --conf | --con | --co | --c )
20275 $as_echo "$ac_cs_config"; exit ;;
20276 --debug | --debu | --deb | --de | --d | -d )
20278 --file | --fil | --fi | --f )
20281 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20282 '') as_fn_error $? "missing file argument" ;;
20284 as_fn_append CONFIG_FILES " '$ac_optarg'"
20285 ac_need_defaults=false;;
20286 --header | --heade | --head | --hea )
20289 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20291 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20292 ac_need_defaults=false;;
20294 # Conflict between --help and --header
20295 as_fn_error $? "ambiguous option: \`$1'
20296 Try \`$0 --help' for more information.";;
20297 --help | --hel | -h )
20298 $as_echo "$ac_cs_usage"; exit ;;
20299 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20300 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20303 # This is an error.
20304 -*) as_fn_error $? "unrecognized option: \`$1'
20305 Try \`$0 --help' for more information." ;;
20307 *) as_fn_append ac_config_targets " $1"
20308 ac_need_defaults=false ;;
20314 ac_configure_extra_args=
20316 if $ac_cs_silent; then
20318 ac_configure_extra_args="$ac_configure_extra_args --silent"
20322 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20323 if \$ac_cs_recheck; then
20324 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20326 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20327 CONFIG_SHELL='$SHELL'
20328 export CONFIG_SHELL
20333 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20337 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20338 ## Running $as_me. ##
20344 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20348 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20351 # The HP-UX ksh and POSIX shell print the target directory to stdout
20352 # if CDPATH is set.
20353 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20355 sed_quote_subst='$sed_quote_subst'
20356 double_quote_subst='$double_quote_subst'
20357 delay_variable_subst='$delay_variable_subst'
20358 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20359 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20360 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20361 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20362 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20363 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20364 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20365 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20366 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20367 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20368 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20369 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20370 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20371 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20372 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20373 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20374 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20375 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20376 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20377 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20378 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20379 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20380 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20381 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20382 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20383 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20384 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20385 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20386 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20387 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20388 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20389 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20390 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20391 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20392 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20393 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20394 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20395 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20396 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20397 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20398 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20399 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20400 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20401 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20402 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20403 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20404 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20405 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20406 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20407 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20408 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20409 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20410 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20411 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20412 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20413 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20414 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
20415 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20416 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20417 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20418 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20419 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20420 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20421 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20422 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20423 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20424 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20425 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20426 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20427 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20428 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20429 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20430 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20431 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20432 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20433 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20434 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20435 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20436 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20437 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20438 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20439 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20440 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20441 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20442 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20443 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20444 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20445 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20446 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20447 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20448 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20449 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20450 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20451 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20452 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20453 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20454 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20455 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20456 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20457 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20458 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20459 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20460 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20461 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20462 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20463 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20464 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20465 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20466 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20467 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20468 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20469 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20470 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20471 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20472 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20473 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20474 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20475 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20476 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20477 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20478 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20479 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20480 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20481 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20482 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20483 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20484 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20485 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20486 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20487 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20488 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20489 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20490 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20491 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20492 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20493 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20494 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20495 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20496 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20497 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20498 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20499 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20500 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20501 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20502 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20503 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20504 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20505 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20506 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20507 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20508 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20509 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20510 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20511 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20512 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20513 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20514 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20515 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20516 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20517 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20518 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20519 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20520 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20521 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20522 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20523 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20524 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20525 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20526 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20527 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20528 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20529 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20530 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20531 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20532 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20533 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20534 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20535 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20536 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20537 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20538 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20539 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20540 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20541 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
20544 LTCFLAGS='$LTCFLAGS'
20545 compiler='$compiler_DEFAULT'
20547 # A function that is used when there is no print builtin or printf.
20548 func_fallback_echo ()
20550 eval 'cat <<_LTECHO_EOF
20555 # Quote evaled strings.
20570 deplibs_check_method \
20575 sharedlib_from_linklib_cmd \
20578 archiver_list_spec \
20584 lt_cv_sys_global_symbol_pipe \
20585 lt_cv_sys_global_symbol_to_cdecl \
20586 lt_cv_sys_global_symbol_to_c_name_address \
20587 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20588 nm_file_list_spec \
20589 lt_prog_compiler_no_builtin_flag \
20590 lt_prog_compiler_pic \
20591 lt_prog_compiler_wl \
20592 lt_prog_compiler_static \
20593 lt_cv_prog_compiler_c_o \
20602 export_dynamic_flag_spec \
20603 whole_archive_flag_spec \
20604 compiler_needs_object \
20606 allow_undefined_flag \
20607 no_undefined_flag \
20608 hardcode_libdir_flag_spec \
20609 hardcode_libdir_separator \
20613 variables_saved_for_relink \
20615 library_names_spec \
20617 install_override_mode \
20621 compiler_lib_search_dirs \
20626 compiler_lib_search_path \
20630 lt_prog_compiler_no_builtin_flag_CXX \
20631 lt_prog_compiler_pic_CXX \
20632 lt_prog_compiler_wl_CXX \
20633 lt_prog_compiler_static_CXX \
20634 lt_cv_prog_compiler_c_o_CXX \
20635 export_dynamic_flag_spec_CXX \
20636 whole_archive_flag_spec_CXX \
20637 compiler_needs_object_CXX \
20639 allow_undefined_flag_CXX \
20640 no_undefined_flag_CXX \
20641 hardcode_libdir_flag_spec_CXX \
20642 hardcode_libdir_separator_CXX \
20643 exclude_expsyms_CXX \
20644 include_expsyms_CXX \
20645 file_list_spec_CXX \
20646 compiler_lib_search_dirs_CXX \
20647 predep_objects_CXX \
20648 postdep_objects_CXX \
20651 compiler_lib_search_path_CXX; do
20652 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20653 *[\\\\\\\`\\"\\\$]*)
20654 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20657 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20662 # Double-quote double-evaled strings.
20663 for var in reload_cmds \
20664 old_postinstall_cmds \
20665 old_postuninstall_cmds \
20667 extract_expsyms_cmds \
20668 old_archive_from_new_cmds \
20669 old_archive_from_expsyms_cmds \
20671 archive_expsym_cmds \
20673 module_expsym_cmds \
20674 export_symbols_cmds \
20678 postuninstall_cmds \
20680 sys_lib_search_path_spec \
20681 sys_lib_dlsearch_path_spec \
20683 old_archive_cmds_CXX \
20684 old_archive_from_new_cmds_CXX \
20685 old_archive_from_expsyms_cmds_CXX \
20687 archive_expsym_cmds_CXX \
20689 module_expsym_cmds_CXX \
20690 export_symbols_cmds_CXX \
20692 postlink_cmds_CXX; do
20693 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20694 *[\\\\\\\`\\"\\\$]*)
20695 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20698 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20703 ac_aux_dir='$ac_aux_dir'
20704 xsi_shell='$xsi_shell'
20705 lt_shell_append='$lt_shell_append'
20707 # See if we are running on zsh, and set the options which allow our
20708 # commands through without removal of \ escapes INIT.
20709 if test -n "\${ZSH_VERSION+set}" ; then
20710 setopt NO_GLOB_SUBST
20716 TIMESTAMP='$TIMESTAMP'
20728 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20730 # Handling of arguments.
20731 for ac_config_target in $ac_config_targets
20733 case $ac_config_target in
20734 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20735 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20736 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20737 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
20738 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
20739 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20740 "ibus-libpinyin.spec") CONFIG_FILES="$CONFIG_FILES ibus-libpinyin.spec" ;;
20741 "lua/Makefile") CONFIG_FILES="$CONFIG_FILES lua/Makefile" ;;
20742 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20743 "src/libpinyin.xml.in") CONFIG_FILES="$CONFIG_FILES src/libpinyin.xml.in" ;;
20744 "setup/Makefile") CONFIG_FILES="$CONFIG_FILES setup/Makefile" ;;
20745 "setup/ibus-setup-libpinyin") CONFIG_FILES="$CONFIG_FILES setup/ibus-setup-libpinyin" ;;
20746 "setup/config.py") CONFIG_FILES="$CONFIG_FILES setup/config.py" ;;
20747 "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
20748 "data/icons/Makefile") CONFIG_FILES="$CONFIG_FILES data/icons/Makefile" ;;
20749 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
20750 "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
20752 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20757 # If the user did not use the arguments to specify the items to instantiate,
20758 # then the envvar interface is used. Set only those that are not.
20759 # We use the long form for the default assignment because of an extremely
20760 # bizarre bug on SunOS 4.1.3.
20761 if $ac_need_defaults; then
20762 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20763 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20764 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20767 # Have a temporary directory for convenience. Make it in the build tree
20768 # simply because there is no reason against having it here, and in addition,
20769 # creating and moving files from /tmp can sometimes cause problems.
20770 # Hook for its removal unless debugging.
20771 # Note that there is a small window in which the directory will not be cleaned:
20772 # after its creation but before its name has been assigned to `$tmp'.
20776 trap 'exit_status=$?
20777 : "${ac_tmp:=$tmp}"
20778 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20780 trap 'as_fn_exit 1' 1 2 13 15
20782 # Create a (secure) tmp directory for tmp files.
20785 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20789 tmp=./conf$$-$RANDOM
20790 (umask 077 && mkdir "$tmp")
20791 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20794 # Set up the scripts for CONFIG_FILES section.
20795 # No need to generate them if there are no CONFIG_FILES.
20796 # This happens for instance with `./config.status config.h'.
20797 if test -n "$CONFIG_FILES"; then
20800 ac_cr=`echo X | tr X '\015'`
20801 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20802 # But we know of no other shell where ac_cr would be empty at this
20803 # point, so we can use a bashism as a fallback.
20804 if test "x$ac_cr" = x; then
20805 eval ac_cr=\$\'\\r\'
20807 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20808 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20811 ac_cs_awk_cr=$ac_cr
20814 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20819 echo "cat >conf$$subs.awk <<_ACEOF" &&
20820 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20822 } >conf$$subs.sh ||
20823 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20824 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20826 for ac_last_try in false false false false false :; do
20827 . ./conf$$subs.sh ||
20828 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20830 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20831 if test $ac_delim_n = $ac_delim_num; then
20833 elif $ac_last_try; then
20834 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20836 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20839 rm -f conf$$subs.sh
20841 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20842 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20846 s/^/S["/; s/!.*/"]=/
20856 s/\(.\{148\}\)..*/\1/
20858 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20863 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20870 s/\(.\{148\}\)..*/\1/
20872 s/["\\]/\\&/g; s/^/"/; s/$/"/
20876 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20881 ' <conf$$subs.awk | sed '
20886 ' >>$CONFIG_STATUS || ac_write_fail=1
20887 rm -f conf$$subs.awk
20888 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20890 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20891 for (key in S) S_is_set[key] = 1
20897 nfields = split(line, field, "@")
20899 len = length(field[1])
20900 for (i = 2; i < nfields; i++) {
20902 keylen = length(key)
20903 if (S_is_set[key]) {
20905 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20906 len += length(value) + length(field[++i])
20917 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20918 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20919 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20922 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20923 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20926 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20927 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20928 # trailing colons and then remove the whole line if VPATH becomes empty
20929 # (actually we leave an empty line to preserve line numbers).
20930 if test "x$srcdir" = x.; then
20931 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20949 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20950 fi # test -n "$CONFIG_FILES"
20952 # Set up the scripts for CONFIG_HEADERS section.
20953 # No need to generate them if there are no CONFIG_HEADERS.
20954 # This happens for instance with `./config.status Makefile'.
20955 if test -n "$CONFIG_HEADERS"; then
20956 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20960 # Transform confdefs.h into an awk script `defines.awk', embedded as
20961 # here-document in config.status, that substitutes the proper values into
20962 # config.h.in to produce config.h.
20964 # Create a delimiter string that does not exist in confdefs.h, to ease
20965 # handling of long lines.
20967 for ac_last_try in false false :; do
20968 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20969 if test -z "$ac_tt"; then
20971 elif $ac_last_try; then
20972 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20974 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20978 # For the awk script, D is an array of macro values keyed by name,
20979 # likewise P contains macro parameters if any. Preserve backslash
20980 # newline sequences.
20982 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20984 s/.\{148\}/&'"$ac_delim"'/g
20987 s/^[ ]*#[ ]*define[ ][ ]*/ /
20994 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20996 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21000 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21001 D["\1"]=" \3\\\\\\n"\\/p
21003 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21008 s/.\{148\}/&'"$ac_delim"'/g
21013 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21016 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21018 ' <confdefs.h | sed '
21019 s/'"$ac_delim"'/"\\\
21020 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21022 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21023 for (key in D) D_is_set[key] = 1
21026 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21028 split(line, arg, " ")
21029 if (arg[1] == "#") {
21033 defundef = substr(arg[1], 2)
21036 split(mac1, mac2, "(") #)
21038 prefix = substr(line, 1, index(line, defundef) - 1)
21039 if (D_is_set[macro]) {
21040 # Preserve the white space surrounding the "#".
21041 print prefix "define", macro P[macro] D[macro]
21044 # Replace #undef with comments. This is necessary, for example,
21045 # in the case of _POSIX_SOURCE, which is predefined and required
21046 # on some systems where configure will not decide to define it.
21047 if (defundef == "undef") {
21048 print "/*", prefix defundef, macro, "*/"
21056 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21057 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21058 fi # test -n "$CONFIG_HEADERS"
21061 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21066 :[FHLC]) ac_mode=$ac_tag; continue;;
21068 case $ac_mode$ac_tag in
21070 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21071 :[FH]-) ac_tag=-:-;;
21072 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21089 -) ac_f="$ac_tmp/stdin";;
21090 *) # Look for the file first in the build tree, then in the source tree
21091 # (if the path is not absolute). The absolute path cannot be DOS-style,
21092 # because $ac_f cannot contain `:'.
21096 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21098 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21100 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21101 as_fn_append ac_file_inputs " '$ac_f'"
21104 # Let's still pretend it is `configure' which instantiates (i.e., don't
21105 # use $as_me), people would be surprised to read:
21106 # /* config.h. Generated by config.status. */
21107 configure_input='Generated from '`
21108 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21110 if test x"$ac_file" != x-; then
21111 configure_input="$ac_file. $configure_input"
21112 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21113 $as_echo "$as_me: creating $ac_file" >&6;}
21115 # Neutralize special characters interpreted by sed in replacement strings.
21116 case $configure_input in #(
21117 *\&* | *\|* | *\\* )
21118 ac_sed_conf_input=`$as_echo "$configure_input" |
21119 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21120 *) ac_sed_conf_input=$configure_input;;
21124 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21125 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21130 ac_dir=`$as_dirname -- "$ac_file" ||
21131 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21132 X"$ac_file" : 'X\(//\)[^/]' \| \
21133 X"$ac_file" : 'X\(//\)$' \| \
21134 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21135 $as_echo X"$ac_file" |
21136 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21140 /^X\(\/\/\)[^/].*/{
21153 as_dir="$ac_dir"; as_fn_mkdir_p
21157 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21159 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21160 # A ".." for each directory in $ac_dir_suffix.
21161 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21162 case $ac_top_builddir_sub in
21163 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21164 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21167 ac_abs_top_builddir=$ac_pwd
21168 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21169 # for backward compatibility:
21170 ac_top_builddir=$ac_top_build_prefix
21173 .) # We are building in place.
21175 ac_top_srcdir=$ac_top_builddir_sub
21176 ac_abs_top_srcdir=$ac_pwd ;;
21177 [\\/]* | ?:[\\/]* ) # Absolute name.
21178 ac_srcdir=$srcdir$ac_dir_suffix;
21179 ac_top_srcdir=$srcdir
21180 ac_abs_top_srcdir=$srcdir ;;
21181 *) # Relative name.
21182 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21183 ac_top_srcdir=$ac_top_build_prefix$srcdir
21184 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21186 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21196 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21197 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21199 ac_MKDIR_P=$MKDIR_P
21201 [\\/$]* | ?:[\\/]* ) ;;
21202 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21206 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21207 # If the template does not know about datarootdir, expand it.
21208 # FIXME: This hack should be removed a few years after 2.60.
21209 ac_datarootdir_hack=; ac_datarootdir_seen=
21220 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21221 *datarootdir*) ac_datarootdir_seen=yes;;
21222 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21224 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21226 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21227 ac_datarootdir_hack='
21228 s&@datadir@&$datadir&g
21229 s&@docdir@&$docdir&g
21230 s&@infodir@&$infodir&g
21231 s&@localedir@&$localedir&g
21232 s&@mandir@&$mandir&g
21233 s&\\\${datarootdir}&$datarootdir&g' ;;
21237 # Neutralize VPATH when `$srcdir' = `.'.
21238 # Shell code in configure.ac might set extrasub.
21239 # FIXME: do we really want to maintain this feature?
21240 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21241 ac_sed_extra="$ac_vpsub
21244 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21246 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21247 s|@configure_input@|$ac_sed_conf_input|;t t
21248 s&@top_builddir@&$ac_top_builddir_sub&;t t
21249 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21250 s&@srcdir@&$ac_srcdir&;t t
21251 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21252 s&@top_srcdir@&$ac_top_srcdir&;t t
21253 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21254 s&@builddir@&$ac_builddir&;t t
21255 s&@abs_builddir@&$ac_abs_builddir&;t t
21256 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21257 s&@INSTALL@&$ac_INSTALL&;t t
21258 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21259 $ac_datarootdir_hack
21261 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21262 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21264 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21265 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21266 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21267 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21269 which seems to be undefined. Please make sure it is defined" >&5
21270 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21271 which seems to be undefined. Please make sure it is defined" >&2;}
21273 rm -f "$ac_tmp/stdin"
21275 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21276 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21278 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21284 if test x"$ac_file" != x-; then
21286 $as_echo "/* $configure_input */" \
21287 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21288 } >"$ac_tmp/config.h" \
21289 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21290 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21291 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21292 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21295 mv "$ac_tmp/config.h" "$ac_file" \
21296 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21299 $as_echo "/* $configure_input */" \
21300 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21301 || as_fn_error $? "could not create -" "$LINENO" 5
21303 # Compute "$ac_file"'s index in $config_headers.
21306 for _am_header in $config_headers :; do
21307 case $_am_header in
21308 $_am_arg | $_am_arg:* )
21311 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21314 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21315 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21316 X"$_am_arg" : 'X\(//\)[^/]' \| \
21317 X"$_am_arg" : 'X\(//\)$' \| \
21318 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21319 $as_echo X"$_am_arg" |
21320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21324 /^X\(\/\/\)[^/].*/{
21336 s/.*/./; q'`/stamp-h$_am_stamp_count
21339 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21340 $as_echo "$as_me: executing $ac_file commands" >&6;}
21345 case $ac_file$ac_mode in
21346 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21347 # Older Autoconf quotes --file arguments for eval, but not when files
21348 # are listed without --file. Let's play safe and only enable the eval
21349 # if we detect the quoting.
21350 case $CONFIG_FILES in
21351 *\'*) eval set x "$CONFIG_FILES" ;;
21352 *) set x $CONFIG_FILES ;;
21357 # Strip MF so we end up with the name of the file.
21358 mf=`echo "$mf" | sed -e 's/:.*$//'`
21359 # Check whether this is an Automake generated Makefile or not.
21360 # We used to match only the files named 'Makefile.in', but
21361 # some people rename them; so instead we look at the file content.
21362 # Grep'ing the first line is not enough: some people post-process
21363 # each Makefile.in and add a new line on top of each file to say so.
21364 # Grep'ing the whole file is not good either: AIX grep has a line
21365 # limit of 2048, but all sed's we know have understand at least 4000.
21366 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21367 dirpart=`$as_dirname -- "$mf" ||
21368 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21369 X"$mf" : 'X\(//\)[^/]' \| \
21370 X"$mf" : 'X\(//\)$' \| \
21371 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21373 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21377 /^X\(\/\/\)[^/].*/{
21393 # Extract the definition of DEPDIR, am__include, and am__quote
21394 # from the Makefile without running 'make'.
21395 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21396 test -z "$DEPDIR" && continue
21397 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21398 test -z "$am__include" && continue
21399 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21400 # Find all dependency output files, they are included files with
21401 # $(DEPDIR) in their names. We invoke sed twice because it is the
21402 # simplest approach to changing $(DEPDIR) to its actual value in the
21404 for file in `sed -n "
21405 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21406 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
21407 # Make sure the directory exists.
21408 test -f "$dirpart/$file" && continue
21409 fdir=`$as_dirname -- "$file" ||
21410 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21411 X"$file" : 'X\(//\)[^/]' \| \
21412 X"$file" : 'X\(//\)$' \| \
21413 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21414 $as_echo X"$file" |
21415 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21419 /^X\(\/\/\)[^/].*/{
21432 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21433 # echo "creating $dirpart/$file"
21434 echo '# dummy' > "$dirpart/$file"
21441 # See if we are running on zsh, and set the options which allow our
21442 # commands through without removal of \ escapes.
21443 if test -n "${ZSH_VERSION+set}" ; then
21444 setopt NO_GLOB_SUBST
21447 cfgfile="${ofile}T"
21448 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21451 cat <<_LT_EOF >> "$cfgfile"
21454 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21455 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21456 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21457 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21459 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21460 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
21462 # Written by Gordon Matzigkeit, 1996
21464 # This file is part of GNU Libtool.
21466 # GNU Libtool is free software; you can redistribute it and/or
21467 # modify it under the terms of the GNU General Public License as
21468 # published by the Free Software Foundation; either version 2 of
21469 # the License, or (at your option) any later version.
21471 # As a special exception to the GNU General Public License,
21472 # if you distribute this file as part of a program or library that
21473 # is built using GNU Libtool, you may include this file under the
21474 # same distribution terms that you use for the rest of that program.
21476 # GNU Libtool is distributed in the hope that it will be useful,
21477 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21478 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21479 # GNU General Public License for more details.
21481 # You should have received a copy of the GNU General Public License
21482 # along with GNU Libtool; see the file COPYING. If not, a copy
21483 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21484 # obtained by writing to the Free Software Foundation, Inc.,
21485 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21488 # The names of the tagged configurations supported by this script.
21489 available_tags="CXX "
21491 # ### BEGIN LIBTOOL CONFIG
21493 # Whether or not to build static libraries.
21494 build_old_libs=$enable_static
21496 # Which release of libtool.m4 was used?
21497 macro_version=$macro_version
21498 macro_revision=$macro_revision
21500 # Whether or not to build shared libraries.
21501 build_libtool_libs=$enable_shared
21503 # What type of objects to build.
21506 # Whether or not to optimize for fast installation.
21507 fast_install=$enable_fast_install
21509 # Shell to use when invoking shell scripts.
21512 # An echo program that protects backslashes.
21515 # The PATH separator for the build system.
21516 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21519 host_alias=$host_alias
21523 # The build system.
21524 build_alias=$build_alias
21528 # A sed program that does not truncate output.
21531 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21532 Xsed="\$SED -e 1s/^X//"
21534 # A grep program that handles long lines.
21540 # A literal string matcher.
21543 # A BSD- or MS-compatible name lister.
21546 # Whether we need soft or hard links.
21549 # What is the maximum length of a command?
21550 max_cmd_len=$max_cmd_len
21552 # Object file suffix (normally "o").
21555 # Executable file suffix (normally "").
21558 # whether the shell understands "unset".
21561 # turn spaces into newlines.
21564 # turn newlines into spaces.
21567 # convert \$build file names to \$host format.
21568 to_host_file_cmd=$lt_cv_to_host_file_cmd
21570 # convert \$build files to toolchain format.
21571 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21573 # An object symbol dumper.
21574 OBJDUMP=$lt_OBJDUMP
21576 # Method to check whether dependent libraries are shared objects.
21577 deplibs_check_method=$lt_deplibs_check_method
21579 # Command to use when deplibs_check_method = "file_magic".
21580 file_magic_cmd=$lt_file_magic_cmd
21582 # How to find potential files when deplibs_check_method = "file_magic".
21583 file_magic_glob=$lt_file_magic_glob
21585 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21586 want_nocaseglob=$lt_want_nocaseglob
21588 # DLL creation program.
21589 DLLTOOL=$lt_DLLTOOL
21591 # Command to associate shared and link libraries.
21592 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21597 # Flags to create an archive.
21598 AR_FLAGS=$lt_AR_FLAGS
21600 # How to feed a file listing to the archiver.
21601 archiver_list_spec=$lt_archiver_list_spec
21603 # A symbol stripping program.
21606 # Commands used to install an old-style archive.
21608 old_postinstall_cmds=$lt_old_postinstall_cmds
21609 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21611 # Whether to use a lock for old archive extraction.
21612 lock_old_archive_extraction=$lock_old_archive_extraction
21617 # LTCC compiler flags.
21618 LTCFLAGS=$lt_CFLAGS
21620 # Take the output of nm and produce a listing of raw symbols and C names.
21621 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21623 # Transform the output of nm in a proper C declaration.
21624 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21626 # Transform the output of nm in a C name address pair.
21627 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21629 # Transform the output of nm in a C name address pair when lib prefix is needed.
21630 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21632 # Specify filename containing input files for \$NM.
21633 nm_file_list_spec=$lt_nm_file_list_spec
21635 # The root where to search for dependent libraries,and in which our libraries should be installed.
21636 lt_sysroot=$lt_sysroot
21638 # The name of the directory that contains temporary libtool files.
21641 # Used to examine libraries when file_magic_cmd begins with "file".
21642 MAGIC_CMD=$MAGIC_CMD
21644 # Must we lock files when doing compilation?
21645 need_locks=$lt_need_locks
21648 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21650 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21651 DSYMUTIL=$lt_DSYMUTIL
21653 # Tool to change global to local symbols on Mac OS X.
21656 # Tool to manipulate fat objects and archives on Mac OS X.
21659 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21662 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21663 OTOOL64=$lt_OTOOL64
21665 # Old archive suffix (normally "a").
21668 # Shared library suffix (normally ".so").
21669 shrext_cmds=$lt_shrext_cmds
21671 # The commands to extract the exported symbol list from a shared archive.
21672 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21674 # Variables whose values should be saved in libtool wrapper scripts and
21675 # restored at link time.
21676 variables_saved_for_relink=$lt_variables_saved_for_relink
21678 # Do we need the "lib" prefix for modules?
21679 need_lib_prefix=$need_lib_prefix
21681 # Do we need a version for libraries?
21682 need_version=$need_version
21684 # Library versioning type.
21685 version_type=$version_type
21687 # Shared library runtime path variable.
21688 runpath_var=$runpath_var
21690 # Shared library path variable.
21691 shlibpath_var=$shlibpath_var
21693 # Is shlibpath searched before the hard-coded library search path?
21694 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21696 # Format of library name prefix.
21697 libname_spec=$lt_libname_spec
21699 # List of archive names. First name is the real one, the rest are links.
21700 # The last name is the one that the linker finds with -lNAME
21701 library_names_spec=$lt_library_names_spec
21703 # The coded name of the library, if different from the real name.
21704 soname_spec=$lt_soname_spec
21706 # Permission mode override for installation of shared libraries.
21707 install_override_mode=$lt_install_override_mode
21709 # Command to use after installation of a shared archive.
21710 postinstall_cmds=$lt_postinstall_cmds
21712 # Command to use after uninstallation of a shared archive.
21713 postuninstall_cmds=$lt_postuninstall_cmds
21715 # Commands used to finish a libtool library installation in a directory.
21716 finish_cmds=$lt_finish_cmds
21718 # As "finish_cmds", except a single script fragment to be evaled but
21720 finish_eval=$lt_finish_eval
21722 # Whether we should hardcode library paths into libraries.
21723 hardcode_into_libs=$hardcode_into_libs
21725 # Compile-time system search path for libraries.
21726 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21728 # Run-time system search path for libraries.
21729 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21731 # Whether dlopen is supported.
21732 dlopen_support=$enable_dlopen
21734 # Whether dlopen of programs is supported.
21735 dlopen_self=$enable_dlopen_self
21737 # Whether dlopen of statically linked programs is supported.
21738 dlopen_self_static=$enable_dlopen_self_static
21740 # Commands to strip libraries.
21741 old_striplib=$lt_old_striplib
21742 striplib=$lt_striplib
21745 # The linker used to build libraries.
21748 # How to create reloadable object files.
21749 reload_flag=$lt_reload_flag
21750 reload_cmds=$lt_reload_cmds
21752 # Commands used to build an old-style archive.
21753 old_archive_cmds=$lt_old_archive_cmds
21755 # A language specific compiler.
21758 # Is the compiler the GNU compiler?
21761 # Compiler flag to turn off builtin functions.
21762 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21764 # Additional compiler flags for building library objects.
21765 pic_flag=$lt_lt_prog_compiler_pic
21767 # How to pass a linker flag through the compiler.
21768 wl=$lt_lt_prog_compiler_wl
21770 # Compiler flag to prevent dynamic linking.
21771 link_static_flag=$lt_lt_prog_compiler_static
21773 # Does compiler simultaneously support -c and -o options?
21774 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21776 # Whether or not to add -lc for building shared libraries.
21777 build_libtool_need_lc=$archive_cmds_need_lc
21779 # Whether or not to disallow shared libs when runtime libs are static.
21780 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21782 # Compiler flag to allow reflexive dlopens.
21783 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21785 # Compiler flag to generate shared objects directly from archives.
21786 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21788 # Whether the compiler copes with passing no objects directly.
21789 compiler_needs_object=$lt_compiler_needs_object
21791 # Create an old-style archive from a shared archive.
21792 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21794 # Create a temporary old-style archive to link instead of a shared archive.
21795 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21797 # Commands used to build a shared archive.
21798 archive_cmds=$lt_archive_cmds
21799 archive_expsym_cmds=$lt_archive_expsym_cmds
21801 # Commands used to build a loadable module if different from building
21802 # a shared archive.
21803 module_cmds=$lt_module_cmds
21804 module_expsym_cmds=$lt_module_expsym_cmds
21806 # Whether we are building with GNU ld or not.
21807 with_gnu_ld=$lt_with_gnu_ld
21809 # Flag that allows shared libraries with undefined symbols to be built.
21810 allow_undefined_flag=$lt_allow_undefined_flag
21812 # Flag that enforces no undefined symbols.
21813 no_undefined_flag=$lt_no_undefined_flag
21815 # Flag to hardcode \$libdir into a binary during linking.
21816 # This must work even if \$libdir does not exist
21817 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21819 # Whether we need a single "-rpath" flag with a separated argument.
21820 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21822 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21823 # DIR into the resulting binary.
21824 hardcode_direct=$hardcode_direct
21826 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21827 # DIR into the resulting binary and the resulting library dependency is
21828 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21829 # library is relocated.
21830 hardcode_direct_absolute=$hardcode_direct_absolute
21832 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21833 # into the resulting binary.
21834 hardcode_minus_L=$hardcode_minus_L
21836 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21837 # into the resulting binary.
21838 hardcode_shlibpath_var=$hardcode_shlibpath_var
21840 # Set to "yes" if building a shared library automatically hardcodes DIR
21841 # into the library and all subsequent libraries and executables linked
21843 hardcode_automatic=$hardcode_automatic
21845 # Set to yes if linker adds runtime paths of dependent libraries
21846 # to runtime path list.
21847 inherit_rpath=$inherit_rpath
21849 # Whether libtool must link a program against all its dependency libraries.
21850 link_all_deplibs=$link_all_deplibs
21852 # Set to "yes" if exported symbols are required.
21853 always_export_symbols=$always_export_symbols
21855 # The commands to list exported symbols.
21856 export_symbols_cmds=$lt_export_symbols_cmds
21858 # Symbols that should not be listed in the preloaded symbols.
21859 exclude_expsyms=$lt_exclude_expsyms
21861 # Symbols that must always be exported.
21862 include_expsyms=$lt_include_expsyms
21864 # Commands necessary for linking programs (against libraries) with templates.
21865 prelink_cmds=$lt_prelink_cmds
21867 # Commands necessary for finishing linking programs.
21868 postlink_cmds=$lt_postlink_cmds
21870 # Specify filename containing input files.
21871 file_list_spec=$lt_file_list_spec
21873 # How to hardcode a shared library path into an executable.
21874 hardcode_action=$hardcode_action
21876 # The directories searched by this compiler when creating a shared library.
21877 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21879 # Dependencies to place before and after the objects being linked to
21880 # create a shared library.
21881 predep_objects=$lt_predep_objects
21882 postdep_objects=$lt_postdep_objects
21883 predeps=$lt_predeps
21884 postdeps=$lt_postdeps
21886 # The library search path used internally by the compiler when linking
21887 # a shared library.
21888 compiler_lib_search_path=$lt_compiler_lib_search_path
21890 # ### END LIBTOOL CONFIG
21896 cat <<\_LT_EOF >> "$cfgfile"
21897 # AIX sometimes has problems with the GCC collect2 program. For some
21898 # reason, if we set the COLLECT_NAMES environment variable, the problems
21899 # vanish in a puff of smoke.
21900 if test "X${COLLECT_NAMES+set}" != Xset; then
21902 export COLLECT_NAMES
21909 ltmain="$ac_aux_dir/ltmain.sh"
21912 # We use sed instead of cat because bash on DJGPP gets confused if
21913 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21914 # text mode, it properly converts lines to CR/LF. This bash problem
21915 # is reportedly fixed, but why not run on old versions too?
21916 sed '$q' "$ltmain" >> "$cfgfile" \
21917 || (rm -f "$cfgfile"; exit 1)
21919 if test x"$xsi_shell" = xyes; then
21920 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
21924 \ */*) func_dirname_result="${1%/*}${2}" ;;\
21925 \ * ) func_dirname_result="${3}" ;;\
21927 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
21928 && mv -f "$cfgfile.tmp" "$cfgfile" \
21929 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21930 test 0 -eq $? || _lt_function_replace_fail=:
21933 sed -e '/^func_basename ()$/,/^} # func_basename /c\
21936 \ func_basename_result="${1##*/}"\
21937 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
21938 && mv -f "$cfgfile.tmp" "$cfgfile" \
21939 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21940 test 0 -eq $? || _lt_function_replace_fail=:
21943 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
21944 func_dirname_and_basename ()\
21947 \ */*) func_dirname_result="${1%/*}${2}" ;;\
21948 \ * ) func_dirname_result="${3}" ;;\
21950 \ func_basename_result="${1##*/}"\
21951 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
21952 && mv -f "$cfgfile.tmp" "$cfgfile" \
21953 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21954 test 0 -eq $? || _lt_function_replace_fail=:
21957 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
21960 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
21961 \ # positional parameters, so assign one to ordinary parameter first.\
21962 \ func_stripname_result=${3}\
21963 \ func_stripname_result=${func_stripname_result#"${1}"}\
21964 \ func_stripname_result=${func_stripname_result%"${2}"}\
21965 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
21966 && mv -f "$cfgfile.tmp" "$cfgfile" \
21967 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21968 test 0 -eq $? || _lt_function_replace_fail=:
21971 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
21972 func_split_long_opt ()\
21974 \ func_split_long_opt_name=${1%%=*}\
21975 \ func_split_long_opt_arg=${1#*=}\
21976 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
21977 && mv -f "$cfgfile.tmp" "$cfgfile" \
21978 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21979 test 0 -eq $? || _lt_function_replace_fail=:
21982 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21983 func_split_short_opt ()\
21985 \ func_split_short_opt_arg=${1#??}\
21986 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21987 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21988 && mv -f "$cfgfile.tmp" "$cfgfile" \
21989 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21990 test 0 -eq $? || _lt_function_replace_fail=:
21993 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21997 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21998 \ *) func_lo2o_result=${1} ;;\
22000 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
22001 && mv -f "$cfgfile.tmp" "$cfgfile" \
22002 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22003 test 0 -eq $? || _lt_function_replace_fail=:
22006 sed -e '/^func_xform ()$/,/^} # func_xform /c\
22009 func_xform_result=${1%.*}.lo\
22010 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
22011 && mv -f "$cfgfile.tmp" "$cfgfile" \
22012 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22013 test 0 -eq $? || _lt_function_replace_fail=:
22016 sed -e '/^func_arith ()$/,/^} # func_arith /c\
22019 func_arith_result=$(( $* ))\
22020 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
22021 && mv -f "$cfgfile.tmp" "$cfgfile" \
22022 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22023 test 0 -eq $? || _lt_function_replace_fail=:
22026 sed -e '/^func_len ()$/,/^} # func_len /c\
22029 func_len_result=${#1}\
22030 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
22031 && mv -f "$cfgfile.tmp" "$cfgfile" \
22032 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22033 test 0 -eq $? || _lt_function_replace_fail=:
22037 if test x"$lt_shell_append" = xyes; then
22038 sed -e '/^func_append ()$/,/^} # func_append /c\
22041 eval "${1}+=\\${2}"\
22042 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
22043 && mv -f "$cfgfile.tmp" "$cfgfile" \
22044 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22045 test 0 -eq $? || _lt_function_replace_fail=:
22048 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
22049 func_append_quoted ()\
22051 \ func_quote_for_eval "${2}"\
22052 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
22053 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
22054 && mv -f "$cfgfile.tmp" "$cfgfile" \
22055 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22056 test 0 -eq $? || _lt_function_replace_fail=:
22059 # Save a `func_append' function call where possible by direct use of '+='
22060 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
22061 && mv -f "$cfgfile.tmp" "$cfgfile" \
22062 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22063 test 0 -eq $? || _lt_function_replace_fail=:
22065 # Save a `func_append' function call even when '+=' is not available
22066 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
22067 && mv -f "$cfgfile.tmp" "$cfgfile" \
22068 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22069 test 0 -eq $? || _lt_function_replace_fail=:
22072 if test x"$_lt_function_replace_fail" = x":"; then
22073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
22074 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
22078 mv -f "$cfgfile" "$ofile" ||
22079 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22083 cat <<_LT_EOF >> "$ofile"
22085 # ### BEGIN LIBTOOL TAG CONFIG: CXX
22087 # The linker used to build libraries.
22090 # How to create reloadable object files.
22091 reload_flag=$lt_reload_flag_CXX
22092 reload_cmds=$lt_reload_cmds_CXX
22094 # Commands used to build an old-style archive.
22095 old_archive_cmds=$lt_old_archive_cmds_CXX
22097 # A language specific compiler.
22098 CC=$lt_compiler_CXX
22100 # Is the compiler the GNU compiler?
22103 # Compiler flag to turn off builtin functions.
22104 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22106 # Additional compiler flags for building library objects.
22107 pic_flag=$lt_lt_prog_compiler_pic_CXX
22109 # How to pass a linker flag through the compiler.
22110 wl=$lt_lt_prog_compiler_wl_CXX
22112 # Compiler flag to prevent dynamic linking.
22113 link_static_flag=$lt_lt_prog_compiler_static_CXX
22115 # Does compiler simultaneously support -c and -o options?
22116 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22118 # Whether or not to add -lc for building shared libraries.
22119 build_libtool_need_lc=$archive_cmds_need_lc_CXX
22121 # Whether or not to disallow shared libs when runtime libs are static.
22122 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22124 # Compiler flag to allow reflexive dlopens.
22125 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22127 # Compiler flag to generate shared objects directly from archives.
22128 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22130 # Whether the compiler copes with passing no objects directly.
22131 compiler_needs_object=$lt_compiler_needs_object_CXX
22133 # Create an old-style archive from a shared archive.
22134 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22136 # Create a temporary old-style archive to link instead of a shared archive.
22137 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22139 # Commands used to build a shared archive.
22140 archive_cmds=$lt_archive_cmds_CXX
22141 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22143 # Commands used to build a loadable module if different from building
22144 # a shared archive.
22145 module_cmds=$lt_module_cmds_CXX
22146 module_expsym_cmds=$lt_module_expsym_cmds_CXX
22148 # Whether we are building with GNU ld or not.
22149 with_gnu_ld=$lt_with_gnu_ld_CXX
22151 # Flag that allows shared libraries with undefined symbols to be built.
22152 allow_undefined_flag=$lt_allow_undefined_flag_CXX
22154 # Flag that enforces no undefined symbols.
22155 no_undefined_flag=$lt_no_undefined_flag_CXX
22157 # Flag to hardcode \$libdir into a binary during linking.
22158 # This must work even if \$libdir does not exist
22159 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22161 # Whether we need a single "-rpath" flag with a separated argument.
22162 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22164 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22165 # DIR into the resulting binary.
22166 hardcode_direct=$hardcode_direct_CXX
22168 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22169 # DIR into the resulting binary and the resulting library dependency is
22170 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22171 # library is relocated.
22172 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22174 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22175 # into the resulting binary.
22176 hardcode_minus_L=$hardcode_minus_L_CXX
22178 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22179 # into the resulting binary.
22180 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22182 # Set to "yes" if building a shared library automatically hardcodes DIR
22183 # into the library and all subsequent libraries and executables linked
22185 hardcode_automatic=$hardcode_automatic_CXX
22187 # Set to yes if linker adds runtime paths of dependent libraries
22188 # to runtime path list.
22189 inherit_rpath=$inherit_rpath_CXX
22191 # Whether libtool must link a program against all its dependency libraries.
22192 link_all_deplibs=$link_all_deplibs_CXX
22194 # Set to "yes" if exported symbols are required.
22195 always_export_symbols=$always_export_symbols_CXX
22197 # The commands to list exported symbols.
22198 export_symbols_cmds=$lt_export_symbols_cmds_CXX
22200 # Symbols that should not be listed in the preloaded symbols.
22201 exclude_expsyms=$lt_exclude_expsyms_CXX
22203 # Symbols that must always be exported.
22204 include_expsyms=$lt_include_expsyms_CXX
22206 # Commands necessary for linking programs (against libraries) with templates.
22207 prelink_cmds=$lt_prelink_cmds_CXX
22209 # Commands necessary for finishing linking programs.
22210 postlink_cmds=$lt_postlink_cmds_CXX
22212 # Specify filename containing input files.
22213 file_list_spec=$lt_file_list_spec_CXX
22215 # How to hardcode a shared library path into an executable.
22216 hardcode_action=$hardcode_action_CXX
22218 # The directories searched by this compiler when creating a shared library.
22219 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22221 # Dependencies to place before and after the objects being linked to
22222 # create a shared library.
22223 predep_objects=$lt_predep_objects_CXX
22224 postdep_objects=$lt_postdep_objects_CXX
22225 predeps=$lt_predeps_CXX
22226 postdeps=$lt_postdeps_CXX
22228 # The library search path used internally by the compiler when linking
22229 # a shared library.
22230 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22232 # ### END LIBTOOL TAG CONFIG: CXX
22236 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
22237 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
22240 if ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" > /dev/null ; then
22241 as_fn_error $? "po/Makefile.in.in was not created by intltoolize." "$LINENO" 5
22243 rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
22248 '"s|^| $ac_top_srcdir/|" \
22249 "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
22251 sed '/^POTFILES =/,/[^\\]$/ {
22255 ' "po/Makefile.in" >"po/Makefile"
22256 rm -f "po/Makefile.tmp"
22257 mv "po/stamp-it.tmp" "po/stamp-it"
22266 ac_clean_files=$ac_clean_files_save
22268 test $ac_write_fail = 0 ||
22269 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22272 # configure is writing to config.log, and then calls config.status.
22273 # config.status does its own redirection, appending to config.log.
22274 # Unfortunately, on DOS this fails, as config.log is still kept open
22275 # by configure, so config.status won't be able to write to it; its
22276 # output is simply discarded. So we exec the FD to /dev/null,
22277 # effectively closing config.log, so it can be properly (re)opened and
22278 # appended to by config.status. When coming back to configure, we
22279 # need to make the FD available again.
22280 if test "$no_create" != yes; then
22282 ac_config_status_args=
22283 test "$silent" = yes &&
22284 ac_config_status_args="$ac_config_status_args --quiet"
22286 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22288 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22289 # would make configure fail if this is the last instruction.
22290 $ac_cs_success || as_fn_exit 1
22292 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22294 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22298 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
22301 Install prefix $prefix
22302 Use boost $enable_boost
22303 Use opencc $enable_opencc
22304 Use libpinyin $enable_libpinyin
22305 Build lua extension $enable_lua_extension
22306 Build stroke input mode $enable_stroke_input_mode
22307 Build english input mode $enable_english_input_mode
22312 Install prefix $prefix
22313 Use boost $enable_boost
22314 Use opencc $enable_opencc
22315 Use libpinyin $enable_libpinyin
22316 Build lua extension $enable_lua_extension
22317 Build stroke input mode $enable_stroke_input_mode
22318 Build english input mode $enable_english_input_mode