2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for HarfBuzz 1.8.1.
5 # Report bugs to <https://github.com/harfbuzz/harfbuzz/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/harfbuzz/harfbuzz/issues/new about
279 $0: your system, including any error possibly output before
280 $0: this message. Then install a modern shell, or manually
281 $0: run the script under such a shell if you do have one."
287 SHELL=${CONFIG_SHELL-/bin/sh}
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
298 # Portably unset VAR.
301 { eval $1=; unset $1;}
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325 # Create "$as_dir" as a directory, including parents if necessary.
330 -*) as_dir=./$as_dir;;
332 test -d "$as_dir" || eval $as_mkdir_p || {
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
363 test -d "$as_dir" && break
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
409 as_val=`expr "$@" || test $? -eq 1`
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
421 as_status=$1; test $as_status -eq 0 && as_status=1
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
507 # Exit status is that of the last command.
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 elif ln conf$$.file conf$$ 2>/dev/null; then
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
554 test -d ./-p && rmdir ./-p
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581 ac_default_prefix=/usr/local
583 ac_config_libobj_dir=.
590 # Identity of this package.
591 PACKAGE_NAME='HarfBuzz'
592 PACKAGE_TARNAME='harfbuzz'
593 PACKAGE_VERSION='1.8.1'
594 PACKAGE_STRING='HarfBuzz 1.8.1'
595 PACKAGE_BUGREPORT='https://github.com/harfbuzz/harfbuzz/issues/new'
596 PACKAGE_URL='http://harfbuzz.org/'
598 ac_unique_file="src/harfbuzz.pc.in"
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
643 HAVE_DIRECTWRITE_FALSE
644 HAVE_DIRECTWRITE_TRUE
663 HAVE_ICU_BUILTIN_FALSE
664 HAVE_ICU_BUILTIN_TRUE
670 HAVE_FONTCONFIG_FALSE
682 HAVE_INTROSPECTION_FALSE
683 HAVE_INTROSPECTION_TRUE
684 INTROSPECTION_MAKEFILE
687 INTROSPECTION_TYPELIBDIR
689 INTROSPECTION_GENERATE
690 INTROSPECTION_COMPILER
691 INTROSPECTION_SCANNER
717 GTK_DOC_USE_REBASE_FALSE
718 GTK_DOC_USE_REBASE_TRUE
719 GTK_DOC_USE_LIBTOOL_FALSE
720 GTK_DOC_USE_LIBTOOL_TRUE
721 GTK_DOC_BUILD_PDF_FALSE
722 GTK_DOC_BUILD_PDF_TRUE
723 GTK_DOC_BUILD_HTML_FALSE
724 GTK_DOC_BUILD_HTML_TRUE
738 HB_LIBTOOL_VERSION_INFO
801 CODE_COVERAGE_LDFLAGS
803 CODE_COVERAGE_CXXFLAGS
805 CODE_COVERAGE_CPPFLAGS
809 CODE_COVERAGE_ENABLED
810 CODE_COVERAGE_ENABLED_FALSE
811 CODE_COVERAGE_ENABLED_TRUE
825 INSTALL_STRIP_PROGRAM
868 program_transform_name
881 enable_option_checking
885 enable_dependency_tracking
913 ac_precious_vars='build_alias
948 # Initialize some variables set by options.
950 ac_init_version=false
951 ac_unrecognized_opts=
953 # The variables have the same names as the options, with
954 # dashes changed to underlines.
962 program_transform_name=s,x,x,
970 # Installation directory options.
971 # These are left unexpanded so users can "make install exec_prefix=/foo"
972 # and all the variables that are supposed to be based on exec_prefix
973 # by default will actually change.
974 # Use braces instead of parens because sh, perl, etc. also accept them.
975 # (The list follows the same order as the GNU Coding Standards.)
976 bindir='${exec_prefix}/bin'
977 sbindir='${exec_prefix}/sbin'
978 libexecdir='${exec_prefix}/libexec'
979 datarootdir='${prefix}/share'
980 datadir='${datarootdir}'
981 sysconfdir='${prefix}/etc'
982 sharedstatedir='${prefix}/com'
983 localstatedir='${prefix}/var'
984 runstatedir='${localstatedir}/run'
985 includedir='${prefix}/include'
986 oldincludedir='/usr/include'
987 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
988 infodir='${datarootdir}/info'
993 libdir='${exec_prefix}/lib'
994 localedir='${datarootdir}/locale'
995 mandir='${datarootdir}/man'
1001 # If the previous option needs an argument, assign it.
1002 if test -n "$ac_prev"; then
1003 eval $ac_prev=\$ac_option
1009 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1014 # Accept the important Cygnus configure options, so we can diagnose typos.
1016 case $ac_dashdash$ac_option in
1020 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1022 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1023 bindir=$ac_optarg ;;
1025 -build | --build | --buil | --bui | --bu)
1026 ac_prev=build_alias ;;
1027 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1028 build_alias=$ac_optarg ;;
1030 -cache-file | --cache-file | --cache-fil | --cache-fi \
1031 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1032 ac_prev=cache_file ;;
1033 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1034 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1035 cache_file=$ac_optarg ;;
1037 --config-cache | -C)
1038 cache_file=config.cache ;;
1040 -datadir | --datadir | --datadi | --datad)
1042 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1043 datadir=$ac_optarg ;;
1045 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1046 | --dataroo | --dataro | --datar)
1047 ac_prev=datarootdir ;;
1048 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1049 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1050 datarootdir=$ac_optarg ;;
1052 -disable-* | --disable-*)
1053 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1054 # Reject names that are not valid shell variable names.
1055 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1056 as_fn_error $? "invalid feature name: $ac_useropt"
1057 ac_useropt_orig=$ac_useropt
1058 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1059 case $ac_user_opts in
1061 "enable_$ac_useropt"
1063 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1064 ac_unrecognized_sep=', ';;
1066 eval enable_$ac_useropt=no ;;
1068 -docdir | --docdir | --docdi | --doc | --do)
1070 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1071 docdir=$ac_optarg ;;
1073 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1075 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1076 dvidir=$ac_optarg ;;
1078 -enable-* | --enable-*)
1079 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1080 # Reject names that are not valid shell variable names.
1081 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1082 as_fn_error $? "invalid feature name: $ac_useropt"
1083 ac_useropt_orig=$ac_useropt
1084 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1085 case $ac_user_opts in
1087 "enable_$ac_useropt"
1089 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1090 ac_unrecognized_sep=', ';;
1092 eval enable_$ac_useropt=\$ac_optarg ;;
1094 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1095 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1096 | --exec | --exe | --ex)
1097 ac_prev=exec_prefix ;;
1098 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1099 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1100 | --exec=* | --exe=* | --ex=*)
1101 exec_prefix=$ac_optarg ;;
1103 -gas | --gas | --ga | --g)
1104 # Obsolete; use --with-gas.
1107 -help | --help | --hel | --he | -h)
1108 ac_init_help=long ;;
1109 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1110 ac_init_help=recursive ;;
1111 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1112 ac_init_help=short ;;
1114 -host | --host | --hos | --ho)
1115 ac_prev=host_alias ;;
1116 -host=* | --host=* | --hos=* | --ho=*)
1117 host_alias=$ac_optarg ;;
1119 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1121 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1123 htmldir=$ac_optarg ;;
1125 -includedir | --includedir | --includedi | --included | --include \
1126 | --includ | --inclu | --incl | --inc)
1127 ac_prev=includedir ;;
1128 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1129 | --includ=* | --inclu=* | --incl=* | --inc=*)
1130 includedir=$ac_optarg ;;
1132 -infodir | --infodir | --infodi | --infod | --info | --inf)
1134 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1135 infodir=$ac_optarg ;;
1137 -libdir | --libdir | --libdi | --libd)
1139 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1140 libdir=$ac_optarg ;;
1142 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1143 | --libexe | --libex | --libe)
1144 ac_prev=libexecdir ;;
1145 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1146 | --libexe=* | --libex=* | --libe=*)
1147 libexecdir=$ac_optarg ;;
1149 -localedir | --localedir | --localedi | --localed | --locale)
1150 ac_prev=localedir ;;
1151 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1152 localedir=$ac_optarg ;;
1154 -localstatedir | --localstatedir | --localstatedi | --localstated \
1155 | --localstate | --localstat | --localsta | --localst | --locals)
1156 ac_prev=localstatedir ;;
1157 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1158 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1159 localstatedir=$ac_optarg ;;
1161 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1163 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1164 mandir=$ac_optarg ;;
1166 -nfp | --nfp | --nf)
1167 # Obsolete; use --without-fp.
1170 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1171 | --no-cr | --no-c | -n)
1174 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1175 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1178 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1179 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1180 | --oldin | --oldi | --old | --ol | --o)
1181 ac_prev=oldincludedir ;;
1182 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1183 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1184 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1185 oldincludedir=$ac_optarg ;;
1187 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1189 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1190 prefix=$ac_optarg ;;
1192 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1193 | --program-pre | --program-pr | --program-p)
1194 ac_prev=program_prefix ;;
1195 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1196 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1197 program_prefix=$ac_optarg ;;
1199 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1200 | --program-suf | --program-su | --program-s)
1201 ac_prev=program_suffix ;;
1202 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1203 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1204 program_suffix=$ac_optarg ;;
1206 -program-transform-name | --program-transform-name \
1207 | --program-transform-nam | --program-transform-na \
1208 | --program-transform-n | --program-transform- \
1209 | --program-transform | --program-transfor \
1210 | --program-transfo | --program-transf \
1211 | --program-trans | --program-tran \
1212 | --progr-tra | --program-tr | --program-t)
1213 ac_prev=program_transform_name ;;
1214 -program-transform-name=* | --program-transform-name=* \
1215 | --program-transform-nam=* | --program-transform-na=* \
1216 | --program-transform-n=* | --program-transform-=* \
1217 | --program-transform=* | --program-transfor=* \
1218 | --program-transfo=* | --program-transf=* \
1219 | --program-trans=* | --program-tran=* \
1220 | --progr-tra=* | --program-tr=* | --program-t=*)
1221 program_transform_name=$ac_optarg ;;
1223 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1225 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1226 pdfdir=$ac_optarg ;;
1228 -psdir | --psdir | --psdi | --psd | --ps)
1230 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1233 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1234 | -silent | --silent | --silen | --sile | --sil)
1237 -runstatedir | --runstatedir | --runstatedi | --runstated \
1238 | --runstate | --runstat | --runsta | --runst | --runs \
1239 | --run | --ru | --r)
1240 ac_prev=runstatedir ;;
1241 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1242 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1243 | --run=* | --ru=* | --r=*)
1244 runstatedir=$ac_optarg ;;
1246 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1248 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1250 sbindir=$ac_optarg ;;
1252 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1253 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1254 | --sharedst | --shareds | --shared | --share | --shar \
1256 ac_prev=sharedstatedir ;;
1257 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1258 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1259 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1261 sharedstatedir=$ac_optarg ;;
1263 -site | --site | --sit)
1265 -site=* | --site=* | --sit=*)
1268 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1270 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1271 srcdir=$ac_optarg ;;
1273 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1274 | --syscon | --sysco | --sysc | --sys | --sy)
1275 ac_prev=sysconfdir ;;
1276 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1277 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1278 sysconfdir=$ac_optarg ;;
1280 -target | --target | --targe | --targ | --tar | --ta | --t)
1281 ac_prev=target_alias ;;
1282 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1283 target_alias=$ac_optarg ;;
1285 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1288 -version | --version | --versio | --versi | --vers | -V)
1289 ac_init_version=: ;;
1292 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1293 # Reject names that are not valid shell variable names.
1294 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1295 as_fn_error $? "invalid package name: $ac_useropt"
1296 ac_useropt_orig=$ac_useropt
1297 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1298 case $ac_user_opts in
1302 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1303 ac_unrecognized_sep=', ';;
1305 eval with_$ac_useropt=\$ac_optarg ;;
1307 -without-* | --without-*)
1308 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1309 # Reject names that are not valid shell variable names.
1310 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1311 as_fn_error $? "invalid package name: $ac_useropt"
1312 ac_useropt_orig=$ac_useropt
1313 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1314 case $ac_user_opts in
1318 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1319 ac_unrecognized_sep=', ';;
1321 eval with_$ac_useropt=no ;;
1324 # Obsolete; use --with-x.
1327 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1328 | --x-incl | --x-inc | --x-in | --x-i)
1329 ac_prev=x_includes ;;
1330 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1331 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1332 x_includes=$ac_optarg ;;
1334 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1335 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1336 ac_prev=x_libraries ;;
1337 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1338 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1339 x_libraries=$ac_optarg ;;
1341 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1342 Try \`$0 --help' for more information"
1346 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1347 # Reject names that are not valid shell variable names.
1348 case $ac_envvar in #(
1349 '' | [0-9]* | *[!_$as_cr_alnum]* )
1350 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1352 eval $ac_envvar=\$ac_optarg
1353 export $ac_envvar ;;
1356 # FIXME: should be removed in autoconf 3.0.
1357 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1358 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1359 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1360 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1366 if test -n "$ac_prev"; then
1367 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1368 as_fn_error $? "missing argument to $ac_option"
1371 if test -n "$ac_unrecognized_opts"; then
1372 case $enable_option_checking in
1374 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1375 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1379 # Check all directory arguments for consistency.
1380 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1381 datadir sysconfdir sharedstatedir localstatedir includedir \
1382 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1383 libdir localedir mandir runstatedir
1385 eval ac_val=\$$ac_var
1386 # Remove trailing slashes.
1389 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1390 eval $ac_var=\$ac_val;;
1392 # Be sure to have absolute directory names.
1394 [\\/$]* | ?:[\\/]* ) continue;;
1395 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1397 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1400 # There might be people who depend on the old broken behavior: `$host'
1401 # used to hold the argument of --host etc.
1402 # FIXME: To remove some day.
1405 target=$target_alias
1407 # FIXME: To remove some day.
1408 if test "x$host_alias" != x; then
1409 if test "x$build_alias" = x; then
1410 cross_compiling=maybe
1411 elif test "x$build_alias" != "x$host_alias"; then
1417 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1419 test "$silent" = yes && exec 6>/dev/null
1422 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1423 ac_ls_di=`ls -di .` &&
1424 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1425 as_fn_error $? "working directory cannot be determined"
1426 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1427 as_fn_error $? "pwd does not report name of working directory"
1430 # Find the source files, if location was not specified.
1431 if test -z "$srcdir"; then
1432 ac_srcdir_defaulted=yes
1433 # Try the directory containing this script, then the parent directory.
1434 ac_confdir=`$as_dirname -- "$as_myself" ||
1435 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1436 X"$as_myself" : 'X\(//\)[^/]' \| \
1437 X"$as_myself" : 'X\(//\)$' \| \
1438 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1439 $as_echo X"$as_myself" |
1440 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1458 if test ! -r "$srcdir/$ac_unique_file"; then
1462 ac_srcdir_defaulted=no
1464 if test ! -r "$srcdir/$ac_unique_file"; then
1465 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1466 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1468 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1470 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1472 # When building in place, set srcdir=.
1473 if test "$ac_abs_confdir" = "$ac_pwd"; then
1476 # Remove unnecessary trailing slashes from srcdir.
1477 # Double slashes in file names in object file debugging info
1478 # mess up M-x gdb in Emacs.
1480 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1482 for ac_var in $ac_precious_vars; do
1483 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1484 eval ac_env_${ac_var}_value=\$${ac_var}
1485 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1486 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1490 # Report the --help message.
1492 if test "$ac_init_help" = "long"; then
1493 # Omit some internal or obsolete options to make the list less imposing.
1494 # This message is too long to be a string in the A/UX 3.1 sh.
1496 \`configure' configures HarfBuzz 1.8.1 to adapt to many kinds of systems.
1498 Usage: $0 [OPTION]... [VAR=VALUE]...
1500 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1501 VAR=VALUE. See below for descriptions of some of the useful variables.
1503 Defaults for the options are specified in brackets.
1506 -h, --help display this help and exit
1507 --help=short display options specific to this package
1508 --help=recursive display the short help of all the included packages
1509 -V, --version display version information and exit
1510 -q, --quiet, --silent do not print \`checking ...' messages
1511 --cache-file=FILE cache test results in FILE [disabled]
1512 -C, --config-cache alias for \`--cache-file=config.cache'
1513 -n, --no-create do not create output files
1514 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1516 Installation directories:
1517 --prefix=PREFIX install architecture-independent files in PREFIX
1518 [$ac_default_prefix]
1519 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1522 By default, \`make install' will install all the files in
1523 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1524 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1525 for instance \`--prefix=\$HOME'.
1527 For better control, use the options below.
1529 Fine tuning of the installation directories:
1530 --bindir=DIR user executables [EPREFIX/bin]
1531 --sbindir=DIR system admin executables [EPREFIX/sbin]
1532 --libexecdir=DIR program executables [EPREFIX/libexec]
1533 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1534 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1535 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1536 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1537 --libdir=DIR object code libraries [EPREFIX/lib]
1538 --includedir=DIR C header files [PREFIX/include]
1539 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1540 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1541 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1542 --infodir=DIR info documentation [DATAROOTDIR/info]
1543 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1544 --mandir=DIR man documentation [DATAROOTDIR/man]
1545 --docdir=DIR documentation root [DATAROOTDIR/doc/harfbuzz]
1546 --htmldir=DIR html documentation [DOCDIR]
1547 --dvidir=DIR dvi documentation [DOCDIR]
1548 --pdfdir=DIR pdf documentation [DOCDIR]
1549 --psdir=DIR ps documentation [DOCDIR]
1555 --program-prefix=PREFIX prepend PREFIX to installed program names
1556 --program-suffix=SUFFIX append SUFFIX to installed program names
1557 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1560 --build=BUILD configure for building on BUILD [guessed]
1561 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1565 if test -n "$ac_init_help"; then
1566 case $ac_init_help in
1567 short | recursive ) echo "Configuration of HarfBuzz 1.8.1:";;
1572 --disable-option-checking ignore unrecognized --enable/--with options
1573 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1574 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1575 --enable-silent-rules less verbose build output (undo: "make V=1")
1576 --disable-silent-rules verbose build output (undo: "make V=0")
1577 --enable-code-coverage Whether to enable code coverage support
1578 --enable-dependency-tracking
1579 do not reject slow dependency extractors
1580 --disable-dependency-tracking
1581 speeds up one-time build
1582 --enable-static[=PKGS] build static libraries [default=no]
1583 --enable-shared[=PKGS] build shared libraries [default=yes]
1584 --enable-fast-install[=PKGS]
1585 optimize for fast installation [default=yes]
1586 --disable-libtool-lock avoid locking (might break parallel builds)
1587 --disable-largefile omit support for large files
1588 --enable-gtk-doc use gtk-doc to build documentation [[default=no]]
1589 --enable-gtk-doc-html build documentation in html format [[default=yes]]
1590 --enable-gtk-doc-pdf build documentation in pdf format [[default=no]]
1591 --enable-introspection=[no/auto/yes]
1592 Enable introspection for this build
1595 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1596 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1597 --with-gcov=GCOV use given GCOV for coverage (GCOV=gcov).
1598 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1600 --with-aix-soname=aix|svr4|both
1601 shared library versioning (aka "SONAME") variant to
1602 provide on AIX, [default=aix].
1603 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1604 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1605 compiler's sysroot if not specified).
1606 --with-libstdc++=[yes/no]
1607 Allow linking with libstdc++ [default=no]
1608 --with-html-dir=PATH path to installed docs
1609 --with-glib=[yes/no/auto]
1610 Use glib [default=auto]
1611 --with-gobject=[yes/no/auto]
1612 Use gobject [default=no]
1613 --with-cairo=[yes/no/auto]
1614 Use cairo [default=auto]
1615 --with-fontconfig=[yes/no/auto]
1616 Use fontconfig [default=auto]
1617 --with-icu=[yes/no/builtin/auto]
1618 Use ICU [default=auto]
1619 --with-ucdn=[yes/no] Use builtin UCDN library [default=yes]
1620 --with-graphite2=[yes/no/auto]
1621 Use the graphite2 library [default=no]
1622 --with-freetype=[yes/no/auto]
1623 Use the FreeType library [default=auto]
1624 --with-uniscribe=[yes/no/auto]
1625 Use the Uniscribe library [default=no]
1626 --with-directwrite=[yes/no/auto]
1627 Use the DirectWrite library (experimental)
1629 --with-coretext=[yes/no/auto]
1630 Use CoreText [default=no]
1632 Some influential environment variables:
1633 CC C compiler command
1634 CFLAGS C compiler flags
1635 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1636 nonstandard directory <lib dir>
1637 LIBS libraries to pass to the linker, e.g. -l<library>
1638 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1639 you have headers in a nonstandard directory <include dir>
1641 User-defined run-time library search path.
1643 CXX C++ compiler command
1644 CXXFLAGS C++ compiler flags
1645 CXXCPP C++ preprocessor
1646 PKG_CONFIG path to pkg-config utility
1648 C compiler flags for GTKDOC_DEPS, overriding pkg-config
1650 linker flags for GTKDOC_DEPS, overriding pkg-config
1651 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1652 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1654 C compiler flags for GOBJECT, overriding pkg-config
1656 linker flags for GOBJECT, overriding pkg-config
1658 C compiler flags for CAIRO, overriding pkg-config
1659 CAIRO_LIBS linker flags for CAIRO, overriding pkg-config
1661 C compiler flags for CAIRO_FT, overriding pkg-config
1663 linker flags for CAIRO_FT, overriding pkg-config
1665 C compiler flags for FONTCONFIG, overriding pkg-config
1667 linker flags for FONTCONFIG, overriding pkg-config
1668 ICU_CFLAGS C compiler flags for ICU, overriding pkg-config
1669 ICU_LIBS linker flags for ICU, overriding pkg-config
1671 C compiler flags for GRAPHITE2, overriding pkg-config
1673 linker flags for GRAPHITE2, overriding pkg-config
1675 C compiler flags for FREETYPE, overriding pkg-config
1677 linker flags for FREETYPE, overriding pkg-config
1679 Use these variables to override the choices made by `configure' or to help
1680 it to find libraries and programs with nonstandard names/locations.
1682 Report bugs to <https://github.com/harfbuzz/harfbuzz/issues/new>.
1683 HarfBuzz home page: <http://harfbuzz.org/>.
1688 if test "$ac_init_help" = "recursive"; then
1689 # If there are subdirs, report their specific --help.
1690 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1691 test -d "$ac_dir" ||
1692 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1697 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1699 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1700 # A ".." for each directory in $ac_dir_suffix.
1701 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1702 case $ac_top_builddir_sub in
1703 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1704 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1707 ac_abs_top_builddir=$ac_pwd
1708 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1709 # for backward compatibility:
1710 ac_top_builddir=$ac_top_build_prefix
1713 .) # We are building in place.
1715 ac_top_srcdir=$ac_top_builddir_sub
1716 ac_abs_top_srcdir=$ac_pwd ;;
1717 [\\/]* | ?:[\\/]* ) # Absolute name.
1718 ac_srcdir=$srcdir$ac_dir_suffix;
1719 ac_top_srcdir=$srcdir
1720 ac_abs_top_srcdir=$srcdir ;;
1722 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1723 ac_top_srcdir=$ac_top_build_prefix$srcdir
1724 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1726 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1728 cd "$ac_dir" || { ac_status=$?; continue; }
1729 # Check for guested configure.
1730 if test -f "$ac_srcdir/configure.gnu"; then
1732 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1733 elif test -f "$ac_srcdir/configure"; then
1735 $SHELL "$ac_srcdir/configure" --help=recursive
1737 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1739 cd "$ac_pwd" || { ac_status=$?; break; }
1743 test -n "$ac_init_help" && exit $ac_status
1744 if $ac_init_version; then
1746 HarfBuzz configure 1.8.1
1747 generated by GNU Autoconf 2.69
1749 Copyright (C) 2012 Free Software Foundation, Inc.
1750 This configure script is free software; the Free Software Foundation
1751 gives unlimited permission to copy, distribute and modify it.
1756 ## ------------------------ ##
1757 ## Autoconf initialization. ##
1758 ## ------------------------ ##
1760 # ac_fn_c_try_compile LINENO
1761 # --------------------------
1762 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1763 ac_fn_c_try_compile ()
1765 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1766 rm -f conftest.$ac_objext
1767 if { { ac_try="$ac_compile"
1769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1770 *) ac_try_echo=$ac_try;;
1772 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1773 $as_echo "$ac_try_echo"; } >&5
1774 (eval "$ac_compile") 2>conftest.err
1776 if test -s conftest.err; then
1777 grep -v '^ *+' conftest.err >conftest.er1
1778 cat conftest.er1 >&5
1779 mv -f conftest.er1 conftest.err
1781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1782 test $ac_status = 0; } && {
1783 test -z "$ac_c_werror_flag" ||
1784 test ! -s conftest.err
1785 } && test -s conftest.$ac_objext; then :
1788 $as_echo "$as_me: failed program was:" >&5
1789 sed 's/^/| /' conftest.$ac_ext >&5
1793 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1794 as_fn_set_status $ac_retval
1796 } # ac_fn_c_try_compile
1798 # ac_fn_c_try_link LINENO
1799 # -----------------------
1800 # Try to link conftest.$ac_ext, and return whether this succeeded.
1803 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1804 rm -f conftest.$ac_objext conftest$ac_exeext
1805 if { { ac_try="$ac_link"
1807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808 *) ac_try_echo=$ac_try;;
1810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811 $as_echo "$ac_try_echo"; } >&5
1812 (eval "$ac_link") 2>conftest.err
1814 if test -s conftest.err; then
1815 grep -v '^ *+' conftest.err >conftest.er1
1816 cat conftest.er1 >&5
1817 mv -f conftest.er1 conftest.err
1819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1820 test $ac_status = 0; } && {
1821 test -z "$ac_c_werror_flag" ||
1822 test ! -s conftest.err
1823 } && test -s conftest$ac_exeext && {
1824 test "$cross_compiling" = yes ||
1825 test -x conftest$ac_exeext
1829 $as_echo "$as_me: failed program was:" >&5
1830 sed 's/^/| /' conftest.$ac_ext >&5
1834 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1835 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1836 # interfere with the next link command; also delete a directory that is
1837 # left behind by Apple's compiler. We do this before executing the actions.
1838 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1839 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1840 as_fn_set_status $ac_retval
1842 } # ac_fn_c_try_link
1844 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1845 # -------------------------------------------------------
1846 # Tests whether HEADER exists and can be compiled using the include files in
1847 # INCLUDES, setting the cache variable VAR accordingly.
1848 ac_fn_c_check_header_compile ()
1850 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1852 $as_echo_n "checking for $2... " >&6; }
1853 if eval \${$3+:} false; then :
1854 $as_echo_n "(cached) " >&6
1856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1857 /* end confdefs.h. */
1861 if ac_fn_c_try_compile "$LINENO"; then :
1866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1870 $as_echo "$ac_res" >&6; }
1871 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1873 } # ac_fn_c_check_header_compile
1875 # ac_fn_c_try_cpp LINENO
1876 # ----------------------
1877 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1880 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881 if { { ac_try="$ac_cpp conftest.$ac_ext"
1883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1884 *) ac_try_echo=$ac_try;;
1886 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1887 $as_echo "$ac_try_echo"; } >&5
1888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1890 if test -s conftest.err; then
1891 grep -v '^ *+' conftest.err >conftest.er1
1892 cat conftest.er1 >&5
1893 mv -f conftest.er1 conftest.err
1895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1896 test $ac_status = 0; } > conftest.i && {
1897 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1898 test ! -s conftest.err
1902 $as_echo "$as_me: failed program was:" >&5
1903 sed 's/^/| /' conftest.$ac_ext >&5
1907 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1908 as_fn_set_status $ac_retval
1912 # ac_fn_c_try_run LINENO
1913 # ----------------------
1914 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1915 # that executables *can* be run.
1918 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1919 if { { ac_try="$ac_link"
1921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1922 *) ac_try_echo=$ac_try;;
1924 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1925 $as_echo "$ac_try_echo"; } >&5
1926 (eval "$ac_link") 2>&5
1928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1929 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1930 { { case "(($ac_try" in
1931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1932 *) ac_try_echo=$ac_try;;
1934 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1935 $as_echo "$ac_try_echo"; } >&5
1936 (eval "$ac_try") 2>&5
1938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1939 test $ac_status = 0; }; }; then :
1942 $as_echo "$as_me: program exited with status $ac_status" >&5
1943 $as_echo "$as_me: failed program was:" >&5
1944 sed 's/^/| /' conftest.$ac_ext >&5
1946 ac_retval=$ac_status
1948 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1949 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1950 as_fn_set_status $ac_retval
1954 # ac_fn_c_check_func LINENO FUNC VAR
1955 # ----------------------------------
1956 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1957 ac_fn_c_check_func ()
1959 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1961 $as_echo_n "checking for $2... " >&6; }
1962 if eval \${$3+:} false; then :
1963 $as_echo_n "(cached) " >&6
1965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1966 /* end confdefs.h. */
1967 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1968 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1969 #define $2 innocuous_$2
1971 /* System header to define __stub macros and hopefully few prototypes,
1972 which can conflict with char $2 (); below.
1973 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1974 <limits.h> exists even on freestanding compilers. */
1977 # include <limits.h>
1979 # include <assert.h>
1984 /* Override any GCC internal prototype to avoid an error.
1985 Use char because int might match the return type of a GCC
1986 builtin and then its argument prototype would still apply. */
1991 /* The GNU C library defines this for functions which it implements
1992 to always fail with ENOSYS. Some functions are actually named
1993 something starting with __ and the normal name is an alias. */
1994 #if defined __stub_$2 || defined __stub___$2
2006 if ac_fn_c_try_link "$LINENO"; then :
2011 rm -f core conftest.err conftest.$ac_objext \
2012 conftest$ac_exeext conftest.$ac_ext
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2016 $as_echo "$ac_res" >&6; }
2017 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2019 } # ac_fn_c_check_func
2021 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2022 # -------------------------------------------------------
2023 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2024 # the include files in INCLUDES and setting the cache variable VAR
2026 ac_fn_c_check_header_mongrel ()
2028 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2029 if eval \${$3+:} false; then :
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2031 $as_echo_n "checking for $2... " >&6; }
2032 if eval \${$3+:} false; then :
2033 $as_echo_n "(cached) " >&6
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2037 $as_echo "$ac_res" >&6; }
2039 # Is the header compilable?
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2041 $as_echo_n "checking $2 usability... " >&6; }
2042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2043 /* end confdefs.h. */
2047 if ac_fn_c_try_compile "$LINENO"; then :
2048 ac_header_compiler=yes
2050 ac_header_compiler=no
2052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2054 $as_echo "$ac_header_compiler" >&6; }
2056 # Is the header present?
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2058 $as_echo_n "checking $2 presence... " >&6; }
2059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2060 /* end confdefs.h. */
2063 if ac_fn_c_try_cpp "$LINENO"; then :
2064 ac_header_preproc=yes
2066 ac_header_preproc=no
2068 rm -f conftest.err conftest.i conftest.$ac_ext
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2070 $as_echo "$ac_header_preproc" >&6; }
2072 # So? What about this header?
2073 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2076 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2078 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2082 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2084 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2086 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2088 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2090 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2091 ( $as_echo "## -------------------------------------------------------------- ##
2092 ## Report this to https://github.com/harfbuzz/harfbuzz/issues/new ##
2093 ## -------------------------------------------------------------- ##"
2094 ) | sed "s/^/$as_me: WARNING: /" >&2
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2098 $as_echo_n "checking for $2... " >&6; }
2099 if eval \${$3+:} false; then :
2100 $as_echo_n "(cached) " >&6
2102 eval "$3=\$ac_header_compiler"
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2106 $as_echo "$ac_res" >&6; }
2108 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2110 } # ac_fn_c_check_header_mongrel
2112 # ac_fn_cxx_try_compile LINENO
2113 # ----------------------------
2114 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2115 ac_fn_cxx_try_compile ()
2117 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2118 rm -f conftest.$ac_objext
2119 if { { ac_try="$ac_compile"
2121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2122 *) ac_try_echo=$ac_try;;
2124 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2125 $as_echo "$ac_try_echo"; } >&5
2126 (eval "$ac_compile") 2>conftest.err
2128 if test -s conftest.err; then
2129 grep -v '^ *+' conftest.err >conftest.er1
2130 cat conftest.er1 >&5
2131 mv -f conftest.er1 conftest.err
2133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2134 test $ac_status = 0; } && {
2135 test -z "$ac_cxx_werror_flag" ||
2136 test ! -s conftest.err
2137 } && test -s conftest.$ac_objext; then :
2140 $as_echo "$as_me: failed program was:" >&5
2141 sed 's/^/| /' conftest.$ac_ext >&5
2145 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2146 as_fn_set_status $ac_retval
2148 } # ac_fn_cxx_try_compile
2150 # ac_fn_cxx_try_cpp LINENO
2151 # ------------------------
2152 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2153 ac_fn_cxx_try_cpp ()
2155 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2156 if { { ac_try="$ac_cpp conftest.$ac_ext"
2158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2159 *) ac_try_echo=$ac_try;;
2161 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2162 $as_echo "$ac_try_echo"; } >&5
2163 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2165 if test -s conftest.err; then
2166 grep -v '^ *+' conftest.err >conftest.er1
2167 cat conftest.er1 >&5
2168 mv -f conftest.er1 conftest.err
2170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2171 test $ac_status = 0; } > conftest.i && {
2172 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2173 test ! -s conftest.err
2177 $as_echo "$as_me: failed program was:" >&5
2178 sed 's/^/| /' conftest.$ac_ext >&5
2182 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2183 as_fn_set_status $ac_retval
2185 } # ac_fn_cxx_try_cpp
2187 # ac_fn_cxx_try_link LINENO
2188 # -------------------------
2189 # Try to link conftest.$ac_ext, and return whether this succeeded.
2190 ac_fn_cxx_try_link ()
2192 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2193 rm -f conftest.$ac_objext conftest$ac_exeext
2194 if { { ac_try="$ac_link"
2196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2197 *) ac_try_echo=$ac_try;;
2199 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2200 $as_echo "$ac_try_echo"; } >&5
2201 (eval "$ac_link") 2>conftest.err
2203 if test -s conftest.err; then
2204 grep -v '^ *+' conftest.err >conftest.er1
2205 cat conftest.er1 >&5
2206 mv -f conftest.er1 conftest.err
2208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2209 test $ac_status = 0; } && {
2210 test -z "$ac_cxx_werror_flag" ||
2211 test ! -s conftest.err
2212 } && test -s conftest$ac_exeext && {
2213 test "$cross_compiling" = yes ||
2214 test -x conftest$ac_exeext
2218 $as_echo "$as_me: failed program was:" >&5
2219 sed 's/^/| /' conftest.$ac_ext >&5
2223 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2224 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2225 # interfere with the next link command; also delete a directory that is
2226 # left behind by Apple's compiler. We do this before executing the actions.
2227 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2228 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2229 as_fn_set_status $ac_retval
2231 } # ac_fn_cxx_try_link
2233 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2234 # ---------------------------------------------
2235 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2237 ac_fn_c_check_decl ()
2239 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2240 as_decl_name=`echo $2|sed 's/ *(.*//'`
2241 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2243 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2244 if eval \${$3+:} false; then :
2245 $as_echo_n "(cached) " >&6
2247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2248 /* end confdefs.h. */
2253 #ifndef $as_decl_name
2255 (void) $as_decl_use;
2257 (void) $as_decl_name;
2265 if ac_fn_c_try_compile "$LINENO"; then :
2270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2274 $as_echo "$ac_res" >&6; }
2275 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2277 } # ac_fn_c_check_decl
2279 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2280 # --------------------------------------------
2281 # Tries to find the compile-time value of EXPR in a program that includes
2282 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2284 ac_fn_c_compute_int ()
2286 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2287 if test "$cross_compiling" = yes; then
2288 # Depending upon the size, compute the lo and hi bounds.
2289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2290 /* end confdefs.h. */
2295 static int test_array [1 - 2 * !(($2) >= 0)];
2297 return test_array [0];
2303 if ac_fn_c_try_compile "$LINENO"; then :
2306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2307 /* end confdefs.h. */
2312 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2314 return test_array [0];
2320 if ac_fn_c_try_compile "$LINENO"; then :
2321 ac_hi=$ac_mid; break
2323 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2324 if test $ac_lo -le $ac_mid; then
2328 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2334 /* end confdefs.h. */
2339 static int test_array [1 - 2 * !(($2) < 0)];
2341 return test_array [0];
2347 if ac_fn_c_try_compile "$LINENO"; then :
2350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2351 /* end confdefs.h. */
2356 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2358 return test_array [0];
2364 if ac_fn_c_try_compile "$LINENO"; then :
2365 ac_lo=$ac_mid; break
2367 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2368 if test $ac_mid -le $ac_hi; then
2372 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2382 # Binary search between lo and hi bounds.
2383 while test "x$ac_lo" != "x$ac_hi"; do
2384 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2386 /* end confdefs.h. */
2391 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2393 return test_array [0];
2399 if ac_fn_c_try_compile "$LINENO"; then :
2402 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2407 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2412 /* end confdefs.h. */
2414 static long int longval () { return $2; }
2415 static unsigned long int ulongval () { return $2; }
2422 FILE *f = fopen ("conftest.val", "w");
2427 long int i = longval ();
2430 fprintf (f, "%ld", i);
2434 unsigned long int i = ulongval ();
2437 fprintf (f, "%lu", i);
2439 /* Do not output a trailing newline, as this causes \r\n confusion
2440 on some platforms. */
2441 return ferror (f) || fclose (f) != 0;
2447 if ac_fn_c_try_run "$LINENO"; then :
2448 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2452 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2453 conftest.$ac_objext conftest.beam conftest.$ac_ext
2457 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2458 as_fn_set_status $ac_retval
2460 } # ac_fn_c_compute_int
2462 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2463 # ---------------------------------------------------------
2464 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2465 # the include files in INCLUDES and setting the cache variable VAR
2467 ac_fn_cxx_check_header_mongrel ()
2469 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2470 if eval \${$3+:} false; then :
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2472 $as_echo_n "checking for $2... " >&6; }
2473 if eval \${$3+:} false; then :
2474 $as_echo_n "(cached) " >&6
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2478 $as_echo "$ac_res" >&6; }
2480 # Is the header compilable?
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2482 $as_echo_n "checking $2 usability... " >&6; }
2483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2484 /* end confdefs.h. */
2488 if ac_fn_cxx_try_compile "$LINENO"; then :
2489 ac_header_compiler=yes
2491 ac_header_compiler=no
2493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2495 $as_echo "$ac_header_compiler" >&6; }
2497 # Is the header present?
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2499 $as_echo_n "checking $2 presence... " >&6; }
2500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2501 /* end confdefs.h. */
2504 if ac_fn_cxx_try_cpp "$LINENO"; then :
2505 ac_header_preproc=yes
2507 ac_header_preproc=no
2509 rm -f conftest.err conftest.i conftest.$ac_ext
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2511 $as_echo "$ac_header_preproc" >&6; }
2513 # So? What about this header?
2514 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2517 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2519 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2523 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2525 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2527 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2529 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2531 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2532 ( $as_echo "## -------------------------------------------------------------- ##
2533 ## Report this to https://github.com/harfbuzz/harfbuzz/issues/new ##
2534 ## -------------------------------------------------------------- ##"
2535 ) | sed "s/^/$as_me: WARNING: /" >&2
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2539 $as_echo_n "checking for $2... " >&6; }
2540 if eval \${$3+:} false; then :
2541 $as_echo_n "(cached) " >&6
2543 eval "$3=\$ac_header_compiler"
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2547 $as_echo "$ac_res" >&6; }
2549 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2551 } # ac_fn_cxx_check_header_mongrel
2553 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2554 # -------------------------------------------
2555 # Tests whether TYPE exists after having included INCLUDES, setting cache
2556 # variable VAR accordingly.
2557 ac_fn_c_check_type ()
2559 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2561 $as_echo_n "checking for $2... " >&6; }
2562 if eval \${$3+:} false; then :
2563 $as_echo_n "(cached) " >&6
2566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2567 /* end confdefs.h. */
2578 if ac_fn_c_try_compile "$LINENO"; then :
2579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2580 /* end confdefs.h. */
2591 if ac_fn_c_try_compile "$LINENO"; then :
2596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2602 $as_echo "$ac_res" >&6; }
2603 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2605 } # ac_fn_c_check_type
2606 cat >config.log <<_ACEOF
2607 This file contains any messages produced by compilers while
2608 running configure, to aid debugging if configure makes a mistake.
2610 It was created by HarfBuzz $as_me 1.8.1, which was
2611 generated by GNU Autoconf 2.69. Invocation command line was
2623 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2624 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2625 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2626 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2627 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2629 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2630 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2632 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2633 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2634 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2635 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2636 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2637 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2638 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2646 test -z "$as_dir" && as_dir=.
2647 $as_echo "PATH: $as_dir"
2663 # Keep a trace of the command line.
2664 # Strip out --no-create and --no-recursion so they do not pile up.
2665 # Strip out --silent because we don't want to record it for future runs.
2666 # Also quote any args containing shell meta-characters.
2667 # Make two passes to allow for proper duplicate-argument suppression.
2671 ac_must_keep_next=false
2677 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2678 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2679 | -silent | --silent | --silen | --sile | --sil)
2682 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2685 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2687 as_fn_append ac_configure_args1 " '$ac_arg'"
2688 if test $ac_must_keep_next = true; then
2689 ac_must_keep_next=false # Got value, back to normal.
2692 *=* | --config-cache | -C | -disable-* | --disable-* \
2693 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2694 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2695 | -with-* | --with-* | -without-* | --without-* | --x)
2696 case "$ac_configure_args0 " in
2697 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2700 -* ) ac_must_keep_next=true ;;
2703 as_fn_append ac_configure_args " '$ac_arg'"
2708 { ac_configure_args0=; unset ac_configure_args0;}
2709 { ac_configure_args1=; unset ac_configure_args1;}
2711 # When interrupted or exit'd, cleanup temporary files, and complete
2712 # config.log. We remove comments because anyway the quotes in there
2713 # would cause problems or look ugly.
2714 # WARNING: Use '\'' to represent an apostrophe within the trap.
2715 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2716 trap 'exit_status=$?
2717 # Save into config.log some information that might help in debugging.
2721 $as_echo "## ---------------- ##
2722 ## Cache variables. ##
2723 ## ---------------- ##"
2725 # The following way of writing the cache mishandles newlines in values,
2727 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2728 eval ac_val=\$$ac_var
2732 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2733 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2736 _ | IFS | as_nl) ;; #(
2737 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2738 *) { eval $ac_var=; unset $ac_var;} ;;
2743 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2744 *${as_nl}ac_space=\ *)
2746 "s/'\''/'\''\\\\'\'''\''/g;
2747 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2750 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2757 $as_echo "## ----------------- ##
2758 ## Output variables. ##
2759 ## ----------------- ##"
2761 for ac_var in $ac_subst_vars
2763 eval ac_val=\$$ac_var
2765 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2767 $as_echo "$ac_var='\''$ac_val'\''"
2771 if test -n "$ac_subst_files"; then
2772 $as_echo "## ------------------- ##
2773 ## File substitutions. ##
2774 ## ------------------- ##"
2776 for ac_var in $ac_subst_files
2778 eval ac_val=\$$ac_var
2780 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2782 $as_echo "$ac_var='\''$ac_val'\''"
2787 if test -s confdefs.h; then
2788 $as_echo "## ----------- ##
2795 test "$ac_signal" != 0 &&
2796 $as_echo "$as_me: caught signal $ac_signal"
2797 $as_echo "$as_me: exit $exit_status"
2799 rm -f core *.core core.conftest.* &&
2800 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2803 for ac_signal in 1 2 13 15; do
2804 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2808 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2809 rm -f -r conftest* confdefs.h
2811 $as_echo "/* confdefs.h */" > confdefs.h
2813 # Predefined preprocessor variables.
2815 cat >>confdefs.h <<_ACEOF
2816 #define PACKAGE_NAME "$PACKAGE_NAME"
2819 cat >>confdefs.h <<_ACEOF
2820 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2823 cat >>confdefs.h <<_ACEOF
2824 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2827 cat >>confdefs.h <<_ACEOF
2828 #define PACKAGE_STRING "$PACKAGE_STRING"
2831 cat >>confdefs.h <<_ACEOF
2832 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2835 cat >>confdefs.h <<_ACEOF
2836 #define PACKAGE_URL "$PACKAGE_URL"
2840 # Let the site file select an alternate cache file if it wants to.
2841 # Prefer an explicitly selected file to automatically selected ones.
2844 if test -n "$CONFIG_SITE"; then
2845 # We do not want a PATH search for config.site.
2846 case $CONFIG_SITE in #((
2847 -*) ac_site_file1=./$CONFIG_SITE;;
2848 */*) ac_site_file1=$CONFIG_SITE;;
2849 *) ac_site_file1=./$CONFIG_SITE;;
2851 elif test "x$prefix" != xNONE; then
2852 ac_site_file1=$prefix/share/config.site
2853 ac_site_file2=$prefix/etc/config.site
2855 ac_site_file1=$ac_default_prefix/share/config.site
2856 ac_site_file2=$ac_default_prefix/etc/config.site
2858 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2860 test "x$ac_site_file" = xNONE && continue
2861 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2863 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2864 sed 's/^/| /' "$ac_site_file" >&5
2866 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2867 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2868 as_fn_error $? "failed to load site script $ac_site_file
2869 See \`config.log' for more details" "$LINENO" 5; }
2873 if test -r "$cache_file"; then
2874 # Some versions of bash will fail to source /dev/null (special files
2875 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2876 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2878 $as_echo "$as_me: loading cache $cache_file" >&6;}
2880 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2881 *) . "./$cache_file";;
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2886 $as_echo "$as_me: creating cache $cache_file" >&6;}
2890 # Check that the precious variables saved in the cache have kept the same
2892 ac_cache_corrupted=false
2893 for ac_var in $ac_precious_vars; do
2894 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2895 eval ac_new_set=\$ac_env_${ac_var}_set
2896 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2897 eval ac_new_val=\$ac_env_${ac_var}_value
2898 case $ac_old_set,$ac_new_set in
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2901 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2902 ac_cache_corrupted=: ;;
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2905 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2906 ac_cache_corrupted=: ;;
2909 if test "x$ac_old_val" != "x$ac_new_val"; then
2910 # differences in whitespace do not lead to failure.
2911 ac_old_val_w=`echo x $ac_old_val`
2912 ac_new_val_w=`echo x $ac_new_val`
2913 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2915 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2916 ac_cache_corrupted=:
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2919 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2920 eval $ac_var=\$ac_old_val
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2923 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2925 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2928 # Pass precious variables to config.status.
2929 if test "$ac_new_set" = set; then
2931 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2932 *) ac_arg=$ac_var=$ac_new_val ;;
2934 case " $ac_configure_args " in
2935 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2936 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2940 if $ac_cache_corrupted; then
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2944 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2945 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2947 ## -------------------- ##
2948 ## Main body of script. ##
2949 ## -------------------- ##
2952 ac_cpp='$CPP $CPPFLAGS'
2953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2961 ac_config_headers="$ac_config_headers config.h"
2964 am__api_version='1.15'
2967 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2968 if test -f "$ac_dir/install-sh"; then
2970 ac_install_sh="$ac_aux_dir/install-sh -c"
2972 elif test -f "$ac_dir/install.sh"; then
2974 ac_install_sh="$ac_aux_dir/install.sh -c"
2976 elif test -f "$ac_dir/shtool"; then
2978 ac_install_sh="$ac_aux_dir/shtool install -c"
2982 if test -z "$ac_aux_dir"; then
2983 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2986 # These three variables are undocumented and unsupported,
2987 # and are intended to be withdrawn in a future Autoconf release.
2988 # They can cause serious problems if a builder's source tree is in a directory
2989 # whose full name contains unusual characters.
2990 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2991 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2992 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2995 # Find a good install program. We prefer a C program (faster),
2996 # so one script is as good as another. But avoid the broken or
2997 # incompatible versions:
2998 # SysV /etc/install, /usr/sbin/install
2999 # SunOS /usr/etc/install
3000 # IRIX /sbin/install
3002 # AmigaOS /C/install, which installs bootblocks on floppy discs
3003 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3004 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3005 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3006 # OS/2's system install, which has a completely different semantic
3007 # ./install, which can be erroneously created by make from ./install.sh.
3008 # Reject install programs that cannot install multiple files.
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3010 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3011 if test -z "$INSTALL"; then
3012 if ${ac_cv_path_install+:} false; then :
3013 $as_echo_n "(cached) " >&6
3015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3019 test -z "$as_dir" && as_dir=.
3020 # Account for people who put trailing slashes in PATH elements.
3021 case $as_dir/ in #((
3022 ./ | .// | /[cC]/* | \
3023 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3024 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3027 # OSF1 and SCO ODT 3.0 have their own names for install.
3028 # Don't use installbsd from OSF since it installs stuff as root
3030 for ac_prog in ginstall scoinst install; do
3031 for ac_exec_ext in '' $ac_executable_extensions; do
3032 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3033 if test $ac_prog = install &&
3034 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3035 # AIX install. It has an incompatible calling convention.
3037 elif test $ac_prog = install &&
3038 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3039 # program-specific install script used by HP pwplus--don't use.
3042 rm -rf conftest.one conftest.two conftest.dir
3043 echo one > conftest.one
3044 echo two > conftest.two
3046 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3047 test -s conftest.one && test -s conftest.two &&
3048 test -s conftest.dir/conftest.one &&
3049 test -s conftest.dir/conftest.two
3051 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3064 rm -rf conftest.one conftest.two conftest.dir
3067 if test "${ac_cv_path_install+set}" = set; then
3068 INSTALL=$ac_cv_path_install
3070 # As a last resort, use the slow shell script. Don't cache a
3071 # value for INSTALL within a source directory, because that will
3072 # break other packages using the cache if that directory is
3073 # removed, or if the value is a relative name.
3074 INSTALL=$ac_install_sh
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3078 $as_echo "$INSTALL" >&6; }
3080 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3081 # It thinks the first close brace ends the variable substitution.
3082 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3084 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3086 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3089 $as_echo_n "checking whether build environment is sane... " >&6; }
3090 # Reject unsafe characters in $srcdir or the absolute working directory
3091 # name. Accept space and tab only in the latter.
3095 *[\\\"\#\$\&\'\`$am_lf]*)
3096 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3099 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3100 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3103 # Do 'set' in a subshell so we don't clobber the current shell's
3104 # arguments. Must try -L first in case configure is actually a
3105 # symlink; some systems play weird games with the mod time of symlinks
3106 # (eg FreeBSD returns the mod time of the symlink's containing
3110 for am_try in 1 2; do
3111 echo "timestamp, slept: $am_has_slept" > conftest.file
3112 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3113 if test "$*" = "X"; then
3115 set X `ls -t "$srcdir/configure" conftest.file`
3117 if test "$*" != "X $srcdir/configure conftest.file" \
3118 && test "$*" != "X conftest.file $srcdir/configure"; then
3120 # If neither matched, then we have a broken ls. This can happen
3121 # if, for instance, CONFIG_SHELL is bash and it inherits a
3122 # broken ls alias from the environment. This has actually
3123 # happened. Such a system could not be considered "sane".
3124 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3125 alias in your environment" "$LINENO" 5
3127 if test "$2" = conftest.file || test $am_try -eq 2; then
3134 test "$2" = conftest.file
3140 as_fn_error $? "newly created file is older than distributed files!
3141 Check your system clock" "$LINENO" 5
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3144 $as_echo "yes" >&6; }
3145 # If we didn't sleep, we still need to ensure time stamps of config.status and
3146 # generated files are strictly newer.
3148 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3155 test "$program_prefix" != NONE &&
3156 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3157 # Use a double $ so make ignores it.
3158 test "$program_suffix" != NONE &&
3159 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3160 # Double any \ or $.
3161 # By default was `s,x,x', remove it if useless.
3162 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3163 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3165 # Expand $ac_aux_dir to an absolute path.
3166 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3168 if test x"${MISSING+set}" != xset; then
3171 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3173 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3176 # Use eval to expand $SHELL
3177 if eval "$MISSING --is-lightweight"; then
3178 am_missing_run="$MISSING "
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3182 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3185 if test x"${install_sh+set}" != xset; then
3188 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3190 install_sh="\${SHELL} $am_aux_dir/install-sh"
3194 # Installed binaries are usually stripped using 'strip' when the user
3195 # run "make install-strip". However 'strip' might not be the right
3196 # tool to use in cross-compilation environments, therefore Automake
3197 # will honor the 'STRIP' environment variable to overrule this program.
3198 if test "$cross_compiling" != no; then
3199 if test -n "$ac_tool_prefix"; then
3200 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3201 set dummy ${ac_tool_prefix}strip; ac_word=$2
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3203 $as_echo_n "checking for $ac_word... " >&6; }
3204 if ${ac_cv_prog_STRIP+:} false; then :
3205 $as_echo_n "(cached) " >&6
3207 if test -n "$STRIP"; then
3208 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3214 test -z "$as_dir" && as_dir=.
3215 for ac_exec_ext in '' $ac_executable_extensions; do
3216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3217 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3227 STRIP=$ac_cv_prog_STRIP
3228 if test -n "$STRIP"; then
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3230 $as_echo "$STRIP" >&6; }
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3233 $as_echo "no" >&6; }
3238 if test -z "$ac_cv_prog_STRIP"; then
3240 # Extract the first word of "strip", so it can be a program name with args.
3241 set dummy strip; ac_word=$2
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3243 $as_echo_n "checking for $ac_word... " >&6; }
3244 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3245 $as_echo_n "(cached) " >&6
3247 if test -n "$ac_ct_STRIP"; then
3248 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3254 test -z "$as_dir" && as_dir=.
3255 for ac_exec_ext in '' $ac_executable_extensions; do
3256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3257 ac_cv_prog_ac_ct_STRIP="strip"
3258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3267 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3268 if test -n "$ac_ct_STRIP"; then
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3270 $as_echo "$ac_ct_STRIP" >&6; }
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3273 $as_echo "no" >&6; }
3276 if test "x$ac_ct_STRIP" = x; then
3279 case $cross_compiling:$ac_tool_warned in
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3282 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3283 ac_tool_warned=yes ;;
3288 STRIP="$ac_cv_prog_STRIP"
3292 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3295 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3296 if test -z "$MKDIR_P"; then
3297 if ${ac_cv_path_mkdir+:} false; then :
3298 $as_echo_n "(cached) " >&6
3300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3301 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3304 test -z "$as_dir" && as_dir=.
3305 for ac_prog in mkdir gmkdir; do
3306 for ac_exec_ext in '' $ac_executable_extensions; do
3307 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3308 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3309 'mkdir (GNU coreutils) '* | \
3310 'mkdir (coreutils) '* | \
3311 'mkdir (fileutils) '4.1*)
3312 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3322 test -d ./--version && rmdir ./--version
3323 if test "${ac_cv_path_mkdir+set}" = set; then
3324 MKDIR_P="$ac_cv_path_mkdir -p"
3326 # As a last resort, use the slow shell script. Don't cache a
3327 # value for MKDIR_P within a source directory, because that will
3328 # break other packages using the cache if that directory is
3329 # removed, or if the value is a relative name.
3330 MKDIR_P="$ac_install_sh -d"
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3334 $as_echo "$MKDIR_P" >&6; }
3336 for ac_prog in gawk mawk nawk awk
3338 # Extract the first word of "$ac_prog", so it can be a program name with args.
3339 set dummy $ac_prog; ac_word=$2
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3341 $as_echo_n "checking for $ac_word... " >&6; }
3342 if ${ac_cv_prog_AWK+:} false; then :
3343 $as_echo_n "(cached) " >&6
3345 if test -n "$AWK"; then
3346 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3352 test -z "$as_dir" && as_dir=.
3353 for ac_exec_ext in '' $ac_executable_extensions; do
3354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3355 ac_cv_prog_AWK="$ac_prog"
3356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3366 if test -n "$AWK"; then
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3368 $as_echo "$AWK" >&6; }
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3371 $as_echo "no" >&6; }
3375 test -n "$AWK" && break
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3379 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3381 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3382 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3383 $as_echo_n "(cached) " >&6
3385 cat >conftest.make <<\_ACEOF
3388 @echo '@@@%%%=$(MAKE)=@@@%%%'
3390 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3391 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3393 eval ac_cv_prog_make_${ac_make}_set=yes;;
3395 eval ac_cv_prog_make_${ac_make}_set=no;;
3399 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3401 $as_echo "yes" >&6; }
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3405 $as_echo "no" >&6; }
3406 SET_MAKE="MAKE=${MAKE-make}"
3409 rm -rf .tst 2>/dev/null
3410 mkdir .tst 2>/dev/null
3411 if test -d .tst; then
3416 rmdir .tst 2>/dev/null
3418 # Check whether --enable-silent-rules was given.
3419 if test "${enable_silent_rules+set}" = set; then :
3420 enableval=$enable_silent_rules;
3423 case $enable_silent_rules in # (((
3424 yes) AM_DEFAULT_VERBOSITY=0;;
3425 no) AM_DEFAULT_VERBOSITY=1;;
3426 *) AM_DEFAULT_VERBOSITY=1;;
3428 am_make=${MAKE-make}
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3430 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3431 if ${am_cv_make_support_nested_variables+:} false; then :
3432 $as_echo_n "(cached) " >&6
3434 if $as_echo 'TRUE=$(BAR$(V))
3440 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3441 am_cv_make_support_nested_variables=yes
3443 am_cv_make_support_nested_variables=no
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3447 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3448 if test $am_cv_make_support_nested_variables = yes; then
3450 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3452 AM_V=$AM_DEFAULT_VERBOSITY
3453 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3457 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3458 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3459 # is not polluted with repeated "-I."
3460 am__isrc=' -I$(srcdir)'
3461 # test to see if srcdir already configured
3462 if test -f $srcdir/config.status; then
3463 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3467 # test whether we have cygpath
3468 if test -z "$CYGPATH_W"; then
3469 if (cygpath --version) >/dev/null 2>/dev/null; then
3470 CYGPATH_W='cygpath -w'
3477 # Define the identity of the package.
3482 # Some tools Automake needs.
3484 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3487 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3490 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3493 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3496 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3498 # For better backward compatibility. To be removed once Automake 1.9.x
3499 # dies out for good. For more background, see:
3500 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3501 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3502 mkdir_p='$(MKDIR_P)'
3504 # We need awk for the "check" target (and possibly the TAP driver). The
3505 # system "awk" is bad on some platforms.
3506 # Always define AMTAR for backward compatibility. Yes, it's still used
3507 # in the wild :-( We should find a proper way to deprecate it ...
3511 # We'll loop over all known methods to create a tar archive until one works.
3512 _am_tools='gnutar plaintar pax cpio none'
3514 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
3515 # There is notably a 21 bits limit for the UID and the GID. In fact,
3516 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3518 am_max_uid=2097151 # 2^21 - 1
3519 am_max_gid=$am_max_uid
3520 # The $UID and $GID variables are not portable, so we need to resort
3521 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
3522 # below are definitely unexpected, so allow the users to see them
3523 # (that is, avoid stderr redirection).
3524 am_uid=`id -u || echo unknown`
3525 am_gid=`id -g || echo unknown`
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3527 $as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3528 if test $am_uid -le $am_max_uid; then
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3530 $as_echo "yes" >&6; }
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3533 $as_echo "no" >&6; }
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3537 $as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3538 if test $am_gid -le $am_max_gid; then
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3540 $as_echo "yes" >&6; }
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3543 $as_echo "no" >&6; }
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3548 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
3550 # Go ahead even if we have the value already cached. We do so because we
3551 # need to set the values for the 'am__tar' and 'am__untar' variables.
3552 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3554 for _am_tool in $_am_tools; do
3557 for _am_tar in tar gnutar gtar; do
3558 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3559 ($_am_tar --version) >&5 2>&5
3561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562 (exit $ac_status); } && break
3564 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3565 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3566 am__untar="$_am_tar -xf -"
3569 # Must skip GNU tar: if it does not support --format= it doesn't create
3570 # ustar tarball either.
3571 (tar --version) >/dev/null 2>&1 && continue
3572 am__tar='tar chf - "$$tardir"'
3573 am__tar_='tar chf - "$tardir"'
3574 am__untar='tar xf -'
3577 am__tar='pax -L -x ustar -w "$$tardir"'
3578 am__tar_='pax -L -x ustar -w "$tardir"'
3582 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3583 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3584 am__untar='cpio -i -H ustar -d'
3593 # If the value was cached, stop now. We just wanted to have am__tar
3594 # and am__untar set.
3595 test -n "${am_cv_prog_tar_ustar}" && break
3597 # tar/untar a dummy directory, and stop if the command works.
3600 echo GrepMe > conftest.dir/file
3601 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3602 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605 (exit $ac_status); }
3607 if test -s conftest.tar; then
3608 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3609 ($am__untar <conftest.tar) >&5 2>&5
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); }
3613 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3614 (cat conftest.dir/file) >&5 2>&5
3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617 (exit $ac_status); }
3618 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3623 if ${am_cv_prog_tar_ustar+:} false; then :
3624 $as_echo_n "(cached) " >&6
3626 am_cv_prog_tar_ustar=$_am_tool
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3630 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3637 # POSIX will say in a future version that running "rm -f" with no argument
3638 # is OK; and we want to be able to make that assumption in our Makefile
3639 # recipes. So use an aggressive probe to check that the usage we want is
3640 # actually supported "in the wild" to an acceptable degree.
3641 # See automake bug#10828.
3642 # To make any issue more visible, cause the running configure to be aborted
3643 # by default if the 'rm' program in use doesn't match our expectations; the
3644 # user can still override this though.
3645 if rm -f && rm -fr && rm -rf; then : OK; else
3649 Your 'rm' program seems unable to run without file operands specified
3650 on the command line, even when the '-f' option is present. This is contrary
3651 to the behaviour of most rm programs out there, and not conforming with
3652 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3654 Please tell bug-automake@gnu.org about your system, including the value
3655 of your $PATH and any error possibly output before this message. This
3656 can help us improve future automake versions.
3659 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3660 echo 'Configuration will proceed anyway, since you have set the' >&2
3661 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3665 Aborting the configuration process, to ensure you take notice of the issue.
3667 You can download and install GNU coreutils to get an 'rm' implementation
3668 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3670 If you want to complete the configuration process using your problematic
3671 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3672 to "yes", and re-run configure.
3675 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3679 # Check whether --enable-silent-rules was given.
3680 if test "${enable_silent_rules+set}" = set; then :
3681 enableval=$enable_silent_rules;
3684 case $enable_silent_rules in # (((
3685 yes) AM_DEFAULT_VERBOSITY=0;;
3686 no) AM_DEFAULT_VERBOSITY=1;;
3687 *) AM_DEFAULT_VERBOSITY=0;;
3689 am_make=${MAKE-make}
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3691 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3692 if ${am_cv_make_support_nested_variables+:} false; then :
3693 $as_echo_n "(cached) " >&6
3695 if $as_echo 'TRUE=$(BAR$(V))
3701 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3702 am_cv_make_support_nested_variables=yes
3704 am_cv_make_support_nested_variables=no
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3708 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3709 if test $am_cv_make_support_nested_variables = yes; then
3711 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3713 AM_V=$AM_DEFAULT_VERBOSITY
3714 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3719 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3720 if ${ac_cv_path_SED+:} false; then :
3721 $as_echo_n "(cached) " >&6
3723 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3724 for ac_i in 1 2 3 4 5 6 7; do
3725 ac_script="$ac_script$as_nl$ac_script"
3727 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3728 { ac_script=; unset ac_script;}
3729 if test -z "$SED"; then
3730 ac_path_SED_found=false
3731 # Loop through the user's path and test for each of PROGNAME-LIST
3732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3736 test -z "$as_dir" && as_dir=.
3737 for ac_prog in sed gsed; do
3738 for ac_exec_ext in '' $ac_executable_extensions; do
3739 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3740 as_fn_executable_p "$ac_path_SED" || continue
3741 # Check for GNU ac_path_SED and select it if it is found.
3742 # Check for GNU $ac_path_SED
3743 case `"$ac_path_SED" --version 2>&1` in
3745 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3748 $as_echo_n 0123456789 >"conftest.in"
3751 cat "conftest.in" "conftest.in" >"conftest.tmp"
3752 mv "conftest.tmp" "conftest.in"
3753 cp "conftest.in" "conftest.nl"
3754 $as_echo '' >> "conftest.nl"
3755 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3756 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3757 as_fn_arith $ac_count + 1 && ac_count=$as_val
3758 if test $ac_count -gt ${ac_path_SED_max-0}; then
3759 # Best one so far, save it but keep looking for a better one
3760 ac_cv_path_SED="$ac_path_SED"
3761 ac_path_SED_max=$ac_count
3763 # 10*(2^10) chars as input seems more than enough
3764 test $ac_count -gt 10 && break
3766 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3769 $ac_path_SED_found && break 3
3774 if test -z "$ac_cv_path_SED"; then
3775 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3783 $as_echo "$ac_cv_path_SED" >&6; }
3784 SED="$ac_cv_path_SED"
3790 # allow to override gcov location
3792 # Check whether --with-gcov was given.
3793 if test "${with_gcov+set}" = set; then :
3794 withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov
3796 _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
3801 $as_echo_n "checking whether to build with code coverage support... " >&6; }
3802 # Check whether --enable-code-coverage was given.
3803 if test "${enable_code_coverage+set}" = set; then :
3804 enableval=$enable_code_coverage;
3806 enable_code_coverage=no
3810 if test x$enable_code_coverage = xyes; then
3811 CODE_COVERAGE_ENABLED_TRUE=
3812 CODE_COVERAGE_ENABLED_FALSE='#'
3814 CODE_COVERAGE_ENABLED_TRUE='#'
3815 CODE_COVERAGE_ENABLED_FALSE=
3818 CODE_COVERAGE_ENABLED=$enable_code_coverage
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
3821 $as_echo "$enable_code_coverage" >&6; }
3823 if test "$enable_code_coverage" = "yes" ; then :
3826 if test -n "$ac_tool_prefix"; then
3827 # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
3828 set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3830 $as_echo_n "checking for $ac_word... " >&6; }
3831 if ${ac_cv_prog_GCOV+:} false; then :
3832 $as_echo_n "(cached) " >&6
3834 if test -n "$GCOV"; then
3835 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
3837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3841 test -z "$as_dir" && as_dir=.
3842 for ac_exec_ext in '' $ac_executable_extensions; do
3843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3844 ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
3845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3854 GCOV=$ac_cv_prog_GCOV
3855 if test -n "$GCOV"; then
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
3857 $as_echo "$GCOV" >&6; }
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3860 $as_echo "no" >&6; }
3865 if test -z "$ac_cv_prog_GCOV"; then
3867 # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
3868 set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3870 $as_echo_n "checking for $ac_word... " >&6; }
3871 if ${ac_cv_prog_ac_ct_GCOV+:} false; then :
3872 $as_echo_n "(cached) " >&6
3874 if test -n "$ac_ct_GCOV"; then
3875 ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
3877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3881 test -z "$as_dir" && as_dir=.
3882 for ac_exec_ext in '' $ac_executable_extensions; do
3883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3884 ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
3885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3894 ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
3895 if test -n "$ac_ct_GCOV"; then
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
3897 $as_echo "$ac_ct_GCOV" >&6; }
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3900 $as_echo "no" >&6; }
3903 if test "x$ac_ct_GCOV" = x; then
3906 case $cross_compiling:$ac_tool_warned in
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3909 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3910 ac_tool_warned=yes ;;
3915 GCOV="$ac_cv_prog_GCOV"
3918 if test "X$GCOV" = "X:"; then :
3919 as_fn_error $? "gcov is needed to do coverage" "$LINENO" 5
3923 if test "$GCC" = "no" ; then :
3925 as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
3929 # Extract the first word of "lcov", so it can be a program name with args.
3930 set dummy lcov; ac_word=$2
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3932 $as_echo_n "checking for $ac_word... " >&6; }
3933 if ${ac_cv_prog_LCOV+:} false; then :
3934 $as_echo_n "(cached) " >&6
3936 if test -n "$LCOV"; then
3937 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
3939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3943 test -z "$as_dir" && as_dir=.
3944 for ac_exec_ext in '' $ac_executable_extensions; do
3945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3946 ac_cv_prog_LCOV="lcov"
3947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3956 LCOV=$ac_cv_prog_LCOV
3957 if test -n "$LCOV"; then
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
3959 $as_echo "$LCOV" >&6; }
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3962 $as_echo "no" >&6; }
3966 # Extract the first word of "genhtml", so it can be a program name with args.
3967 set dummy genhtml; ac_word=$2
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3969 $as_echo_n "checking for $ac_word... " >&6; }
3970 if ${ac_cv_prog_GENHTML+:} false; then :
3971 $as_echo_n "(cached) " >&6
3973 if test -n "$GENHTML"; then
3974 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
3976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3980 test -z "$as_dir" && as_dir=.
3981 for ac_exec_ext in '' $ac_executable_extensions; do
3982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3983 ac_cv_prog_GENHTML="genhtml"
3984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3993 GENHTML=$ac_cv_prog_GENHTML
3994 if test -n "$GENHTML"; then
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
3996 $as_echo "$GENHTML" >&6; }
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3999 $as_echo "no" >&6; }
4004 if test -z "$LCOV" ; then :
4006 as_fn_error $? "To enable code coverage reporting you must have lcov installed" "$LINENO" 5
4010 if test -z "$GENHTML" ; then :
4012 as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
4016 CODE_COVERAGE_CPPFLAGS="-DNDEBUG"
4017 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
4018 CODE_COVERAGE_CXXFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
4019 CODE_COVERAGE_LIBS="-lgcov"
4020 CODE_COVERAGE_LDFLAGS="$CODE_COVERAGE_LIBS"
4028 CODE_COVERAGE_RULES_CHECK='
4029 -$(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) -k check
4030 $(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
4032 CODE_COVERAGE_RULES_CAPTURE='
4033 $(code_coverage_v_lcov_cap)$(LCOV) $(code_coverage_quiet) $(addprefix --directory ,$(CODE_COVERAGE_DIRECTORY)) --capture --output-file "$(CODE_COVERAGE_OUTPUT_FILE).tmp" --test-name "$(call code_coverage_sanitize,$(PACKAGE_NAME)-$(PACKAGE_VERSION))" --no-checksum --compat-libtool $(CODE_COVERAGE_LCOV_SHOPTS) $(CODE_COVERAGE_LCOV_OPTIONS)
4034 $(code_coverage_v_lcov_ign)$(LCOV) $(code_coverage_quiet) $(addprefix --directory ,$(CODE_COVERAGE_DIRECTORY)) --remove "$(CODE_COVERAGE_OUTPUT_FILE).tmp" "/tmp/*" $(CODE_COVERAGE_IGNORE_PATTERN) --output-file "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_LCOV_SHOPTS) $(CODE_COVERAGE_LCOV_RMOPTS)
4035 -@rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp
4036 $(code_coverage_v_genhtml)LANG=C $(GENHTML) $(code_coverage_quiet) $(addprefix --prefix ,$(CODE_COVERAGE_DIRECTORY)) --output-directory "$(CODE_COVERAGE_OUTPUT_DIRECTORY)" --title "$(PACKAGE_NAME)-$(PACKAGE_VERSION) Code Coverage" --legend --show-details "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_GENHTML_OPTIONS)
4037 @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
4039 CODE_COVERAGE_RULES_CLEAN='
4040 clean: code-coverage-clean
4041 distclean: code-coverage-clean
4042 code-coverage-clean:
4043 -$(LCOV) --directory $(top_builddir) -z
4044 -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY)
4045 -find . \( -name "*.gcda" -o -name "*.gcno" -o -name "*.gcov" \) -delete
4050 CODE_COVERAGE_RULES_CHECK='
4051 @echo "Need to reconfigure with --enable-code-coverage"
4053 CODE_COVERAGE_RULES_CAPTURE="$CODE_COVERAGE_RULES_CHECK"
4054 CODE_COVERAGE_RULES_CLEAN=''
4058 CODE_COVERAGE_RULES='
4062 # - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
4063 # Multiple directories may be specified, separated by whitespace.
4064 # (Default: $(top_builddir))
4065 # - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
4066 # by lcov for code coverage. (Default:
4067 # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
4068 # - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
4069 # reports to be created. (Default:
4070 # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
4071 # - CODE_COVERAGE_BRANCH_COVERAGE: Set to 1 to enforce branch coverage,
4072 # set to 0 to disable it and leave empty to stay with the default.
4074 # - CODE_COVERAGE_LCOV_SHOPTS_DEFAULT: Extra options shared between both lcov
4075 # instances. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
4076 # - CODE_COVERAGE_LCOV_SHOPTS: Extra options to shared between both lcov
4077 # instances. (Default: $CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
4078 # - CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH: --gcov-tool pathtogcov
4079 # - CODE_COVERAGE_LCOV_OPTIONS_DEFAULT: Extra options to pass to the
4080 # collecting lcov instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
4081 # - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the collecting lcov
4082 # instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
4083 # - CODE_COVERAGE_LCOV_RMOPTS_DEFAULT: Extra options to pass to the filtering
4084 # lcov instance. (Default: empty)
4085 # - CODE_COVERAGE_LCOV_RMOPTS: Extra options to pass to the filtering lcov
4086 # instance. (Default: $CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
4087 # - CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT: Extra options to pass to the
4088 # genhtml instance. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
4089 # - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
4090 # instance. (Default: $CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
4091 # - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore
4093 # The generated report will be titled using the $(PACKAGE_NAME) and
4094 # $(PACKAGE_VERSION). In order to add the current git hash to the title,
4095 # use the git-version-gen script, available online.
4097 # Optional variables
4098 CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
4099 CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
4100 CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
4101 CODE_COVERAGE_BRANCH_COVERAGE ?=
4102 CODE_COVERAGE_LCOV_SHOPTS_DEFAULT ?= $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
4103 --rc lcov_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
4104 CODE_COVERAGE_LCOV_SHOPTS ?= $(CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
4105 CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH ?= --gcov-tool "$(GCOV)"
4106 CODE_COVERAGE_LCOV_OPTIONS_DEFAULT ?= $(CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
4107 CODE_COVERAGE_LCOV_OPTIONS ?= $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
4108 CODE_COVERAGE_LCOV_RMOPTS_DEFAULT ?=
4109 CODE_COVERAGE_LCOV_RMOPTS ?= $(CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
4110 CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT ?=\
4111 $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
4112 --rc genhtml_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
4113 CODE_COVERAGE_GENHTML_OPTIONS ?= $(CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
4114 CODE_COVERAGE_IGNORE_PATTERN ?=
4117 GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
4119 code_coverage_v_lcov_cap = $(code_coverage_v_lcov_cap_$(V))
4120 code_coverage_v_lcov_cap_ = $(code_coverage_v_lcov_cap_$(AM_DEFAULT_VERBOSITY))
4121 code_coverage_v_lcov_cap_0 = @echo " LCOV --capture"\
4122 $(CODE_COVERAGE_OUTPUT_FILE);
4123 code_coverage_v_lcov_ign = $(code_coverage_v_lcov_ign_$(V))
4124 code_coverage_v_lcov_ign_ = $(code_coverage_v_lcov_ign_$(AM_DEFAULT_VERBOSITY))
4125 code_coverage_v_lcov_ign_0 = @echo " LCOV --remove /tmp/*"\
4126 $(CODE_COVERAGE_IGNORE_PATTERN);
4127 code_coverage_v_genhtml = $(code_coverage_v_genhtml_$(V))
4128 code_coverage_v_genhtml_ = $(code_coverage_v_genhtml_$(AM_DEFAULT_VERBOSITY))
4129 code_coverage_v_genhtml_0 = @echo " GEN " $(CODE_COVERAGE_OUTPUT_DIRECTORY);
4130 code_coverage_quiet = $(code_coverage_quiet_$(V))
4131 code_coverage_quiet_ = $(code_coverage_quiet_$(AM_DEFAULT_VERBOSITY))
4132 code_coverage_quiet_0 = --quiet
4134 # sanitizes the test-name: replaces with underscores: dashes and dots
4135 code_coverage_sanitize = $(subst -,_,$(subst .,_,$(1)))
4137 # Use recursive makes in order to ignore errors during check
4138 check-code-coverage:'"$CODE_COVERAGE_RULES_CHECK"'
4140 # Capture code coverage data
4141 code-coverage-capture: code-coverage-capture-hook'"$CODE_COVERAGE_RULES_CAPTURE"'
4143 # Hook rule executed before code-coverage-capture, overridable by the user
4144 code-coverage-capture-hook:
4146 '"$CODE_COVERAGE_RULES_CLEAN"'
4148 A''M_DISTCHECK_CONFIGURE_FLAGS ?=
4149 A''M_DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
4151 .PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
4158 # Initialize libtool
4159 DEPDIR="${am__leading_dot}deps"
4161 ac_config_commands="$ac_config_commands depfiles"
4164 am_make=${MAKE-make}
4165 cat > confinc << 'END'
4167 @echo this is the am__doit target
4170 # If we don't find an include directive, just comment out the code.
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4172 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4176 # First try GNU make style include.
4177 echo "include confinc" > confmf
4178 # Ignore all kinds of additional output from 'make'.
4179 case `$am_make -s -f confmf 2> /dev/null` in #(
4180 *the\ am__doit\ target*)
4186 # Now try BSD make style include.
4187 if test "$am__include" = "#"; then
4188 echo '.include "confinc"' > confmf
4189 case `$am_make -s -f confmf 2> /dev/null` in #(
4190 *the\ am__doit\ target*)
4191 am__include=.include
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4200 $as_echo "$_am_result" >&6; }
4201 rm -f confinc confmf
4203 # Check whether --enable-dependency-tracking was given.
4204 if test "${enable_dependency_tracking+set}" = set; then :
4205 enableval=$enable_dependency_tracking;
4208 if test "x$enable_dependency_tracking" != xno; then
4209 am_depcomp="$ac_aux_dir/depcomp"
4213 if test "x$enable_dependency_tracking" != xno; then
4223 ac_cpp='$CPP $CPPFLAGS'
4224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4227 if test -n "$ac_tool_prefix"; then
4228 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4229 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4231 $as_echo_n "checking for $ac_word... " >&6; }
4232 if ${ac_cv_prog_CC+:} false; then :
4233 $as_echo_n "(cached) " >&6
4235 if test -n "$CC"; then
4236 ac_cv_prog_CC="$CC" # Let the user override the test.
4238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4242 test -z "$as_dir" && as_dir=.
4243 for ac_exec_ext in '' $ac_executable_extensions; do
4244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4245 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4256 if test -n "$CC"; then
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4258 $as_echo "$CC" >&6; }
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4261 $as_echo "no" >&6; }
4266 if test -z "$ac_cv_prog_CC"; then
4268 # Extract the first word of "gcc", so it can be a program name with args.
4269 set dummy gcc; ac_word=$2
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4271 $as_echo_n "checking for $ac_word... " >&6; }
4272 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4273 $as_echo_n "(cached) " >&6
4275 if test -n "$ac_ct_CC"; then
4276 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4282 test -z "$as_dir" && as_dir=.
4283 for ac_exec_ext in '' $ac_executable_extensions; do
4284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4285 ac_cv_prog_ac_ct_CC="gcc"
4286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4295 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4296 if test -n "$ac_ct_CC"; then
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4298 $as_echo "$ac_ct_CC" >&6; }
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4301 $as_echo "no" >&6; }
4304 if test "x$ac_ct_CC" = x; then
4307 case $cross_compiling:$ac_tool_warned in
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4310 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4311 ac_tool_warned=yes ;;
4319 if test -z "$CC"; then
4320 if test -n "$ac_tool_prefix"; then
4321 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4322 set dummy ${ac_tool_prefix}cc; ac_word=$2
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4324 $as_echo_n "checking for $ac_word... " >&6; }
4325 if ${ac_cv_prog_CC+:} false; then :
4326 $as_echo_n "(cached) " >&6
4328 if test -n "$CC"; then
4329 ac_cv_prog_CC="$CC" # Let the user override the test.
4331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4335 test -z "$as_dir" && as_dir=.
4336 for ac_exec_ext in '' $ac_executable_extensions; do
4337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4338 ac_cv_prog_CC="${ac_tool_prefix}cc"
4339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4349 if test -n "$CC"; then
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4351 $as_echo "$CC" >&6; }
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4354 $as_echo "no" >&6; }
4360 if test -z "$CC"; then
4361 # Extract the first word of "cc", so it can be a program name with args.
4362 set dummy cc; ac_word=$2
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4364 $as_echo_n "checking for $ac_word... " >&6; }
4365 if ${ac_cv_prog_CC+:} false; then :
4366 $as_echo_n "(cached) " >&6
4368 if test -n "$CC"; then
4369 ac_cv_prog_CC="$CC" # Let the user override the test.
4372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4376 test -z "$as_dir" && as_dir=.
4377 for ac_exec_ext in '' $ac_executable_extensions; do
4378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4379 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4380 ac_prog_rejected=yes
4384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4391 if test $ac_prog_rejected = yes; then
4392 # We found a bogon in the path, so make sure we never use it.
4393 set dummy $ac_cv_prog_CC
4395 if test $# != 0; then
4396 # We chose a different compiler from the bogus one.
4397 # However, it has the same basename, so the bogon will be chosen
4398 # first if we set CC to just the basename; use the full file name.
4400 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4406 if test -n "$CC"; then
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4408 $as_echo "$CC" >&6; }
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4411 $as_echo "no" >&6; }
4416 if test -z "$CC"; then
4417 if test -n "$ac_tool_prefix"; then
4418 for ac_prog in cl.exe
4420 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4421 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4423 $as_echo_n "checking for $ac_word... " >&6; }
4424 if ${ac_cv_prog_CC+:} false; then :
4425 $as_echo_n "(cached) " >&6
4427 if test -n "$CC"; then
4428 ac_cv_prog_CC="$CC" # Let the user override the test.
4430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4434 test -z "$as_dir" && as_dir=.
4435 for ac_exec_ext in '' $ac_executable_extensions; do
4436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4437 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4448 if test -n "$CC"; then
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4450 $as_echo "$CC" >&6; }
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4453 $as_echo "no" >&6; }
4457 test -n "$CC" && break
4460 if test -z "$CC"; then
4462 for ac_prog in cl.exe
4464 # Extract the first word of "$ac_prog", so it can be a program name with args.
4465 set dummy $ac_prog; ac_word=$2
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4467 $as_echo_n "checking for $ac_word... " >&6; }
4468 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4469 $as_echo_n "(cached) " >&6
4471 if test -n "$ac_ct_CC"; then
4472 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4478 test -z "$as_dir" && as_dir=.
4479 for ac_exec_ext in '' $ac_executable_extensions; do
4480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4481 ac_cv_prog_ac_ct_CC="$ac_prog"
4482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4491 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4492 if test -n "$ac_ct_CC"; then
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4494 $as_echo "$ac_ct_CC" >&6; }
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4497 $as_echo "no" >&6; }
4501 test -n "$ac_ct_CC" && break
4504 if test "x$ac_ct_CC" = x; then
4507 case $cross_compiling:$ac_tool_warned in
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4510 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4511 ac_tool_warned=yes ;;
4520 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4521 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4522 as_fn_error $? "no acceptable C compiler found in \$PATH
4523 See \`config.log' for more details" "$LINENO" 5; }
4525 # Provide some information about the compiler.
4526 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4529 for ac_option in --version -v -V -qversion; do
4530 { { ac_try="$ac_compiler $ac_option >&5"
4532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4533 *) ac_try_echo=$ac_try;;
4535 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4536 $as_echo "$ac_try_echo"; } >&5
4537 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4539 if test -s conftest.err; then
4541 ... rest of stderr output deleted ...
4542 10q' conftest.err >conftest.er1
4543 cat conftest.er1 >&5
4545 rm -f conftest.er1 conftest.err
4546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4547 test $ac_status = 0; }
4550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4551 /* end confdefs.h. */
4561 ac_clean_files_save=$ac_clean_files
4562 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4563 # Try to create an executable without -o first, disregard a.out.
4564 # It will help us diagnose broken compilers, and finding out an intuition
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4567 $as_echo_n "checking whether the C compiler works... " >&6; }
4568 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4570 # The possible output files:
4571 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4574 for ac_file in $ac_files
4577 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4578 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4583 if { { ac_try="$ac_link_default"
4585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4586 *) ac_try_echo=$ac_try;;
4588 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4589 $as_echo "$ac_try_echo"; } >&5
4590 (eval "$ac_link_default") 2>&5
4592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4593 test $ac_status = 0; }; then :
4594 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4595 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4596 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4597 # so that the user can short-circuit this test for compilers unknown to
4599 for ac_file in $ac_files ''
4601 test -f "$ac_file" || continue
4603 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4606 # We found the default executable, but exeext='' is most
4610 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4612 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4614 # We set ac_cv_exeext here because the later test for it is not
4615 # safe: cross compilers may not add the suffix if given an `-o'
4616 # argument, so we may need to know it at that point already.
4617 # Even if this section looks crufty: it has the advantage of
4624 test "$ac_cv_exeext" = no && ac_cv_exeext=
4629 if test -z "$ac_file"; then :
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4631 $as_echo "no" >&6; }
4632 $as_echo "$as_me: failed program was:" >&5
4633 sed 's/^/| /' conftest.$ac_ext >&5
4635 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4636 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4637 as_fn_error 77 "C compiler cannot create executables
4638 See \`config.log' for more details" "$LINENO" 5; }
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4641 $as_echo "yes" >&6; }
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4644 $as_echo_n "checking for C compiler default output file name... " >&6; }
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4646 $as_echo "$ac_file" >&6; }
4647 ac_exeext=$ac_cv_exeext
4649 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4650 ac_clean_files=$ac_clean_files_save
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4652 $as_echo_n "checking for suffix of executables... " >&6; }
4653 if { { ac_try="$ac_link"
4655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4656 *) ac_try_echo=$ac_try;;
4658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4659 $as_echo "$ac_try_echo"; } >&5
4660 (eval "$ac_link") 2>&5
4662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4663 test $ac_status = 0; }; then :
4664 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4665 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4666 # work properly (i.e., refer to `conftest.exe'), while it won't with
4668 for ac_file in conftest.exe conftest conftest.*; do
4669 test -f "$ac_file" || continue
4671 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4672 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4678 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4679 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4680 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4681 See \`config.log' for more details" "$LINENO" 5; }
4683 rm -f conftest conftest$ac_cv_exeext
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4685 $as_echo "$ac_cv_exeext" >&6; }
4687 rm -f conftest.$ac_ext
4688 EXEEXT=$ac_cv_exeext
4690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4691 /* end confdefs.h. */
4696 FILE *f = fopen ("conftest.out", "w");
4697 return ferror (f) || fclose (f) != 0;
4703 ac_clean_files="$ac_clean_files conftest.out"
4704 # Check that the compiler produces executables we can run. If not, either
4705 # the compiler is broken, or we cross compile.
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4707 $as_echo_n "checking whether we are cross compiling... " >&6; }
4708 if test "$cross_compiling" != yes; then
4709 { { ac_try="$ac_link"
4711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4712 *) ac_try_echo=$ac_try;;
4714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4715 $as_echo "$ac_try_echo"; } >&5
4716 (eval "$ac_link") 2>&5
4718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4719 test $ac_status = 0; }
4720 if { ac_try='./conftest$ac_cv_exeext'
4721 { { case "(($ac_try" in
4722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4723 *) ac_try_echo=$ac_try;;
4725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4726 $as_echo "$ac_try_echo"; } >&5
4727 (eval "$ac_try") 2>&5
4729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4730 test $ac_status = 0; }; }; then
4733 if test "$cross_compiling" = maybe; then
4736 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4737 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4738 as_fn_error $? "cannot run C compiled programs.
4739 If you meant to cross compile, use \`--host'.
4740 See \`config.log' for more details" "$LINENO" 5; }
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4745 $as_echo "$cross_compiling" >&6; }
4747 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4748 ac_clean_files=$ac_clean_files_save
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4750 $as_echo_n "checking for suffix of object files... " >&6; }
4751 if ${ac_cv_objext+:} false; then :
4752 $as_echo_n "(cached) " >&6
4754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4755 /* end confdefs.h. */
4765 rm -f conftest.o conftest.obj
4766 if { { ac_try="$ac_compile"
4768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4769 *) ac_try_echo=$ac_try;;
4771 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4772 $as_echo "$ac_try_echo"; } >&5
4773 (eval "$ac_compile") 2>&5
4775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4776 test $ac_status = 0; }; then :
4777 for ac_file in conftest.o conftest.obj conftest.*; do
4778 test -f "$ac_file" || continue;
4780 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4781 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4786 $as_echo "$as_me: failed program was:" >&5
4787 sed 's/^/| /' conftest.$ac_ext >&5
4789 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4790 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4791 as_fn_error $? "cannot compute suffix of object files: cannot compile
4792 See \`config.log' for more details" "$LINENO" 5; }
4794 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4797 $as_echo "$ac_cv_objext" >&6; }
4798 OBJEXT=$ac_cv_objext
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4801 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4802 if ${ac_cv_c_compiler_gnu+:} false; then :
4803 $as_echo_n "(cached) " >&6
4805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4806 /* end confdefs.h. */
4819 if ac_fn_c_try_compile "$LINENO"; then :
4824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4825 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4829 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4830 if test $ac_compiler_gnu = yes; then
4835 ac_test_CFLAGS=${CFLAGS+set}
4836 ac_save_CFLAGS=$CFLAGS
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4838 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4839 if ${ac_cv_prog_cc_g+:} false; then :
4840 $as_echo_n "(cached) " >&6
4842 ac_save_c_werror_flag=$ac_c_werror_flag
4843 ac_c_werror_flag=yes
4846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4847 /* end confdefs.h. */
4857 if ac_fn_c_try_compile "$LINENO"; then :
4861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4862 /* end confdefs.h. */
4872 if ac_fn_c_try_compile "$LINENO"; then :
4875 ac_c_werror_flag=$ac_save_c_werror_flag
4877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4878 /* end confdefs.h. */
4888 if ac_fn_c_try_compile "$LINENO"; then :
4891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4896 ac_c_werror_flag=$ac_save_c_werror_flag
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4899 $as_echo "$ac_cv_prog_cc_g" >&6; }
4900 if test "$ac_test_CFLAGS" = set; then
4901 CFLAGS=$ac_save_CFLAGS
4902 elif test $ac_cv_prog_cc_g = yes; then
4903 if test "$GCC" = yes; then
4909 if test "$GCC" = yes; then
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4916 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4917 if ${ac_cv_prog_cc_c89+:} false; then :
4918 $as_echo_n "(cached) " >&6
4920 ac_cv_prog_cc_c89=no
4922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4923 /* end confdefs.h. */
4927 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4928 struct buf { int x; };
4929 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4930 static char *e (p, i)
4936 static char *f (char * (*g) (char **, int), char **p, ...)
4941 s = g (p, va_arg (v,int));
4946 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4947 function prototypes and stuff, but not '\xHH' hex character constants.
4948 These don't provoke an error unfortunately, instead are silently treated
4949 as 'x'. The following induces an error, until -std is added to get
4950 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4951 array size at least. It's necessary to write '\x00'==0 to get something
4952 that's true only with -std. */
4953 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4955 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4956 inside strings and character constants. */
4958 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4960 int test (int i, double x);
4961 struct s1 {int (*f) (int a);};
4962 struct s2 {int (*f) (double a);};
4963 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4969 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4974 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4975 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4977 CC="$ac_save_CC $ac_arg"
4978 if ac_fn_c_try_compile "$LINENO"; then :
4979 ac_cv_prog_cc_c89=$ac_arg
4981 rm -f core conftest.err conftest.$ac_objext
4982 test "x$ac_cv_prog_cc_c89" != "xno" && break
4984 rm -f conftest.$ac_ext
4989 case "x$ac_cv_prog_cc_c89" in
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4992 $as_echo "none needed" >&6; } ;;
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4995 $as_echo "unsupported" >&6; } ;;
4997 CC="$CC $ac_cv_prog_cc_c89"
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4999 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5001 if test "x$ac_cv_prog_cc_c89" != xno; then :
5006 ac_cpp='$CPP $CPPFLAGS'
5007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5012 ac_cpp='$CPP $CPPFLAGS'
5013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5017 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5018 if ${am_cv_prog_cc_c_o+:} false; then :
5019 $as_echo_n "(cached) " >&6
5021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5022 /* end confdefs.h. */
5032 # Make sure it works both with $CC and with simple cc.
5033 # Following AC_PROG_CC_C_O, we do the test twice because some
5034 # compilers refuse to overwrite an existing .o file with -o,
5035 # though they will create one.
5036 am_cv_prog_cc_c_o=yes
5038 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5039 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042 (exit $ac_status); } \
5043 && test -f conftest2.$ac_objext; then
5046 am_cv_prog_cc_c_o=no
5050 rm -f core conftest*
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5054 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5055 if test "$am_cv_prog_cc_c_o" != yes; then
5056 # Losing compiler, so override with the script.
5057 # FIXME: It is wrong to rewrite CC.
5058 # But if we don't then we get into trouble of one sort or another.
5059 # A longer-term fix would be to have automake use am__CC in this case,
5060 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5061 CC="$am_aux_dir/compile $CC"
5064 ac_cpp='$CPP $CPPFLAGS'
5065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5070 depcc="$CC" am_compiler_list=
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5073 $as_echo_n "checking dependency style of $depcc... " >&6; }
5074 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5075 $as_echo_n "(cached) " >&6
5077 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5078 # We make a subdir and do the tests there. Otherwise we can end up
5079 # making bogus files that we don't know about and never remove. For
5080 # instance it was reported that on HP-UX the gcc test will end up
5081 # making a dummy file named 'D' -- because '-MD' means "put the output
5085 # Copy depcomp to subdir because otherwise we won't find it if we're
5086 # using a relative directory.
5087 cp "$am_depcomp" conftest.dir
5089 # We will build objects and dependencies in a subdirectory because
5090 # it helps to detect inapplicable dependency modes. For instance
5091 # both Tru64's cc and ICC support -MD to output dependencies as a
5092 # side effect of compilation, but ICC will put the dependencies in
5093 # the current directory while Tru64 will put them in the object
5097 am_cv_CC_dependencies_compiler_type=none
5098 if test "$am_compiler_list" = ""; then
5099 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5102 case " $depcc " in #(
5103 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5106 for depmode in $am_compiler_list; do
5107 # Setup a source with many dependencies, because some compilers
5108 # like to wrap large dependency lists on column 80 (with \), and
5109 # we should not choose a depcomp mode which is confused by this.
5111 # We need to recreate these files for each test, as the compiler may
5112 # overwrite some of them when testing with obscure command lines.
5113 # This happens at least with the AIX C compiler.
5115 for i in 1 2 3 4 5 6; do
5116 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5117 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5118 # Solaris 10 /bin/sh.
5119 echo '/* dummy */' > sub/conftst$i.h
5121 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5123 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5124 # mode. It turns out that the SunPro C++ compiler does not properly
5125 # handle '-M -o', and we need to detect this. Also, some Intel
5126 # versions had trouble with output in subdirs.
5127 am__obj=sub/conftest.${OBJEXT-o}
5128 am__minus_obj="-o $am__obj"
5131 # This depmode causes a compiler race in universal mode.
5132 test "$am__universal" = false || continue
5135 # After this tag, mechanisms are not by side-effect, so they'll
5136 # only be used when explicitly requested.
5137 if test "x$enable_dependency_tracking" = xyes; then
5143 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5144 # This compiler won't grok '-c -o', but also, the minuso test has
5145 # not run yet. These depmodes are late enough in the game, and
5146 # so weak that their functioning should not be impacted.
5147 am__obj=conftest.${OBJEXT-o}
5152 if depmode=$depmode \
5153 source=sub/conftest.c object=$am__obj \
5154 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5155 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5156 >/dev/null 2>conftest.err &&
5157 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5158 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5159 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5160 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5161 # icc doesn't choke on unknown options, it will just issue warnings
5162 # or remarks (even with -Werror). So we grep stderr for any message
5163 # that says an option was ignored or not supported.
5164 # When given -MP, icc 7.0 and 7.1 complain thusly:
5165 # icc: Command line warning: ignoring option '-M'; no argument required
5166 # The diagnosis changed in icc 8.0:
5167 # icc: Command line remark: option '-MP' not supported
5168 if (grep 'ignoring option' conftest.err ||
5169 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5170 am_cv_CC_dependencies_compiler_type=$depmode
5179 am_cv_CC_dependencies_compiler_type=none
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5184 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5185 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5188 test "x$enable_dependency_tracking" != xno \
5189 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5191 am__fastdepCC_FALSE='#'
5193 am__fastdepCC_TRUE='#'
5194 am__fastdepCC_FALSE=
5199 if test -n "$ac_tool_prefix"; then
5200 for ac_prog in ar lib "link -lib"
5202 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5203 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5205 $as_echo_n "checking for $ac_word... " >&6; }
5206 if ${ac_cv_prog_AR+:} false; then :
5207 $as_echo_n "(cached) " >&6
5209 if test -n "$AR"; then
5210 ac_cv_prog_AR="$AR" # Let the user override the test.
5212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5216 test -z "$as_dir" && as_dir=.
5217 for ac_exec_ext in '' $ac_executable_extensions; do
5218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5219 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5230 if test -n "$AR"; then
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5232 $as_echo "$AR" >&6; }
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5235 $as_echo "no" >&6; }
5239 test -n "$AR" && break
5242 if test -z "$AR"; then
5244 for ac_prog in ar lib "link -lib"
5246 # Extract the first word of "$ac_prog", so it can be a program name with args.
5247 set dummy $ac_prog; ac_word=$2
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5249 $as_echo_n "checking for $ac_word... " >&6; }
5250 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5251 $as_echo_n "(cached) " >&6
5253 if test -n "$ac_ct_AR"; then
5254 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5260 test -z "$as_dir" && as_dir=.
5261 for ac_exec_ext in '' $ac_executable_extensions; do
5262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5263 ac_cv_prog_ac_ct_AR="$ac_prog"
5264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5273 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5274 if test -n "$ac_ct_AR"; then
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5276 $as_echo "$ac_ct_AR" >&6; }
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5279 $as_echo "no" >&6; }
5283 test -n "$ac_ct_AR" && break
5286 if test "x$ac_ct_AR" = x; then
5289 case $cross_compiling:$ac_tool_warned in
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5292 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5293 ac_tool_warned=yes ;;
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5302 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5303 if ${am_cv_ar_interface+:} false; then :
5304 $as_echo_n "(cached) " >&6
5307 ac_cpp='$CPP $CPPFLAGS'
5308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5312 am_cv_ar_interface=ar
5313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5314 /* end confdefs.h. */
5315 int some_variable = 0;
5317 if ac_fn_c_try_compile "$LINENO"; then :
5318 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5319 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5320 (eval $am_ar_try) 2>&5
5322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5323 test $ac_status = 0; }
5324 if test "$ac_status" -eq 0; then
5325 am_cv_ar_interface=ar
5327 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5328 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5329 (eval $am_ar_try) 2>&5
5331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5332 test $ac_status = 0; }
5333 if test "$ac_status" -eq 0; then
5334 am_cv_ar_interface=lib
5336 am_cv_ar_interface=unknown
5339 rm -f conftest.lib libconftest.a
5342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5344 ac_cpp='$CPP $CPPFLAGS'
5345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5351 $as_echo "$am_cv_ar_interface" >&6; }
5353 case $am_cv_ar_interface in
5357 # Microsoft lib, so override with the ar-lib wrapper script.
5358 # FIXME: It is wrong to rewrite AR.
5359 # But if we don't then we get into trouble of one sort or another.
5360 # A longer-term fix would be to have automake use am__AR in this case,
5361 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5363 AR="$am_aux_dir/ar-lib $AR"
5366 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5374 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5379 macro_version='2.4.6'
5380 macro_revision='2.4.6'
5394 ltmain=$ac_aux_dir/ltmain.sh
5396 # Make sure we can run config.sub.
5397 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5398 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5401 $as_echo_n "checking build system type... " >&6; }
5402 if ${ac_cv_build+:} false; then :
5403 $as_echo_n "(cached) " >&6
5405 ac_build_alias=$build_alias
5406 test "x$ac_build_alias" = x &&
5407 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5408 test "x$ac_build_alias" = x &&
5409 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5410 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5411 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5415 $as_echo "$ac_cv_build" >&6; }
5416 case $ac_cv_build in
5418 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5421 ac_save_IFS=$IFS; IFS='-'
5427 # Remember, the first character of IFS is used to create $*,
5428 # except with old shells:
5431 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5435 $as_echo_n "checking host system type... " >&6; }
5436 if ${ac_cv_host+:} false; then :
5437 $as_echo_n "(cached) " >&6
5439 if test "x$host_alias" = x; then
5440 ac_cv_host=$ac_cv_build
5442 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5443 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5448 $as_echo "$ac_cv_host" >&6; }
5451 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5454 ac_save_IFS=$IFS; IFS='-'
5460 # Remember, the first character of IFS is used to create $*,
5461 # except with old shells:
5464 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5467 # Backslashify metacharacters that are still active within
5468 # double-quoted strings.
5469 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5471 # Same as above, but do not quote variable references.
5472 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5474 # Sed substitution to delay expansion of an escaped shell variable in a
5475 # double_quote_subst'ed string.
5476 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5478 # Sed substitution to delay expansion of an escaped single quote.
5479 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5481 # Sed substitution to avoid accidental globbing in evaled expressions
5482 no_glob_subst='s/\*/\\\*/g'
5484 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5485 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5486 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5489 $as_echo_n "checking how to print strings... " >&6; }
5490 # Test print first, because it will be a builtin if present.
5491 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5492 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5494 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5497 # Use this function as a fallback that always works.
5498 func_fallback_echo ()
5500 eval 'cat <<_LTECHO_EOF
5504 ECHO='func_fallback_echo'
5507 # func_echo_all arg...
5508 # Invoke $ECHO with all args, space-separated.
5515 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5516 $as_echo "printf" >&6; } ;;
5517 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5518 $as_echo "print -r" >&6; } ;;
5519 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5520 $as_echo "cat" >&6; } ;;
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5537 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5538 if ${ac_cv_path_SED+:} false; then :
5539 $as_echo_n "(cached) " >&6
5541 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5542 for ac_i in 1 2 3 4 5 6 7; do
5543 ac_script="$ac_script$as_nl$ac_script"
5545 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5546 { ac_script=; unset ac_script;}
5547 if test -z "$SED"; then
5548 ac_path_SED_found=false
5549 # Loop through the user's path and test for each of PROGNAME-LIST
5550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5554 test -z "$as_dir" && as_dir=.
5555 for ac_prog in sed gsed; do
5556 for ac_exec_ext in '' $ac_executable_extensions; do
5557 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5558 as_fn_executable_p "$ac_path_SED" || continue
5559 # Check for GNU ac_path_SED and select it if it is found.
5560 # Check for GNU $ac_path_SED
5561 case `"$ac_path_SED" --version 2>&1` in
5563 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5566 $as_echo_n 0123456789 >"conftest.in"
5569 cat "conftest.in" "conftest.in" >"conftest.tmp"
5570 mv "conftest.tmp" "conftest.in"
5571 cp "conftest.in" "conftest.nl"
5572 $as_echo '' >> "conftest.nl"
5573 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5574 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5575 as_fn_arith $ac_count + 1 && ac_count=$as_val
5576 if test $ac_count -gt ${ac_path_SED_max-0}; then
5577 # Best one so far, save it but keep looking for a better one
5578 ac_cv_path_SED="$ac_path_SED"
5579 ac_path_SED_max=$ac_count
5581 # 10*(2^10) chars as input seems more than enough
5582 test $ac_count -gt 10 && break
5584 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5587 $ac_path_SED_found && break 3
5592 if test -z "$ac_cv_path_SED"; then
5593 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5601 $as_echo "$ac_cv_path_SED" >&6; }
5602 SED="$ac_cv_path_SED"
5605 test -z "$SED" && SED=sed
5606 Xsed="$SED -e 1s/^X//"
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5619 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5620 if ${ac_cv_path_GREP+:} false; then :
5621 $as_echo_n "(cached) " >&6
5623 if test -z "$GREP"; then
5624 ac_path_GREP_found=false
5625 # Loop through the user's path and test for each of PROGNAME-LIST
5626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5627 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5630 test -z "$as_dir" && as_dir=.
5631 for ac_prog in grep ggrep; do
5632 for ac_exec_ext in '' $ac_executable_extensions; do
5633 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5634 as_fn_executable_p "$ac_path_GREP" || continue
5635 # Check for GNU ac_path_GREP and select it if it is found.
5636 # Check for GNU $ac_path_GREP
5637 case `"$ac_path_GREP" --version 2>&1` in
5639 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5642 $as_echo_n 0123456789 >"conftest.in"
5645 cat "conftest.in" "conftest.in" >"conftest.tmp"
5646 mv "conftest.tmp" "conftest.in"
5647 cp "conftest.in" "conftest.nl"
5648 $as_echo 'GREP' >> "conftest.nl"
5649 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5650 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5651 as_fn_arith $ac_count + 1 && ac_count=$as_val
5652 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5653 # Best one so far, save it but keep looking for a better one
5654 ac_cv_path_GREP="$ac_path_GREP"
5655 ac_path_GREP_max=$ac_count
5657 # 10*(2^10) chars as input seems more than enough
5658 test $ac_count -gt 10 && break
5660 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5663 $ac_path_GREP_found && break 3
5668 if test -z "$ac_cv_path_GREP"; then
5669 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5672 ac_cv_path_GREP=$GREP
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5677 $as_echo "$ac_cv_path_GREP" >&6; }
5678 GREP="$ac_cv_path_GREP"
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5682 $as_echo_n "checking for egrep... " >&6; }
5683 if ${ac_cv_path_EGREP+:} false; then :
5684 $as_echo_n "(cached) " >&6
5686 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5687 then ac_cv_path_EGREP="$GREP -E"
5689 if test -z "$EGREP"; then
5690 ac_path_EGREP_found=false
5691 # Loop through the user's path and test for each of PROGNAME-LIST
5692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5693 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5696 test -z "$as_dir" && as_dir=.
5697 for ac_prog in egrep; do
5698 for ac_exec_ext in '' $ac_executable_extensions; do
5699 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5700 as_fn_executable_p "$ac_path_EGREP" || continue
5701 # Check for GNU ac_path_EGREP and select it if it is found.
5702 # Check for GNU $ac_path_EGREP
5703 case `"$ac_path_EGREP" --version 2>&1` in
5705 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5708 $as_echo_n 0123456789 >"conftest.in"
5711 cat "conftest.in" "conftest.in" >"conftest.tmp"
5712 mv "conftest.tmp" "conftest.in"
5713 cp "conftest.in" "conftest.nl"
5714 $as_echo 'EGREP' >> "conftest.nl"
5715 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5716 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5717 as_fn_arith $ac_count + 1 && ac_count=$as_val
5718 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5719 # Best one so far, save it but keep looking for a better one
5720 ac_cv_path_EGREP="$ac_path_EGREP"
5721 ac_path_EGREP_max=$ac_count
5723 # 10*(2^10) chars as input seems more than enough
5724 test $ac_count -gt 10 && break
5726 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5729 $ac_path_EGREP_found && break 3
5734 if test -z "$ac_cv_path_EGREP"; then
5735 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5738 ac_cv_path_EGREP=$EGREP
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5744 $as_echo "$ac_cv_path_EGREP" >&6; }
5745 EGREP="$ac_cv_path_EGREP"
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5749 $as_echo_n "checking for fgrep... " >&6; }
5750 if ${ac_cv_path_FGREP+:} false; then :
5751 $as_echo_n "(cached) " >&6
5753 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5754 then ac_cv_path_FGREP="$GREP -F"
5756 if test -z "$FGREP"; then
5757 ac_path_FGREP_found=false
5758 # Loop through the user's path and test for each of PROGNAME-LIST
5759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5760 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5763 test -z "$as_dir" && as_dir=.
5764 for ac_prog in fgrep; do
5765 for ac_exec_ext in '' $ac_executable_extensions; do
5766 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5767 as_fn_executable_p "$ac_path_FGREP" || continue
5768 # Check for GNU ac_path_FGREP and select it if it is found.
5769 # Check for GNU $ac_path_FGREP
5770 case `"$ac_path_FGREP" --version 2>&1` in
5772 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5775 $as_echo_n 0123456789 >"conftest.in"
5778 cat "conftest.in" "conftest.in" >"conftest.tmp"
5779 mv "conftest.tmp" "conftest.in"
5780 cp "conftest.in" "conftest.nl"
5781 $as_echo 'FGREP' >> "conftest.nl"
5782 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5783 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5784 as_fn_arith $ac_count + 1 && ac_count=$as_val
5785 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5786 # Best one so far, save it but keep looking for a better one
5787 ac_cv_path_FGREP="$ac_path_FGREP"
5788 ac_path_FGREP_max=$ac_count
5790 # 10*(2^10) chars as input seems more than enough
5791 test $ac_count -gt 10 && break
5793 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5796 $ac_path_FGREP_found && break 3
5801 if test -z "$ac_cv_path_FGREP"; then
5802 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5805 ac_cv_path_FGREP=$FGREP
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5811 $as_echo "$ac_cv_path_FGREP" >&6; }
5812 FGREP="$ac_cv_path_FGREP"
5815 test -z "$GREP" && GREP=grep
5835 # Check whether --with-gnu-ld was given.
5836 if test "${with_gnu_ld+set}" = set; then :
5837 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5843 if test yes = "$GCC"; then
5844 # Check if gcc -print-prog-name=ld gives a path.
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5846 $as_echo_n "checking for ld used by $CC... " >&6; }
5849 # gcc leaves a trailing carriage return, which upsets mingw
5850 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5852 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5855 # Accept absolute paths.
5857 re_direlt='/[^/][^/]*/\.\./'
5858 # Canonicalize the pathname of ld
5859 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5860 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5861 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5863 test -z "$LD" && LD=$ac_prog
5866 # If it fails, then pretend we aren't using GCC.
5870 # If it is relative, then search for the first ld in PATH.
5874 elif test yes = "$with_gnu_ld"; then
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5876 $as_echo_n "checking for GNU ld... " >&6; }
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5879 $as_echo_n "checking for non-GNU ld... " >&6; }
5881 if ${lt_cv_path_LD+:} false; then :
5882 $as_echo_n "(cached) " >&6
5884 if test -z "$LD"; then
5885 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5886 for ac_dir in $PATH; do
5888 test -z "$ac_dir" && ac_dir=.
5889 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5890 lt_cv_path_LD=$ac_dir/$ac_prog
5891 # Check to see if the program is GNU ld. I'd rather use --version,
5892 # but apparently some variants of GNU ld only accept -v.
5893 # Break only if it was the GNU/non-GNU ld that we prefer.
5894 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5895 *GNU* | *'with BFD'*)
5896 test no != "$with_gnu_ld" && break
5899 test yes != "$with_gnu_ld" && break
5906 lt_cv_path_LD=$LD # Let the user override the test with a path.
5911 if test -n "$LD"; then
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5913 $as_echo "$LD" >&6; }
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5916 $as_echo "no" >&6; }
5918 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5920 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5921 if ${lt_cv_prog_gnu_ld+:} false; then :
5922 $as_echo_n "(cached) " >&6
5924 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5925 case `$LD -v 2>&1 </dev/null` in
5926 *GNU* | *'with BFD'*)
5927 lt_cv_prog_gnu_ld=yes
5930 lt_cv_prog_gnu_ld=no
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5935 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5936 with_gnu_ld=$lt_cv_prog_gnu_ld
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5947 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5948 if ${lt_cv_path_NM+:} false; then :
5949 $as_echo_n "(cached) " >&6
5951 if test -n "$NM"; then
5952 # Let the user override the test.
5955 lt_nm_to_check=${ac_tool_prefix}nm
5956 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5957 lt_nm_to_check="$lt_nm_to_check nm"
5959 for lt_tmp_nm in $lt_nm_to_check; do
5960 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5961 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5963 test -z "$ac_dir" && ac_dir=.
5964 tmp_nm=$ac_dir/$lt_tmp_nm
5965 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5966 # Check to see if the nm accepts a BSD-compat flag.
5967 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5968 # nm: unknown option "B" ignored
5969 # Tru64's nm complains that /dev/null is an invalid object file
5970 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5972 mingw*) lt_bad_file=conftest.nm/nofile ;;
5973 *) lt_bad_file=/dev/null ;;
5975 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5976 *$lt_bad_file* | *'Invalid file or object type'*)
5977 lt_cv_path_NM="$tmp_nm -B"
5981 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5983 lt_cv_path_NM="$tmp_nm -p"
5987 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5988 continue # so that we can try to find one that supports BSD flags
5997 : ${lt_cv_path_NM=no}
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6001 $as_echo "$lt_cv_path_NM" >&6; }
6002 if test no != "$lt_cv_path_NM"; then
6005 # Didn't find any BSD compatible name lister, look for dumpbin.
6006 if test -n "$DUMPBIN"; then :
6007 # Let the user override the test.
6009 if test -n "$ac_tool_prefix"; then
6010 for ac_prog in dumpbin "link -dump"
6012 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6013 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6015 $as_echo_n "checking for $ac_word... " >&6; }
6016 if ${ac_cv_prog_DUMPBIN+:} false; then :
6017 $as_echo_n "(cached) " >&6
6019 if test -n "$DUMPBIN"; then
6020 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6026 test -z "$as_dir" && as_dir=.
6027 for ac_exec_ext in '' $ac_executable_extensions; do
6028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6029 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6039 DUMPBIN=$ac_cv_prog_DUMPBIN
6040 if test -n "$DUMPBIN"; then
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6042 $as_echo "$DUMPBIN" >&6; }
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6045 $as_echo "no" >&6; }
6049 test -n "$DUMPBIN" && break
6052 if test -z "$DUMPBIN"; then
6053 ac_ct_DUMPBIN=$DUMPBIN
6054 for ac_prog in dumpbin "link -dump"
6056 # Extract the first word of "$ac_prog", so it can be a program name with args.
6057 set dummy $ac_prog; ac_word=$2
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6059 $as_echo_n "checking for $ac_word... " >&6; }
6060 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6061 $as_echo_n "(cached) " >&6
6063 if test -n "$ac_ct_DUMPBIN"; then
6064 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6070 test -z "$as_dir" && as_dir=.
6071 for ac_exec_ext in '' $ac_executable_extensions; do
6072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6073 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6083 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6084 if test -n "$ac_ct_DUMPBIN"; then
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6086 $as_echo "$ac_ct_DUMPBIN" >&6; }
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6089 $as_echo "no" >&6; }
6093 test -n "$ac_ct_DUMPBIN" && break
6096 if test "x$ac_ct_DUMPBIN" = x; then
6099 case $cross_compiling:$ac_tool_warned in
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6102 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6103 ac_tool_warned=yes ;;
6105 DUMPBIN=$ac_ct_DUMPBIN
6109 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6111 DUMPBIN="$DUMPBIN -symbols -headers"
6119 if test : != "$DUMPBIN"; then
6123 test -z "$NM" && NM=nm
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6131 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6132 if ${lt_cv_nm_interface+:} false; then :
6133 $as_echo_n "(cached) " >&6
6135 lt_cv_nm_interface="BSD nm"
6136 echo "int some_variable = 0;" > conftest.$ac_ext
6137 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6138 (eval "$ac_compile" 2>conftest.err)
6139 cat conftest.err >&5
6140 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6141 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6142 cat conftest.err >&5
6143 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6144 cat conftest.out >&5
6145 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6146 lt_cv_nm_interface="MS dumpbin"
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6151 $as_echo "$lt_cv_nm_interface" >&6; }
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6154 $as_echo_n "checking whether ln -s works... " >&6; }
6156 if test "$LN_S" = "ln -s"; then
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6158 $as_echo "yes" >&6; }
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6161 $as_echo "no, using $LN_S" >&6; }
6164 # find the maximum length of command line arguments
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6166 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6167 if ${lt_cv_sys_max_cmd_len+:} false; then :
6168 $as_echo_n "(cached) " >&6
6175 # On DJGPP, this test can blow up pretty badly due to problems in libc
6176 # (any single argument exceeding 2000 bytes causes a buffer overrun
6177 # during glob expansion). Even if it were fixed, the result of this
6178 # check would be larger than it should be.
6179 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6183 # Under GNU Hurd, this test is not required because there is
6184 # no limit to the length of command line arguments.
6185 # Libtool will interpret -1 as no limit whatsoever
6186 lt_cv_sys_max_cmd_len=-1;
6189 cygwin* | mingw* | cegcc*)
6190 # On Win9x/ME, this test blows up -- it succeeds, but takes
6191 # about 5 minutes as the teststring grows exponentially.
6192 # Worse, since 9x/ME are not pre-emptively multitasking,
6193 # you end up with a "frozen" computer, even though with patience
6194 # the test eventually succeeds (with a max line length of 256k).
6195 # Instead, let's just punt: use the minimum linelength reported by
6196 # all of the supported platforms: 8192 (on NT/2K/XP).
6197 lt_cv_sys_max_cmd_len=8192;
6201 # On MiNT this can take a long time and run out of memory.
6202 lt_cv_sys_max_cmd_len=8192;
6206 # On AmigaOS with pdksh, this test takes hours, literally.
6207 # So we just punt and use a minimum line length of 8192.
6208 lt_cv_sys_max_cmd_len=8192;
6211 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6212 # This has been around since 386BSD, at least. Likely further.
6213 if test -x /sbin/sysctl; then
6214 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6215 elif test -x /usr/sbin/sysctl; then
6216 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6218 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6220 # And add a safety zone
6221 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6222 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6226 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6227 lt_cv_sys_max_cmd_len=196608
6231 # The test takes a long time on OS/2.
6232 lt_cv_sys_max_cmd_len=8192
6236 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6237 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6238 # nice to cause kernel panics so lets avoid the loop below.
6239 # First set a reasonable default.
6240 lt_cv_sys_max_cmd_len=16384
6242 if test -x /sbin/sysconfig; then
6243 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6244 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6249 lt_cv_sys_max_cmd_len=102400
6251 sysv5* | sco5v6* | sysv4.2uw2*)
6252 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6253 if test -n "$kargmax"; then
6254 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6256 lt_cv_sys_max_cmd_len=32768
6260 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6261 if test -n "$lt_cv_sys_max_cmd_len" && \
6262 test undefined != "$lt_cv_sys_max_cmd_len"; then
6263 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6264 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6266 # Make teststring a little bigger before we do anything with it.
6267 # a 1K string should be a reasonable start.
6268 for i in 1 2 3 4 5 6 7 8; do
6269 teststring=$teststring$teststring
6271 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6272 # If test is not a shell built-in, we'll probably end up computing a
6273 # maximum length that is only half of the actual maximum length, but
6275 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6276 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6277 test 17 != "$i" # 1/2 MB should be enough
6280 teststring=$teststring$teststring
6282 # Only check the string length outside the loop.
6283 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6285 # Add a significant safety factor because C++ compilers can tack on
6286 # massive amounts of additional arguments before passing them to the
6287 # linker. It appears as though 1/2 is a usable value.
6288 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6295 if test -n "$lt_cv_sys_max_cmd_len"; then
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6297 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6300 $as_echo "none" >&6; }
6302 max_cmd_len=$lt_cv_sys_max_cmd_len
6313 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6323 # test EBCDIC or ASCII
6324 case `echo X|tr X '\101'` in
6325 A) # ASCII based system
6326 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6327 lt_SP2NL='tr \040 \012'
6328 lt_NL2SP='tr \015\012 \040\040'
6330 *) # EBCDIC based system
6331 lt_SP2NL='tr \100 \n'
6332 lt_NL2SP='tr \r\n \100\100'
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6345 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6346 if ${lt_cv_to_host_file_cmd+:} false; then :
6347 $as_echo_n "(cached) " >&6
6352 *-*-mingw* ) # actually msys
6353 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6356 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6358 * ) # otherwise, assume *nix
6359 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6365 *-*-mingw* ) # actually msys
6366 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6369 lt_cv_to_host_file_cmd=func_convert_file_noop
6371 * ) # otherwise, assume *nix
6372 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6376 * ) # unhandled hosts (and "normal" native builds)
6377 lt_cv_to_host_file_cmd=func_convert_file_noop
6383 to_host_file_cmd=$lt_cv_to_host_file_cmd
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6385 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6392 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6393 if ${lt_cv_to_tool_file_cmd+:} false; then :
6394 $as_echo_n "(cached) " >&6
6396 #assume ordinary cross tools, or native build.
6397 lt_cv_to_tool_file_cmd=func_convert_file_noop
6401 *-*-mingw* ) # actually msys
6402 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6410 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6412 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6419 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6420 if ${lt_cv_ld_reload_flag+:} false; then :
6421 $as_echo_n "(cached) " >&6
6423 lt_cv_ld_reload_flag='-r'
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6426 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6427 reload_flag=$lt_cv_ld_reload_flag
6428 case $reload_flag in
6430 *) reload_flag=" $reload_flag" ;;
6432 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6434 cygwin* | mingw* | pw32* | cegcc*)
6435 if test yes != "$GCC"; then
6440 if test yes = "$GCC"; then
6441 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6443 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6456 if test -n "$ac_tool_prefix"; then
6457 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6458 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6460 $as_echo_n "checking for $ac_word... " >&6; }
6461 if ${ac_cv_prog_OBJDUMP+:} false; then :
6462 $as_echo_n "(cached) " >&6
6464 if test -n "$OBJDUMP"; then
6465 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6471 test -z "$as_dir" && as_dir=.
6472 for ac_exec_ext in '' $ac_executable_extensions; do
6473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6474 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6484 OBJDUMP=$ac_cv_prog_OBJDUMP
6485 if test -n "$OBJDUMP"; then
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6487 $as_echo "$OBJDUMP" >&6; }
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6490 $as_echo "no" >&6; }
6495 if test -z "$ac_cv_prog_OBJDUMP"; then
6496 ac_ct_OBJDUMP=$OBJDUMP
6497 # Extract the first word of "objdump", so it can be a program name with args.
6498 set dummy objdump; ac_word=$2
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6500 $as_echo_n "checking for $ac_word... " >&6; }
6501 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6502 $as_echo_n "(cached) " >&6
6504 if test -n "$ac_ct_OBJDUMP"; then
6505 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6511 test -z "$as_dir" && as_dir=.
6512 for ac_exec_ext in '' $ac_executable_extensions; do
6513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6514 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6524 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6525 if test -n "$ac_ct_OBJDUMP"; then
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6527 $as_echo "$ac_ct_OBJDUMP" >&6; }
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6530 $as_echo "no" >&6; }
6533 if test "x$ac_ct_OBJDUMP" = x; then
6536 case $cross_compiling:$ac_tool_warned in
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6539 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6540 ac_tool_warned=yes ;;
6542 OBJDUMP=$ac_ct_OBJDUMP
6545 OBJDUMP="$ac_cv_prog_OBJDUMP"
6548 test -z "$OBJDUMP" && OBJDUMP=objdump
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6559 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6560 if ${lt_cv_deplibs_check_method+:} false; then :
6561 $as_echo_n "(cached) " >&6
6563 lt_cv_file_magic_cmd='$MAGIC_CMD'
6564 lt_cv_file_magic_test_file=
6565 lt_cv_deplibs_check_method='unknown'
6566 # Need to set the preceding variable on all platforms that support
6567 # interlibrary dependencies.
6568 # 'none' -- dependencies not supported.
6569 # 'unknown' -- same as none, but documents that we really don't know.
6570 # 'pass_all' -- all dependencies passed with no checks.
6571 # 'test_compile' -- check by making test program.
6572 # 'file_magic [[regex]]' -- check by looking for files in library path
6573 # that responds to the $file_magic_cmd with a given extended regex.
6574 # If you have 'file' or equivalent on your system and you're not sure
6575 # whether 'pass_all' will *always* work, you probably want this one.
6579 lt_cv_deplibs_check_method=pass_all
6583 lt_cv_deplibs_check_method=pass_all
6587 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6588 lt_cv_file_magic_cmd='/usr/bin/file -L'
6589 lt_cv_file_magic_test_file=/shlib/libc.so
6593 # func_win32_libid is a shell function defined in ltmain.sh
6594 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6595 lt_cv_file_magic_cmd='func_win32_libid'
6599 # Base MSYS/MinGW do not provide the 'file' command needed by
6600 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6601 # unless we find 'file', for example because we are cross-compiling.
6602 if ( file / ) >/dev/null 2>&1; then
6603 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6604 lt_cv_file_magic_cmd='func_win32_libid'
6606 # Keep this pattern in sync with the one in func_win32_libid.
6607 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6608 lt_cv_file_magic_cmd='$OBJDUMP -f'
6613 # use the weaker test based on 'objdump'. See mingw*.
6614 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6615 lt_cv_file_magic_cmd='$OBJDUMP -f'
6618 darwin* | rhapsody*)
6619 lt_cv_deplibs_check_method=pass_all
6622 freebsd* | dragonfly*)
6623 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6626 # Not sure whether the presence of OpenBSD here was a mistake.
6627 # Let's accept both of them until this is cleared up.
6628 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6629 lt_cv_file_magic_cmd=/usr/bin/file
6630 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6634 lt_cv_deplibs_check_method=pass_all
6639 lt_cv_deplibs_check_method=pass_all
6642 hpux10.20* | hpux11*)
6643 lt_cv_file_magic_cmd=/usr/bin/file
6646 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6647 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6650 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]'
6651 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6654 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6655 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6661 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6662 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6665 irix5* | irix6* | nonstopux*)
6667 *-32|*"-32 ") libmagic=32-bit;;
6668 *-n32|*"-n32 ") libmagic=N32;;
6669 *-64|*"-64 ") libmagic=64-bit;;
6670 *) libmagic=never-match;;
6672 lt_cv_deplibs_check_method=pass_all
6675 # This must be glibc/ELF.
6676 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6677 lt_cv_deplibs_check_method=pass_all
6680 netbsd* | netbsdelf*-gnu)
6681 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6682 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6684 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6689 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6690 lt_cv_file_magic_cmd=/usr/bin/file
6691 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6695 lt_cv_deplibs_check_method=pass_all
6699 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6700 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6702 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6706 osf3* | osf4* | osf5*)
6707 lt_cv_deplibs_check_method=pass_all
6711 lt_cv_deplibs_check_method=pass_all
6715 lt_cv_deplibs_check_method=pass_all
6718 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6719 lt_cv_deplibs_check_method=pass_all
6723 case $host_vendor in
6725 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]'
6726 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6729 lt_cv_deplibs_check_method=pass_all
6732 lt_cv_file_magic_cmd='/bin/file'
6733 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6736 lt_cv_file_magic_cmd='/bin/file'
6737 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6738 lt_cv_file_magic_test_file=/lib/libc.so
6741 lt_cv_deplibs_check_method=pass_all
6744 lt_cv_deplibs_check_method=pass_all
6750 lt_cv_deplibs_check_method=pass_all
6753 lt_cv_deplibs_check_method=pass_all
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6759 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6763 if test "$build" = "$host"; then
6766 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6769 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6775 file_magic_cmd=$lt_cv_file_magic_cmd
6776 deplibs_check_method=$lt_cv_deplibs_check_method
6777 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6800 if test -n "$ac_tool_prefix"; then
6801 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6802 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6804 $as_echo_n "checking for $ac_word... " >&6; }
6805 if ${ac_cv_prog_DLLTOOL+:} false; then :
6806 $as_echo_n "(cached) " >&6
6808 if test -n "$DLLTOOL"; then
6809 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6815 test -z "$as_dir" && as_dir=.
6816 for ac_exec_ext in '' $ac_executable_extensions; do
6817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6818 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6828 DLLTOOL=$ac_cv_prog_DLLTOOL
6829 if test -n "$DLLTOOL"; then
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6831 $as_echo "$DLLTOOL" >&6; }
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6834 $as_echo "no" >&6; }
6839 if test -z "$ac_cv_prog_DLLTOOL"; then
6840 ac_ct_DLLTOOL=$DLLTOOL
6841 # Extract the first word of "dlltool", so it can be a program name with args.
6842 set dummy dlltool; ac_word=$2
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6844 $as_echo_n "checking for $ac_word... " >&6; }
6845 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6846 $as_echo_n "(cached) " >&6
6848 if test -n "$ac_ct_DLLTOOL"; then
6849 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6855 test -z "$as_dir" && as_dir=.
6856 for ac_exec_ext in '' $ac_executable_extensions; do
6857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6858 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6868 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6869 if test -n "$ac_ct_DLLTOOL"; then
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6871 $as_echo "$ac_ct_DLLTOOL" >&6; }
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6874 $as_echo "no" >&6; }
6877 if test "x$ac_ct_DLLTOOL" = x; then
6880 case $cross_compiling:$ac_tool_warned in
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6883 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6884 ac_tool_warned=yes ;;
6886 DLLTOOL=$ac_ct_DLLTOOL
6889 DLLTOOL="$ac_cv_prog_DLLTOOL"
6892 test -z "$DLLTOOL" && DLLTOOL=dlltool
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6904 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6905 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6906 $as_echo_n "(cached) " >&6
6908 lt_cv_sharedlib_from_linklib_cmd='unknown'
6911 cygwin* | mingw* | pw32* | cegcc*)
6912 # two different shell functions defined in ltmain.sh;
6913 # decide which one to use based on capabilities of $DLLTOOL
6914 case `$DLLTOOL --help 2>&1` in
6915 *--identify-strict*)
6916 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6919 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6924 # fallback: assume linklib IS sharedlib
6925 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6931 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6932 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6933 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6941 if test -n "$ac_tool_prefix"; then
6944 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6945 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6947 $as_echo_n "checking for $ac_word... " >&6; }
6948 if ${ac_cv_prog_AR+:} false; then :
6949 $as_echo_n "(cached) " >&6
6951 if test -n "$AR"; then
6952 ac_cv_prog_AR="$AR" # Let the user override the test.
6954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6958 test -z "$as_dir" && as_dir=.
6959 for ac_exec_ext in '' $ac_executable_extensions; do
6960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6961 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6972 if test -n "$AR"; then
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6974 $as_echo "$AR" >&6; }
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6977 $as_echo "no" >&6; }
6981 test -n "$AR" && break
6984 if test -z "$AR"; then
6988 # Extract the first word of "$ac_prog", so it can be a program name with args.
6989 set dummy $ac_prog; ac_word=$2
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6991 $as_echo_n "checking for $ac_word... " >&6; }
6992 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6993 $as_echo_n "(cached) " >&6
6995 if test -n "$ac_ct_AR"; then
6996 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7002 test -z "$as_dir" && as_dir=.
7003 for ac_exec_ext in '' $ac_executable_extensions; do
7004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7005 ac_cv_prog_ac_ct_AR="$ac_prog"
7006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7015 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7016 if test -n "$ac_ct_AR"; then
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7018 $as_echo "$ac_ct_AR" >&6; }
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7021 $as_echo "no" >&6; }
7025 test -n "$ac_ct_AR" && break
7028 if test "x$ac_ct_AR" = x; then
7031 case $cross_compiling:$ac_tool_warned in
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7034 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7035 ac_tool_warned=yes ;;
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7055 $as_echo_n "checking for archiver @FILE support... " >&6; }
7056 if ${lt_cv_ar_at_file+:} false; then :
7057 $as_echo_n "(cached) " >&6
7060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7061 /* end confdefs.h. */
7071 if ac_fn_c_try_compile "$LINENO"; then :
7072 echo conftest.$ac_objext > conftest.lst
7073 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7074 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7075 (eval $lt_ar_try) 2>&5
7077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7078 test $ac_status = 0; }
7079 if test 0 -eq "$ac_status"; then
7080 # Ensure the archiver fails upon bogus file names.
7081 rm -f conftest.$ac_objext libconftest.a
7082 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7083 (eval $lt_ar_try) 2>&5
7085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7086 test $ac_status = 0; }
7087 if test 0 -ne "$ac_status"; then
7091 rm -f conftest.* libconftest.a
7094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7098 $as_echo "$lt_cv_ar_at_file" >&6; }
7100 if test no = "$lt_cv_ar_at_file"; then
7103 archiver_list_spec=$lt_cv_ar_at_file
7112 if test -n "$ac_tool_prefix"; then
7113 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7114 set dummy ${ac_tool_prefix}strip; ac_word=$2
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7116 $as_echo_n "checking for $ac_word... " >&6; }
7117 if ${ac_cv_prog_STRIP+:} false; then :
7118 $as_echo_n "(cached) " >&6
7120 if test -n "$STRIP"; then
7121 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7127 test -z "$as_dir" && as_dir=.
7128 for ac_exec_ext in '' $ac_executable_extensions; do
7129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7130 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7140 STRIP=$ac_cv_prog_STRIP
7141 if test -n "$STRIP"; then
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7143 $as_echo "$STRIP" >&6; }
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7146 $as_echo "no" >&6; }
7151 if test -z "$ac_cv_prog_STRIP"; then
7153 # Extract the first word of "strip", so it can be a program name with args.
7154 set dummy strip; ac_word=$2
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7156 $as_echo_n "checking for $ac_word... " >&6; }
7157 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7158 $as_echo_n "(cached) " >&6
7160 if test -n "$ac_ct_STRIP"; then
7161 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7167 test -z "$as_dir" && as_dir=.
7168 for ac_exec_ext in '' $ac_executable_extensions; do
7169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7170 ac_cv_prog_ac_ct_STRIP="strip"
7171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7180 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7181 if test -n "$ac_ct_STRIP"; then
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7183 $as_echo "$ac_ct_STRIP" >&6; }
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7186 $as_echo "no" >&6; }
7189 if test "x$ac_ct_STRIP" = x; then
7192 case $cross_compiling:$ac_tool_warned in
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7195 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7196 ac_tool_warned=yes ;;
7201 STRIP="$ac_cv_prog_STRIP"
7204 test -z "$STRIP" && STRIP=:
7211 if test -n "$ac_tool_prefix"; then
7212 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7213 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7215 $as_echo_n "checking for $ac_word... " >&6; }
7216 if ${ac_cv_prog_RANLIB+:} false; then :
7217 $as_echo_n "(cached) " >&6
7219 if test -n "$RANLIB"; then
7220 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7226 test -z "$as_dir" && as_dir=.
7227 for ac_exec_ext in '' $ac_executable_extensions; do
7228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7229 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7239 RANLIB=$ac_cv_prog_RANLIB
7240 if test -n "$RANLIB"; then
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7242 $as_echo "$RANLIB" >&6; }
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7245 $as_echo "no" >&6; }
7250 if test -z "$ac_cv_prog_RANLIB"; then
7251 ac_ct_RANLIB=$RANLIB
7252 # Extract the first word of "ranlib", so it can be a program name with args.
7253 set dummy ranlib; ac_word=$2
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7255 $as_echo_n "checking for $ac_word... " >&6; }
7256 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7257 $as_echo_n "(cached) " >&6
7259 if test -n "$ac_ct_RANLIB"; then
7260 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7266 test -z "$as_dir" && as_dir=.
7267 for ac_exec_ext in '' $ac_executable_extensions; do
7268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7269 ac_cv_prog_ac_ct_RANLIB="ranlib"
7270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7279 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7280 if test -n "$ac_ct_RANLIB"; then
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7282 $as_echo "$ac_ct_RANLIB" >&6; }
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7285 $as_echo "no" >&6; }
7288 if test "x$ac_ct_RANLIB" = x; then
7291 case $cross_compiling:$ac_tool_warned in
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7294 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7295 ac_tool_warned=yes ;;
7297 RANLIB=$ac_ct_RANLIB
7300 RANLIB="$ac_cv_prog_RANLIB"
7303 test -z "$RANLIB" && RANLIB=:
7310 # Determine commands to create old-style static archives.
7311 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7312 old_postinstall_cmds='chmod 644 $oldlib'
7313 old_postuninstall_cmds=
7315 if test -n "$RANLIB"; then
7318 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7321 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7324 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7329 lock_old_archive_extraction=yes ;;
7331 lock_old_archive_extraction=no ;;
7372 # If no C compiler was specified, use CC.
7375 # If no C compiler flags were specified, use CFLAGS.
7376 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7378 # Allow CC to be a program name with arguments.
7382 # Check for command to grab the raw symbol name followed by C symbol from nm.
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7384 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7385 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7386 $as_echo_n "(cached) " >&6
7389 # These are sane defaults that work on at least a few old systems.
7390 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7392 # Character class describing NM global symbol codes.
7393 symcode='[BCDEGRST]'
7395 # Regexp to match symbols that can be accessed directly from C.
7396 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7398 # Define system-specific variables.
7403 cygwin* | mingw* | pw32* | cegcc*)
7404 symcode='[ABCDGISTW]'
7407 if test ia64 = "$host_cpu"; then
7408 symcode='[ABCDEGRST]'
7412 symcode='[BCDEGRST]'
7415 symcode='[BCDEGQRST]'
7426 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7434 # If we're using GNU nm, then use its standard symbol codes.
7435 case `$NM -V 2>&1` in
7436 *GNU* | *'with BFD'*)
7437 symcode='[ABCDGIRSTW]' ;;
7440 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7441 # Gets list of data symbols to import.
7442 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7443 # Adjust the below global symbol transforms to fixup imported variables.
7444 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7445 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7446 lt_c_name_lib_hook="\
7447 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7448 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7450 # Disable hooks by default.
7451 lt_cv_sys_global_symbol_to_import=
7457 # Transform an extracted symbol line into a proper C declaration.
7458 # Some systems (esp. on ia64) link data and code symbols differently,
7459 # so use this general approach.
7460 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7462 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7463 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7465 # Transform an extracted symbol line into symbol name and symbol address
7466 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7468 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7469 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7471 # Transform an extracted symbol line into symbol name with lib prefix and
7473 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7474 $lt_c_name_lib_hook\
7475 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7476 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7477 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7479 # Handle CRLF in mingw tool chain
7483 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7487 # Try without a prefix underscore, then with it.
7488 for ac_symprfx in "" "_"; do
7490 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7491 symxfrm="\\1 $ac_symprfx\\2 \\2"
7493 # Write the raw and C identifiers.
7494 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7495 # Fake it for dumpbin and say T for any non-static function,
7496 # D for any global variable and I for any imported variable.
7497 # Also find C++ and __fastcall symbols from MSVC++,
7498 # which start with @ or ?.
7499 lt_cv_sys_global_symbol_pipe="$AWK '"\
7500 " {last_section=section; section=\$ 3};"\
7501 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7502 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7503 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7504 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7505 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7506 " \$ 0!~/External *\|/{next};"\
7507 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7508 " {if(hide[section]) next};"\
7509 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7510 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7511 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7512 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7513 " ' prfx=^$ac_symprfx"
7515 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7517 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7519 # Check to see that the pipe works correctly.
7523 cat > conftest.$ac_ext <<_LT_EOF
7528 void nm_test_func(void);
7529 void nm_test_func(void){}
7533 int main(){nm_test_var='a';nm_test_func();return(0);}
7536 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7537 (eval $ac_compile) 2>&5
7539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7540 test $ac_status = 0; }; then
7541 # Now try to grab the symbols.
7543 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7544 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7547 test $ac_status = 0; } && test -s "$nlist"; then
7548 # Try sorting and uniquifying the output.
7549 if sort "$nlist" | uniq > "$nlist"T; then
7550 mv -f "$nlist"T "$nlist"
7555 # Make sure that we snagged all the symbols we need.
7556 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7557 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7558 cat <<_LT_EOF > conftest.$ac_ext
7559 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7560 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7561 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7562 relocations are performed -- see ld's documentation on pseudo-relocs. */
7563 # define LT_DLSYM_CONST
7564 #elif defined __osf__
7565 /* This system does not cope well with relocations in const data. */
7566 # define LT_DLSYM_CONST
7568 # define LT_DLSYM_CONST const
7576 # Now generate the symbol file.
7577 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7579 cat <<_LT_EOF >> conftest.$ac_ext
7581 /* The mapping between symbol names and symbols. */
7582 LT_DLSYM_CONST struct {
7586 lt__PROGRAM__LTX_preloaded_symbols[] =
7588 { "@PROGRAM@", (void *) 0 },
7590 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7591 cat <<\_LT_EOF >> conftest.$ac_ext
7595 /* This works around a problem in FreeBSD linker */
7596 #ifdef FREEBSD_WORKAROUND
7597 static const void *lt_preloaded_setup() {
7598 return lt__PROGRAM__LTX_preloaded_symbols;
7606 # Now try linking the two files.
7607 mv conftest.$ac_objext conftstm.$ac_objext
7608 lt_globsym_save_LIBS=$LIBS
7609 lt_globsym_save_CFLAGS=$CFLAGS
7610 LIBS=conftstm.$ac_objext
7611 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7612 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7613 (eval $ac_link) 2>&5
7615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7616 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7619 LIBS=$lt_globsym_save_LIBS
7620 CFLAGS=$lt_globsym_save_CFLAGS
7622 echo "cannot find nm_test_func in $nlist" >&5
7625 echo "cannot find nm_test_var in $nlist" >&5
7628 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7631 echo "$progname: failed program was:" >&5
7632 cat conftest.$ac_ext >&5
7634 rm -rf conftest* conftst*
7636 # Do not use the global_symbol_pipe unless it works.
7637 if test yes = "$pipe_works"; then
7640 lt_cv_sys_global_symbol_pipe=
7646 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7647 lt_cv_sys_global_symbol_to_cdecl=
7649 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7651 $as_echo "failed" >&6; }
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7654 $as_echo "ok" >&6; }
7657 # Response file support.
7658 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7659 nm_file_list_spec='@'
7660 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7661 nm_file_list_spec='@'
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7701 $as_echo_n "checking for sysroot... " >&6; }
7703 # Check whether --with-sysroot was given.
7704 if test "${with_sysroot+set}" = set; then :
7705 withval=$with_sysroot;
7712 case $with_sysroot in #(
7714 if test yes = "$GCC"; then
7715 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7719 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7725 $as_echo "$with_sysroot" >&6; }
7726 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7731 $as_echo "${lt_sysroot:-no}" >&6; }
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7738 $as_echo_n "checking for a working dd... " >&6; }
7739 if ${ac_cv_path_lt_DD+:} false; then :
7740 $as_echo_n "(cached) " >&6
7742 printf 0123456789abcdef0123456789abcdef >conftest.i
7743 cat conftest.i conftest.i >conftest2.i
7745 if test -z "$lt_DD"; then
7746 ac_path_lt_DD_found=false
7747 # Loop through the user's path and test for each of PROGNAME-LIST
7748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7752 test -z "$as_dir" && as_dir=.
7753 for ac_prog in dd; do
7754 for ac_exec_ext in '' $ac_executable_extensions; do
7755 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7756 as_fn_executable_p "$ac_path_lt_DD" || continue
7757 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7758 cmp -s conftest.i conftest.out \
7759 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7761 $ac_path_lt_DD_found && break 3
7766 if test -z "$ac_cv_path_lt_DD"; then
7770 ac_cv_path_lt_DD=$lt_DD
7773 rm -f conftest.i conftest2.i conftest.out
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7776 $as_echo "$ac_cv_path_lt_DD" >&6; }
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7780 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7781 if ${lt_cv_truncate_bin+:} false; then :
7782 $as_echo_n "(cached) " >&6
7784 printf 0123456789abcdef0123456789abcdef >conftest.i
7785 cat conftest.i conftest.i >conftest2.i
7787 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7788 cmp -s conftest.i conftest.out \
7789 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7791 rm -f conftest.i conftest2.i conftest.out
7792 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7795 $as_echo "$lt_cv_truncate_bin" >&6; }
7803 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7806 for cc_temp in $*""; do
7808 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7809 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7814 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7817 # Check whether --enable-libtool-lock was given.
7818 if test "${enable_libtool_lock+set}" = set; then :
7819 enableval=$enable_libtool_lock;
7822 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7824 # Some flags need to be propagated to the compiler or linker for good
7828 # Find out what ABI is being produced by ac_compile, and set mode
7829 # options accordingly.
7830 echo 'int i;' > conftest.$ac_ext
7831 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7832 (eval $ac_compile) 2>&5
7834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7835 test $ac_status = 0; }; then
7836 case `/usr/bin/file conftest.$ac_objext` in
7848 # Find out what ABI is being produced by ac_compile, and set linker
7849 # options accordingly.
7850 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7851 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7852 (eval $ac_compile) 2>&5
7854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7855 test $ac_status = 0; }; then
7856 if test yes = "$lt_cv_prog_gnu_ld"; then
7857 case `/usr/bin/file conftest.$ac_objext` in
7859 LD="${LD-ld} -melf32bsmip"
7862 LD="${LD-ld} -melf32bmipn32"
7865 LD="${LD-ld} -melf64bmip"
7869 case `/usr/bin/file conftest.$ac_objext` in
7886 # Find out what ABI is being produced by ac_compile, and set linker
7887 # options accordingly.
7888 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7889 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7890 (eval $ac_compile) 2>&5
7892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7893 test $ac_status = 0; }; then
7895 case `/usr/bin/file conftest.$ac_objext` in
7903 case `/usr/bin/file conftest.$ac_objext` in
7905 emul="${emul}btsmip"
7908 emul="${emul}ltsmip"
7911 case `/usr/bin/file conftest.$ac_objext` in
7916 LD="${LD-ld} -m $emul"
7921 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7922 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7923 # Find out what ABI is being produced by ac_compile, and set linker
7924 # options accordingly. Note that the listed cases only cover the
7925 # situations where additional linker options are needed (such as when
7926 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7927 # vice versa); the common cases where no linker options are needed do
7928 # not appear in the list.
7929 echo 'int i;' > conftest.$ac_ext
7930 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7931 (eval $ac_compile) 2>&5
7933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7934 test $ac_status = 0; }; then
7935 case `/usr/bin/file conftest.o` in
7938 x86_64-*kfreebsd*-gnu)
7939 LD="${LD-ld} -m elf_i386_fbsd"
7942 case `/usr/bin/file conftest.o` in
7944 LD="${LD-ld} -m elf32_x86_64"
7947 LD="${LD-ld} -m elf_i386"
7951 powerpc64le-*linux*)
7952 LD="${LD-ld} -m elf32lppclinux"
7955 LD="${LD-ld} -m elf32ppclinux"
7958 LD="${LD-ld} -m elf_s390"
7961 LD="${LD-ld} -m elf32_sparc"
7967 x86_64-*kfreebsd*-gnu)
7968 LD="${LD-ld} -m elf_x86_64_fbsd"
7971 LD="${LD-ld} -m elf_x86_64"
7974 LD="${LD-ld} -m elf64lppc"
7977 LD="${LD-ld} -m elf64ppc"
7979 s390*-*linux*|s390*-*tpf*)
7980 LD="${LD-ld} -m elf64_s390"
7983 LD="${LD-ld} -m elf64_sparc"
7993 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7995 CFLAGS="$CFLAGS -belf"
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7997 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7998 if ${lt_cv_cc_needs_belf+:} false; then :
7999 $as_echo_n "(cached) " >&6
8002 ac_cpp='$CPP $CPPFLAGS'
8003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8008 /* end confdefs.h. */
8018 if ac_fn_c_try_link "$LINENO"; then :
8019 lt_cv_cc_needs_belf=yes
8021 lt_cv_cc_needs_belf=no
8023 rm -f core conftest.err conftest.$ac_objext \
8024 conftest$ac_exeext conftest.$ac_ext
8026 ac_cpp='$CPP $CPPFLAGS'
8027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8033 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8034 if test yes != "$lt_cv_cc_needs_belf"; then
8035 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8040 # Find out what ABI is being produced by ac_compile, and set linker
8041 # options accordingly.
8042 echo 'int i;' > conftest.$ac_ext
8043 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8044 (eval $ac_compile) 2>&5
8046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8047 test $ac_status = 0; }; then
8048 case `/usr/bin/file conftest.o` in
8050 case $lt_cv_prog_gnu_ld in
8053 i?86-*-solaris*|x86_64-*-solaris*)
8054 LD="${LD-ld} -m elf_x86_64"
8057 LD="${LD-ld} -m elf64_sparc"
8060 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8061 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8066 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8078 need_locks=$enable_libtool_lock
8080 if test -n "$ac_tool_prefix"; then
8081 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8082 set dummy ${ac_tool_prefix}mt; ac_word=$2
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8084 $as_echo_n "checking for $ac_word... " >&6; }
8085 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8086 $as_echo_n "(cached) " >&6
8088 if test -n "$MANIFEST_TOOL"; then
8089 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8095 test -z "$as_dir" && as_dir=.
8096 for ac_exec_ext in '' $ac_executable_extensions; do
8097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8098 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8108 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8109 if test -n "$MANIFEST_TOOL"; then
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8111 $as_echo "$MANIFEST_TOOL" >&6; }
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8114 $as_echo "no" >&6; }
8119 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8120 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8121 # Extract the first word of "mt", so it can be a program name with args.
8122 set dummy mt; ac_word=$2
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8124 $as_echo_n "checking for $ac_word... " >&6; }
8125 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8126 $as_echo_n "(cached) " >&6
8128 if test -n "$ac_ct_MANIFEST_TOOL"; then
8129 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8135 test -z "$as_dir" && as_dir=.
8136 for ac_exec_ext in '' $ac_executable_extensions; do
8137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8138 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8148 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8149 if test -n "$ac_ct_MANIFEST_TOOL"; then
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8151 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8154 $as_echo "no" >&6; }
8157 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8160 case $cross_compiling:$ac_tool_warned in
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8163 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8164 ac_tool_warned=yes ;;
8166 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8169 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8172 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8174 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8175 if ${lt_cv_path_mainfest_tool+:} false; then :
8176 $as_echo_n "(cached) " >&6
8178 lt_cv_path_mainfest_tool=no
8179 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8180 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8181 cat conftest.err >&5
8182 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8183 lt_cv_path_mainfest_tool=yes
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8188 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8189 if test yes != "$lt_cv_path_mainfest_tool"; then
8199 rhapsody* | darwin*)
8200 if test -n "$ac_tool_prefix"; then
8201 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8202 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8204 $as_echo_n "checking for $ac_word... " >&6; }
8205 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8206 $as_echo_n "(cached) " >&6
8208 if test -n "$DSYMUTIL"; then
8209 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8215 test -z "$as_dir" && as_dir=.
8216 for ac_exec_ext in '' $ac_executable_extensions; do
8217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8218 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8228 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8229 if test -n "$DSYMUTIL"; then
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8231 $as_echo "$DSYMUTIL" >&6; }
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8234 $as_echo "no" >&6; }
8239 if test -z "$ac_cv_prog_DSYMUTIL"; then
8240 ac_ct_DSYMUTIL=$DSYMUTIL
8241 # Extract the first word of "dsymutil", so it can be a program name with args.
8242 set dummy dsymutil; ac_word=$2
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8244 $as_echo_n "checking for $ac_word... " >&6; }
8245 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8246 $as_echo_n "(cached) " >&6
8248 if test -n "$ac_ct_DSYMUTIL"; then
8249 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8255 test -z "$as_dir" && as_dir=.
8256 for ac_exec_ext in '' $ac_executable_extensions; do
8257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8258 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8268 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8269 if test -n "$ac_ct_DSYMUTIL"; then
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8271 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8274 $as_echo "no" >&6; }
8277 if test "x$ac_ct_DSYMUTIL" = x; then
8280 case $cross_compiling:$ac_tool_warned in
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8283 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8284 ac_tool_warned=yes ;;
8286 DSYMUTIL=$ac_ct_DSYMUTIL
8289 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8292 if test -n "$ac_tool_prefix"; then
8293 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8294 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8296 $as_echo_n "checking for $ac_word... " >&6; }
8297 if ${ac_cv_prog_NMEDIT+:} false; then :
8298 $as_echo_n "(cached) " >&6
8300 if test -n "$NMEDIT"; then
8301 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8307 test -z "$as_dir" && as_dir=.
8308 for ac_exec_ext in '' $ac_executable_extensions; do
8309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8310 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8320 NMEDIT=$ac_cv_prog_NMEDIT
8321 if test -n "$NMEDIT"; then
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8323 $as_echo "$NMEDIT" >&6; }
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8326 $as_echo "no" >&6; }
8331 if test -z "$ac_cv_prog_NMEDIT"; then
8332 ac_ct_NMEDIT=$NMEDIT
8333 # Extract the first word of "nmedit", so it can be a program name with args.
8334 set dummy nmedit; ac_word=$2
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8336 $as_echo_n "checking for $ac_word... " >&6; }
8337 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8338 $as_echo_n "(cached) " >&6
8340 if test -n "$ac_ct_NMEDIT"; then
8341 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8347 test -z "$as_dir" && as_dir=.
8348 for ac_exec_ext in '' $ac_executable_extensions; do
8349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8350 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8360 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8361 if test -n "$ac_ct_NMEDIT"; then
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8363 $as_echo "$ac_ct_NMEDIT" >&6; }
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8366 $as_echo "no" >&6; }
8369 if test "x$ac_ct_NMEDIT" = x; then
8372 case $cross_compiling:$ac_tool_warned in
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8375 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8376 ac_tool_warned=yes ;;
8378 NMEDIT=$ac_ct_NMEDIT
8381 NMEDIT="$ac_cv_prog_NMEDIT"
8384 if test -n "$ac_tool_prefix"; then
8385 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8386 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8388 $as_echo_n "checking for $ac_word... " >&6; }
8389 if ${ac_cv_prog_LIPO+:} false; then :
8390 $as_echo_n "(cached) " >&6
8392 if test -n "$LIPO"; then
8393 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8399 test -z "$as_dir" && as_dir=.
8400 for ac_exec_ext in '' $ac_executable_extensions; do
8401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8402 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8412 LIPO=$ac_cv_prog_LIPO
8413 if test -n "$LIPO"; then
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8415 $as_echo "$LIPO" >&6; }
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8418 $as_echo "no" >&6; }
8423 if test -z "$ac_cv_prog_LIPO"; then
8425 # Extract the first word of "lipo", so it can be a program name with args.
8426 set dummy lipo; ac_word=$2
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8428 $as_echo_n "checking for $ac_word... " >&6; }
8429 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8430 $as_echo_n "(cached) " >&6
8432 if test -n "$ac_ct_LIPO"; then
8433 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8439 test -z "$as_dir" && as_dir=.
8440 for ac_exec_ext in '' $ac_executable_extensions; do
8441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8442 ac_cv_prog_ac_ct_LIPO="lipo"
8443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8452 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8453 if test -n "$ac_ct_LIPO"; then
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8455 $as_echo "$ac_ct_LIPO" >&6; }
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8458 $as_echo "no" >&6; }
8461 if test "x$ac_ct_LIPO" = x; then
8464 case $cross_compiling:$ac_tool_warned in
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8467 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8468 ac_tool_warned=yes ;;
8473 LIPO="$ac_cv_prog_LIPO"
8476 if test -n "$ac_tool_prefix"; then
8477 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8478 set dummy ${ac_tool_prefix}otool; ac_word=$2
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8480 $as_echo_n "checking for $ac_word... " >&6; }
8481 if ${ac_cv_prog_OTOOL+:} false; then :
8482 $as_echo_n "(cached) " >&6
8484 if test -n "$OTOOL"; then
8485 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8491 test -z "$as_dir" && as_dir=.
8492 for ac_exec_ext in '' $ac_executable_extensions; do
8493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8494 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8504 OTOOL=$ac_cv_prog_OTOOL
8505 if test -n "$OTOOL"; then
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8507 $as_echo "$OTOOL" >&6; }
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8510 $as_echo "no" >&6; }
8515 if test -z "$ac_cv_prog_OTOOL"; then
8517 # Extract the first word of "otool", so it can be a program name with args.
8518 set dummy otool; ac_word=$2
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8520 $as_echo_n "checking for $ac_word... " >&6; }
8521 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8522 $as_echo_n "(cached) " >&6
8524 if test -n "$ac_ct_OTOOL"; then
8525 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8531 test -z "$as_dir" && as_dir=.
8532 for ac_exec_ext in '' $ac_executable_extensions; do
8533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8534 ac_cv_prog_ac_ct_OTOOL="otool"
8535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8544 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8545 if test -n "$ac_ct_OTOOL"; then
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8547 $as_echo "$ac_ct_OTOOL" >&6; }
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8550 $as_echo "no" >&6; }
8553 if test "x$ac_ct_OTOOL" = x; then
8556 case $cross_compiling:$ac_tool_warned in
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8559 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8560 ac_tool_warned=yes ;;
8565 OTOOL="$ac_cv_prog_OTOOL"
8568 if test -n "$ac_tool_prefix"; then
8569 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8570 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8572 $as_echo_n "checking for $ac_word... " >&6; }
8573 if ${ac_cv_prog_OTOOL64+:} false; then :
8574 $as_echo_n "(cached) " >&6
8576 if test -n "$OTOOL64"; then
8577 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8583 test -z "$as_dir" && as_dir=.
8584 for ac_exec_ext in '' $ac_executable_extensions; do
8585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8586 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8596 OTOOL64=$ac_cv_prog_OTOOL64
8597 if test -n "$OTOOL64"; then
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8599 $as_echo "$OTOOL64" >&6; }
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8602 $as_echo "no" >&6; }
8607 if test -z "$ac_cv_prog_OTOOL64"; then
8608 ac_ct_OTOOL64=$OTOOL64
8609 # Extract the first word of "otool64", so it can be a program name with args.
8610 set dummy otool64; ac_word=$2
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8612 $as_echo_n "checking for $ac_word... " >&6; }
8613 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8614 $as_echo_n "(cached) " >&6
8616 if test -n "$ac_ct_OTOOL64"; then
8617 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8623 test -z "$as_dir" && as_dir=.
8624 for ac_exec_ext in '' $ac_executable_extensions; do
8625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8626 ac_cv_prog_ac_ct_OTOOL64="otool64"
8627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8636 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8637 if test -n "$ac_ct_OTOOL64"; then
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8639 $as_echo "$ac_ct_OTOOL64" >&6; }
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8642 $as_echo "no" >&6; }
8645 if test "x$ac_ct_OTOOL64" = x; then
8648 case $cross_compiling:$ac_tool_warned in
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8651 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8652 ac_tool_warned=yes ;;
8654 OTOOL64=$ac_ct_OTOOL64
8657 OTOOL64="$ac_cv_prog_OTOOL64"
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8687 $as_echo_n "checking for -single_module linker flag... " >&6; }
8688 if ${lt_cv_apple_cc_single_mod+:} false; then :
8689 $as_echo_n "(cached) " >&6
8691 lt_cv_apple_cc_single_mod=no
8692 if test -z "$LT_MULTI_MODULE"; then
8693 # By default we will add the -single_module flag. You can override
8694 # by either setting the environment variable LT_MULTI_MODULE
8695 # non-empty at configure time, or by adding -multi_module to the
8697 rm -rf libconftest.dylib*
8698 echo "int foo(void){return 1;}" > conftest.c
8699 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8700 -dynamiclib -Wl,-single_module conftest.c" >&5
8701 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8702 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8704 # If there is a non-empty error log, and "single_module"
8705 # appears in it, assume the flag caused a linker warning
8706 if test -s conftest.err && $GREP single_module conftest.err; then
8707 cat conftest.err >&5
8708 # Otherwise, if the output was created with a 0 exit code from
8709 # the compiler, it worked.
8710 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8711 lt_cv_apple_cc_single_mod=yes
8713 cat conftest.err >&5
8715 rm -rf libconftest.dylib*
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8720 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8723 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8724 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8725 $as_echo_n "(cached) " >&6
8727 lt_cv_ld_exported_symbols_list=no
8728 save_LDFLAGS=$LDFLAGS
8729 echo "_main" > conftest.sym
8730 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8732 /* end confdefs.h. */
8742 if ac_fn_c_try_link "$LINENO"; then :
8743 lt_cv_ld_exported_symbols_list=yes
8745 lt_cv_ld_exported_symbols_list=no
8747 rm -f core conftest.err conftest.$ac_objext \
8748 conftest$ac_exeext conftest.$ac_ext
8749 LDFLAGS=$save_LDFLAGS
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8753 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8756 $as_echo_n "checking for -force_load linker flag... " >&6; }
8757 if ${lt_cv_ld_force_load+:} false; then :
8758 $as_echo_n "(cached) " >&6
8760 lt_cv_ld_force_load=no
8761 cat > conftest.c << _LT_EOF
8762 int forced_loaded() { return 2;}
8764 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8765 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8766 echo "$AR cru libconftest.a conftest.o" >&5
8767 $AR cru libconftest.a conftest.o 2>&5
8768 echo "$RANLIB libconftest.a" >&5
8769 $RANLIB libconftest.a 2>&5
8770 cat > conftest.c << _LT_EOF
8771 int main() { return 0;}
8773 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8774 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8776 if test -s conftest.err && $GREP force_load conftest.err; then
8777 cat conftest.err >&5
8778 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8779 lt_cv_ld_force_load=yes
8781 cat conftest.err >&5
8783 rm -f conftest.err libconftest.a conftest conftest.c
8784 rm -rf conftest.dSYM
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8788 $as_echo "$lt_cv_ld_force_load" >&6; }
8790 rhapsody* | darwin1.[012])
8791 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8793 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8794 darwin*) # darwin 5.x on
8795 # if running on 10.5 or later, the deployment target defaults
8796 # to the OS version, if on x86, and 10.4, the deployment
8797 # target defaults to 10.4. Don't you love it?
8798 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8799 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8800 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8802 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8804 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8808 if test yes = "$lt_cv_apple_cc_single_mod"; then
8809 _lt_dar_single_mod='$single_module'
8811 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8812 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8814 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8816 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8817 _lt_dsymutil='~$DSYMUTIL $lib || :'
8824 # func_munge_path_list VARIABLE PATH
8825 # -----------------------------------
8826 # VARIABLE is name of variable containing _space_ separated list of
8827 # directories to be munged by the contents of PATH, which is string
8830 # string "DIR[ DIR]" will be prepended to VARIABLE
8832 # string "DIR[ DIR]" will be appended to VARIABLE
8833 # "DIRP[:DIRP]::[DIRA:]DIRA"
8834 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8835 # "DIRA[ DIRA]" will be appended to VARIABLE
8837 # VARIABLE will be replaced by "DIR[ DIR]"
8838 func_munge_path_list ()
8844 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8847 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8850 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8851 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8854 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8860 ac_cpp='$CPP $CPPFLAGS'
8861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8865 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8866 # On Suns, sometimes $CPP names a directory.
8867 if test -n "$CPP" && test -d "$CPP"; then
8870 if test -z "$CPP"; then
8871 if ${ac_cv_prog_CPP+:} false; then :
8872 $as_echo_n "(cached) " >&6
8874 # Double quotes because CPP needs to be expanded
8875 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8878 for ac_c_preproc_warn_flag in '' yes
8880 # Use a header file that comes with gcc, so configuring glibc
8881 # with a fresh cross-compiler works.
8882 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8883 # <limits.h> exists even on freestanding compilers.
8884 # On the NeXT, cc -E runs the code through the compiler's parser,
8885 # not just through cpp. "Syntax error" is here to catch this case.
8886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8887 /* end confdefs.h. */
8889 # include <limits.h>
8891 # include <assert.h>
8895 if ac_fn_c_try_cpp "$LINENO"; then :
8898 # Broken: fails on valid input.
8901 rm -f conftest.err conftest.i conftest.$ac_ext
8903 # OK, works on sane cases. Now check whether nonexistent headers
8904 # can be detected and how.
8905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8906 /* end confdefs.h. */
8907 #include <ac_nonexistent.h>
8909 if ac_fn_c_try_cpp "$LINENO"; then :
8910 # Broken: success on invalid input.
8913 # Passes both tests.
8917 rm -f conftest.err conftest.i conftest.$ac_ext
8920 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8921 rm -f conftest.i conftest.err conftest.$ac_ext
8922 if $ac_preproc_ok; then :
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8935 $as_echo "$CPP" >&6; }
8937 for ac_c_preproc_warn_flag in '' yes
8939 # Use a header file that comes with gcc, so configuring glibc
8940 # with a fresh cross-compiler works.
8941 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8942 # <limits.h> exists even on freestanding compilers.
8943 # On the NeXT, cc -E runs the code through the compiler's parser,
8944 # not just through cpp. "Syntax error" is here to catch this case.
8945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8946 /* end confdefs.h. */
8948 # include <limits.h>
8950 # include <assert.h>
8954 if ac_fn_c_try_cpp "$LINENO"; then :
8957 # Broken: fails on valid input.
8960 rm -f conftest.err conftest.i conftest.$ac_ext
8962 # OK, works on sane cases. Now check whether nonexistent headers
8963 # can be detected and how.
8964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8965 /* end confdefs.h. */
8966 #include <ac_nonexistent.h>
8968 if ac_fn_c_try_cpp "$LINENO"; then :
8969 # Broken: success on invalid input.
8972 # Passes both tests.
8976 rm -f conftest.err conftest.i conftest.$ac_ext
8979 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8980 rm -f conftest.i conftest.err conftest.$ac_ext
8981 if $ac_preproc_ok; then :
8984 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8985 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8986 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8987 See \`config.log' for more details" "$LINENO" 5; }
8991 ac_cpp='$CPP $CPPFLAGS'
8992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8998 $as_echo_n "checking for ANSI C header files... " >&6; }
8999 if ${ac_cv_header_stdc+:} false; then :
9000 $as_echo_n "(cached) " >&6
9002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9003 /* end confdefs.h. */
9017 if ac_fn_c_try_compile "$LINENO"; then :
9018 ac_cv_header_stdc=yes
9020 ac_cv_header_stdc=no
9022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9024 if test $ac_cv_header_stdc = yes; then
9025 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9027 /* end confdefs.h. */
9031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9032 $EGREP "memchr" >/dev/null 2>&1; then :
9035 ac_cv_header_stdc=no
9041 if test $ac_cv_header_stdc = yes; then
9042 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9044 /* end confdefs.h. */
9048 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9049 $EGREP "free" >/dev/null 2>&1; then :
9052 ac_cv_header_stdc=no
9058 if test $ac_cv_header_stdc = yes; then
9059 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9060 if test "$cross_compiling" = yes; then :
9063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9064 /* end confdefs.h. */
9067 #if ((' ' & 0x0FF) == 0x020)
9068 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9069 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9071 # define ISLOWER(c) \
9072 (('a' <= (c) && (c) <= 'i') \
9073 || ('j' <= (c) && (c) <= 'r') \
9074 || ('s' <= (c) && (c) <= 'z'))
9075 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9078 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9083 for (i = 0; i < 256; i++)
9084 if (XOR (islower (i), ISLOWER (i))
9085 || toupper (i) != TOUPPER (i))
9090 if ac_fn_c_try_run "$LINENO"; then :
9093 ac_cv_header_stdc=no
9095 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9096 conftest.$ac_objext conftest.beam conftest.$ac_ext
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9102 $as_echo "$ac_cv_header_stdc" >&6; }
9103 if test $ac_cv_header_stdc = yes; then
9105 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9109 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9110 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9111 inttypes.h stdint.h unistd.h
9113 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9114 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9116 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9117 cat >>confdefs.h <<_ACEOF
9118 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9126 for ac_header in dlfcn.h
9128 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9130 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9131 cat >>confdefs.h <<_ACEOF
9132 #define HAVE_DLFCN_H 1
9144 # Check whether --enable-static was given.
9145 if test "${enable_static+set}" = set; then :
9146 enableval=$enable_static; p=${PACKAGE-default}
9148 yes) enable_static=yes ;;
9149 no) enable_static=no ;;
9152 # Look at the argument we got. We use all the common list separators.
9153 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9154 for pkg in $enableval; do
9156 if test "X$pkg" = "X$p"; then
9182 # Check whether --enable-shared was given.
9183 if test "${enable_shared+set}" = set; then :
9184 enableval=$enable_shared; p=${PACKAGE-default}
9186 yes) enable_shared=yes ;;
9187 no) enable_shared=no ;;
9190 # Look at the argument we got. We use all the common list separators.
9191 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9192 for pkg in $enableval; do
9194 if test "X$pkg" = "X$p"; then
9215 # Check whether --with-pic was given.
9216 if test "${with_pic+set}" = set; then :
9217 withval=$with_pic; lt_p=${PACKAGE-default}
9219 yes|no) pic_mode=$withval ;;
9222 # Look at the argument we got. We use all the common list separators.
9223 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9224 for lt_pkg in $withval; do
9226 if test "X$lt_pkg" = "X$lt_p"; then
9244 # Check whether --enable-fast-install was given.
9245 if test "${enable_fast_install+set}" = set; then :
9246 enableval=$enable_fast_install; p=${PACKAGE-default}
9248 yes) enable_fast_install=yes ;;
9249 no) enable_fast_install=no ;;
9251 enable_fast_install=no
9252 # Look at the argument we got. We use all the common list separators.
9253 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9254 for pkg in $enableval; do
9256 if test "X$pkg" = "X$p"; then
9257 enable_fast_install=yes
9264 enable_fast_install=yes
9274 shared_archive_member_spec=
9275 case $host,$enable_shared in
9276 power*-*-aix[5-9]*,yes)
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9278 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9280 # Check whether --with-aix-soname was given.
9281 if test "${with_aix_soname+set}" = set; then :
9282 withval=$with_aix_soname; case $withval in
9286 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9289 lt_cv_with_aix_soname=$with_aix_soname
9291 if ${lt_cv_with_aix_soname+:} false; then :
9292 $as_echo_n "(cached) " >&6
9294 lt_cv_with_aix_soname=aix
9297 with_aix_soname=$lt_cv_with_aix_soname
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9301 $as_echo "$with_aix_soname" >&6; }
9302 if test aix != "$with_aix_soname"; then
9303 # For the AIX way of multilib, we name the shared archive member
9304 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9305 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9306 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9307 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9308 if test 64 = "${OBJECT_MODE-32}"; then
9309 shared_archive_member_spec=shr_64
9311 shared_archive_member_spec=shr
9329 # This can be used to rebuild libtool when needed
9330 LIBTOOL_DEPS=$ltmain
9332 # Always use our own libtool.
9333 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9364 test -z "$LN_S" && LN_S="ln -s"
9379 if test -n "${ZSH_VERSION+set}"; then
9380 setopt NO_GLOB_SUBST
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9384 $as_echo_n "checking for objdir... " >&6; }
9385 if ${lt_cv_objdir+:} false; then :
9386 $as_echo_n "(cached) " >&6
9388 rm -f .libs 2>/dev/null
9389 mkdir .libs 2>/dev/null
9390 if test -d .libs; then
9393 # MS-DOS does not allow filenames that begin with a dot.
9396 rmdir .libs 2>/dev/null
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9399 $as_echo "$lt_cv_objdir" >&6; }
9400 objdir=$lt_cv_objdir
9406 cat >>confdefs.h <<_ACEOF
9407 #define LT_OBJDIR "$lt_cv_objdir/"
9415 # AIX sometimes has problems with the GCC collect2 program. For some
9416 # reason, if we set the COLLECT_NAMES environment variable, the problems
9417 # vanish in a puff of smoke.
9418 if test set != "${COLLECT_NAMES+set}"; then
9420 export COLLECT_NAMES
9427 can_build_shared=yes
9429 # All known linkers require a '.a' archive for static linking (except MSVC,
9430 # which needs '.lib').
9433 with_gnu_ld=$lt_cv_prog_gnu_ld
9438 # Set sane defaults for various variables
9439 test -z "$CC" && CC=cc
9440 test -z "$LTCC" && LTCC=$CC
9441 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9442 test -z "$LD" && LD=ld
9443 test -z "$ac_objext" && ac_objext=o
9445 func_cc_basename $compiler
9446 cc_basename=$func_cc_basename_result
9449 # Only perform the check for file, if the check method requires it
9450 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9451 case $deplibs_check_method in
9453 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9455 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9456 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9457 $as_echo_n "(cached) " >&6
9461 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9464 lt_save_MAGIC_CMD=$MAGIC_CMD
9465 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9466 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9467 for ac_dir in $ac_dummy; do
9469 test -z "$ac_dir" && ac_dir=.
9470 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9471 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9472 if test -n "$file_magic_test_file"; then
9473 case $deplibs_check_method in
9475 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9476 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9477 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9478 $EGREP "$file_magic_regex" > /dev/null; then
9483 *** Warning: the command libtool uses to detect shared libraries,
9484 *** $file_magic_cmd, produces output that libtool cannot recognize.
9485 *** The result is that libtool may fail to recognize shared libraries
9486 *** as such. This will affect the creation of libtool libraries that
9487 *** depend on shared libraries, but programs linked with such libtool
9488 *** libraries will work regardless of this problem. Nevertheless, you
9489 *** may want to report the problem to your system manager and/or to
9490 *** bug-libtool@gnu.org
9500 MAGIC_CMD=$lt_save_MAGIC_CMD
9505 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9506 if test -n "$MAGIC_CMD"; then
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9508 $as_echo "$MAGIC_CMD" >&6; }
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9511 $as_echo "no" >&6; }
9518 if test -z "$lt_cv_path_MAGIC_CMD"; then
9519 if test -n "$ac_tool_prefix"; then
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9521 $as_echo_n "checking for file... " >&6; }
9522 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9523 $as_echo_n "(cached) " >&6
9527 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9530 lt_save_MAGIC_CMD=$MAGIC_CMD
9531 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9532 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9533 for ac_dir in $ac_dummy; do
9535 test -z "$ac_dir" && ac_dir=.
9536 if test -f "$ac_dir/file"; then
9537 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9538 if test -n "$file_magic_test_file"; then
9539 case $deplibs_check_method in
9541 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9542 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9543 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9544 $EGREP "$file_magic_regex" > /dev/null; then
9549 *** Warning: the command libtool uses to detect shared libraries,
9550 *** $file_magic_cmd, produces output that libtool cannot recognize.
9551 *** The result is that libtool may fail to recognize shared libraries
9552 *** as such. This will affect the creation of libtool libraries that
9553 *** depend on shared libraries, but programs linked with such libtool
9554 *** libraries will work regardless of this problem. Nevertheless, you
9555 *** may want to report the problem to your system manager and/or to
9556 *** bug-libtool@gnu.org
9566 MAGIC_CMD=$lt_save_MAGIC_CMD
9571 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9572 if test -n "$MAGIC_CMD"; then
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9574 $as_echo "$MAGIC_CMD" >&6; }
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9577 $as_echo "no" >&6; }
9590 # Use C for the default configuration in the libtool script
9594 ac_cpp='$CPP $CPPFLAGS'
9595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9600 # Source file extension for C test sources.
9603 # Object file extension for compiled C test sources.
9607 # Code to be used in simple compile tests
9608 lt_simple_compile_test_code="int some_variable = 0;"
9610 # Code to be used in simple link tests
9611 lt_simple_link_test_code='int main(){return(0);}'
9619 # If no C compiler was specified, use CC.
9622 # If no C compiler flags were specified, use CFLAGS.
9623 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9625 # Allow CC to be a program name with arguments.
9628 # Save the default compiler, since it gets overwritten when the other
9629 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9630 compiler_DEFAULT=$CC
9632 # save warnings/boilerplate of simple test code
9633 ac_outfile=conftest.$ac_objext
9634 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9635 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9636 _lt_compiler_boilerplate=`cat conftest.err`
9639 ac_outfile=conftest.$ac_objext
9640 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9641 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9642 _lt_linker_boilerplate=`cat conftest.err`
9647 ## There is no encapsulation within the following macros, do not change
9648 ## the running order or otherwise move them around unless you know exactly
9649 ## what you are doing...
9650 if test -n "$compiler"; then
9652 lt_prog_compiler_no_builtin_flag=
9654 if test yes = "$GCC"; then
9655 case $cc_basename in
9657 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9659 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9663 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9664 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9665 $as_echo_n "(cached) " >&6
9667 lt_cv_prog_compiler_rtti_exceptions=no
9668 ac_outfile=conftest.$ac_objext
9669 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9670 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9671 # Insert the option either (1) after the last *FLAGS variable, or
9672 # (2) before a word containing "conftest.", or (3) at the end.
9673 # Note that $ac_compile itself does not contain backslashes and begins
9674 # with a dollar sign (not a hyphen), so the echo should work correctly.
9675 # The option is referenced via a variable to avoid confusing sed.
9676 lt_compile=`echo "$ac_compile" | $SED \
9677 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9678 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9679 -e 's:$: $lt_compiler_flag:'`
9680 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9681 (eval "$lt_compile" 2>conftest.err)
9683 cat conftest.err >&5
9684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685 if (exit $ac_status) && test -s "$ac_outfile"; then
9686 # The compiler can only warn and ignore the option if not recognized
9687 # So say no if there are warnings other than the usual output.
9688 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9689 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9690 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9691 lt_cv_prog_compiler_rtti_exceptions=yes
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9698 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9700 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9701 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9713 lt_prog_compiler_wl=
9714 lt_prog_compiler_pic=
9715 lt_prog_compiler_static=
9718 if test yes = "$GCC"; then
9719 lt_prog_compiler_wl='-Wl,'
9720 lt_prog_compiler_static='-static'
9724 # All AIX code is PIC.
9725 if test ia64 = "$host_cpu"; then
9726 # AIX 5 now supports IA64 processor
9727 lt_prog_compiler_static='-Bstatic'
9729 lt_prog_compiler_pic='-fPIC'
9735 # see comment about AmigaOS4 .so support
9736 lt_prog_compiler_pic='-fPIC'
9739 # FIXME: we need at least 68020 code to build shared libraries, but
9740 # adding the '-m68020' flag to GCC prevents building anything better,
9742 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9747 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9748 # PIC is the default for these OSes.
9751 mingw* | cygwin* | pw32* | os2* | cegcc*)
9752 # This hack is so that the source file can tell whether it is being
9753 # built for inclusion in a dll (and should export symbols for example).
9754 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9755 # (--disable-auto-import) libraries
9756 lt_prog_compiler_pic='-DDLL_EXPORT'
9759 lt_prog_compiler_static='$wl-static'
9764 darwin* | rhapsody*)
9765 # PIC is the default on this platform
9766 # Common symbols not allowed in MH_DYLIB files
9767 lt_prog_compiler_pic='-fno-common'
9771 # PIC is the default for Haiku.
9772 # The "-static" flag exists, but is broken.
9773 lt_prog_compiler_static=
9777 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9778 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9779 # sets the default TLS model and affects inlining.
9785 lt_prog_compiler_pic='-fPIC'
9791 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9792 # Instead, we relocate shared libraries at runtime.
9796 # Just because we use GCC doesn't mean we suddenly get shared libraries
9797 # on systems that don't support them.
9798 lt_prog_compiler_can_build_shared=no
9803 # QNX uses GNU C++, but need to define -shared option too, otherwise
9805 lt_prog_compiler_pic='-fPIC -shared'
9809 if test -d /usr/nec; then
9810 lt_prog_compiler_pic=-Kconform_pic
9815 lt_prog_compiler_pic='-fPIC'
9819 case $cc_basename in
9820 nvcc*) # Cuda Compiler Driver 2.2
9821 lt_prog_compiler_wl='-Xlinker '
9822 if test -n "$lt_prog_compiler_pic"; then
9823 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9828 # PORTME Check for flag to pass linker flags through the system compiler.
9831 lt_prog_compiler_wl='-Wl,'
9832 if test ia64 = "$host_cpu"; then
9833 # AIX 5 now supports IA64 processor
9834 lt_prog_compiler_static='-Bstatic'
9836 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9840 darwin* | rhapsody*)
9841 # PIC is the default on this platform
9842 # Common symbols not allowed in MH_DYLIB files
9843 lt_prog_compiler_pic='-fno-common'
9844 case $cc_basename in
9846 # NAG Fortran compiler
9847 lt_prog_compiler_wl='-Wl,-Wl,,'
9848 lt_prog_compiler_pic='-PIC'
9849 lt_prog_compiler_static='-Bstatic'
9854 mingw* | cygwin* | pw32* | os2* | cegcc*)
9855 # This hack is so that the source file can tell whether it is being
9856 # built for inclusion in a dll (and should export symbols for example).
9857 lt_prog_compiler_pic='-DDLL_EXPORT'
9860 lt_prog_compiler_static='$wl-static'
9865 hpux9* | hpux10* | hpux11*)
9866 lt_prog_compiler_wl='-Wl,'
9867 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9874 lt_prog_compiler_pic='+Z'
9877 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9878 lt_prog_compiler_static='$wl-a ${wl}archive'
9881 irix5* | irix6* | nonstopux*)
9882 lt_prog_compiler_wl='-Wl,'
9883 # PIC (with -KPIC) is the default.
9884 lt_prog_compiler_static='-non_shared'
9887 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9888 case $cc_basename in
9889 # old Intel for x86_64, which still supported -KPIC.
9891 lt_prog_compiler_wl='-Wl,'
9892 lt_prog_compiler_pic='-KPIC'
9893 lt_prog_compiler_static='-static'
9895 # icc used to be incompatible with GCC.
9896 # ICC 10 doesn't accept -KPIC any more.
9898 lt_prog_compiler_wl='-Wl,'
9899 lt_prog_compiler_pic='-fPIC'
9900 lt_prog_compiler_static='-static'
9902 # Lahey Fortran 8.1.
9904 lt_prog_compiler_wl='-Wl,'
9905 lt_prog_compiler_pic='--shared'
9906 lt_prog_compiler_static='--static'
9909 # NAG Fortran compiler
9910 lt_prog_compiler_wl='-Wl,-Wl,,'
9911 lt_prog_compiler_pic='-PIC'
9912 lt_prog_compiler_static='-Bstatic'
9915 # Fabrice Bellard et al's Tiny C Compiler
9916 lt_prog_compiler_wl='-Wl,'
9917 lt_prog_compiler_pic='-fPIC'
9918 lt_prog_compiler_static='-static'
9920 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9921 # Portland Group compilers (*not* the Pentium gcc compiler,
9922 # which looks to be a dead project)
9923 lt_prog_compiler_wl='-Wl,'
9924 lt_prog_compiler_pic='-fpic'
9925 lt_prog_compiler_static='-Bstatic'
9928 lt_prog_compiler_wl='-Wl,'
9929 # All Alpha code is PIC.
9930 lt_prog_compiler_static='-non_shared'
9932 xl* | bgxl* | bgf* | mpixl*)
9933 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9934 lt_prog_compiler_wl='-Wl,'
9935 lt_prog_compiler_pic='-qpic'
9936 lt_prog_compiler_static='-qstaticlink'
9939 case `$CC -V 2>&1 | sed 5q` in
9940 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9941 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9942 lt_prog_compiler_pic='-KPIC'
9943 lt_prog_compiler_static='-Bstatic'
9944 lt_prog_compiler_wl=''
9946 *Sun\ F* | *Sun*Fortran*)
9947 lt_prog_compiler_pic='-KPIC'
9948 lt_prog_compiler_static='-Bstatic'
9949 lt_prog_compiler_wl='-Qoption ld '
9953 lt_prog_compiler_pic='-KPIC'
9954 lt_prog_compiler_static='-Bstatic'
9955 lt_prog_compiler_wl='-Wl,'
9957 *Intel*\ [CF]*Compiler*)
9958 lt_prog_compiler_wl='-Wl,'
9959 lt_prog_compiler_pic='-fPIC'
9960 lt_prog_compiler_static='-static'
9963 lt_prog_compiler_wl='-Wl,'
9964 lt_prog_compiler_pic='-fpic'
9965 lt_prog_compiler_static='-Bstatic'
9973 lt_prog_compiler_pic='-KPIC'
9974 lt_prog_compiler_static='-Bstatic'
9978 # QNX uses GNU C++, but need to define -shared option too, otherwise
9980 lt_prog_compiler_pic='-fPIC -shared'
9983 osf3* | osf4* | osf5*)
9984 lt_prog_compiler_wl='-Wl,'
9985 # All OSF/1 code is PIC.
9986 lt_prog_compiler_static='-non_shared'
9990 lt_prog_compiler_static='-non_shared'
9994 lt_prog_compiler_pic='-KPIC'
9995 lt_prog_compiler_static='-Bstatic'
9996 case $cc_basename in
9997 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9998 lt_prog_compiler_wl='-Qoption ld ';;
10000 lt_prog_compiler_wl='-Wl,';;
10005 lt_prog_compiler_wl='-Qoption ld '
10006 lt_prog_compiler_pic='-PIC'
10007 lt_prog_compiler_static='-Bstatic'
10010 sysv4 | sysv4.2uw2* | sysv4.3*)
10011 lt_prog_compiler_wl='-Wl,'
10012 lt_prog_compiler_pic='-KPIC'
10013 lt_prog_compiler_static='-Bstatic'
10017 if test -d /usr/nec; then
10018 lt_prog_compiler_pic='-Kconform_pic'
10019 lt_prog_compiler_static='-Bstatic'
10023 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10024 lt_prog_compiler_wl='-Wl,'
10025 lt_prog_compiler_pic='-KPIC'
10026 lt_prog_compiler_static='-Bstatic'
10030 lt_prog_compiler_wl='-Wl,'
10031 lt_prog_compiler_can_build_shared=no
10035 lt_prog_compiler_pic='-pic'
10036 lt_prog_compiler_static='-Bstatic'
10040 lt_prog_compiler_can_build_shared=no
10046 # For platforms that do not support PIC, -DPIC is meaningless:
10048 lt_prog_compiler_pic=
10051 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10056 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10057 if ${lt_cv_prog_compiler_pic+:} false; then :
10058 $as_echo_n "(cached) " >&6
10060 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10063 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10064 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10067 # Check to make sure the PIC flag actually works.
10069 if test -n "$lt_prog_compiler_pic"; then
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10071 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10072 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10073 $as_echo_n "(cached) " >&6
10075 lt_cv_prog_compiler_pic_works=no
10076 ac_outfile=conftest.$ac_objext
10077 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10078 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10079 # Insert the option either (1) after the last *FLAGS variable, or
10080 # (2) before a word containing "conftest.", or (3) at the end.
10081 # Note that $ac_compile itself does not contain backslashes and begins
10082 # with a dollar sign (not a hyphen), so the echo should work correctly.
10083 # The option is referenced via a variable to avoid confusing sed.
10084 lt_compile=`echo "$ac_compile" | $SED \
10085 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10086 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10087 -e 's:$: $lt_compiler_flag:'`
10088 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10089 (eval "$lt_compile" 2>conftest.err)
10091 cat conftest.err >&5
10092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10093 if (exit $ac_status) && test -s "$ac_outfile"; then
10094 # The compiler can only warn and ignore the option if not recognized
10095 # So say no if there are warnings other than the usual output.
10096 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10097 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10098 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10099 lt_cv_prog_compiler_pic_works=yes
10105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10106 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10108 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10109 case $lt_prog_compiler_pic in
10111 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10114 lt_prog_compiler_pic=
10115 lt_prog_compiler_can_build_shared=no
10131 # Check to make sure the static flag actually works.
10133 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10135 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10136 if ${lt_cv_prog_compiler_static_works+:} false; then :
10137 $as_echo_n "(cached) " >&6
10139 lt_cv_prog_compiler_static_works=no
10140 save_LDFLAGS=$LDFLAGS
10141 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10142 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10143 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10144 # The linker can only warn and ignore the option if not recognized
10145 # So say no if there are warnings
10146 if test -s conftest.err; then
10147 # Append any errors to the config.log.
10148 cat conftest.err 1>&5
10149 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10150 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10151 if diff conftest.exp conftest.er2 >/dev/null; then
10152 lt_cv_prog_compiler_static_works=yes
10155 lt_cv_prog_compiler_static_works=yes
10159 LDFLAGS=$save_LDFLAGS
10162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10163 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10165 if test yes = "$lt_cv_prog_compiler_static_works"; then
10168 lt_prog_compiler_static=
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10178 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10179 if ${lt_cv_prog_compiler_c_o+:} false; then :
10180 $as_echo_n "(cached) " >&6
10182 lt_cv_prog_compiler_c_o=no
10183 $RM -r conftest 2>/dev/null
10187 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10189 lt_compiler_flag="-o out/conftest2.$ac_objext"
10190 # Insert the option either (1) after the last *FLAGS variable, or
10191 # (2) before a word containing "conftest.", or (3) at the end.
10192 # Note that $ac_compile itself does not contain backslashes and begins
10193 # with a dollar sign (not a hyphen), so the echo should work correctly.
10194 lt_compile=`echo "$ac_compile" | $SED \
10195 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10196 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10197 -e 's:$: $lt_compiler_flag:'`
10198 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10199 (eval "$lt_compile" 2>out/conftest.err)
10201 cat out/conftest.err >&5
10202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10205 # The compiler can only warn and ignore the option if not recognized
10206 # So say no if there are warnings
10207 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10208 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10209 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10210 lt_cv_prog_compiler_c_o=yes
10215 # SGI C++ compiler will create directory out/ii_files/ for
10216 # template instantiation
10217 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10218 $RM out/* && rmdir out
10224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10225 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10233 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10234 if ${lt_cv_prog_compiler_c_o+:} false; then :
10235 $as_echo_n "(cached) " >&6
10237 lt_cv_prog_compiler_c_o=no
10238 $RM -r conftest 2>/dev/null
10242 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10244 lt_compiler_flag="-o out/conftest2.$ac_objext"
10245 # Insert the option either (1) after the last *FLAGS variable, or
10246 # (2) before a word containing "conftest.", or (3) at the end.
10247 # Note that $ac_compile itself does not contain backslashes and begins
10248 # with a dollar sign (not a hyphen), so the echo should work correctly.
10249 lt_compile=`echo "$ac_compile" | $SED \
10250 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10251 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10252 -e 's:$: $lt_compiler_flag:'`
10253 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10254 (eval "$lt_compile" 2>out/conftest.err)
10256 cat out/conftest.err >&5
10257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10260 # The compiler can only warn and ignore the option if not recognized
10261 # So say no if there are warnings
10262 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10263 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10264 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10265 lt_cv_prog_compiler_c_o=yes
10270 # SGI C++ compiler will create directory out/ii_files/ for
10271 # template instantiation
10272 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10273 $RM out/* && rmdir out
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10280 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10285 hard_links=nottested
10286 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10287 # do not overwrite the value of need_locks provided by the user
10288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10289 $as_echo_n "checking if we can lock with hard links... " >&6; }
10292 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10294 ln conftest.a conftest.b 2>&5 || hard_links=no
10295 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10297 $as_echo "$hard_links" >&6; }
10298 if test no = "$hard_links"; then
10299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10300 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10313 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10316 allow_undefined_flag=
10317 always_export_symbols=no
10319 archive_expsym_cmds=
10320 compiler_needs_object=no
10321 enable_shared_with_static_runtimes=no
10322 export_dynamic_flag_spec=
10323 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10324 hardcode_automatic=no
10326 hardcode_direct_absolute=no
10327 hardcode_libdir_flag_spec=
10328 hardcode_libdir_separator=
10329 hardcode_minus_L=no
10330 hardcode_shlibpath_var=unsupported
10332 link_all_deplibs=unknown
10334 module_expsym_cmds=
10335 old_archive_from_new_cmds=
10336 old_archive_from_expsyms_cmds=
10337 thread_safe_flag_spec=
10338 whole_archive_flag_spec=
10339 # include_expsyms should be a list of space-separated symbols to be *always*
10340 # included in the symbol list
10342 # exclude_expsyms can be an extended regexp of symbols to exclude
10343 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10344 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10345 # as well as any symbol that contains 'd'.
10346 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10347 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10348 # platforms (ab)use it in PIC code, but their linkers get confused if
10349 # the symbol is explicitly referenced. Since portable code cannot
10350 # rely on this symbol name, it's probably fine to never include it in
10351 # preloaded symbol tables.
10352 # Exclude shared library initialization/finalization symbols.
10353 extract_expsyms_cmds=
10356 cygwin* | mingw* | pw32* | cegcc*)
10357 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10358 # When not using gcc, we currently assume that we are using
10359 # Microsoft Visual C++.
10360 if test yes != "$GCC"; then
10365 # we just hope/assume this is gcc and not c89 (= MSVC++)
10368 openbsd* | bitrig*)
10371 linux* | k*bsd*-gnu | gnu*)
10372 link_all_deplibs=no
10378 # On some targets, GNU ld is compatible enough with the native linker
10379 # that we're better off using the native interface for both.
10380 lt_use_gnu_ld_interface=no
10381 if test yes = "$with_gnu_ld"; then
10384 # The AIX port of GNU ld has always aspired to compatibility
10385 # with the native linker. However, as the warning in the GNU ld
10386 # block says, versions before 2.19.5* couldn't really create working
10387 # shared libraries, regardless of the interface used.
10388 case `$LD -v 2>&1` in
10389 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10390 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10391 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10393 lt_use_gnu_ld_interface=yes
10398 lt_use_gnu_ld_interface=yes
10403 if test yes = "$lt_use_gnu_ld_interface"; then
10404 # If archive_cmds runs LD, not CC, wlarc should be empty
10407 # Set some defaults for GNU ld with shared library support. These
10408 # are reset later if shared libraries are not supported. Putting them
10409 # here allows them to be overridden if necessary.
10410 runpath_var=LD_RUN_PATH
10411 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10412 export_dynamic_flag_spec='$wl--export-dynamic'
10413 # ancient GNU ld didn't support --whole-archive et. al.
10414 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10415 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10417 whole_archive_flag_spec=
10419 supports_anon_versioning=no
10420 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10421 *GNU\ gold*) supports_anon_versioning=yes ;;
10422 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10423 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10424 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10425 *\ 2.11.*) ;; # other 2.11 versions
10426 *) supports_anon_versioning=yes ;;
10429 # See if GNU ld supports shared libraries.
10432 # On AIX/PPC, the GNU linker is very broken
10433 if test ia64 != "$host_cpu"; then
10437 *** Warning: the GNU linker, at least up to release 2.19, is reported
10438 *** to be unable to reliably create shared libraries on AIX.
10439 *** Therefore, libtool is disabling shared libraries support. If you
10440 *** really care for shared libraries, you may want to install binutils
10441 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10442 *** You will then need to restart the configuration process.
10451 # see comment about AmigaOS4 .so support
10452 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10453 archive_expsym_cmds=''
10456 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)'
10457 hardcode_libdir_flag_spec='-L$libdir'
10458 hardcode_minus_L=yes
10464 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10465 allow_undefined_flag=unsupported
10466 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10467 # support --undefined. This deserves some investigation. FIXME
10468 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10474 cygwin* | mingw* | pw32* | cegcc*)
10475 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10476 # as there is no search path for DLLs.
10477 hardcode_libdir_flag_spec='-L$libdir'
10478 export_dynamic_flag_spec='$wl--export-all-symbols'
10479 allow_undefined_flag=unsupported
10480 always_export_symbols=no
10481 enable_shared_with_static_runtimes=yes
10482 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'
10483 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10485 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10486 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10487 # If the export-symbols file already is a .def file, use it as
10488 # is; otherwise, prepend EXPORTS...
10489 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10490 cp $export_symbols $output_objdir/$soname.def;
10492 echo EXPORTS > $output_objdir/$soname.def;
10493 cat $export_symbols >> $output_objdir/$soname.def;
10495 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10502 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10503 link_all_deplibs=yes
10507 hardcode_libdir_flag_spec='-L$libdir'
10508 hardcode_minus_L=yes
10509 allow_undefined_flag=unsupported
10511 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10512 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10513 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10514 $ECHO EXPORTS >> $output_objdir/$libname.def~
10515 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10516 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10517 emximp -o $lib $output_objdir/$libname.def'
10518 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10519 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10520 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10521 $ECHO EXPORTS >> $output_objdir/$libname.def~
10522 prefix_cmds="$SED"~
10523 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10524 prefix_cmds="$prefix_cmds -e 1d";
10526 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10527 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10528 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10529 emximp -o $lib $output_objdir/$libname.def'
10530 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10531 enable_shared_with_static_runtimes=yes
10536 hardcode_shlibpath_var=no
10537 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10538 export_dynamic_flag_spec='$wl-E'
10539 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10540 # Instead, shared libraries are loaded at an image base (0x10000000 by
10541 # default) and relocated if they conflict, which is a slow very memory
10542 # consuming and fragmenting process. To avoid this, we pick a random,
10543 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10544 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10545 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10546 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'
10549 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10551 if test linux-dietlibc = "$host_os"; then
10552 case $cc_basename in
10553 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10556 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10557 && test no = "$tmp_diet"
10559 tmp_addflag=' $pic_flag'
10560 tmp_sharedflag='-shared'
10561 case $cc_basename,$host_cpu in
10562 pgcc*) # Portland Group C compiler
10563 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'
10564 tmp_addflag=' $pic_flag'
10566 pgf77* | pgf90* | pgf95* | pgfortran*)
10567 # Portland Group f77 and f90 compilers
10568 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'
10569 tmp_addflag=' $pic_flag -Mnomain' ;;
10570 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10571 tmp_addflag=' -i_dynamic' ;;
10572 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10573 tmp_addflag=' -i_dynamic -nofor_main' ;;
10574 ifc* | ifort*) # Intel Fortran compiler
10575 tmp_addflag=' -nofor_main' ;;
10576 lf95*) # Lahey Fortran 8.1
10577 whole_archive_flag_spec=
10578 tmp_sharedflag='--shared' ;;
10579 nagfor*) # NAGFOR 5.3
10580 tmp_sharedflag='-Wl,-shared' ;;
10581 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10582 tmp_sharedflag='-qmkshrobj'
10584 nvcc*) # Cuda Compiler Driver 2.2
10585 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'
10586 compiler_needs_object=yes
10589 case `$CC -V 2>&1 | sed 5q` in
10590 *Sun\ C*) # Sun C 5.9
10591 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'
10592 compiler_needs_object=yes
10593 tmp_sharedflag='-G' ;;
10594 *Sun\ F*) # Sun Fortran 8.3
10595 tmp_sharedflag='-G' ;;
10597 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10599 if test yes = "$supports_anon_versioning"; then
10600 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10601 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10602 echo "local: *; };" >> $output_objdir/$libname.ver~
10603 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10606 case $cc_basename in
10608 export_dynamic_flag_spec='-rdynamic'
10610 xlf* | bgf* | bgxlf* | mpixlf*)
10611 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10612 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10613 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10614 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10615 if test yes = "$supports_anon_versioning"; then
10616 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10617 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10618 echo "local: *; };" >> $output_objdir/$libname.ver~
10619 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10628 netbsd* | netbsdelf*-gnu)
10629 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10630 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10633 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10634 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10639 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10643 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10644 *** create shared libraries on Solaris systems. Therefore, libtool
10645 *** is disabling shared libraries support. We urge you to upgrade GNU
10646 *** binutils to release 2.9.1 or newer. Another option is to modify
10647 *** your PATH or compiler configuration so that the native linker is
10648 *** used, and then restart.
10651 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10652 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10653 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10659 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10660 case `$LD -v 2>&1` in
10661 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10665 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10666 *** reliably create shared libraries on SCO systems. Therefore, libtool
10667 *** is disabling shared libraries support. We urge you to upgrade GNU
10668 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10669 *** your PATH or compiler configuration so that the native linker is
10670 *** used, and then restart.
10675 # For security reasons, it is highly recommended that you always
10676 # use absolute paths for naming shared libraries, and exclude the
10677 # DT_RUNPATH tag from executables and libraries. But doing so
10678 # requires that you compile everything twice, which is a pain.
10679 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10680 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10681 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10682 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10691 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10693 hardcode_direct=yes
10694 hardcode_shlibpath_var=no
10698 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10699 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10700 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10707 if test no = "$ld_shlibs"; then
10709 hardcode_libdir_flag_spec=
10710 export_dynamic_flag_spec=
10711 whole_archive_flag_spec=
10714 # PORTME fill in a description of your system's linker (not GNU ld)
10717 allow_undefined_flag=unsupported
10718 always_export_symbols=yes
10719 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'
10720 # Note: this linker hardcodes the directories in LIBPATH if there
10721 # are no directories specified by -L.
10722 hardcode_minus_L=yes
10723 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10724 # Neither direct hardcoding nor static linking is supported with a
10726 hardcode_direct=unsupported
10731 if test ia64 = "$host_cpu"; then
10732 # On IA64, the linker does run time linking by default, so we don't
10733 # have to do anything special.
10734 aix_use_runtimelinking=no
10735 exp_sym_flag='-Bexport'
10738 # If we're using GNU nm, then we don't want the "-C" option.
10739 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10740 # Without the "-l" option, or with the "-B" option, AIX nm treats
10741 # weak defined symbols like other global defined symbols, whereas
10742 # GNU nm marks them as "W".
10743 # While the 'weak' keyword is ignored in the Export File, we need
10744 # it in the Import File for the 'aix-soname' feature, so we have
10745 # to replace the "-B" option with "-P" for AIX nm.
10746 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10747 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10749 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10751 aix_use_runtimelinking=no
10753 # Test if we are trying to use run time linking or normal
10754 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10755 # have runtime linking enabled, and use it for executables.
10756 # For shared libraries, we enable/disable runtime linking
10757 # depending on the kind of the shared library created -
10758 # when "with_aix_soname,aix_use_runtimelinking" is:
10759 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10760 # "aix,yes" lib.so shared, rtl:yes, for executables
10761 # lib.a static archive
10762 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10763 # lib.a(lib.so.V) shared, rtl:no, for executables
10764 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10765 # lib.a(lib.so.V) shared, rtl:no
10766 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10767 # lib.a static archive
10768 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10769 for ld_flag in $LDFLAGS; do
10770 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10771 aix_use_runtimelinking=yes
10775 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10776 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10777 # so we don't have lib.a shared libs to link our executables.
10778 # We have to force runtime linking in this case.
10779 aix_use_runtimelinking=yes
10780 LDFLAGS="$LDFLAGS -Wl,-brtl"
10785 exp_sym_flag='-bexport'
10786 no_entry_flag='-bnoentry'
10789 # When large executables or shared objects are built, AIX ld can
10790 # have problems creating the table of contents. If linking a library
10791 # or program results in "error TOC overflow" add -mminimal-toc to
10792 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10793 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10796 hardcode_direct=yes
10797 hardcode_direct_absolute=yes
10798 hardcode_libdir_separator=':'
10799 link_all_deplibs=yes
10800 file_list_spec='$wl-f,'
10801 case $with_aix_soname,$aix_use_runtimelinking in
10802 aix,*) ;; # traditional, no import file
10803 svr4,* | *,yes) # use import file
10804 # The Import File defines what to hardcode.
10806 hardcode_direct_absolute=no
10810 if test yes = "$GCC"; then
10811 case $host_os in aix4.[012]|aix4.[012].*)
10812 # We only want to do this on AIX 4.2 and lower, the check
10813 # below for broken collect2 doesn't work under 4.3+
10814 collect2name=`$CC -print-prog-name=collect2`
10815 if test -f "$collect2name" &&
10816 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10818 # We have reworked collect2
10821 # We have old collect2
10822 hardcode_direct=unsupported
10823 # It fails to find uninstalled libraries when the uninstalled
10824 # path is not listed in the libpath. Setting hardcode_minus_L
10825 # to unsupported forces relinking
10826 hardcode_minus_L=yes
10827 hardcode_libdir_flag_spec='-L$libdir'
10828 hardcode_libdir_separator=
10832 shared_flag='-shared'
10833 if test yes = "$aix_use_runtimelinking"; then
10834 shared_flag="$shared_flag "'$wl-G'
10836 # Need to ensure runtime linking is disabled for the traditional
10837 # shared library, or the linker may eventually find shared libraries
10838 # /with/ Import File - we do not want to mix them.
10839 shared_flag_aix='-shared'
10840 shared_flag_svr4='-shared $wl-G'
10843 if test ia64 = "$host_cpu"; then
10844 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10845 # chokes on -Wl,-G. The following line is correct:
10848 if test yes = "$aix_use_runtimelinking"; then
10849 shared_flag='$wl-G'
10851 shared_flag='$wl-bM:SRE'
10853 shared_flag_aix='$wl-bM:SRE'
10854 shared_flag_svr4='$wl-G'
10858 export_dynamic_flag_spec='$wl-bexpall'
10859 # It seems that -bexpall does not export symbols beginning with
10860 # underscore (_), so it is better to generate a list of symbols to export.
10861 always_export_symbols=yes
10862 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10863 # Warning - without using the other runtime loading flags (-brtl),
10864 # -berok will link without error, but may produce a broken library.
10865 allow_undefined_flag='-berok'
10866 # Determine the default libpath from the value encoded in an
10867 # empty executable.
10868 if test set = "${lt_cv_aix_libpath+set}"; then
10869 aix_libpath=$lt_cv_aix_libpath
10871 if ${lt_cv_aix_libpath_+:} false; then :
10872 $as_echo_n "(cached) " >&6
10874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10875 /* end confdefs.h. */
10885 if ac_fn_c_try_link "$LINENO"; then :
10887 lt_aix_libpath_sed='
10888 /Import File Strings/,/^$/ {
10890 s/^0 *\([^ ]*\) *$/\1/
10894 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10895 # Check for a 64-bit object if we didn't find anything.
10896 if test -z "$lt_cv_aix_libpath_"; then
10897 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10900 rm -f core conftest.err conftest.$ac_objext \
10901 conftest$ac_exeext conftest.$ac_ext
10902 if test -z "$lt_cv_aix_libpath_"; then
10903 lt_cv_aix_libpath_=/usr/lib:/lib
10908 aix_libpath=$lt_cv_aix_libpath_
10911 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10912 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10914 if test ia64 = "$host_cpu"; then
10915 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10916 allow_undefined_flag="-z nodefs"
10917 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"
10919 # Determine the default libpath from the value encoded in an
10920 # empty executable.
10921 if test set = "${lt_cv_aix_libpath+set}"; then
10922 aix_libpath=$lt_cv_aix_libpath
10924 if ${lt_cv_aix_libpath_+:} false; then :
10925 $as_echo_n "(cached) " >&6
10927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10928 /* end confdefs.h. */
10938 if ac_fn_c_try_link "$LINENO"; then :
10940 lt_aix_libpath_sed='
10941 /Import File Strings/,/^$/ {
10943 s/^0 *\([^ ]*\) *$/\1/
10947 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10948 # Check for a 64-bit object if we didn't find anything.
10949 if test -z "$lt_cv_aix_libpath_"; then
10950 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10953 rm -f core conftest.err conftest.$ac_objext \
10954 conftest$ac_exeext conftest.$ac_ext
10955 if test -z "$lt_cv_aix_libpath_"; then
10956 lt_cv_aix_libpath_=/usr/lib:/lib
10961 aix_libpath=$lt_cv_aix_libpath_
10964 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10965 # Warning - without using the other run time loading flags,
10966 # -berok will link without error, but may produce a broken library.
10967 no_undefined_flag=' $wl-bernotok'
10968 allow_undefined_flag=' $wl-berok'
10969 if test yes = "$with_gnu_ld"; then
10970 # We only use this code for GNU lds that support --whole-archive.
10971 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10973 # Exported symbols can be pulled into shared objects from archives
10974 whole_archive_flag_spec='$convenience'
10976 archive_cmds_need_lc=yes
10977 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10978 # -brtl affects multiple linker settings, -berok does not and is overridden later
10979 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10980 if test svr4 != "$with_aix_soname"; then
10981 # This is similar to how AIX traditionally builds its shared libraries.
10982 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10984 if test aix != "$with_aix_soname"; then
10985 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10987 # used by -dlpreopen to get the symbols
10988 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10990 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10998 # see comment about AmigaOS4 .so support
10999 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11000 archive_expsym_cmds=''
11003 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)'
11004 hardcode_libdir_flag_spec='-L$libdir'
11005 hardcode_minus_L=yes
11011 export_dynamic_flag_spec=-rdynamic
11014 cygwin* | mingw* | pw32* | cegcc*)
11015 # When not using gcc, we currently assume that we are using
11016 # Microsoft Visual C++.
11017 # hardcode_libdir_flag_spec is actually meaningless, as there is
11018 # no search path for DLLs.
11019 case $cc_basename in
11022 hardcode_libdir_flag_spec=' '
11023 allow_undefined_flag=unsupported
11024 always_export_symbols=yes
11026 # Tell ltmain to make .lib files, not .a files.
11028 # Tell ltmain to make .dll files, not .so files.
11030 # FIXME: Setting linknames here is a bad hack.
11031 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11032 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11033 cp "$export_symbols" "$output_objdir/$soname.def";
11034 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11036 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11038 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11040 # The linker will not automatically build a static lib if we build a DLL.
11041 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11042 enable_shared_with_static_runtimes=yes
11043 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11044 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11046 old_postinstall_cmds='chmod 644 $oldlib'
11047 postlink_cmds='lt_outputfile="@OUTPUT@"~
11048 lt_tool_outputfile="@TOOL_OUTPUT@"~
11049 case $lt_outputfile in
11052 lt_outputfile=$lt_outputfile.exe
11053 lt_tool_outputfile=$lt_tool_outputfile.exe
11056 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11057 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11058 $RM "$lt_outputfile.manifest";
11062 # Assume MSVC wrapper
11063 hardcode_libdir_flag_spec=' '
11064 allow_undefined_flag=unsupported
11065 # Tell ltmain to make .lib files, not .a files.
11067 # Tell ltmain to make .dll files, not .so files.
11069 # FIXME: Setting linknames here is a bad hack.
11070 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11071 # The linker will automatically build a .lib file if we build a DLL.
11072 old_archive_from_new_cmds='true'
11073 # FIXME: Should let the user specify the lib program.
11074 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11075 enable_shared_with_static_runtimes=yes
11080 darwin* | rhapsody*)
11083 archive_cmds_need_lc=no
11085 hardcode_automatic=yes
11086 hardcode_shlibpath_var=unsupported
11087 if test yes = "$lt_cv_ld_force_load"; then
11088 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\"`'
11091 whole_archive_flag_spec=''
11093 link_all_deplibs=yes
11094 allow_undefined_flag=$_lt_dar_allow_undefined
11095 case $cc_basename in
11096 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11097 *) _lt_dar_can_shared=$GCC ;;
11099 if test yes = "$_lt_dar_can_shared"; then
11100 output_verbose_link_cmd=func_echo_all
11101 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11102 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11103 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"
11104 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"
11113 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11114 hardcode_libdir_flag_spec='-L$libdir'
11115 hardcode_shlibpath_var=no
11118 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11119 # support. Future versions do this automatically, but an explicit c++rt0.o
11120 # does not break anything, and helps significantly (at the cost of a little
11123 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11124 hardcode_libdir_flag_spec='-R$libdir'
11125 hardcode_direct=yes
11126 hardcode_shlibpath_var=no
11129 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11131 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11132 hardcode_direct=yes
11133 hardcode_minus_L=yes
11134 hardcode_shlibpath_var=no
11137 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11138 freebsd* | dragonfly*)
11139 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11140 hardcode_libdir_flag_spec='-R$libdir'
11141 hardcode_direct=yes
11142 hardcode_shlibpath_var=no
11146 if test yes = "$GCC"; then
11147 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11149 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11151 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11152 hardcode_libdir_separator=:
11153 hardcode_direct=yes
11155 # hardcode_minus_L: Not really in the search PATH,
11156 # but as the default location of the library.
11157 hardcode_minus_L=yes
11158 export_dynamic_flag_spec='$wl-E'
11162 if test yes,no = "$GCC,$with_gnu_ld"; then
11163 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11165 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11167 if test no = "$with_gnu_ld"; then
11168 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11169 hardcode_libdir_separator=:
11170 hardcode_direct=yes
11171 hardcode_direct_absolute=yes
11172 export_dynamic_flag_spec='$wl-E'
11173 # hardcode_minus_L: Not really in the search PATH,
11174 # but as the default location of the library.
11175 hardcode_minus_L=yes
11180 if test yes,no = "$GCC,$with_gnu_ld"; then
11183 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11186 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11189 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11195 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11198 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11202 # Older versions of the 11.00 compiler do not understand -b yet
11203 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11205 $as_echo_n "checking if $CC understands -b... " >&6; }
11206 if ${lt_cv_prog_compiler__b+:} false; then :
11207 $as_echo_n "(cached) " >&6
11209 lt_cv_prog_compiler__b=no
11210 save_LDFLAGS=$LDFLAGS
11211 LDFLAGS="$LDFLAGS -b"
11212 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11213 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11214 # The linker can only warn and ignore the option if not recognized
11215 # So say no if there are warnings
11216 if test -s conftest.err; then
11217 # Append any errors to the config.log.
11218 cat conftest.err 1>&5
11219 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11220 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11221 if diff conftest.exp conftest.er2 >/dev/null; then
11222 lt_cv_prog_compiler__b=yes
11225 lt_cv_prog_compiler__b=yes
11229 LDFLAGS=$save_LDFLAGS
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11233 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11235 if test yes = "$lt_cv_prog_compiler__b"; then
11236 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11238 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11244 if test no = "$with_gnu_ld"; then
11245 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11246 hardcode_libdir_separator=:
11251 hardcode_shlibpath_var=no
11254 hardcode_direct=yes
11255 hardcode_direct_absolute=yes
11256 export_dynamic_flag_spec='$wl-E'
11258 # hardcode_minus_L: Not really in the search PATH,
11259 # but as the default location of the library.
11260 hardcode_minus_L=yes
11266 irix5* | irix6* | nonstopux*)
11267 if test yes = "$GCC"; then
11268 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'
11269 # Try to use the -exported_symbol ld option, if it does not
11270 # work, assume that -exports_file does not work either and
11271 # implicitly export all symbols.
11272 # This should be the same for all languages, so no per-tag cache variable.
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11274 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11275 if ${lt_cv_irix_exported_symbol+:} false; then :
11276 $as_echo_n "(cached) " >&6
11278 save_LDFLAGS=$LDFLAGS
11279 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11281 /* end confdefs.h. */
11282 int foo (void) { return 0; }
11284 if ac_fn_c_try_link "$LINENO"; then :
11285 lt_cv_irix_exported_symbol=yes
11287 lt_cv_irix_exported_symbol=no
11289 rm -f core conftest.err conftest.$ac_objext \
11290 conftest$ac_exeext conftest.$ac_ext
11291 LDFLAGS=$save_LDFLAGS
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11294 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11295 if test yes = "$lt_cv_irix_exported_symbol"; then
11296 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'
11298 link_all_deplibs=no
11300 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'
11301 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'
11303 archive_cmds_need_lc='no'
11304 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11305 hardcode_libdir_separator=:
11307 link_all_deplibs=yes
11311 case $cc_basename in
11313 # Fabrice Bellard et al's Tiny C Compiler
11315 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11320 netbsd* | netbsdelf*-gnu)
11321 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11322 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11324 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11326 hardcode_libdir_flag_spec='-R$libdir'
11327 hardcode_direct=yes
11328 hardcode_shlibpath_var=no
11332 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11333 hardcode_direct=yes
11334 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11335 hardcode_libdir_separator=:
11336 hardcode_shlibpath_var=no
11342 openbsd* | bitrig*)
11343 if test -f /usr/libexec/ld.so; then
11344 hardcode_direct=yes
11345 hardcode_shlibpath_var=no
11346 hardcode_direct_absolute=yes
11347 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11348 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11349 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11350 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11351 export_dynamic_flag_spec='$wl-E'
11353 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11354 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11362 hardcode_libdir_flag_spec='-L$libdir'
11363 hardcode_minus_L=yes
11364 allow_undefined_flag=unsupported
11366 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11367 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11368 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11369 $ECHO EXPORTS >> $output_objdir/$libname.def~
11370 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11371 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11372 emximp -o $lib $output_objdir/$libname.def'
11373 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11374 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11375 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11376 $ECHO EXPORTS >> $output_objdir/$libname.def~
11377 prefix_cmds="$SED"~
11378 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11379 prefix_cmds="$prefix_cmds -e 1d";
11381 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11382 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11383 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11384 emximp -o $lib $output_objdir/$libname.def'
11385 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11386 enable_shared_with_static_runtimes=yes
11390 if test yes = "$GCC"; then
11391 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11392 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'
11394 allow_undefined_flag=' -expect_unresolved \*'
11395 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'
11397 archive_cmds_need_lc='no'
11398 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11399 hardcode_libdir_separator=:
11402 osf4* | osf5*) # as osf3* with the addition of -msym flag
11403 if test yes = "$GCC"; then
11404 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11405 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'
11406 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11408 allow_undefined_flag=' -expect_unresolved \*'
11409 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'
11410 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~
11411 $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'
11413 # Both c and cxx compiler support -rpath directly
11414 hardcode_libdir_flag_spec='-rpath $libdir'
11416 archive_cmds_need_lc='no'
11417 hardcode_libdir_separator=:
11421 no_undefined_flag=' -z defs'
11422 if test yes = "$GCC"; then
11424 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11425 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11426 $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'
11428 case `$CC -V 2>&1` in
11431 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11432 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11433 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11437 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11438 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11439 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11443 hardcode_libdir_flag_spec='-R$libdir'
11444 hardcode_shlibpath_var=no
11446 solaris2.[0-5] | solaris2.[0-5].*) ;;
11448 # The compiler driver will combine and reorder linker options,
11449 # but understands '-z linker_flag'. GCC discards it without '$wl',
11450 # but is careful enough not to reorder.
11451 # Supported since Solaris 2.6 (maybe 2.5.1?)
11452 if test yes = "$GCC"; then
11453 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11455 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11459 link_all_deplibs=yes
11463 if test sequent = "$host_vendor"; then
11464 # Use $CC to link under sequent, because it throws in some extra .o
11465 # files that make .init and .fini sections work.
11466 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11468 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11470 hardcode_libdir_flag_spec='-L$libdir'
11471 hardcode_direct=yes
11472 hardcode_minus_L=yes
11473 hardcode_shlibpath_var=no
11477 case $host_vendor in
11479 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11480 hardcode_direct=yes # is this really true???
11483 ## LD is ld it makes a PLAMLIB
11484 ## CC just makes a GrossModule.
11485 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11486 reload_cmds='$CC -r -o $output$reload_objs'
11490 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11491 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11494 runpath_var='LD_RUN_PATH'
11495 hardcode_shlibpath_var=no
11499 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11500 hardcode_shlibpath_var=no
11501 export_dynamic_flag_spec='-Bexport'
11505 if test -d /usr/nec; then
11506 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11507 hardcode_shlibpath_var=no
11508 runpath_var=LD_RUN_PATH
11509 hardcode_runpath_var=yes
11514 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11515 no_undefined_flag='$wl-z,text'
11516 archive_cmds_need_lc=no
11517 hardcode_shlibpath_var=no
11518 runpath_var='LD_RUN_PATH'
11520 if test yes = "$GCC"; then
11521 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11522 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11524 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11525 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11529 sysv5* | sco3.2v5* | sco5v6*)
11530 # Note: We CANNOT use -z defs as we might desire, because we do not
11531 # link with -lc, and that would cause any symbols used from libc to
11532 # always be unresolved, which means just about no library would
11533 # ever link correctly. If we're not using GNU ld we use -z text
11534 # though, which does catch some bad symbols but isn't as heavy-handed
11536 no_undefined_flag='$wl-z,text'
11537 allow_undefined_flag='$wl-z,nodefs'
11538 archive_cmds_need_lc=no
11539 hardcode_shlibpath_var=no
11540 hardcode_libdir_flag_spec='$wl-R,$libdir'
11541 hardcode_libdir_separator=':'
11542 link_all_deplibs=yes
11543 export_dynamic_flag_spec='$wl-Bexport'
11544 runpath_var='LD_RUN_PATH'
11546 if test yes = "$GCC"; then
11547 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11548 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11550 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11551 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11556 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11557 hardcode_libdir_flag_spec='-L$libdir'
11558 hardcode_shlibpath_var=no
11566 if test sni = "$host_vendor"; then
11568 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11569 export_dynamic_flag_spec='$wl-Blargedynsym'
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11576 $as_echo "$ld_shlibs" >&6; }
11577 test no = "$ld_shlibs" && can_build_shared=no
11579 with_gnu_ld=$with_gnu_ld
11596 # Do we need to explicitly link libc?
11598 case "x$archive_cmds_need_lc" in
11600 # Assume -lc should be added
11601 archive_cmds_need_lc=yes
11603 if test yes,yes = "$GCC,$enable_shared"; then
11604 case $archive_cmds in
11606 # FIXME: we may have to deal with multi-command sequences.
11609 # Test whether the compiler implicitly links with -lc since on some
11610 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11611 # to ld, don't add -lc before -lgcc.
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11613 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11614 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11615 $as_echo_n "(cached) " >&6
11618 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11620 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11621 (eval $ac_compile) 2>&5
11623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11624 test $ac_status = 0; } 2>conftest.err; then
11627 libobjs=conftest.$ac_objext
11629 wl=$lt_prog_compiler_wl
11630 pic_flag=$lt_prog_compiler_pic
11636 lt_save_allow_undefined_flag=$allow_undefined_flag
11637 allow_undefined_flag=
11638 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11639 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11642 test $ac_status = 0; }
11644 lt_cv_archive_cmds_need_lc=no
11646 lt_cv_archive_cmds_need_lc=yes
11648 allow_undefined_flag=$lt_save_allow_undefined_flag
11650 cat conftest.err 1>&5
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11656 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11657 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11816 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11818 if test yes = "$GCC"; then
11820 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11821 *) lt_awk_arg='/^libraries:/' ;;
11824 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11825 *) lt_sed_strip_eq='s|=/|/|g' ;;
11827 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11828 case $lt_search_path_spec in
11830 # if the path contains ";" then we assume it to be the separator
11831 # otherwise default to the standard path separator (i.e. ":") - it is
11832 # assumed that no part of a normal pathname contains ";" but that should
11833 # okay in the real world where ";" in dirpaths is itself problematic.
11834 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11837 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11840 # Ok, now we have the path, separated by spaces, we can step through it
11841 # and add multilib dir if necessary...
11842 lt_tmp_lt_search_path_spec=
11843 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11844 # ...but if some path component already ends with the multilib dir we assume
11845 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11846 case "$lt_multi_os_dir; $lt_search_path_spec " in
11847 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11851 for lt_sys_path in $lt_search_path_spec; do
11852 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11853 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11854 elif test -n "$lt_multi_os_dir"; then
11855 test -d "$lt_sys_path" && \
11856 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11859 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11860 BEGIN {RS = " "; FS = "/|\n";} {
11863 for (lt_i = NF; lt_i > 0; lt_i--) {
11864 if ($lt_i != "" && $lt_i != ".") {
11865 if ($lt_i == "..") {
11868 if (lt_count == 0) {
11869 lt_foo = "/" $lt_i lt_foo;
11876 if (lt_foo != "") { lt_freq[lt_foo]++; }
11877 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11879 # AWK program above erroneously prepends '/' to C:/dos/paths
11882 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11883 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11885 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11887 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11889 library_names_spec=
11890 libname_spec='lib$name'
11894 postuninstall_cmds=
11898 shlibpath_overrides_runpath=unknown
11900 dynamic_linker="$host_os ld.so"
11901 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11902 need_lib_prefix=unknown
11903 hardcode_into_libs=no
11905 # when you set need_version to no, make sure it does not cause -set_version
11906 # flags to be left without arguments
11907 need_version=unknown
11913 version_type=linux # correct to gnu/linux during the next big refactor
11914 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11915 shlibpath_var=LIBPATH
11917 # AIX 3 has no versioning support, so we append a major version to the name.
11918 soname_spec='$libname$release$shared_ext$major'
11922 version_type=linux # correct to gnu/linux during the next big refactor
11925 hardcode_into_libs=yes
11926 if test ia64 = "$host_cpu"; then
11927 # AIX 5 supports IA64
11928 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11929 shlibpath_var=LD_LIBRARY_PATH
11931 # With GCC up to 2.95.x, collect2 would create an import file
11932 # for dependence libraries. The import file would start with
11933 # the line '#! .'. This would cause the generated library to
11934 # depend on '.', always an invalid library. This was fixed in
11935 # development snapshots of GCC prior to 3.0.
11937 aix4 | aix4.[01] | aix4.[01].*)
11938 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11940 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11943 can_build_shared=no
11947 # Using Import Files as archive members, it is possible to support
11948 # filename-based versioning of shared library archives on AIX. While
11949 # this would work for both with and without runtime linking, it will
11950 # prevent static linking of such archives. So we do filename-based
11951 # shared library versioning with .so extension only, which is used
11952 # when both runtime linking and shared linking is enabled.
11953 # Unfortunately, runtime linking may impact performance, so we do
11954 # not want this to be the default eventually. Also, we use the
11955 # versioned .so libs for executables only if there is the -brtl
11956 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11957 # To allow for filename-based versioning support, we need to create
11958 # libNAME.so.V as an archive file, containing:
11959 # *) an Import File, referring to the versioned filename of the
11960 # archive as well as the shared archive member, telling the
11961 # bitwidth (32 or 64) of that shared object, and providing the
11962 # list of exported symbols of that shared object, eventually
11963 # decorated with the 'weak' keyword
11964 # *) the shared object with the F_LOADONLY flag set, to really avoid
11965 # it being seen by the linker.
11966 # At run time we better use the real file rather than another symlink,
11967 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11969 case $with_aix_soname,$aix_use_runtimelinking in
11970 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11971 # soname into executable. Probably we can add versioning support to
11972 # collect2, so additional links can be useful in future.
11973 aix,yes) # traditional libtool
11974 dynamic_linker='AIX unversionable lib.so'
11975 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11976 # instead of lib<name>.a to let people know that these are not
11977 # typical AIX shared libraries.
11978 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11980 aix,no) # traditional AIX only
11981 dynamic_linker='AIX lib.a(lib.so.V)'
11982 # We preserve .a as extension for shared libraries through AIX4.2
11983 # and later when we are not doing run time linking.
11984 library_names_spec='$libname$release.a $libname.a'
11985 soname_spec='$libname$release$shared_ext$major'
11987 svr4,*) # full svr4 only
11988 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11989 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11990 # We do not specify a path in Import Files, so LIBPATH fires.
11991 shlibpath_overrides_runpath=yes
11993 *,yes) # both, prefer svr4
11994 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11995 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11996 # unpreferred sharedlib libNAME.a needs extra handling
11997 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11998 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11999 # We do not specify a path in Import Files, so LIBPATH fires.
12000 shlibpath_overrides_runpath=yes
12002 *,no) # both, prefer aix
12003 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12004 library_names_spec='$libname$release.a $libname.a'
12005 soname_spec='$libname$release$shared_ext$major'
12006 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12007 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
12008 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
12011 shlibpath_var=LIBPATH
12018 # Since July 2007 AmigaOS4 officially supports .so libraries.
12019 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12020 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12023 library_names_spec='$libname.ixlibrary $libname.a'
12024 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12025 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
12031 library_names_spec='$libname$shared_ext'
12032 dynamic_linker="$host_os ld.so"
12033 shlibpath_var=LIBRARY_PATH
12037 version_type=linux # correct to gnu/linux during the next big refactor
12039 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12040 soname_spec='$libname$release$shared_ext$major'
12041 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12042 shlibpath_var=LD_LIBRARY_PATH
12043 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12044 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12045 # the default ld.so.conf also contains /usr/contrib/lib and
12046 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12047 # libtool to hard-code these into programs
12050 cygwin* | mingw* | pw32* | cegcc*)
12051 version_type=windows
12056 case $GCC,$cc_basename in
12059 library_names_spec='$libname.dll.a'
12060 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12061 postinstall_cmds='base_file=`basename \$file`~
12062 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12063 dldir=$destdir/`dirname \$dlpath`~
12064 test -d \$dldir || mkdir -p \$dldir~
12065 $install_prog $dir/$dlname \$dldir/$dlname~
12066 chmod a+x \$dldir/$dlname~
12067 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12068 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12070 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12071 dlpath=$dir/\$dldll~
12073 shlibpath_overrides_runpath=yes
12077 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12078 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12080 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12083 # MinGW DLLs use traditional 'lib' prefix
12084 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12087 # pw32 DLLs use 'pw' prefix rather than 'lib'
12088 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12091 dynamic_linker='Win32 ld.exe'
12096 libname_spec='$name'
12097 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12098 library_names_spec='$libname.dll.lib'
12102 sys_lib_search_path_spec=
12105 for lt_path in $LIB
12108 # Let DOS variable expansion print the short 8.3 style file name.
12109 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12110 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12113 # Convert to MSYS style.
12114 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12117 # Convert to unix form, then to dos form, then back to unix form
12118 # but this time dos style (no spaces!) so that the unix form looks
12119 # like /cygdrive/c/PROGRA~1:/cygdr...
12120 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12121 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12122 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12125 sys_lib_search_path_spec=$LIB
12126 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12127 # It is most probably a Windows format PATH.
12128 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12130 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12132 # FIXME: find the short name or the path components, as spaces are
12133 # common. (e.g. "Program Files" -> "PROGRA~1")
12137 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12138 postinstall_cmds='base_file=`basename \$file`~
12139 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12140 dldir=$destdir/`dirname \$dlpath`~
12141 test -d \$dldir || mkdir -p \$dldir~
12142 $install_prog $dir/$dlname \$dldir/$dlname'
12143 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12144 dlpath=$dir/\$dldll~
12146 shlibpath_overrides_runpath=yes
12147 dynamic_linker='Win32 link.exe'
12151 # Assume MSVC wrapper
12152 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12153 dynamic_linker='Win32 ld.exe'
12156 # FIXME: first we should search . and the directory the executable is in
12160 darwin* | rhapsody*)
12161 dynamic_linker="$host_os dyld"
12162 version_type=darwin
12165 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12166 soname_spec='$libname$release$major$shared_ext'
12167 shlibpath_overrides_runpath=yes
12168 shlibpath_var=DYLD_LIBRARY_PATH
12169 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12171 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12172 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12176 version_type=linux # correct to gnu/linux during the next big refactor
12179 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12180 soname_spec='$libname$release$shared_ext$major'
12181 shlibpath_var=LD_LIBRARY_PATH
12184 freebsd* | dragonfly*)
12185 # DragonFly does not have aout. When/if they implement a new
12186 # versioning mechanism, adjust this.
12187 if test -x /usr/bin/objformat; then
12188 objformat=`/usr/bin/objformat`
12191 freebsd[23].*) objformat=aout ;;
12192 *) objformat=elf ;;
12195 version_type=freebsd-$objformat
12196 case $version_type in
12198 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12199 soname_spec='$libname$release$shared_ext$major'
12204 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12208 shlibpath_var=LD_LIBRARY_PATH
12211 shlibpath_overrides_runpath=yes
12213 freebsd3.[01]* | freebsdelf3.[01]*)
12214 shlibpath_overrides_runpath=yes
12215 hardcode_into_libs=yes
12217 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12218 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12219 shlibpath_overrides_runpath=no
12220 hardcode_into_libs=yes
12222 *) # from 4.6 on, and DragonFly
12223 shlibpath_overrides_runpath=yes
12224 hardcode_into_libs=yes
12230 version_type=linux # correct to gnu/linux during the next big refactor
12233 dynamic_linker="$host_os runtime_loader"
12234 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12235 soname_spec='$libname$release$shared_ext$major'
12236 shlibpath_var=LIBRARY_PATH
12237 shlibpath_overrides_runpath=no
12238 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12239 hardcode_into_libs=yes
12242 hpux9* | hpux10* | hpux11*)
12243 # Give a soname corresponding to the major version so that dld.sl refuses to
12244 # link against other versions.
12251 hardcode_into_libs=yes
12252 dynamic_linker="$host_os dld.so"
12253 shlibpath_var=LD_LIBRARY_PATH
12254 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12255 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12256 soname_spec='$libname$release$shared_ext$major'
12257 if test 32 = "$HPUX_IA64_MODE"; then
12258 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12259 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12261 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12262 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12267 hardcode_into_libs=yes
12268 dynamic_linker="$host_os dld.sl"
12269 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12270 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12271 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12272 soname_spec='$libname$release$shared_ext$major'
12273 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12274 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12278 dynamic_linker="$host_os dld.sl"
12279 shlibpath_var=SHLIB_PATH
12280 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12281 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12282 soname_spec='$libname$release$shared_ext$major'
12285 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12286 postinstall_cmds='chmod 555 $lib'
12287 # or fails outright, so override atomically:
12288 install_override_mode=555
12292 version_type=linux # correct to gnu/linux during the next big refactor
12295 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12296 soname_spec='$libname$release$shared_ext$major'
12297 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12298 shlibpath_var=LD_LIBRARY_PATH
12299 shlibpath_overrides_runpath=no
12300 hardcode_into_libs=yes
12303 irix5* | irix6* | nonstopux*)
12305 nonstopux*) version_type=nonstopux ;;
12307 if test yes = "$lt_cv_prog_gnu_ld"; then
12308 version_type=linux # correct to gnu/linux during the next big refactor
12315 soname_spec='$libname$release$shared_ext$major'
12316 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12318 irix5* | nonstopux*)
12319 libsuff= shlibsuff=
12322 case $LD in # libtool.m4 will add one of these switches to LD
12323 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12324 libsuff= shlibsuff= libmagic=32-bit;;
12325 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12326 libsuff=32 shlibsuff=N32 libmagic=N32;;
12327 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12328 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12329 *) libsuff= shlibsuff= libmagic=never-match;;
12333 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12334 shlibpath_overrides_runpath=no
12335 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12336 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12337 hardcode_into_libs=yes
12340 # No shared lib support for Linux oldld, aout, or coff.
12341 linux*oldld* | linux*aout* | linux*coff*)
12346 version_type=none # Android doesn't support versioned libraries.
12349 library_names_spec='$libname$release$shared_ext'
12350 soname_spec='$libname$release$shared_ext'
12352 shlibpath_var=LD_LIBRARY_PATH
12353 shlibpath_overrides_runpath=yes
12355 # This implies no fast_install, which is unacceptable.
12356 # Some rework will be needed to allow for fast_install
12357 # before this can be enabled.
12358 hardcode_into_libs=yes
12360 dynamic_linker='Android linker'
12361 # Don't embed -rpath directories since the linker doesn't support them.
12362 hardcode_libdir_flag_spec='-L$libdir'
12365 # This must be glibc/ELF.
12366 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12367 version_type=linux # correct to gnu/linux during the next big refactor
12370 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12371 soname_spec='$libname$release$shared_ext$major'
12372 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12373 shlibpath_var=LD_LIBRARY_PATH
12374 shlibpath_overrides_runpath=no
12376 # Some binutils ld are patched to set DT_RUNPATH
12377 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12378 $as_echo_n "(cached) " >&6
12380 lt_cv_shlibpath_overrides_runpath=no
12381 save_LDFLAGS=$LDFLAGS
12382 save_libdir=$libdir
12383 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12384 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12386 /* end confdefs.h. */
12396 if ac_fn_c_try_link "$LINENO"; then :
12397 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12398 lt_cv_shlibpath_overrides_runpath=yes
12401 rm -f core conftest.err conftest.$ac_objext \
12402 conftest$ac_exeext conftest.$ac_ext
12403 LDFLAGS=$save_LDFLAGS
12404 libdir=$save_libdir
12408 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12410 # This implies no fast_install, which is unacceptable.
12411 # Some rework will be needed to allow for fast_install
12412 # before this can be enabled.
12413 hardcode_into_libs=yes
12415 # Ideally, we could use ldconfig to report *all* directores which are
12416 # searched for libraries, however this is still not possible. Aside from not
12417 # being certain /sbin/ldconfig is available, command
12418 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12419 # even though it is searched at run-time. Try to do the best guess by
12420 # appending ld.so.conf contents (and includes) to the search path.
12421 if test -f /etc/ld.so.conf; then
12422 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' ' '`
12423 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12426 # We used to test for /lib/ld.so.1 and disable shared libraries on
12427 # powerpc, because MkLinux only supported shared libraries with the
12428 # GNU dynamic linker. Since this was broken with cross compilers,
12429 # most powerpc-linux boxes support dynamic linking these days and
12430 # people can always --disable-shared, the test was removed, and we
12431 # assume the GNU/Linux dynamic linker is in use.
12432 dynamic_linker='GNU/Linux ld.so'
12439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12440 soname_spec='${libname}${release}${shared_ext}$major'
12441 shlibpath_var=LD_LIBRARY_PATH
12442 shlibpath_overrides_runpath=no
12443 hardcode_into_libs=yes
12444 dynamic_linker='NetBSD ld.elf_so'
12451 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12452 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12453 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12454 dynamic_linker='NetBSD (a.out) ld.so'
12456 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12457 soname_spec='$libname$release$shared_ext$major'
12458 dynamic_linker='NetBSD ld.elf_so'
12460 shlibpath_var=LD_LIBRARY_PATH
12461 shlibpath_overrides_runpath=yes
12462 hardcode_into_libs=yes
12466 version_type=linux # correct to gnu/linux during the next big refactor
12467 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12468 shlibpath_var=LD_LIBRARY_PATH
12469 shlibpath_overrides_runpath=yes
12476 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12477 soname_spec='$libname$release$shared_ext$major'
12478 shlibpath_var=LD_LIBRARY_PATH
12479 shlibpath_overrides_runpath=no
12480 hardcode_into_libs=yes
12481 dynamic_linker='ldqnx.so'
12484 openbsd* | bitrig*)
12486 sys_lib_dlsearch_path_spec=/usr/lib
12488 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12493 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12494 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12495 shlibpath_var=LD_LIBRARY_PATH
12496 shlibpath_overrides_runpath=yes
12500 libname_spec='$name'
12501 version_type=windows
12505 # OS/2 can only load a DLL with a base name of 8 characters or less.
12506 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12507 v=$($ECHO $release$versuffix | tr -d .-);
12508 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12509 $ECHO $n$v`$shared_ext'
12510 library_names_spec='${libname}_dll.$libext'
12511 dynamic_linker='OS/2 ld.exe'
12512 shlibpath_var=BEGINLIBPATH
12513 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12514 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12515 postinstall_cmds='base_file=`basename \$file`~
12516 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12517 dldir=$destdir/`dirname \$dlpath`~
12518 test -d \$dldir || mkdir -p \$dldir~
12519 $install_prog $dir/$dlname \$dldir/$dlname~
12520 chmod a+x \$dldir/$dlname~
12521 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12522 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12524 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12525 dlpath=$dir/\$dldll~
12529 osf3* | osf4* | osf5*)
12533 soname_spec='$libname$release$shared_ext$major'
12534 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12535 shlibpath_var=LD_LIBRARY_PATH
12536 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12537 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12545 version_type=linux # correct to gnu/linux during the next big refactor
12548 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12549 soname_spec='$libname$release$shared_ext$major'
12550 shlibpath_var=LD_LIBRARY_PATH
12551 shlibpath_overrides_runpath=yes
12552 hardcode_into_libs=yes
12553 # ldd complains unless libraries are executable
12554 postinstall_cmds='chmod +x $lib'
12559 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12560 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12561 shlibpath_var=LD_LIBRARY_PATH
12562 shlibpath_overrides_runpath=yes
12563 if test yes = "$with_gnu_ld"; then
12570 version_type=linux # correct to gnu/linux during the next big refactor
12571 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12572 soname_spec='$libname$release$shared_ext$major'
12573 shlibpath_var=LD_LIBRARY_PATH
12574 case $host_vendor in
12576 shlibpath_overrides_runpath=no
12578 runpath_var=LD_RUN_PATH
12586 shlibpath_overrides_runpath=no
12587 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12593 if test -d /usr/nec; then
12594 version_type=linux # correct to gnu/linux during the next big refactor
12595 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12596 soname_spec='$libname$shared_ext.$major'
12597 shlibpath_var=LD_LIBRARY_PATH
12601 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12605 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12606 soname_spec='$libname$release$shared_ext$major'
12607 shlibpath_var=LD_LIBRARY_PATH
12608 shlibpath_overrides_runpath=yes
12609 hardcode_into_libs=yes
12610 if test yes = "$with_gnu_ld"; then
12611 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12613 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12616 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12620 sys_lib_dlsearch_path_spec='/usr/lib'
12624 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12625 version_type=linux # correct to gnu/linux during the next big refactor
12628 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12629 shlibpath_var=LD_LIBRARY_PATH
12630 shlibpath_overrides_runpath=no
12631 hardcode_into_libs=yes
12635 version_type=linux # correct to gnu/linux during the next big refactor
12636 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12637 soname_spec='$libname$release$shared_ext$major'
12638 shlibpath_var=LD_LIBRARY_PATH
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12646 $as_echo "$dynamic_linker" >&6; }
12647 test no = "$dynamic_linker" && can_build_shared=no
12649 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12650 if test yes = "$GCC"; then
12651 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12654 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12655 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12658 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12659 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12662 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12663 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12665 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12666 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12668 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12669 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12768 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12770 if test -n "$hardcode_libdir_flag_spec" ||
12771 test -n "$runpath_var" ||
12772 test yes = "$hardcode_automatic"; then
12774 # We can hardcode non-existent directories.
12775 if test no != "$hardcode_direct" &&
12776 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12777 # have to relink, otherwise we might link with an installed library
12778 # when we should be linking with a yet-to-be-installed one
12779 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12780 test no != "$hardcode_minus_L"; then
12781 # Linking always hardcodes the temporary library directory.
12782 hardcode_action=relink
12784 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12785 hardcode_action=immediate
12788 # We cannot hardcode anything, or else we can only hardcode existing
12790 hardcode_action=unsupported
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12793 $as_echo "$hardcode_action" >&6; }
12795 if test relink = "$hardcode_action" ||
12796 test yes = "$inherit_rpath"; then
12797 # Fast installation is not supported
12798 enable_fast_install=no
12799 elif test yes = "$shlibpath_overrides_runpath" ||
12800 test no = "$enable_shared"; then
12801 # Fast installation is not necessary
12802 enable_fast_install=needless
12810 if test yes != "$enable_dlopen"; then
12811 enable_dlopen=unknown
12812 enable_dlopen_self=unknown
12813 enable_dlopen_self_static=unknown
12820 lt_cv_dlopen=load_add_on
12822 lt_cv_dlopen_self=yes
12825 mingw* | pw32* | cegcc*)
12826 lt_cv_dlopen=LoadLibrary
12831 lt_cv_dlopen=dlopen
12836 # if libdl is installed we need to link against it
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12838 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12839 if ${ac_cv_lib_dl_dlopen+:} false; then :
12840 $as_echo_n "(cached) " >&6
12842 ac_check_lib_save_LIBS=$LIBS
12844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12845 /* end confdefs.h. */
12847 /* Override any GCC internal prototype to avoid an error.
12848 Use char because int might match the return type of a GCC
12849 builtin and then its argument prototype would still apply. */
12862 if ac_fn_c_try_link "$LINENO"; then :
12863 ac_cv_lib_dl_dlopen=yes
12865 ac_cv_lib_dl_dlopen=no
12867 rm -f core conftest.err conftest.$ac_objext \
12868 conftest$ac_exeext conftest.$ac_ext
12869 LIBS=$ac_check_lib_save_LIBS
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12872 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12873 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12874 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12879 lt_cv_dlopen_self=yes
12886 # Don't try to run any link tests for TPF. We know it's impossible
12887 # because TPF is a cross-compiler, and we know how we open DSOs.
12888 lt_cv_dlopen=dlopen
12890 lt_cv_dlopen_self=no
12894 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12895 if test "x$ac_cv_func_shl_load" = xyes; then :
12896 lt_cv_dlopen=shl_load
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12899 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12900 if ${ac_cv_lib_dld_shl_load+:} false; then :
12901 $as_echo_n "(cached) " >&6
12903 ac_check_lib_save_LIBS=$LIBS
12905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12906 /* end confdefs.h. */
12908 /* Override any GCC internal prototype to avoid an error.
12909 Use char because int might match the return type of a GCC
12910 builtin and then its argument prototype would still apply. */
12918 return shl_load ();
12923 if ac_fn_c_try_link "$LINENO"; then :
12924 ac_cv_lib_dld_shl_load=yes
12926 ac_cv_lib_dld_shl_load=no
12928 rm -f core conftest.err conftest.$ac_objext \
12929 conftest$ac_exeext conftest.$ac_ext
12930 LIBS=$ac_check_lib_save_LIBS
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12933 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12934 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12935 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12937 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12938 if test "x$ac_cv_func_dlopen" = xyes; then :
12939 lt_cv_dlopen=dlopen
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12942 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12943 if ${ac_cv_lib_dl_dlopen+:} false; then :
12944 $as_echo_n "(cached) " >&6
12946 ac_check_lib_save_LIBS=$LIBS
12948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12949 /* end confdefs.h. */
12951 /* Override any GCC internal prototype to avoid an error.
12952 Use char because int might match the return type of a GCC
12953 builtin and then its argument prototype would still apply. */
12966 if ac_fn_c_try_link "$LINENO"; then :
12967 ac_cv_lib_dl_dlopen=yes
12969 ac_cv_lib_dl_dlopen=no
12971 rm -f core conftest.err conftest.$ac_objext \
12972 conftest$ac_exeext conftest.$ac_ext
12973 LIBS=$ac_check_lib_save_LIBS
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12976 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12977 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12978 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12981 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12982 if ${ac_cv_lib_svld_dlopen+:} false; then :
12983 $as_echo_n "(cached) " >&6
12985 ac_check_lib_save_LIBS=$LIBS
12986 LIBS="-lsvld $LIBS"
12987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12988 /* end confdefs.h. */
12990 /* Override any GCC internal prototype to avoid an error.
12991 Use char because int might match the return type of a GCC
12992 builtin and then its argument prototype would still apply. */
13005 if ac_fn_c_try_link "$LINENO"; then :
13006 ac_cv_lib_svld_dlopen=yes
13008 ac_cv_lib_svld_dlopen=no
13010 rm -f core conftest.err conftest.$ac_objext \
13011 conftest$ac_exeext conftest.$ac_ext
13012 LIBS=$ac_check_lib_save_LIBS
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13015 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13016 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13017 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13020 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13021 if ${ac_cv_lib_dld_dld_link+:} false; then :
13022 $as_echo_n "(cached) " >&6
13024 ac_check_lib_save_LIBS=$LIBS
13026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13027 /* end confdefs.h. */
13029 /* Override any GCC internal prototype to avoid an error.
13030 Use char because int might match the return type of a GCC
13031 builtin and then its argument prototype would still apply. */
13039 return dld_link ();
13044 if ac_fn_c_try_link "$LINENO"; then :
13045 ac_cv_lib_dld_dld_link=yes
13047 ac_cv_lib_dld_dld_link=no
13049 rm -f core conftest.err conftest.$ac_objext \
13050 conftest$ac_exeext conftest.$ac_ext
13051 LIBS=$ac_check_lib_save_LIBS
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13054 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13055 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13056 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13077 if test no = "$lt_cv_dlopen"; then
13083 case $lt_cv_dlopen in
13085 save_CPPFLAGS=$CPPFLAGS
13086 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13088 save_LDFLAGS=$LDFLAGS
13089 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13092 LIBS="$lt_cv_dlopen_libs $LIBS"
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13095 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13096 if ${lt_cv_dlopen_self+:} false; then :
13097 $as_echo_n "(cached) " >&6
13099 if test yes = "$cross_compiling"; then :
13100 lt_cv_dlopen_self=cross
13102 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13103 lt_status=$lt_dlunknown
13104 cat > conftest.$ac_ext <<_LT_EOF
13105 #line $LINENO "configure"
13106 #include "confdefs.h"
13115 # define LT_DLGLOBAL RTLD_GLOBAL
13118 # define LT_DLGLOBAL DL_GLOBAL
13120 # define LT_DLGLOBAL 0
13124 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13125 find out it does not work in some platform. */
13126 #ifndef LT_DLLAZY_OR_NOW
13128 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13131 # define LT_DLLAZY_OR_NOW DL_LAZY
13134 # define LT_DLLAZY_OR_NOW RTLD_NOW
13137 # define LT_DLLAZY_OR_NOW DL_NOW
13139 # define LT_DLLAZY_OR_NOW 0
13146 /* When -fvisibility=hidden is used, assume the code has been annotated
13147 correspondingly for the symbols needed. */
13148 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13149 int fnord () __attribute__((visibility("default")));
13152 int fnord () { return 42; }
13155 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13156 int status = $lt_dlunknown;
13160 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13163 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13164 else puts (dlerror ());
13166 /* dlclose (self); */
13174 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13175 (eval $ac_link) 2>&5
13177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13178 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13179 (./conftest; exit; ) >&5 2>/dev/null
13181 case x$lt_status in
13182 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13183 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13184 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13187 # compilation failed
13188 lt_cv_dlopen_self=no
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13196 $as_echo "$lt_cv_dlopen_self" >&6; }
13198 if test yes = "$lt_cv_dlopen_self"; then
13199 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13201 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13202 if ${lt_cv_dlopen_self_static+:} false; then :
13203 $as_echo_n "(cached) " >&6
13205 if test yes = "$cross_compiling"; then :
13206 lt_cv_dlopen_self_static=cross
13208 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13209 lt_status=$lt_dlunknown
13210 cat > conftest.$ac_ext <<_LT_EOF
13211 #line $LINENO "configure"
13212 #include "confdefs.h"
13221 # define LT_DLGLOBAL RTLD_GLOBAL
13224 # define LT_DLGLOBAL DL_GLOBAL
13226 # define LT_DLGLOBAL 0
13230 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13231 find out it does not work in some platform. */
13232 #ifndef LT_DLLAZY_OR_NOW
13234 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13237 # define LT_DLLAZY_OR_NOW DL_LAZY
13240 # define LT_DLLAZY_OR_NOW RTLD_NOW
13243 # define LT_DLLAZY_OR_NOW DL_NOW
13245 # define LT_DLLAZY_OR_NOW 0
13252 /* When -fvisibility=hidden is used, assume the code has been annotated
13253 correspondingly for the symbols needed. */
13254 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13255 int fnord () __attribute__((visibility("default")));
13258 int fnord () { return 42; }
13261 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13262 int status = $lt_dlunknown;
13266 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13269 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13270 else puts (dlerror ());
13272 /* dlclose (self); */
13280 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13281 (eval $ac_link) 2>&5
13283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13284 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13285 (./conftest; exit; ) >&5 2>/dev/null
13287 case x$lt_status in
13288 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13289 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13290 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13293 # compilation failed
13294 lt_cv_dlopen_self_static=no
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13302 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13305 CPPFLAGS=$save_CPPFLAGS
13306 LDFLAGS=$save_LDFLAGS
13311 case $lt_cv_dlopen_self in
13312 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13313 *) enable_dlopen_self=unknown ;;
13316 case $lt_cv_dlopen_self_static in
13317 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13318 *) enable_dlopen_self_static=unknown ;;
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13341 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13342 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13343 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13344 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13346 $as_echo "yes" >&6; }
13348 # FIXME - insert some real tests, host_os isn't really good enough
13351 if test -n "$STRIP"; then
13352 striplib="$STRIP -x"
13353 old_striplib="$STRIP -S"
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13355 $as_echo "yes" >&6; }
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13358 $as_echo "no" >&6; }
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13363 $as_echo "no" >&6; }
13379 # Report what library types will actually be built
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13381 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13383 $as_echo "$can_build_shared" >&6; }
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13386 $as_echo_n "checking whether to build shared libraries... " >&6; }
13387 test no = "$can_build_shared" && enable_shared=no
13389 # On AIX, shared libraries and static libraries use the same namespace, and
13390 # are all built from PIC.
13393 test yes = "$enable_shared" && enable_static=no
13394 if test -n "$RANLIB"; then
13395 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13396 postinstall_cmds='$RANLIB $lib'
13401 if test ia64 != "$host_cpu"; then
13402 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13403 yes,aix,yes) ;; # shared object as lib.so file only
13404 yes,svr4,*) ;; # shared object as lib.so archive member only
13405 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13411 $as_echo "$enable_shared" >&6; }
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13414 $as_echo_n "checking whether to build static libraries... " >&6; }
13415 # Make sure either enable_shared or enable_static is yes.
13416 test yes = "$enable_shared" || enable_static=yes
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13418 $as_echo "$enable_static" >&6; }
13425 ac_cpp='$CPP $CPPFLAGS'
13426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13446 ac_config_commands="$ac_config_commands libtool"
13451 # Only expand once:
13455 # Check for programs
13457 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
13458 if test "x$ac_cv_header_minix_config_h" = xyes; then :
13465 if test "$MINIX" = yes; then
13467 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
13470 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
13473 $as_echo "#define _MINIX 1" >>confdefs.h
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
13479 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
13480 if ${ac_cv_safe_to_define___extensions__+:} false; then :
13481 $as_echo_n "(cached) " >&6
13483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13484 /* end confdefs.h. */
13486 # define __EXTENSIONS__ 1
13487 $ac_includes_default
13496 if ac_fn_c_try_compile "$LINENO"; then :
13497 ac_cv_safe_to_define___extensions__=yes
13499 ac_cv_safe_to_define___extensions__=no
13501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
13504 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
13505 test $ac_cv_safe_to_define___extensions__ = yes &&
13506 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
13508 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
13510 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
13512 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
13514 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
13518 ac_cpp='$CPP $CPPFLAGS'
13519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13522 if test -n "$ac_tool_prefix"; then
13523 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
13524 set dummy ${ac_tool_prefix}gcc; ac_word=$2
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13526 $as_echo_n "checking for $ac_word... " >&6; }
13527 if ${ac_cv_prog_CC+:} false; then :
13528 $as_echo_n "(cached) " >&6
13530 if test -n "$CC"; then
13531 ac_cv_prog_CC="$CC" # Let the user override the test.
13533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13534 for as_dir in $PATH
13537 test -z "$as_dir" && as_dir=.
13538 for ac_exec_ext in '' $ac_executable_extensions; do
13539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13540 ac_cv_prog_CC="${ac_tool_prefix}gcc"
13541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13551 if test -n "$CC"; then
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13553 $as_echo "$CC" >&6; }
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13556 $as_echo "no" >&6; }
13561 if test -z "$ac_cv_prog_CC"; then
13563 # Extract the first word of "gcc", so it can be a program name with args.
13564 set dummy gcc; ac_word=$2
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13566 $as_echo_n "checking for $ac_word... " >&6; }
13567 if ${ac_cv_prog_ac_ct_CC+:} false; then :
13568 $as_echo_n "(cached) " >&6
13570 if test -n "$ac_ct_CC"; then
13571 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13574 for as_dir in $PATH
13577 test -z "$as_dir" && as_dir=.
13578 for ac_exec_ext in '' $ac_executable_extensions; do
13579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13580 ac_cv_prog_ac_ct_CC="gcc"
13581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13590 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13591 if test -n "$ac_ct_CC"; then
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13593 $as_echo "$ac_ct_CC" >&6; }
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13596 $as_echo "no" >&6; }
13599 if test "x$ac_ct_CC" = x; then
13602 case $cross_compiling:$ac_tool_warned in
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13605 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13606 ac_tool_warned=yes ;;
13611 CC="$ac_cv_prog_CC"
13614 if test -z "$CC"; then
13615 if test -n "$ac_tool_prefix"; then
13616 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
13617 set dummy ${ac_tool_prefix}cc; ac_word=$2
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13619 $as_echo_n "checking for $ac_word... " >&6; }
13620 if ${ac_cv_prog_CC+:} false; then :
13621 $as_echo_n "(cached) " >&6
13623 if test -n "$CC"; then
13624 ac_cv_prog_CC="$CC" # Let the user override the test.
13626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13627 for as_dir in $PATH
13630 test -z "$as_dir" && as_dir=.
13631 for ac_exec_ext in '' $ac_executable_extensions; do
13632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13633 ac_cv_prog_CC="${ac_tool_prefix}cc"
13634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13644 if test -n "$CC"; then
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13646 $as_echo "$CC" >&6; }
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13649 $as_echo "no" >&6; }
13655 if test -z "$CC"; then
13656 # Extract the first word of "cc", so it can be a program name with args.
13657 set dummy cc; ac_word=$2
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13659 $as_echo_n "checking for $ac_word... " >&6; }
13660 if ${ac_cv_prog_CC+:} false; then :
13661 $as_echo_n "(cached) " >&6
13663 if test -n "$CC"; then
13664 ac_cv_prog_CC="$CC" # Let the user override the test.
13666 ac_prog_rejected=no
13667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13668 for as_dir in $PATH
13671 test -z "$as_dir" && as_dir=.
13672 for ac_exec_ext in '' $ac_executable_extensions; do
13673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13674 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
13675 ac_prog_rejected=yes
13679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13686 if test $ac_prog_rejected = yes; then
13687 # We found a bogon in the path, so make sure we never use it.
13688 set dummy $ac_cv_prog_CC
13690 if test $# != 0; then
13691 # We chose a different compiler from the bogus one.
13692 # However, it has the same basename, so the bogon will be chosen
13693 # first if we set CC to just the basename; use the full file name.
13695 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
13701 if test -n "$CC"; then
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13703 $as_echo "$CC" >&6; }
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13706 $as_echo "no" >&6; }
13711 if test -z "$CC"; then
13712 if test -n "$ac_tool_prefix"; then
13713 for ac_prog in cl.exe
13715 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13716 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13718 $as_echo_n "checking for $ac_word... " >&6; }
13719 if ${ac_cv_prog_CC+:} false; then :
13720 $as_echo_n "(cached) " >&6
13722 if test -n "$CC"; then
13723 ac_cv_prog_CC="$CC" # Let the user override the test.
13725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13726 for as_dir in $PATH
13729 test -z "$as_dir" && as_dir=.
13730 for ac_exec_ext in '' $ac_executable_extensions; do
13731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13732 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13743 if test -n "$CC"; then
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13745 $as_echo "$CC" >&6; }
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13748 $as_echo "no" >&6; }
13752 test -n "$CC" && break
13755 if test -z "$CC"; then
13757 for ac_prog in cl.exe
13759 # Extract the first word of "$ac_prog", so it can be a program name with args.
13760 set dummy $ac_prog; ac_word=$2
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13762 $as_echo_n "checking for $ac_word... " >&6; }
13763 if ${ac_cv_prog_ac_ct_CC+:} false; then :
13764 $as_echo_n "(cached) " >&6
13766 if test -n "$ac_ct_CC"; then
13767 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13770 for as_dir in $PATH
13773 test -z "$as_dir" && as_dir=.
13774 for ac_exec_ext in '' $ac_executable_extensions; do
13775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13776 ac_cv_prog_ac_ct_CC="$ac_prog"
13777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13786 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13787 if test -n "$ac_ct_CC"; then
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13789 $as_echo "$ac_ct_CC" >&6; }
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13792 $as_echo "no" >&6; }
13796 test -n "$ac_ct_CC" && break
13799 if test "x$ac_ct_CC" = x; then
13802 case $cross_compiling:$ac_tool_warned in
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13805 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13806 ac_tool_warned=yes ;;
13815 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13816 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13817 as_fn_error $? "no acceptable C compiler found in \$PATH
13818 See \`config.log' for more details" "$LINENO" 5; }
13820 # Provide some information about the compiler.
13821 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13824 for ac_option in --version -v -V -qversion; do
13825 { { ac_try="$ac_compiler $ac_option >&5"
13826 case "(($ac_try" in
13827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13828 *) ac_try_echo=$ac_try;;
13830 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13831 $as_echo "$ac_try_echo"; } >&5
13832 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13834 if test -s conftest.err; then
13836 ... rest of stderr output deleted ...
13837 10q' conftest.err >conftest.er1
13838 cat conftest.er1 >&5
13840 rm -f conftest.er1 conftest.err
13841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13842 test $ac_status = 0; }
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
13846 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
13847 if ${ac_cv_c_compiler_gnu+:} false; then :
13848 $as_echo_n "(cached) " >&6
13850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13851 /* end confdefs.h. */
13864 if ac_fn_c_try_compile "$LINENO"; then :
13865 ac_compiler_gnu=yes
13869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13870 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13874 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
13875 if test $ac_compiler_gnu = yes; then
13880 ac_test_CFLAGS=${CFLAGS+set}
13881 ac_save_CFLAGS=$CFLAGS
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13883 $as_echo_n "checking whether $CC accepts -g... " >&6; }
13884 if ${ac_cv_prog_cc_g+:} false; then :
13885 $as_echo_n "(cached) " >&6
13887 ac_save_c_werror_flag=$ac_c_werror_flag
13888 ac_c_werror_flag=yes
13891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13892 /* end confdefs.h. */
13902 if ac_fn_c_try_compile "$LINENO"; then :
13903 ac_cv_prog_cc_g=yes
13906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13907 /* end confdefs.h. */
13917 if ac_fn_c_try_compile "$LINENO"; then :
13920 ac_c_werror_flag=$ac_save_c_werror_flag
13922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13923 /* end confdefs.h. */
13933 if ac_fn_c_try_compile "$LINENO"; then :
13934 ac_cv_prog_cc_g=yes
13936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13941 ac_c_werror_flag=$ac_save_c_werror_flag
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13944 $as_echo "$ac_cv_prog_cc_g" >&6; }
13945 if test "$ac_test_CFLAGS" = set; then
13946 CFLAGS=$ac_save_CFLAGS
13947 elif test $ac_cv_prog_cc_g = yes; then
13948 if test "$GCC" = yes; then
13954 if test "$GCC" = yes; then
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
13961 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
13962 if ${ac_cv_prog_cc_c89+:} false; then :
13963 $as_echo_n "(cached) " >&6
13965 ac_cv_prog_cc_c89=no
13967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13968 /* end confdefs.h. */
13969 #include <stdarg.h>
13972 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
13973 struct buf { int x; };
13974 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13975 static char *e (p, i)
13981 static char *f (char * (*g) (char **, int), char **p, ...)
13986 s = g (p, va_arg (v,int));
13991 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
13992 function prototypes and stuff, but not '\xHH' hex character constants.
13993 These don't provoke an error unfortunately, instead are silently treated
13994 as 'x'. The following induces an error, until -std is added to get
13995 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
13996 array size at least. It's necessary to write '\x00'==0 to get something
13997 that's true only with -std. */
13998 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
14000 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
14001 inside strings and character constants. */
14003 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
14005 int test (int i, double x);
14006 struct s1 {int (*f) (int a);};
14007 struct s2 {int (*f) (double a);};
14008 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
14014 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
14019 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
14020 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
14022 CC="$ac_save_CC $ac_arg"
14023 if ac_fn_c_try_compile "$LINENO"; then :
14024 ac_cv_prog_cc_c89=$ac_arg
14026 rm -f core conftest.err conftest.$ac_objext
14027 test "x$ac_cv_prog_cc_c89" != "xno" && break
14029 rm -f conftest.$ac_ext
14034 case "x$ac_cv_prog_cc_c89" in
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14037 $as_echo "none needed" >&6; } ;;
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14040 $as_echo "unsupported" >&6; } ;;
14042 CC="$CC $ac_cv_prog_cc_c89"
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
14044 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
14046 if test "x$ac_cv_prog_cc_c89" != xno; then :
14051 ac_cpp='$CPP $CPPFLAGS'
14052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14057 ac_cpp='$CPP $CPPFLAGS'
14058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
14062 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
14063 if ${am_cv_prog_cc_c_o+:} false; then :
14064 $as_echo_n "(cached) " >&6
14066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14067 /* end confdefs.h. */
14077 # Make sure it works both with $CC and with simple cc.
14078 # Following AC_PROG_CC_C_O, we do the test twice because some
14079 # compilers refuse to overwrite an existing .o file with -o,
14080 # though they will create one.
14081 am_cv_prog_cc_c_o=yes
14082 for am_i in 1 2; do
14083 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
14084 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
14086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14087 (exit $ac_status); } \
14088 && test -f conftest2.$ac_objext; then
14091 am_cv_prog_cc_c_o=no
14095 rm -f core conftest*
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
14099 $as_echo "$am_cv_prog_cc_c_o" >&6; }
14100 if test "$am_cv_prog_cc_c_o" != yes; then
14101 # Losing compiler, so override with the script.
14102 # FIXME: It is wrong to rewrite CC.
14103 # But if we don't then we get into trouble of one sort or another.
14104 # A longer-term fix would be to have automake use am__CC in this case,
14105 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
14106 CC="$am_aux_dir/compile $CC"
14109 ac_cpp='$CPP $CPPFLAGS'
14110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14115 depcc="$CC" am_compiler_list=
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14118 $as_echo_n "checking dependency style of $depcc... " >&6; }
14119 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
14120 $as_echo_n "(cached) " >&6
14122 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14123 # We make a subdir and do the tests there. Otherwise we can end up
14124 # making bogus files that we don't know about and never remove. For
14125 # instance it was reported that on HP-UX the gcc test will end up
14126 # making a dummy file named 'D' -- because '-MD' means "put the output
14128 rm -rf conftest.dir
14130 # Copy depcomp to subdir because otherwise we won't find it if we're
14131 # using a relative directory.
14132 cp "$am_depcomp" conftest.dir
14134 # We will build objects and dependencies in a subdirectory because
14135 # it helps to detect inapplicable dependency modes. For instance
14136 # both Tru64's cc and ICC support -MD to output dependencies as a
14137 # side effect of compilation, but ICC will put the dependencies in
14138 # the current directory while Tru64 will put them in the object
14142 am_cv_CC_dependencies_compiler_type=none
14143 if test "$am_compiler_list" = ""; then
14144 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14146 am__universal=false
14147 case " $depcc " in #(
14148 *\ -arch\ *\ -arch\ *) am__universal=true ;;
14151 for depmode in $am_compiler_list; do
14152 # Setup a source with many dependencies, because some compilers
14153 # like to wrap large dependency lists on column 80 (with \), and
14154 # we should not choose a depcomp mode which is confused by this.
14156 # We need to recreate these files for each test, as the compiler may
14157 # overwrite some of them when testing with obscure command lines.
14158 # This happens at least with the AIX C compiler.
14160 for i in 1 2 3 4 5 6; do
14161 echo '#include "conftst'$i'.h"' >> sub/conftest.c
14162 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14163 # Solaris 10 /bin/sh.
14164 echo '/* dummy */' > sub/conftst$i.h
14166 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14168 # We check with '-c' and '-o' for the sake of the "dashmstdout"
14169 # mode. It turns out that the SunPro C++ compiler does not properly
14170 # handle '-M -o', and we need to detect this. Also, some Intel
14171 # versions had trouble with output in subdirs.
14172 am__obj=sub/conftest.${OBJEXT-o}
14173 am__minus_obj="-o $am__obj"
14176 # This depmode causes a compiler race in universal mode.
14177 test "$am__universal" = false || continue
14180 # After this tag, mechanisms are not by side-effect, so they'll
14181 # only be used when explicitly requested.
14182 if test "x$enable_dependency_tracking" = xyes; then
14188 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14189 # This compiler won't grok '-c -o', but also, the minuso test has
14190 # not run yet. These depmodes are late enough in the game, and
14191 # so weak that their functioning should not be impacted.
14192 am__obj=conftest.${OBJEXT-o}
14197 if depmode=$depmode \
14198 source=sub/conftest.c object=$am__obj \
14199 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14200 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14201 >/dev/null 2>conftest.err &&
14202 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14203 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14204 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14205 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14206 # icc doesn't choke on unknown options, it will just issue warnings
14207 # or remarks (even with -Werror). So we grep stderr for any message
14208 # that says an option was ignored or not supported.
14209 # When given -MP, icc 7.0 and 7.1 complain thusly:
14210 # icc: Command line warning: ignoring option '-M'; no argument required
14211 # The diagnosis changed in icc 8.0:
14212 # icc: Command line remark: option '-MP' not supported
14213 if (grep 'ignoring option' conftest.err ||
14214 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14215 am_cv_CC_dependencies_compiler_type=$depmode
14222 rm -rf conftest.dir
14224 am_cv_CC_dependencies_compiler_type=none
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
14229 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
14230 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
14233 test "x$enable_dependency_tracking" != xno \
14234 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
14235 am__fastdepCC_TRUE=
14236 am__fastdepCC_FALSE='#'
14238 am__fastdepCC_TRUE='#'
14239 am__fastdepCC_FALSE=
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
14244 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
14245 if ${ac_cv_prog_cc_c99+:} false; then :
14246 $as_echo_n "(cached) " >&6
14248 ac_cv_prog_cc_c99=no
14250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14251 /* end confdefs.h. */
14252 #include <stdarg.h>
14253 #include <stdbool.h>
14254 #include <stdlib.h>
14258 // Check varargs macros. These examples are taken from C99 6.10.3.5.
14259 #define debug(...) fprintf (stderr, __VA_ARGS__)
14260 #define showlist(...) puts (#__VA_ARGS__)
14261 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
14263 test_varargs_macros (void)
14268 debug ("X = %d\n", x);
14269 showlist (The first, second, and third items.);
14270 report (x>y, "x is %d but y is %d", x, y);
14273 // Check long long types.
14274 #define BIG64 18446744073709551615ull
14275 #define BIG32 4294967295ul
14276 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
14278 your preprocessor is broken;
14282 your preprocessor is broken;
14284 static long long int bignum = -9223372036854775807LL;
14285 static unsigned long long int ubignum = BIG64;
14287 struct incomplete_array
14293 struct named_init {
14295 const wchar_t *name;
14299 typedef const char *ccp;
14302 test_restrict (ccp restrict text)
14304 // See if C++-style comments work.
14305 // Iterate through items via the restricted pointer.
14306 // Also check for declarations in for loops.
14307 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
14312 // Check varargs and va_copy.
14314 test_varargs (const char *format, ...)
14317 va_start (args, format);
14319 va_copy (args_copy, args);
14329 case 's': // string
14330 str = va_arg (args_copy, const char *);
14333 number = va_arg (args_copy, int);
14336 fnumber = va_arg (args_copy, double);
14342 va_end (args_copy);
14351 _Bool success = false;
14354 if (test_restrict ("String literal") == 0)
14356 char *restrict newvar = "Another string";
14359 test_varargs ("s, d' f .", "string", 65, 34.234);
14360 test_varargs_macros ();
14362 // Check flexible array members.
14363 struct incomplete_array *ia =
14364 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
14366 for (int i = 0; i < ia->datasize; ++i)
14367 ia->data[i] = i * 1.234;
14369 // Check named initializers.
14370 struct named_init ni = {
14372 .name = L"Test wide string",
14373 .average = 543.34343,
14378 int dynamic_array[ni.number];
14379 dynamic_array[ni.number - 1] = 543;
14381 // work around unused variable warnings
14382 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
14383 || dynamic_array[ni.number - 1] != 543);
14389 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
14391 CC="$ac_save_CC $ac_arg"
14392 if ac_fn_c_try_compile "$LINENO"; then :
14393 ac_cv_prog_cc_c99=$ac_arg
14395 rm -f core conftest.err conftest.$ac_objext
14396 test "x$ac_cv_prog_cc_c99" != "xno" && break
14398 rm -f conftest.$ac_ext
14403 case "x$ac_cv_prog_cc_c99" in
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14406 $as_echo "none needed" >&6; } ;;
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14409 $as_echo "unsupported" >&6; } ;;
14411 CC="$CC $ac_cv_prog_cc_c99"
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
14413 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
14415 if test "x$ac_cv_prog_cc_c99" != xno; then :
14422 ac_cpp='$CXXCPP $CPPFLAGS'
14423 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14424 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14425 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14426 if test -z "$CXX"; then
14427 if test -n "$CCC"; then
14430 if test -n "$ac_tool_prefix"; then
14431 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
14433 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14434 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14436 $as_echo_n "checking for $ac_word... " >&6; }
14437 if ${ac_cv_prog_CXX+:} false; then :
14438 $as_echo_n "(cached) " >&6
14440 if test -n "$CXX"; then
14441 ac_cv_prog_CXX="$CXX" # Let the user override the test.
14443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14444 for as_dir in $PATH
14447 test -z "$as_dir" && as_dir=.
14448 for ac_exec_ext in '' $ac_executable_extensions; do
14449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14450 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
14451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14460 CXX=$ac_cv_prog_CXX
14461 if test -n "$CXX"; then
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
14463 $as_echo "$CXX" >&6; }
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14466 $as_echo "no" >&6; }
14470 test -n "$CXX" && break
14473 if test -z "$CXX"; then
14475 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
14477 # Extract the first word of "$ac_prog", so it can be a program name with args.
14478 set dummy $ac_prog; ac_word=$2
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14480 $as_echo_n "checking for $ac_word... " >&6; }
14481 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
14482 $as_echo_n "(cached) " >&6
14484 if test -n "$ac_ct_CXX"; then
14485 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
14487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14488 for as_dir in $PATH
14491 test -z "$as_dir" && as_dir=.
14492 for ac_exec_ext in '' $ac_executable_extensions; do
14493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14494 ac_cv_prog_ac_ct_CXX="$ac_prog"
14495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14504 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
14505 if test -n "$ac_ct_CXX"; then
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
14507 $as_echo "$ac_ct_CXX" >&6; }
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14510 $as_echo "no" >&6; }
14514 test -n "$ac_ct_CXX" && break
14517 if test "x$ac_ct_CXX" = x; then
14520 case $cross_compiling:$ac_tool_warned in
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14523 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14524 ac_tool_warned=yes ;;
14532 # Provide some information about the compiler.
14533 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
14536 for ac_option in --version -v -V -qversion; do
14537 { { ac_try="$ac_compiler $ac_option >&5"
14538 case "(($ac_try" in
14539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14540 *) ac_try_echo=$ac_try;;
14542 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14543 $as_echo "$ac_try_echo"; } >&5
14544 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14546 if test -s conftest.err; then
14548 ... rest of stderr output deleted ...
14549 10q' conftest.err >conftest.er1
14550 cat conftest.er1 >&5
14552 rm -f conftest.er1 conftest.err
14553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14554 test $ac_status = 0; }
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
14558 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
14559 if ${ac_cv_cxx_compiler_gnu+:} false; then :
14560 $as_echo_n "(cached) " >&6
14562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14563 /* end confdefs.h. */
14576 if ac_fn_cxx_try_compile "$LINENO"; then :
14577 ac_compiler_gnu=yes
14581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14582 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
14586 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
14587 if test $ac_compiler_gnu = yes; then
14592 ac_test_CXXFLAGS=${CXXFLAGS+set}
14593 ac_save_CXXFLAGS=$CXXFLAGS
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
14595 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
14596 if ${ac_cv_prog_cxx_g+:} false; then :
14597 $as_echo_n "(cached) " >&6
14599 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
14600 ac_cxx_werror_flag=yes
14601 ac_cv_prog_cxx_g=no
14603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14604 /* end confdefs.h. */
14614 if ac_fn_cxx_try_compile "$LINENO"; then :
14615 ac_cv_prog_cxx_g=yes
14618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14619 /* end confdefs.h. */
14629 if ac_fn_cxx_try_compile "$LINENO"; then :
14632 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14635 /* end confdefs.h. */
14645 if ac_fn_cxx_try_compile "$LINENO"; then :
14646 ac_cv_prog_cxx_g=yes
14648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14653 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
14656 $as_echo "$ac_cv_prog_cxx_g" >&6; }
14657 if test "$ac_test_CXXFLAGS" = set; then
14658 CXXFLAGS=$ac_save_CXXFLAGS
14659 elif test $ac_cv_prog_cxx_g = yes; then
14660 if test "$GXX" = yes; then
14666 if test "$GXX" = yes; then
14673 ac_cpp='$CPP $CPPFLAGS'
14674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14678 depcc="$CXX" am_compiler_list=
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14681 $as_echo_n "checking dependency style of $depcc... " >&6; }
14682 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
14683 $as_echo_n "(cached) " >&6
14685 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14686 # We make a subdir and do the tests there. Otherwise we can end up
14687 # making bogus files that we don't know about and never remove. For
14688 # instance it was reported that on HP-UX the gcc test will end up
14689 # making a dummy file named 'D' -- because '-MD' means "put the output
14691 rm -rf conftest.dir
14693 # Copy depcomp to subdir because otherwise we won't find it if we're
14694 # using a relative directory.
14695 cp "$am_depcomp" conftest.dir
14697 # We will build objects and dependencies in a subdirectory because
14698 # it helps to detect inapplicable dependency modes. For instance
14699 # both Tru64's cc and ICC support -MD to output dependencies as a
14700 # side effect of compilation, but ICC will put the dependencies in
14701 # the current directory while Tru64 will put them in the object
14705 am_cv_CXX_dependencies_compiler_type=none
14706 if test "$am_compiler_list" = ""; then
14707 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14709 am__universal=false
14710 case " $depcc " in #(
14711 *\ -arch\ *\ -arch\ *) am__universal=true ;;
14714 for depmode in $am_compiler_list; do
14715 # Setup a source with many dependencies, because some compilers
14716 # like to wrap large dependency lists on column 80 (with \), and
14717 # we should not choose a depcomp mode which is confused by this.
14719 # We need to recreate these files for each test, as the compiler may
14720 # overwrite some of them when testing with obscure command lines.
14721 # This happens at least with the AIX C compiler.
14723 for i in 1 2 3 4 5 6; do
14724 echo '#include "conftst'$i'.h"' >> sub/conftest.c
14725 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14726 # Solaris 10 /bin/sh.
14727 echo '/* dummy */' > sub/conftst$i.h
14729 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14731 # We check with '-c' and '-o' for the sake of the "dashmstdout"
14732 # mode. It turns out that the SunPro C++ compiler does not properly
14733 # handle '-M -o', and we need to detect this. Also, some Intel
14734 # versions had trouble with output in subdirs.
14735 am__obj=sub/conftest.${OBJEXT-o}
14736 am__minus_obj="-o $am__obj"
14739 # This depmode causes a compiler race in universal mode.
14740 test "$am__universal" = false || continue
14743 # After this tag, mechanisms are not by side-effect, so they'll
14744 # only be used when explicitly requested.
14745 if test "x$enable_dependency_tracking" = xyes; then
14751 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14752 # This compiler won't grok '-c -o', but also, the minuso test has
14753 # not run yet. These depmodes are late enough in the game, and
14754 # so weak that their functioning should not be impacted.
14755 am__obj=conftest.${OBJEXT-o}
14760 if depmode=$depmode \
14761 source=sub/conftest.c object=$am__obj \
14762 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14763 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14764 >/dev/null 2>conftest.err &&
14765 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14766 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14767 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14768 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14769 # icc doesn't choke on unknown options, it will just issue warnings
14770 # or remarks (even with -Werror). So we grep stderr for any message
14771 # that says an option was ignored or not supported.
14772 # When given -MP, icc 7.0 and 7.1 complain thusly:
14773 # icc: Command line warning: ignoring option '-M'; no argument required
14774 # The diagnosis changed in icc 8.0:
14775 # icc: Command line remark: option '-MP' not supported
14776 if (grep 'ignoring option' conftest.err ||
14777 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14778 am_cv_CXX_dependencies_compiler_type=$depmode
14785 rm -rf conftest.dir
14787 am_cv_CXX_dependencies_compiler_type=none
14791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
14792 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
14793 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
14796 test "x$enable_dependency_tracking" != xno \
14797 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
14798 am__fastdepCXX_TRUE=
14799 am__fastdepCXX_FALSE='#'
14801 am__fastdepCXX_TRUE='#'
14802 am__fastdepCXX_FALSE=
14808 func_stripname_cnf ()
14811 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
14812 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
14814 } # func_stripname_cnf
14816 if test -n "$CXX" && ( test no != "$CXX" &&
14817 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
14818 (test g++ != "$CXX"))); then
14820 ac_cpp='$CXXCPP $CPPFLAGS'
14821 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14822 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14823 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14825 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
14826 if test -z "$CXXCPP"; then
14827 if ${ac_cv_prog_CXXCPP+:} false; then :
14828 $as_echo_n "(cached) " >&6
14830 # Double quotes because CXXCPP needs to be expanded
14831 for CXXCPP in "$CXX -E" "/lib/cpp"
14833 ac_preproc_ok=false
14834 for ac_cxx_preproc_warn_flag in '' yes
14836 # Use a header file that comes with gcc, so configuring glibc
14837 # with a fresh cross-compiler works.
14838 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14839 # <limits.h> exists even on freestanding compilers.
14840 # On the NeXT, cc -E runs the code through the compiler's parser,
14841 # not just through cpp. "Syntax error" is here to catch this case.
14842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14843 /* end confdefs.h. */
14845 # include <limits.h>
14847 # include <assert.h>
14851 if ac_fn_cxx_try_cpp "$LINENO"; then :
14854 # Broken: fails on valid input.
14857 rm -f conftest.err conftest.i conftest.$ac_ext
14859 # OK, works on sane cases. Now check whether nonexistent headers
14860 # can be detected and how.
14861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14862 /* end confdefs.h. */
14863 #include <ac_nonexistent.h>
14865 if ac_fn_cxx_try_cpp "$LINENO"; then :
14866 # Broken: success on invalid input.
14869 # Passes both tests.
14873 rm -f conftest.err conftest.i conftest.$ac_ext
14876 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14877 rm -f conftest.i conftest.err conftest.$ac_ext
14878 if $ac_preproc_ok; then :
14883 ac_cv_prog_CXXCPP=$CXXCPP
14886 CXXCPP=$ac_cv_prog_CXXCPP
14888 ac_cv_prog_CXXCPP=$CXXCPP
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14891 $as_echo "$CXXCPP" >&6; }
14892 ac_preproc_ok=false
14893 for ac_cxx_preproc_warn_flag in '' yes
14895 # Use a header file that comes with gcc, so configuring glibc
14896 # with a fresh cross-compiler works.
14897 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14898 # <limits.h> exists even on freestanding compilers.
14899 # On the NeXT, cc -E runs the code through the compiler's parser,
14900 # not just through cpp. "Syntax error" is here to catch this case.
14901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14902 /* end confdefs.h. */
14904 # include <limits.h>
14906 # include <assert.h>
14910 if ac_fn_cxx_try_cpp "$LINENO"; then :
14913 # Broken: fails on valid input.
14916 rm -f conftest.err conftest.i conftest.$ac_ext
14918 # OK, works on sane cases. Now check whether nonexistent headers
14919 # can be detected and how.
14920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14921 /* end confdefs.h. */
14922 #include <ac_nonexistent.h>
14924 if ac_fn_cxx_try_cpp "$LINENO"; then :
14925 # Broken: success on invalid input.
14928 # Passes both tests.
14932 rm -f conftest.err conftest.i conftest.$ac_ext
14935 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14936 rm -f conftest.i conftest.err conftest.$ac_ext
14937 if $ac_preproc_ok; then :
14940 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14941 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14942 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14943 See \`config.log' for more details" "$LINENO" 5; }
14947 ac_cpp='$CPP $CPPFLAGS'
14948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14953 _lt_caught_CXX_error=yes
14957 ac_cpp='$CXXCPP $CPPFLAGS'
14958 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14959 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14960 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14962 archive_cmds_need_lc_CXX=no
14963 allow_undefined_flag_CXX=
14964 always_export_symbols_CXX=no
14965 archive_expsym_cmds_CXX=
14966 compiler_needs_object_CXX=no
14967 export_dynamic_flag_spec_CXX=
14968 hardcode_direct_CXX=no
14969 hardcode_direct_absolute_CXX=no
14970 hardcode_libdir_flag_spec_CXX=
14971 hardcode_libdir_separator_CXX=
14972 hardcode_minus_L_CXX=no
14973 hardcode_shlibpath_var_CXX=unsupported
14974 hardcode_automatic_CXX=no
14975 inherit_rpath_CXX=no
14977 module_expsym_cmds_CXX=
14978 link_all_deplibs_CXX=unknown
14979 old_archive_cmds_CXX=$old_archive_cmds
14980 reload_flag_CXX=$reload_flag
14981 reload_cmds_CXX=$reload_cmds
14982 no_undefined_flag_CXX=
14983 whole_archive_flag_spec_CXX=
14984 enable_shared_with_static_runtimes_CXX=no
14986 # Source file extension for C++ test sources.
14989 # Object file extension for compiled C++ test sources.
14993 # No sense in running all these tests if we already determined that
14994 # the CXX compiler isn't working. Some variables (like enable_shared)
14995 # are currently assumed to apply to all compilers on this platform,
14996 # and will be corrupted by setting them based on a non-working compiler.
14997 if test yes != "$_lt_caught_CXX_error"; then
14998 # Code to be used in simple compile tests
14999 lt_simple_compile_test_code="int some_variable = 0;"
15001 # Code to be used in simple link tests
15002 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15004 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15011 # If no C compiler was specified, use CC.
15014 # If no C compiler flags were specified, use CFLAGS.
15015 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15017 # Allow CC to be a program name with arguments.
15021 # save warnings/boilerplate of simple test code
15022 ac_outfile=conftest.$ac_objext
15023 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15024 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15025 _lt_compiler_boilerplate=`cat conftest.err`
15028 ac_outfile=conftest.$ac_objext
15029 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15030 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15031 _lt_linker_boilerplate=`cat conftest.err`
15035 # Allow CC to be a program name with arguments.
15037 lt_save_CFLAGS=$CFLAGS
15041 lt_save_with_gnu_ld=$with_gnu_ld
15042 lt_save_path_LD=$lt_cv_path_LD
15043 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15044 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15046 $as_unset lt_cv_prog_gnu_ld
15048 if test -n "${lt_cv_path_LDCXX+set}"; then
15049 lt_cv_path_LD=$lt_cv_path_LDCXX
15051 $as_unset lt_cv_path_LD
15053 test -z "${LDCXX+set}" || LD=$LDCXX
15058 func_cc_basename $compiler
15059 cc_basename=$func_cc_basename_result
15062 if test -n "$compiler"; then
15063 # We don't want -fno-exception when compiling C++ code, so set the
15064 # no_builtin_flag separately
15065 if test yes = "$GXX"; then
15066 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15068 lt_prog_compiler_no_builtin_flag_CXX=
15071 if test yes = "$GXX"; then
15072 # Set up default GNU C++ configuration
15076 # Check whether --with-gnu-ld was given.
15077 if test "${with_gnu_ld+set}" = set; then :
15078 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
15084 if test yes = "$GCC"; then
15085 # Check if gcc -print-prog-name=ld gives a path.
15086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15087 $as_echo_n "checking for ld used by $CC... " >&6; }
15090 # gcc leaves a trailing carriage return, which upsets mingw
15091 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15093 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15096 # Accept absolute paths.
15098 re_direlt='/[^/][^/]*/\.\./'
15099 # Canonicalize the pathname of ld
15100 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15101 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15102 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15104 test -z "$LD" && LD=$ac_prog
15107 # If it fails, then pretend we aren't using GCC.
15111 # If it is relative, then search for the first ld in PATH.
15112 with_gnu_ld=unknown
15115 elif test yes = "$with_gnu_ld"; then
15116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15117 $as_echo_n "checking for GNU ld... " >&6; }
15119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15120 $as_echo_n "checking for non-GNU ld... " >&6; }
15122 if ${lt_cv_path_LD+:} false; then :
15123 $as_echo_n "(cached) " >&6
15125 if test -z "$LD"; then
15126 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15127 for ac_dir in $PATH; do
15129 test -z "$ac_dir" && ac_dir=.
15130 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15131 lt_cv_path_LD=$ac_dir/$ac_prog
15132 # Check to see if the program is GNU ld. I'd rather use --version,
15133 # but apparently some variants of GNU ld only accept -v.
15134 # Break only if it was the GNU/non-GNU ld that we prefer.
15135 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15136 *GNU* | *'with BFD'*)
15137 test no != "$with_gnu_ld" && break
15140 test yes != "$with_gnu_ld" && break
15147 lt_cv_path_LD=$LD # Let the user override the test with a path.
15152 if test -n "$LD"; then
15153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15154 $as_echo "$LD" >&6; }
15156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15157 $as_echo "no" >&6; }
15159 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15161 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15162 if ${lt_cv_prog_gnu_ld+:} false; then :
15163 $as_echo_n "(cached) " >&6
15165 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15166 case `$LD -v 2>&1 </dev/null` in
15167 *GNU* | *'with BFD'*)
15168 lt_cv_prog_gnu_ld=yes
15171 lt_cv_prog_gnu_ld=no
15175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15176 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15177 with_gnu_ld=$lt_cv_prog_gnu_ld
15185 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15186 # archiving commands below assume that GNU ld is being used.
15187 if test yes = "$with_gnu_ld"; then
15188 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15189 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'
15191 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15192 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15194 # If archive_cmds runs LD, not CC, wlarc should be empty
15195 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15196 # investigate it a little bit more. (MM)
15199 # ancient GNU ld didn't support --whole-archive et. al.
15200 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15201 $GREP 'no-whole-archive' > /dev/null; then
15202 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15204 whole_archive_flag_spec_CXX=
15210 # A generic and very simple default shared library creation
15211 # command for GNU C++ for the case where it uses the native
15212 # linker, instead of GNU ld. If possible, this setting should
15213 # overridden to take advantage of the native linker features on
15214 # the platform it is being used on.
15215 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15218 # Commands to make compiler produce verbose output that lists
15219 # what "hidden" libraries, object files and flags are used when
15220 # linking a shared library.
15221 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15229 # PORTME: fill in a description of your system's C++ link characteristics
15230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15231 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15235 # FIXME: insert proper C++ library support
15239 if test ia64 = "$host_cpu"; then
15240 # On IA64, the linker does run time linking by default, so we don't
15241 # have to do anything special.
15242 aix_use_runtimelinking=no
15243 exp_sym_flag='-Bexport'
15246 aix_use_runtimelinking=no
15248 # Test if we are trying to use run time linking or normal
15249 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15250 # have runtime linking enabled, and use it for executables.
15251 # For shared libraries, we enable/disable runtime linking
15252 # depending on the kind of the shared library created -
15253 # when "with_aix_soname,aix_use_runtimelinking" is:
15254 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
15255 # "aix,yes" lib.so shared, rtl:yes, for executables
15256 # lib.a static archive
15257 # "both,no" lib.so.V(shr.o) shared, rtl:yes
15258 # lib.a(lib.so.V) shared, rtl:no, for executables
15259 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15260 # lib.a(lib.so.V) shared, rtl:no
15261 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
15262 # lib.a static archive
15263 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15264 for ld_flag in $LDFLAGS; do
15267 aix_use_runtimelinking=yes
15272 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15273 # With aix-soname=svr4, we create the lib.so.V shared archives only,
15274 # so we don't have lib.a shared libs to link our executables.
15275 # We have to force runtime linking in this case.
15276 aix_use_runtimelinking=yes
15277 LDFLAGS="$LDFLAGS -Wl,-brtl"
15282 exp_sym_flag='-bexport'
15283 no_entry_flag='-bnoentry'
15286 # When large executables or shared objects are built, AIX ld can
15287 # have problems creating the table of contents. If linking a library
15288 # or program results in "error TOC overflow" add -mminimal-toc to
15289 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15290 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15292 archive_cmds_CXX=''
15293 hardcode_direct_CXX=yes
15294 hardcode_direct_absolute_CXX=yes
15295 hardcode_libdir_separator_CXX=':'
15296 link_all_deplibs_CXX=yes
15297 file_list_spec_CXX='$wl-f,'
15298 case $with_aix_soname,$aix_use_runtimelinking in
15299 aix,*) ;; # no import file
15300 svr4,* | *,yes) # use import file
15301 # The Import File defines what to hardcode.
15302 hardcode_direct_CXX=no
15303 hardcode_direct_absolute_CXX=no
15307 if test yes = "$GXX"; then
15308 case $host_os in aix4.[012]|aix4.[012].*)
15309 # We only want to do this on AIX 4.2 and lower, the check
15310 # below for broken collect2 doesn't work under 4.3+
15311 collect2name=`$CC -print-prog-name=collect2`
15312 if test -f "$collect2name" &&
15313 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15315 # We have reworked collect2
15318 # We have old collect2
15319 hardcode_direct_CXX=unsupported
15320 # It fails to find uninstalled libraries when the uninstalled
15321 # path is not listed in the libpath. Setting hardcode_minus_L
15322 # to unsupported forces relinking
15323 hardcode_minus_L_CXX=yes
15324 hardcode_libdir_flag_spec_CXX='-L$libdir'
15325 hardcode_libdir_separator_CXX=
15328 shared_flag='-shared'
15329 if test yes = "$aix_use_runtimelinking"; then
15330 shared_flag=$shared_flag' $wl-G'
15332 # Need to ensure runtime linking is disabled for the traditional
15333 # shared library, or the linker may eventually find shared libraries
15334 # /with/ Import File - we do not want to mix them.
15335 shared_flag_aix='-shared'
15336 shared_flag_svr4='-shared $wl-G'
15339 if test ia64 = "$host_cpu"; then
15340 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15341 # chokes on -Wl,-G. The following line is correct:
15344 if test yes = "$aix_use_runtimelinking"; then
15345 shared_flag='$wl-G'
15347 shared_flag='$wl-bM:SRE'
15349 shared_flag_aix='$wl-bM:SRE'
15350 shared_flag_svr4='$wl-G'
15354 export_dynamic_flag_spec_CXX='$wl-bexpall'
15355 # It seems that -bexpall does not export symbols beginning with
15356 # underscore (_), so it is better to generate a list of symbols to
15358 always_export_symbols_CXX=yes
15359 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15360 # Warning - without using the other runtime loading flags (-brtl),
15361 # -berok will link without error, but may produce a broken library.
15362 # The "-G" linker flag allows undefined symbols.
15363 no_undefined_flag_CXX='-bernotok'
15364 # Determine the default libpath from the value encoded in an empty
15366 if test set = "${lt_cv_aix_libpath+set}"; then
15367 aix_libpath=$lt_cv_aix_libpath
15369 if ${lt_cv_aix_libpath__CXX+:} false; then :
15370 $as_echo_n "(cached) " >&6
15372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15373 /* end confdefs.h. */
15383 if ac_fn_cxx_try_link "$LINENO"; then :
15385 lt_aix_libpath_sed='
15386 /Import File Strings/,/^$/ {
15388 s/^0 *\([^ ]*\) *$/\1/
15392 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15393 # Check for a 64-bit object if we didn't find anything.
15394 if test -z "$lt_cv_aix_libpath__CXX"; then
15395 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15398 rm -f core conftest.err conftest.$ac_objext \
15399 conftest$ac_exeext conftest.$ac_ext
15400 if test -z "$lt_cv_aix_libpath__CXX"; then
15401 lt_cv_aix_libpath__CXX=/usr/lib:/lib
15406 aix_libpath=$lt_cv_aix_libpath__CXX
15409 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15411 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
15413 if test ia64 = "$host_cpu"; then
15414 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
15415 allow_undefined_flag_CXX="-z nodefs"
15416 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"
15418 # Determine the default libpath from the value encoded in an
15419 # empty executable.
15420 if test set = "${lt_cv_aix_libpath+set}"; then
15421 aix_libpath=$lt_cv_aix_libpath
15423 if ${lt_cv_aix_libpath__CXX+:} false; then :
15424 $as_echo_n "(cached) " >&6
15426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15427 /* end confdefs.h. */
15437 if ac_fn_cxx_try_link "$LINENO"; then :
15439 lt_aix_libpath_sed='
15440 /Import File Strings/,/^$/ {
15442 s/^0 *\([^ ]*\) *$/\1/
15446 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15447 # Check for a 64-bit object if we didn't find anything.
15448 if test -z "$lt_cv_aix_libpath__CXX"; then
15449 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15452 rm -f core conftest.err conftest.$ac_objext \
15453 conftest$ac_exeext conftest.$ac_ext
15454 if test -z "$lt_cv_aix_libpath__CXX"; then
15455 lt_cv_aix_libpath__CXX=/usr/lib:/lib
15460 aix_libpath=$lt_cv_aix_libpath__CXX
15463 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15464 # Warning - without using the other run time loading flags,
15465 # -berok will link without error, but may produce a broken library.
15466 no_undefined_flag_CXX=' $wl-bernotok'
15467 allow_undefined_flag_CXX=' $wl-berok'
15468 if test yes = "$with_gnu_ld"; then
15469 # We only use this code for GNU lds that support --whole-archive.
15470 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15472 # Exported symbols can be pulled into shared objects from archives
15473 whole_archive_flag_spec_CXX='$convenience'
15475 archive_cmds_need_lc_CXX=yes
15476 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15477 # -brtl affects multiple linker settings, -berok does not and is overridden later
15478 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15479 if test svr4 != "$with_aix_soname"; then
15480 # This is similar to how AIX traditionally builds its shared
15481 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
15482 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
15484 if test aix != "$with_aix_soname"; then
15485 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
15487 # used by -dlpreopen to get the symbols
15488 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
15490 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
15496 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15497 allow_undefined_flag_CXX=unsupported
15498 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15499 # support --undefined. This deserves some investigation. FIXME
15500 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15507 case $cc_basename in
15509 # FIXME: insert proper C++ library support
15515 cygwin* | mingw* | pw32* | cegcc*)
15516 case $GXX,$cc_basename in
15519 # hardcode_libdir_flag_spec is actually meaningless, as there is
15520 # no search path for DLLs.
15521 hardcode_libdir_flag_spec_CXX=' '
15522 allow_undefined_flag_CXX=unsupported
15523 always_export_symbols_CXX=yes
15524 file_list_spec_CXX='@'
15525 # Tell ltmain to make .lib files, not .a files.
15527 # Tell ltmain to make .dll files, not .so files.
15529 # FIXME: Setting linknames here is a bad hack.
15530 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
15531 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15532 cp "$export_symbols" "$output_objdir/$soname.def";
15533 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
15535 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
15537 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15539 # The linker will not automatically build a static lib if we build a DLL.
15540 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
15541 enable_shared_with_static_runtimes_CXX=yes
15543 old_postinstall_cmds_CXX='chmod 644 $oldlib'
15544 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
15545 lt_tool_outputfile="@TOOL_OUTPUT@"~
15546 case $lt_outputfile in
15549 lt_outputfile=$lt_outputfile.exe
15550 lt_tool_outputfile=$lt_tool_outputfile.exe
15553 func_to_tool_file "$lt_outputfile"~
15554 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
15555 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15556 $RM "$lt_outputfile.manifest";
15561 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15562 # as there is no search path for DLLs.
15563 hardcode_libdir_flag_spec_CXX='-L$libdir'
15564 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
15565 allow_undefined_flag_CXX=unsupported
15566 always_export_symbols_CXX=no
15567 enable_shared_with_static_runtimes_CXX=yes
15569 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15570 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'
15571 # If the export-symbols file already is a .def file, use it as
15572 # is; otherwise, prepend EXPORTS...
15573 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15574 cp $export_symbols $output_objdir/$soname.def;
15576 echo EXPORTS > $output_objdir/$soname.def;
15577 cat $export_symbols >> $output_objdir/$soname.def;
15579 $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'
15586 darwin* | rhapsody*)
15589 archive_cmds_need_lc_CXX=no
15590 hardcode_direct_CXX=no
15591 hardcode_automatic_CXX=yes
15592 hardcode_shlibpath_var_CXX=unsupported
15593 if test yes = "$lt_cv_ld_force_load"; then
15594 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\"`'
15597 whole_archive_flag_spec_CXX=''
15599 link_all_deplibs_CXX=yes
15600 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
15601 case $cc_basename in
15602 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
15603 *) _lt_dar_can_shared=$GCC ;;
15605 if test yes = "$_lt_dar_can_shared"; then
15606 output_verbose_link_cmd=func_echo_all
15607 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"
15608 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
15609 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"
15610 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"
15611 if test yes != "$lt_cv_apple_cc_single_mod"; then
15612 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"
15613 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"
15623 hardcode_libdir_flag_spec_CXX='-L$libdir'
15624 hardcode_minus_L_CXX=yes
15625 allow_undefined_flag_CXX=unsupported
15627 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15628 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15629 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15630 $ECHO EXPORTS >> $output_objdir/$libname.def~
15631 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15632 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15633 emximp -o $lib $output_objdir/$libname.def'
15634 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15635 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15636 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15637 $ECHO EXPORTS >> $output_objdir/$libname.def~
15638 prefix_cmds="$SED"~
15639 if test EXPORTS = "`$SED 1q $export_symbols`"; then
15640 prefix_cmds="$prefix_cmds -e 1d";
15642 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15643 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15644 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15645 emximp -o $lib $output_objdir/$libname.def'
15646 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15647 enable_shared_with_static_runtimes_CXX=yes
15651 case $cc_basename in
15653 # FIXME: insert proper C++ library support
15657 # Green Hills C++ Compiler
15658 # FIXME: insert proper C++ library support
15662 # FIXME: insert proper C++ library support
15669 # C++ shared libraries reported to be fairly broken before
15675 archive_cmds_need_lc_CXX=no
15678 freebsd* | dragonfly*)
15679 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15685 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15686 link_all_deplibs_CXX=yes
15690 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15691 hardcode_libdir_separator_CXX=:
15692 export_dynamic_flag_spec_CXX='$wl-E'
15693 hardcode_direct_CXX=yes
15694 hardcode_minus_L_CXX=yes # Not in the search PATH,
15695 # but as the default
15696 # location of the library.
15698 case $cc_basename in
15700 # FIXME: insert proper C++ library support
15704 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
15705 # Commands to make compiler produce verbose output that lists
15706 # what "hidden" libraries, object files and flags are used when
15707 # linking a shared library.
15709 # There doesn't appear to be a way to prevent this compiler from
15710 # explicitly linking system object files so we need to strip them
15711 # from the output so that they don't get included in the library
15713 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"'
15716 if test yes = "$GXX"; then
15717 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
15719 # FIXME: insert proper C++ library support
15727 if test no = "$with_gnu_ld"; then
15728 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15729 hardcode_libdir_separator_CXX=:
15735 export_dynamic_flag_spec_CXX='$wl-E'
15741 hardcode_direct_CXX=no
15742 hardcode_shlibpath_var_CXX=no
15745 hardcode_direct_CXX=yes
15746 hardcode_direct_absolute_CXX=yes
15747 hardcode_minus_L_CXX=yes # Not in the search PATH,
15748 # but as the default
15749 # location of the library.
15753 case $cc_basename in
15755 # FIXME: insert proper C++ library support
15761 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15764 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15767 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15770 # Commands to make compiler produce verbose output that lists
15771 # what "hidden" libraries, object files and flags are used when
15772 # linking a shared library.
15774 # There doesn't appear to be a way to prevent this compiler from
15775 # explicitly linking system object files so we need to strip them
15776 # from the output so that they don't get included in the library
15778 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"'
15781 if test yes = "$GXX"; then
15782 if test no = "$with_gnu_ld"; then
15785 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15788 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15791 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'
15796 # FIXME: insert proper C++ library support
15804 hardcode_direct_CXX=no
15805 hardcode_shlibpath_var_CXX=no
15806 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15807 export_dynamic_flag_spec_CXX='$wl-E'
15808 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15809 # Instead, shared libraries are loaded at an image base (0x10000000 by
15810 # default) and relocated if they conflict, which is a slow very memory
15811 # consuming and fragmenting process. To avoid this, we pick a random,
15812 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15813 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15814 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'
15815 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'
15818 case $cc_basename in
15821 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'
15823 # Archives containing C++ object files must be created using
15824 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15825 # necessary to make sure instantiated templates are included
15827 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15830 if test yes = "$GXX"; then
15831 if test no = "$with_gnu_ld"; then
15832 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'
15834 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'
15837 link_all_deplibs_CXX=yes
15840 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15841 hardcode_libdir_separator_CXX=:
15842 inherit_rpath_CXX=yes
15845 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15846 case $cc_basename in
15848 # Kuck and Associates, Inc. (KAI) C++ Compiler
15850 # KCC will only create a shared library if the output file
15851 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15852 # to its proper name (with version) after linking.
15853 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'
15854 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'
15855 # Commands to make compiler produce verbose output that lists
15856 # what "hidden" libraries, object files and flags are used when
15857 # linking a shared library.
15859 # There doesn't appear to be a way to prevent this compiler from
15860 # explicitly linking system object files so we need to strip them
15861 # from the output so that they don't get included in the library
15863 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"'
15865 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15866 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15868 # Archives containing C++ object files must be created using
15869 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15870 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15875 # version 8.0 and above of icpc choke on multiply defined symbols
15876 # if we add $predep_objects and $postdep_objects, however 7.1 and
15877 # earlier do not add the objects themselves.
15878 case `$CC -V 2>&1` in
15880 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15881 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'
15883 *) # Version 8.0 or newer
15886 ia64*) tmp_idyn=' -i_dynamic';;
15888 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15889 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'
15892 archive_cmds_need_lc_CXX=no
15893 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15894 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15895 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15898 # Portland Group C++ compiler
15900 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
15901 prelink_cmds_CXX='tpldir=Template.dir~
15903 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15904 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
15905 old_archive_cmds_CXX='tpldir=Template.dir~
15907 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15908 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
15910 archive_cmds_CXX='tpldir=Template.dir~
15912 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15913 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15914 archive_expsym_cmds_CXX='tpldir=Template.dir~
15916 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15917 $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'
15919 *) # Version 6 and above use weak symbols
15920 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15921 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'
15925 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
15926 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15927 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'
15931 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15932 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'
15934 runpath_var=LD_RUN_PATH
15935 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15936 hardcode_libdir_separator_CXX=:
15938 # Commands to make compiler produce verbose output that lists
15939 # what "hidden" libraries, object files and flags are used when
15940 # linking a shared library.
15942 # There doesn't appear to be a way to prevent this compiler from
15943 # explicitly linking system object files so we need to strip them
15944 # from the output so that they don't get included in the library
15946 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'
15948 xl* | mpixl* | bgxl*)
15949 # IBM XL 8.0 on PPC, with GNU ld
15950 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15951 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15952 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15953 if test yes = "$supports_anon_versioning"; then
15954 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15955 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15956 echo "local: *; };" >> $output_objdir/$libname.ver~
15957 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15961 case `$CC -V 2>&1 | sed 5q` in
15964 no_undefined_flag_CXX=' -zdefs'
15965 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15966 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'
15967 hardcode_libdir_flag_spec_CXX='-R$libdir'
15968 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'
15969 compiler_needs_object_CXX=yes
15971 # Not sure whether something based on
15972 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15974 output_verbose_link_cmd='func_echo_all'
15976 # Archives containing C++ object files must be created using
15977 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15978 # necessary to make sure instantiated templates are included
15980 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15988 # FIXME: insert proper C++ library support
15993 # FIXME: insert proper C++ library support
15998 case $cc_basename in
16000 # FIXME: insert proper C++ library support
16004 # FIXME: insert proper C++ library support
16011 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16012 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16014 hardcode_libdir_flag_spec_CXX='-R$libdir'
16015 hardcode_direct_CXX=yes
16016 hardcode_shlibpath_var_CXX=no
16018 # Workaround some broken pre-1.5 toolchains
16019 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16026 openbsd* | bitrig*)
16027 if test -f /usr/libexec/ld.so; then
16028 hardcode_direct_CXX=yes
16029 hardcode_shlibpath_var_CXX=no
16030 hardcode_direct_absolute_CXX=yes
16031 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16032 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16033 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
16034 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
16035 export_dynamic_flag_spec_CXX='$wl-E'
16036 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16038 output_verbose_link_cmd=func_echo_all
16044 osf3* | osf4* | osf5*)
16045 case $cc_basename in
16047 # Kuck and Associates, Inc. (KAI) C++ Compiler
16049 # KCC will only create a shared library if the output file
16050 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16051 # to its proper name (with version) after linking.
16052 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'
16054 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16055 hardcode_libdir_separator_CXX=:
16057 # Archives containing C++ object files must be created using
16058 # the KAI C++ compiler.
16060 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16061 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16065 # Rational C++ 2.4.1
16066 # FIXME: insert proper C++ library support
16072 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16073 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'
16074 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16077 allow_undefined_flag_CXX=' -expect_unresolved \*'
16078 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'
16079 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16080 echo "-hidden">> $lib.exp~
16081 $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~
16083 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16087 hardcode_libdir_separator_CXX=:
16089 # Commands to make compiler produce verbose output that lists
16090 # what "hidden" libraries, object files and flags are used when
16091 # linking a shared library.
16093 # There doesn't appear to be a way to prevent this compiler from
16094 # explicitly linking system object files so we need to strip them
16095 # from the output so that they don't get included in the library
16097 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"'
16100 if test yes,no = "$GXX,$with_gnu_ld"; then
16101 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16104 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'
16107 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'
16111 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16112 hardcode_libdir_separator_CXX=:
16114 # Commands to make compiler produce verbose output that lists
16115 # what "hidden" libraries, object files and flags are used when
16116 # linking a shared library.
16117 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16120 # FIXME: insert proper C++ library support
16128 # FIXME: insert proper C++ library support
16133 case $cc_basename in
16136 # FIXME: insert proper C++ library support
16141 # FIXME: insert proper C++ library support
16145 # FIXME: insert proper C++ library support
16152 case $cc_basename in
16154 # Sun C++ 4.2, 5.x and Centerline C++
16155 archive_cmds_need_lc_CXX=yes
16156 no_undefined_flag_CXX=' -zdefs'
16157 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16158 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16159 $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'
16161 hardcode_libdir_flag_spec_CXX='-R$libdir'
16162 hardcode_shlibpath_var_CXX=no
16164 solaris2.[0-5] | solaris2.[0-5].*) ;;
16166 # The compiler driver will combine and reorder linker options,
16167 # but understands '-z linker_flag'.
16168 # Supported since Solaris 2.6 (maybe 2.5.1?)
16169 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16172 link_all_deplibs_CXX=yes
16174 output_verbose_link_cmd='func_echo_all'
16176 # Archives containing C++ object files must be created using
16177 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16178 # necessary to make sure instantiated templates are included
16180 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16183 # Green Hills C++ Compiler
16184 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16186 # The C++ compiler must be used to create the archive.
16187 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16190 # GNU C++ compiler with Solaris linker
16191 if test yes,no = "$GXX,$with_gnu_ld"; then
16192 no_undefined_flag_CXX=' $wl-z ${wl}defs'
16193 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16194 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16195 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16196 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16198 # Commands to make compiler produce verbose output that lists
16199 # what "hidden" libraries, object files and flags are used when
16200 # linking a shared library.
16201 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16203 # g++ 2.7 appears to require '-G' NOT '-shared' on this
16205 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16206 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16207 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16209 # Commands to make compiler produce verbose output that lists
16210 # what "hidden" libraries, object files and flags are used when
16211 # linking a shared library.
16212 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16215 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
16217 solaris2.[0-5] | solaris2.[0-5].*) ;;
16219 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16227 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16228 no_undefined_flag_CXX='$wl-z,text'
16229 archive_cmds_need_lc_CXX=no
16230 hardcode_shlibpath_var_CXX=no
16231 runpath_var='LD_RUN_PATH'
16233 case $cc_basename in
16235 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16236 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16239 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16240 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16245 sysv5* | sco3.2v5* | sco5v6*)
16246 # Note: We CANNOT use -z defs as we might desire, because we do not
16247 # link with -lc, and that would cause any symbols used from libc to
16248 # always be unresolved, which means just about no library would
16249 # ever link correctly. If we're not using GNU ld we use -z text
16250 # though, which does catch some bad symbols but isn't as heavy-handed
16252 no_undefined_flag_CXX='$wl-z,text'
16253 allow_undefined_flag_CXX='$wl-z,nodefs'
16254 archive_cmds_need_lc_CXX=no
16255 hardcode_shlibpath_var_CXX=no
16256 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
16257 hardcode_libdir_separator_CXX=':'
16258 link_all_deplibs_CXX=yes
16259 export_dynamic_flag_spec_CXX='$wl-Bexport'
16260 runpath_var='LD_RUN_PATH'
16262 case $cc_basename in
16264 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16265 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16266 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
16267 '"$old_archive_cmds_CXX"
16268 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
16269 '"$reload_cmds_CXX"
16272 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16273 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16279 case $cc_basename in
16281 # NonStop-UX NCC 3.20
16282 # FIXME: insert proper C++ library support
16286 # FIXME: insert proper C++ library support
16293 # FIXME: insert proper C++ library support
16298 # FIXME: insert proper C++ library support
16303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16304 $as_echo "$ld_shlibs_CXX" >&6; }
16305 test no = "$ld_shlibs_CXX" && can_build_shared=no
16311 ## There is no encapsulation within the following macros, do not change
16312 ## the running order or otherwise move them around unless you know exactly
16313 ## what you are doing...
16314 # Dependencies to place before and after the object being linked:
16315 predep_objects_CXX=
16316 postdep_objects_CXX=
16319 compiler_lib_search_path_CXX=
16321 cat > conftest.$ac_ext <<_LT_EOF
16325 Foo (void) { a = 0; }
16332 _lt_libdeps_save_CFLAGS=$CFLAGS
16333 case "$CC $CFLAGS " in #(
16334 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
16335 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
16336 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
16339 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16340 (eval $ac_compile) 2>&5
16342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16343 test $ac_status = 0; }; then
16344 # Parse the compiler output and extract the necessary
16345 # objects, libraries and library flags.
16347 # Sentinel used to keep track of whether or not we are before
16348 # the conftest object file.
16349 pre_test_object_deps_done=no
16351 for p in `eval "$output_verbose_link_cmd"`; do
16355 # Some compilers place space between "-{L,R}" and the path.
16356 # Remove the space.
16357 if test x-L = "$p" ||
16358 test x-R = "$p"; then
16363 # Expand the sysroot to ease extracting the directories later.
16364 if test -z "$prev"; then
16366 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
16367 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
16368 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
16372 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16374 if test no = "$pre_test_object_deps_done"; then
16377 # Internal compiler library paths should come after those
16378 # provided the user. The postdeps already come after the
16379 # user supplied libs so there is no need to process them.
16380 if test -z "$compiler_lib_search_path_CXX"; then
16381 compiler_lib_search_path_CXX=$prev$p
16383 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
16386 # The "-l" case would never come before the object being
16387 # linked, so don't bother handling this case.
16390 if test -z "$postdeps_CXX"; then
16391 postdeps_CXX=$prev$p
16393 postdeps_CXX="${postdeps_CXX} $prev$p"
16399 *.lto.$objext) ;; # Ignore GCC LTO objects
16401 # This assumes that the test object file only shows up
16402 # once in the compiler output.
16403 if test "$p" = "conftest.$objext"; then
16404 pre_test_object_deps_done=yes
16408 if test no = "$pre_test_object_deps_done"; then
16409 if test -z "$predep_objects_CXX"; then
16410 predep_objects_CXX=$p
16412 predep_objects_CXX="$predep_objects_CXX $p"
16415 if test -z "$postdep_objects_CXX"; then
16416 postdep_objects_CXX=$p
16418 postdep_objects_CXX="$postdep_objects_CXX $p"
16423 *) ;; # Ignore the rest.
16431 echo "libtool.m4: error: problem compiling CXX test program"
16434 $RM -f confest.$objext
16435 CFLAGS=$_lt_libdeps_save_CFLAGS
16437 # PORTME: override above test on systems where it is broken
16440 # Interix 3.5 installs completely hosed .la files for C++, so rather than
16441 # hack all around it, let's just trust "g++" to DTRT.
16442 predep_objects_CXX=
16443 postdep_objects_CXX=
16449 case " $postdeps_CXX " in
16450 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16452 compiler_lib_search_dirs_CXX=
16453 if test -n "${compiler_lib_search_path_CXX}"; then
16454 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
16487 lt_prog_compiler_wl_CXX=
16488 lt_prog_compiler_pic_CXX=
16489 lt_prog_compiler_static_CXX=
16492 # C++ specific cases for pic, static, wl, etc.
16493 if test yes = "$GXX"; then
16494 lt_prog_compiler_wl_CXX='-Wl,'
16495 lt_prog_compiler_static_CXX='-static'
16499 # All AIX code is PIC.
16500 if test ia64 = "$host_cpu"; then
16501 # AIX 5 now supports IA64 processor
16502 lt_prog_compiler_static_CXX='-Bstatic'
16504 lt_prog_compiler_pic_CXX='-fPIC'
16510 # see comment about AmigaOS4 .so support
16511 lt_prog_compiler_pic_CXX='-fPIC'
16514 # FIXME: we need at least 68020 code to build shared libraries, but
16515 # adding the '-m68020' flag to GCC prevents building anything better,
16517 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16522 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16523 # PIC is the default for these OSes.
16525 mingw* | cygwin* | os2* | pw32* | cegcc*)
16526 # This hack is so that the source file can tell whether it is being
16527 # built for inclusion in a dll (and should export symbols for example).
16528 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16529 # (--disable-auto-import) libraries
16530 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16533 lt_prog_compiler_static_CXX='$wl-static'
16537 darwin* | rhapsody*)
16538 # PIC is the default on this platform
16539 # Common symbols not allowed in MH_DYLIB files
16540 lt_prog_compiler_pic_CXX='-fno-common'
16543 # DJGPP does not support shared libraries at all
16544 lt_prog_compiler_pic_CXX=
16547 # PIC is the default for Haiku.
16548 # The "-static" flag exists, but is broken.
16549 lt_prog_compiler_static_CXX=
16552 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16553 # Instead, we relocate shared libraries at runtime.
16556 if test -d /usr/nec; then
16557 lt_prog_compiler_pic_CXX=-Kconform_pic
16561 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16562 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16563 # sets the default TLS model and affects inlining.
16568 lt_prog_compiler_pic_CXX='-fPIC'
16573 # QNX uses GNU C++, but need to define -shared option too, otherwise
16574 # it will coredump.
16575 lt_prog_compiler_pic_CXX='-fPIC -shared'
16578 lt_prog_compiler_pic_CXX='-fPIC'
16584 # All AIX code is PIC.
16585 if test ia64 = "$host_cpu"; then
16586 # AIX 5 now supports IA64 processor
16587 lt_prog_compiler_static_CXX='-Bstatic'
16589 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16593 case $cc_basename in
16595 # Green Hills C++ Compiler
16596 # _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"
16600 mingw* | cygwin* | os2* | pw32* | cegcc*)
16601 # This hack is so that the source file can tell whether it is being
16602 # built for inclusion in a dll (and should export symbols for example).
16603 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16606 case $cc_basename in
16608 lt_prog_compiler_pic_CXX='-KPIC'
16611 # Green Hills C++ Compiler
16612 lt_prog_compiler_pic_CXX='-pic'
16618 freebsd* | dragonfly*)
16619 # FreeBSD uses GNU C++
16621 hpux9* | hpux10* | hpux11*)
16622 case $cc_basename in
16624 lt_prog_compiler_wl_CXX='-Wl,'
16625 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16626 if test ia64 != "$host_cpu"; then
16627 lt_prog_compiler_pic_CXX='+Z'
16631 lt_prog_compiler_wl_CXX='-Wl,'
16632 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16638 lt_prog_compiler_pic_CXX='+Z'
16647 # This is c89, which is MS Visual C++ (no shared libs)
16648 # Anyone wants to do a port?
16650 irix5* | irix6* | nonstopux*)
16651 case $cc_basename in
16653 lt_prog_compiler_wl_CXX='-Wl,'
16654 lt_prog_compiler_static_CXX='-non_shared'
16655 # CC pic flag -KPIC is the default.
16661 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16662 case $cc_basename in
16665 lt_prog_compiler_wl_CXX='--backend -Wl,'
16666 lt_prog_compiler_pic_CXX='-fPIC'
16669 # old Intel C++ for x86_64, which still supported -KPIC.
16670 lt_prog_compiler_wl_CXX='-Wl,'
16671 lt_prog_compiler_pic_CXX='-KPIC'
16672 lt_prog_compiler_static_CXX='-static'
16675 # Intel C++, used to be incompatible with GCC.
16676 # ICC 10 doesn't accept -KPIC any more.
16677 lt_prog_compiler_wl_CXX='-Wl,'
16678 lt_prog_compiler_pic_CXX='-fPIC'
16679 lt_prog_compiler_static_CXX='-static'
16682 # Portland Group C++ compiler
16683 lt_prog_compiler_wl_CXX='-Wl,'
16684 lt_prog_compiler_pic_CXX='-fpic'
16685 lt_prog_compiler_static_CXX='-Bstatic'
16689 # Make sure the PIC flag is empty. It appears that all Alpha
16690 # Linux and Compaq Tru64 Unix objects are PIC.
16691 lt_prog_compiler_pic_CXX=
16692 lt_prog_compiler_static_CXX='-non_shared'
16694 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
16695 # IBM XL 8.0, 9.0 on PPC and BlueGene
16696 lt_prog_compiler_wl_CXX='-Wl,'
16697 lt_prog_compiler_pic_CXX='-qpic'
16698 lt_prog_compiler_static_CXX='-qstaticlink'
16701 case `$CC -V 2>&1 | sed 5q` in
16704 lt_prog_compiler_pic_CXX='-KPIC'
16705 lt_prog_compiler_static_CXX='-Bstatic'
16706 lt_prog_compiler_wl_CXX='-Qoption ld '
16717 case $cc_basename in
16719 lt_prog_compiler_pic_CXX='-W c,exportall'
16725 netbsd* | netbsdelf*-gnu)
16728 # QNX uses GNU C++, but need to define -shared option too, otherwise
16729 # it will coredump.
16730 lt_prog_compiler_pic_CXX='-fPIC -shared'
16732 osf3* | osf4* | osf5*)
16733 case $cc_basename in
16735 lt_prog_compiler_wl_CXX='--backend -Wl,'
16738 # Rational C++ 2.4.1
16739 lt_prog_compiler_pic_CXX='-pic'
16742 # Digital/Compaq C++
16743 lt_prog_compiler_wl_CXX='-Wl,'
16744 # Make sure the PIC flag is empty. It appears that all Alpha
16745 # Linux and Compaq Tru64 Unix objects are PIC.
16746 lt_prog_compiler_pic_CXX=
16747 lt_prog_compiler_static_CXX='-non_shared'
16756 case $cc_basename in
16758 # Sun C++ 4.2, 5.x and Centerline C++
16759 lt_prog_compiler_pic_CXX='-KPIC'
16760 lt_prog_compiler_static_CXX='-Bstatic'
16761 lt_prog_compiler_wl_CXX='-Qoption ld '
16764 # Green Hills C++ Compiler
16765 lt_prog_compiler_pic_CXX='-PIC'
16772 case $cc_basename in
16775 lt_prog_compiler_pic_CXX='-pic'
16776 lt_prog_compiler_static_CXX='-Bstatic'
16780 lt_prog_compiler_pic_CXX='-pic'
16786 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16787 case $cc_basename in
16789 lt_prog_compiler_wl_CXX='-Wl,'
16790 lt_prog_compiler_pic_CXX='-KPIC'
16791 lt_prog_compiler_static_CXX='-Bstatic'
16796 case $cc_basename in
16798 # NonStop-UX NCC 3.20
16799 lt_prog_compiler_pic_CXX='-KPIC'
16808 lt_prog_compiler_can_build_shared_CXX=no
16814 # For platforms that do not support PIC, -DPIC is meaningless:
16816 lt_prog_compiler_pic_CXX=
16819 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16824 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16825 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
16826 $as_echo_n "(cached) " >&6
16828 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
16830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
16831 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
16832 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
16835 # Check to make sure the PIC flag actually works.
16837 if test -n "$lt_prog_compiler_pic_CXX"; then
16838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16839 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16840 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
16841 $as_echo_n "(cached) " >&6
16843 lt_cv_prog_compiler_pic_works_CXX=no
16844 ac_outfile=conftest.$ac_objext
16845 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16846 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
16847 # Insert the option either (1) after the last *FLAGS variable, or
16848 # (2) before a word containing "conftest.", or (3) at the end.
16849 # Note that $ac_compile itself does not contain backslashes and begins
16850 # with a dollar sign (not a hyphen), so the echo should work correctly.
16851 # The option is referenced via a variable to avoid confusing sed.
16852 lt_compile=`echo "$ac_compile" | $SED \
16853 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16854 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16855 -e 's:$: $lt_compiler_flag:'`
16856 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16857 (eval "$lt_compile" 2>conftest.err)
16859 cat conftest.err >&5
16860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16861 if (exit $ac_status) && test -s "$ac_outfile"; then
16862 # The compiler can only warn and ignore the option if not recognized
16863 # So say no if there are warnings other than the usual output.
16864 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16865 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16866 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16867 lt_cv_prog_compiler_pic_works_CXX=yes
16873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16874 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16876 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
16877 case $lt_prog_compiler_pic_CXX in
16879 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16882 lt_prog_compiler_pic_CXX=
16883 lt_prog_compiler_can_build_shared_CXX=no
16893 # Check to make sure the static flag actually works.
16895 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16897 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16898 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
16899 $as_echo_n "(cached) " >&6
16901 lt_cv_prog_compiler_static_works_CXX=no
16902 save_LDFLAGS=$LDFLAGS
16903 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16904 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16905 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16906 # The linker can only warn and ignore the option if not recognized
16907 # So say no if there are warnings
16908 if test -s conftest.err; then
16909 # Append any errors to the config.log.
16910 cat conftest.err 1>&5
16911 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16912 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16913 if diff conftest.exp conftest.er2 >/dev/null; then
16914 lt_cv_prog_compiler_static_works_CXX=yes
16917 lt_cv_prog_compiler_static_works_CXX=yes
16921 LDFLAGS=$save_LDFLAGS
16924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16925 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16927 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
16930 lt_prog_compiler_static_CXX=
16936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16937 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16938 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16939 $as_echo_n "(cached) " >&6
16941 lt_cv_prog_compiler_c_o_CXX=no
16942 $RM -r conftest 2>/dev/null
16946 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16948 lt_compiler_flag="-o out/conftest2.$ac_objext"
16949 # Insert the option either (1) after the last *FLAGS variable, or
16950 # (2) before a word containing "conftest.", or (3) at the end.
16951 # Note that $ac_compile itself does not contain backslashes and begins
16952 # with a dollar sign (not a hyphen), so the echo should work correctly.
16953 lt_compile=`echo "$ac_compile" | $SED \
16954 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16955 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16956 -e 's:$: $lt_compiler_flag:'`
16957 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16958 (eval "$lt_compile" 2>out/conftest.err)
16960 cat out/conftest.err >&5
16961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16964 # The compiler can only warn and ignore the option if not recognized
16965 # So say no if there are warnings
16966 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16967 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16968 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16969 lt_cv_prog_compiler_c_o_CXX=yes
16974 # SGI C++ compiler will create directory out/ii_files/ for
16975 # template instantiation
16976 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16977 $RM out/* && rmdir out
16983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16984 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16989 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16990 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16991 $as_echo_n "(cached) " >&6
16993 lt_cv_prog_compiler_c_o_CXX=no
16994 $RM -r conftest 2>/dev/null
16998 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17000 lt_compiler_flag="-o out/conftest2.$ac_objext"
17001 # Insert the option either (1) after the last *FLAGS variable, or
17002 # (2) before a word containing "conftest.", or (3) at the end.
17003 # Note that $ac_compile itself does not contain backslashes and begins
17004 # with a dollar sign (not a hyphen), so the echo should work correctly.
17005 lt_compile=`echo "$ac_compile" | $SED \
17006 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17007 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17008 -e 's:$: $lt_compiler_flag:'`
17009 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17010 (eval "$lt_compile" 2>out/conftest.err)
17012 cat out/conftest.err >&5
17013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17016 # The compiler can only warn and ignore the option if not recognized
17017 # So say no if there are warnings
17018 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17019 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17020 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17021 lt_cv_prog_compiler_c_o_CXX=yes
17026 # SGI C++ compiler will create directory out/ii_files/ for
17027 # template instantiation
17028 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17029 $RM out/* && rmdir out
17035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17036 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17041 hard_links=nottested
17042 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
17043 # do not overwrite the value of need_locks provided by the user
17044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17045 $as_echo_n "checking if we can lock with hard links... " >&6; }
17048 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17050 ln conftest.a conftest.b 2>&5 || hard_links=no
17051 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17053 $as_echo "$hard_links" >&6; }
17054 if test no = "$hard_links"; then
17055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
17056 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
17065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17066 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17068 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17069 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17072 # If we're using GNU nm, then we don't want the "-C" option.
17073 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
17074 # Without the "-l" option, or with the "-B" option, AIX nm treats
17075 # weak defined symbols like other global defined symbols, whereas
17076 # GNU nm marks them as "W".
17077 # While the 'weak' keyword is ignored in the Export File, we need
17078 # it in the Import File for the 'aix-soname' feature, so we have
17079 # to replace the "-B" option with "-P" for AIX nm.
17080 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17081 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
17083 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
17087 export_symbols_cmds_CXX=$ltdll_cmds
17089 cygwin* | mingw* | cegcc*)
17090 case $cc_basename in
17092 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
17095 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'
17096 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
17100 linux* | k*bsd*-gnu | gnu*)
17101 link_all_deplibs_CXX=no
17104 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17109 $as_echo "$ld_shlibs_CXX" >&6; }
17110 test no = "$ld_shlibs_CXX" && can_build_shared=no
17112 with_gnu_ld_CXX=$with_gnu_ld
17120 # Do we need to explicitly link libc?
17122 case "x$archive_cmds_need_lc_CXX" in
17124 # Assume -lc should be added
17125 archive_cmds_need_lc_CXX=yes
17127 if test yes,yes = "$GCC,$enable_shared"; then
17128 case $archive_cmds_CXX in
17130 # FIXME: we may have to deal with multi-command sequences.
17133 # Test whether the compiler implicitly links with -lc since on some
17134 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17135 # to ld, don't add -lc before -lgcc.
17136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17137 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17138 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
17139 $as_echo_n "(cached) " >&6
17142 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17144 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17145 (eval $ac_compile) 2>&5
17147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17148 test $ac_status = 0; } 2>conftest.err; then
17151 libobjs=conftest.$ac_objext
17153 wl=$lt_prog_compiler_wl_CXX
17154 pic_flag=$lt_prog_compiler_pic_CXX
17160 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17161 allow_undefined_flag_CXX=
17162 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17163 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17166 test $ac_status = 0; }
17168 lt_cv_archive_cmds_need_lc_CXX=no
17170 lt_cv_archive_cmds_need_lc_CXX=yes
17172 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17174 cat conftest.err 1>&5
17179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17180 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17181 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
17249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17250 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17252 library_names_spec=
17253 libname_spec='lib$name'
17257 postuninstall_cmds=
17261 shlibpath_overrides_runpath=unknown
17263 dynamic_linker="$host_os ld.so"
17264 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17265 need_lib_prefix=unknown
17266 hardcode_into_libs=no
17268 # when you set need_version to no, make sure it does not cause -set_version
17269 # flags to be left without arguments
17270 need_version=unknown
17276 version_type=linux # correct to gnu/linux during the next big refactor
17277 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17278 shlibpath_var=LIBPATH
17280 # AIX 3 has no versioning support, so we append a major version to the name.
17281 soname_spec='$libname$release$shared_ext$major'
17285 version_type=linux # correct to gnu/linux during the next big refactor
17288 hardcode_into_libs=yes
17289 if test ia64 = "$host_cpu"; then
17290 # AIX 5 supports IA64
17291 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17292 shlibpath_var=LD_LIBRARY_PATH
17294 # With GCC up to 2.95.x, collect2 would create an import file
17295 # for dependence libraries. The import file would start with
17296 # the line '#! .'. This would cause the generated library to
17297 # depend on '.', always an invalid library. This was fixed in
17298 # development snapshots of GCC prior to 3.0.
17300 aix4 | aix4.[01] | aix4.[01].*)
17301 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17303 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17306 can_build_shared=no
17310 # Using Import Files as archive members, it is possible to support
17311 # filename-based versioning of shared library archives on AIX. While
17312 # this would work for both with and without runtime linking, it will
17313 # prevent static linking of such archives. So we do filename-based
17314 # shared library versioning with .so extension only, which is used
17315 # when both runtime linking and shared linking is enabled.
17316 # Unfortunately, runtime linking may impact performance, so we do
17317 # not want this to be the default eventually. Also, we use the
17318 # versioned .so libs for executables only if there is the -brtl
17319 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17320 # To allow for filename-based versioning support, we need to create
17321 # libNAME.so.V as an archive file, containing:
17322 # *) an Import File, referring to the versioned filename of the
17323 # archive as well as the shared archive member, telling the
17324 # bitwidth (32 or 64) of that shared object, and providing the
17325 # list of exported symbols of that shared object, eventually
17326 # decorated with the 'weak' keyword
17327 # *) the shared object with the F_LOADONLY flag set, to really avoid
17328 # it being seen by the linker.
17329 # At run time we better use the real file rather than another symlink,
17330 # but for link time we create the symlink libNAME.so -> libNAME.so.V
17332 case $with_aix_soname,$aix_use_runtimelinking in
17333 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17334 # soname into executable. Probably we can add versioning support to
17335 # collect2, so additional links can be useful in future.
17336 aix,yes) # traditional libtool
17337 dynamic_linker='AIX unversionable lib.so'
17338 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17339 # instead of lib<name>.a to let people know that these are not
17340 # typical AIX shared libraries.
17341 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17343 aix,no) # traditional AIX only
17344 dynamic_linker='AIX lib.a(lib.so.V)'
17345 # We preserve .a as extension for shared libraries through AIX4.2
17346 # and later when we are not doing run time linking.
17347 library_names_spec='$libname$release.a $libname.a'
17348 soname_spec='$libname$release$shared_ext$major'
17350 svr4,*) # full svr4 only
17351 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17352 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17353 # We do not specify a path in Import Files, so LIBPATH fires.
17354 shlibpath_overrides_runpath=yes
17356 *,yes) # both, prefer svr4
17357 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17358 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17359 # unpreferred sharedlib libNAME.a needs extra handling
17360 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
17361 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
17362 # We do not specify a path in Import Files, so LIBPATH fires.
17363 shlibpath_overrides_runpath=yes
17365 *,no) # both, prefer aix
17366 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17367 library_names_spec='$libname$release.a $libname.a'
17368 soname_spec='$libname$release$shared_ext$major'
17369 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17370 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
17371 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
17374 shlibpath_var=LIBPATH
17381 # Since July 2007 AmigaOS4 officially supports .so libraries.
17382 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17383 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17386 library_names_spec='$libname.ixlibrary $libname.a'
17387 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17388 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
17394 library_names_spec='$libname$shared_ext'
17395 dynamic_linker="$host_os ld.so"
17396 shlibpath_var=LIBRARY_PATH
17400 version_type=linux # correct to gnu/linux during the next big refactor
17402 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17403 soname_spec='$libname$release$shared_ext$major'
17404 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17405 shlibpath_var=LD_LIBRARY_PATH
17406 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17407 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17408 # the default ld.so.conf also contains /usr/contrib/lib and
17409 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17410 # libtool to hard-code these into programs
17413 cygwin* | mingw* | pw32* | cegcc*)
17414 version_type=windows
17419 case $GCC,$cc_basename in
17422 library_names_spec='$libname.dll.a'
17423 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17424 postinstall_cmds='base_file=`basename \$file`~
17425 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17426 dldir=$destdir/`dirname \$dlpath`~
17427 test -d \$dldir || mkdir -p \$dldir~
17428 $install_prog $dir/$dlname \$dldir/$dlname~
17429 chmod a+x \$dldir/$dlname~
17430 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17431 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17433 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17434 dlpath=$dir/\$dldll~
17436 shlibpath_overrides_runpath=yes
17440 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17441 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17445 # MinGW DLLs use traditional 'lib' prefix
17446 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17449 # pw32 DLLs use 'pw' prefix rather than 'lib'
17450 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17453 dynamic_linker='Win32 ld.exe'
17458 libname_spec='$name'
17459 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17460 library_names_spec='$libname.dll.lib'
17464 sys_lib_search_path_spec=
17467 for lt_path in $LIB
17470 # Let DOS variable expansion print the short 8.3 style file name.
17471 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17472 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17475 # Convert to MSYS style.
17476 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17479 # Convert to unix form, then to dos form, then back to unix form
17480 # but this time dos style (no spaces!) so that the unix form looks
17481 # like /cygdrive/c/PROGRA~1:/cygdr...
17482 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17483 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17484 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17487 sys_lib_search_path_spec=$LIB
17488 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17489 # It is most probably a Windows format PATH.
17490 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17492 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17494 # FIXME: find the short name or the path components, as spaces are
17495 # common. (e.g. "Program Files" -> "PROGRA~1")
17499 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17500 postinstall_cmds='base_file=`basename \$file`~
17501 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17502 dldir=$destdir/`dirname \$dlpath`~
17503 test -d \$dldir || mkdir -p \$dldir~
17504 $install_prog $dir/$dlname \$dldir/$dlname'
17505 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17506 dlpath=$dir/\$dldll~
17508 shlibpath_overrides_runpath=yes
17509 dynamic_linker='Win32 link.exe'
17513 # Assume MSVC wrapper
17514 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17515 dynamic_linker='Win32 ld.exe'
17518 # FIXME: first we should search . and the directory the executable is in
17522 darwin* | rhapsody*)
17523 dynamic_linker="$host_os dyld"
17524 version_type=darwin
17527 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17528 soname_spec='$libname$release$major$shared_ext'
17529 shlibpath_overrides_runpath=yes
17530 shlibpath_var=DYLD_LIBRARY_PATH
17531 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17533 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17537 version_type=linux # correct to gnu/linux during the next big refactor
17540 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17541 soname_spec='$libname$release$shared_ext$major'
17542 shlibpath_var=LD_LIBRARY_PATH
17545 freebsd* | dragonfly*)
17546 # DragonFly does not have aout. When/if they implement a new
17547 # versioning mechanism, adjust this.
17548 if test -x /usr/bin/objformat; then
17549 objformat=`/usr/bin/objformat`
17552 freebsd[23].*) objformat=aout ;;
17553 *) objformat=elf ;;
17556 version_type=freebsd-$objformat
17557 case $version_type in
17559 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17560 soname_spec='$libname$release$shared_ext$major'
17565 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17569 shlibpath_var=LD_LIBRARY_PATH
17572 shlibpath_overrides_runpath=yes
17574 freebsd3.[01]* | freebsdelf3.[01]*)
17575 shlibpath_overrides_runpath=yes
17576 hardcode_into_libs=yes
17578 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17579 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17580 shlibpath_overrides_runpath=no
17581 hardcode_into_libs=yes
17583 *) # from 4.6 on, and DragonFly
17584 shlibpath_overrides_runpath=yes
17585 hardcode_into_libs=yes
17591 version_type=linux # correct to gnu/linux during the next big refactor
17594 dynamic_linker="$host_os runtime_loader"
17595 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17596 soname_spec='$libname$release$shared_ext$major'
17597 shlibpath_var=LIBRARY_PATH
17598 shlibpath_overrides_runpath=no
17599 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17600 hardcode_into_libs=yes
17603 hpux9* | hpux10* | hpux11*)
17604 # Give a soname corresponding to the major version so that dld.sl refuses to
17605 # link against other versions.
17612 hardcode_into_libs=yes
17613 dynamic_linker="$host_os dld.so"
17614 shlibpath_var=LD_LIBRARY_PATH
17615 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17616 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17617 soname_spec='$libname$release$shared_ext$major'
17618 if test 32 = "$HPUX_IA64_MODE"; then
17619 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17620 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17622 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17623 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17628 hardcode_into_libs=yes
17629 dynamic_linker="$host_os dld.sl"
17630 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17631 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17632 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17633 soname_spec='$libname$release$shared_ext$major'
17634 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17635 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17639 dynamic_linker="$host_os dld.sl"
17640 shlibpath_var=SHLIB_PATH
17641 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17642 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17643 soname_spec='$libname$release$shared_ext$major'
17646 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17647 postinstall_cmds='chmod 555 $lib'
17648 # or fails outright, so override atomically:
17649 install_override_mode=555
17653 version_type=linux # correct to gnu/linux during the next big refactor
17656 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17657 soname_spec='$libname$release$shared_ext$major'
17658 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17659 shlibpath_var=LD_LIBRARY_PATH
17660 shlibpath_overrides_runpath=no
17661 hardcode_into_libs=yes
17664 irix5* | irix6* | nonstopux*)
17666 nonstopux*) version_type=nonstopux ;;
17668 if test yes = "$lt_cv_prog_gnu_ld"; then
17669 version_type=linux # correct to gnu/linux during the next big refactor
17676 soname_spec='$libname$release$shared_ext$major'
17677 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17679 irix5* | nonstopux*)
17680 libsuff= shlibsuff=
17683 case $LD in # libtool.m4 will add one of these switches to LD
17684 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17685 libsuff= shlibsuff= libmagic=32-bit;;
17686 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17687 libsuff=32 shlibsuff=N32 libmagic=N32;;
17688 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17689 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17690 *) libsuff= shlibsuff= libmagic=never-match;;
17694 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17695 shlibpath_overrides_runpath=no
17696 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17697 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17698 hardcode_into_libs=yes
17701 # No shared lib support for Linux oldld, aout, or coff.
17702 linux*oldld* | linux*aout* | linux*coff*)
17707 version_type=none # Android doesn't support versioned libraries.
17710 library_names_spec='$libname$release$shared_ext'
17711 soname_spec='$libname$release$shared_ext'
17713 shlibpath_var=LD_LIBRARY_PATH
17714 shlibpath_overrides_runpath=yes
17716 # This implies no fast_install, which is unacceptable.
17717 # Some rework will be needed to allow for fast_install
17718 # before this can be enabled.
17719 hardcode_into_libs=yes
17721 dynamic_linker='Android linker'
17722 # Don't embed -rpath directories since the linker doesn't support them.
17723 hardcode_libdir_flag_spec_CXX='-L$libdir'
17726 # This must be glibc/ELF.
17727 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17728 version_type=linux # correct to gnu/linux during the next big refactor
17731 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17732 soname_spec='$libname$release$shared_ext$major'
17733 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17734 shlibpath_var=LD_LIBRARY_PATH
17735 shlibpath_overrides_runpath=no
17737 # Some binutils ld are patched to set DT_RUNPATH
17738 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17739 $as_echo_n "(cached) " >&6
17741 lt_cv_shlibpath_overrides_runpath=no
17742 save_LDFLAGS=$LDFLAGS
17743 save_libdir=$libdir
17744 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17745 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17747 /* end confdefs.h. */
17757 if ac_fn_cxx_try_link "$LINENO"; then :
17758 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17759 lt_cv_shlibpath_overrides_runpath=yes
17762 rm -f core conftest.err conftest.$ac_objext \
17763 conftest$ac_exeext conftest.$ac_ext
17764 LDFLAGS=$save_LDFLAGS
17765 libdir=$save_libdir
17769 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17771 # This implies no fast_install, which is unacceptable.
17772 # Some rework will be needed to allow for fast_install
17773 # before this can be enabled.
17774 hardcode_into_libs=yes
17776 # Ideally, we could use ldconfig to report *all* directores which are
17777 # searched for libraries, however this is still not possible. Aside from not
17778 # being certain /sbin/ldconfig is available, command
17779 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17780 # even though it is searched at run-time. Try to do the best guess by
17781 # appending ld.so.conf contents (and includes) to the search path.
17782 if test -f /etc/ld.so.conf; then
17783 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' ' '`
17784 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17787 # We used to test for /lib/ld.so.1 and disable shared libraries on
17788 # powerpc, because MkLinux only supported shared libraries with the
17789 # GNU dynamic linker. Since this was broken with cross compilers,
17790 # most powerpc-linux boxes support dynamic linking these days and
17791 # people can always --disable-shared, the test was removed, and we
17792 # assume the GNU/Linux dynamic linker is in use.
17793 dynamic_linker='GNU/Linux ld.so'
17800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17801 soname_spec='${libname}${release}${shared_ext}$major'
17802 shlibpath_var=LD_LIBRARY_PATH
17803 shlibpath_overrides_runpath=no
17804 hardcode_into_libs=yes
17805 dynamic_linker='NetBSD ld.elf_so'
17812 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17813 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17814 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17815 dynamic_linker='NetBSD (a.out) ld.so'
17817 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17818 soname_spec='$libname$release$shared_ext$major'
17819 dynamic_linker='NetBSD ld.elf_so'
17821 shlibpath_var=LD_LIBRARY_PATH
17822 shlibpath_overrides_runpath=yes
17823 hardcode_into_libs=yes
17827 version_type=linux # correct to gnu/linux during the next big refactor
17828 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17829 shlibpath_var=LD_LIBRARY_PATH
17830 shlibpath_overrides_runpath=yes
17837 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17838 soname_spec='$libname$release$shared_ext$major'
17839 shlibpath_var=LD_LIBRARY_PATH
17840 shlibpath_overrides_runpath=no
17841 hardcode_into_libs=yes
17842 dynamic_linker='ldqnx.so'
17845 openbsd* | bitrig*)
17847 sys_lib_dlsearch_path_spec=/usr/lib
17849 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17854 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17855 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17856 shlibpath_var=LD_LIBRARY_PATH
17857 shlibpath_overrides_runpath=yes
17861 libname_spec='$name'
17862 version_type=windows
17866 # OS/2 can only load a DLL with a base name of 8 characters or less.
17867 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17868 v=$($ECHO $release$versuffix | tr -d .-);
17869 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17870 $ECHO $n$v`$shared_ext'
17871 library_names_spec='${libname}_dll.$libext'
17872 dynamic_linker='OS/2 ld.exe'
17873 shlibpath_var=BEGINLIBPATH
17874 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17875 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17876 postinstall_cmds='base_file=`basename \$file`~
17877 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17878 dldir=$destdir/`dirname \$dlpath`~
17879 test -d \$dldir || mkdir -p \$dldir~
17880 $install_prog $dir/$dlname \$dldir/$dlname~
17881 chmod a+x \$dldir/$dlname~
17882 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17883 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17885 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17886 dlpath=$dir/\$dldll~
17890 osf3* | osf4* | osf5*)
17894 soname_spec='$libname$release$shared_ext$major'
17895 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17896 shlibpath_var=LD_LIBRARY_PATH
17897 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17898 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17906 version_type=linux # correct to gnu/linux during the next big refactor
17909 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17910 soname_spec='$libname$release$shared_ext$major'
17911 shlibpath_var=LD_LIBRARY_PATH
17912 shlibpath_overrides_runpath=yes
17913 hardcode_into_libs=yes
17914 # ldd complains unless libraries are executable
17915 postinstall_cmds='chmod +x $lib'
17920 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17921 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17922 shlibpath_var=LD_LIBRARY_PATH
17923 shlibpath_overrides_runpath=yes
17924 if test yes = "$with_gnu_ld"; then
17931 version_type=linux # correct to gnu/linux during the next big refactor
17932 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17933 soname_spec='$libname$release$shared_ext$major'
17934 shlibpath_var=LD_LIBRARY_PATH
17935 case $host_vendor in
17937 shlibpath_overrides_runpath=no
17939 runpath_var=LD_RUN_PATH
17947 shlibpath_overrides_runpath=no
17948 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17954 if test -d /usr/nec; then
17955 version_type=linux # correct to gnu/linux during the next big refactor
17956 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17957 soname_spec='$libname$shared_ext.$major'
17958 shlibpath_var=LD_LIBRARY_PATH
17962 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17966 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17967 soname_spec='$libname$release$shared_ext$major'
17968 shlibpath_var=LD_LIBRARY_PATH
17969 shlibpath_overrides_runpath=yes
17970 hardcode_into_libs=yes
17971 if test yes = "$with_gnu_ld"; then
17972 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17974 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17977 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17981 sys_lib_dlsearch_path_spec='/usr/lib'
17985 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17986 version_type=linux # correct to gnu/linux during the next big refactor
17989 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17990 shlibpath_var=LD_LIBRARY_PATH
17991 shlibpath_overrides_runpath=no
17992 hardcode_into_libs=yes
17996 version_type=linux # correct to gnu/linux during the next big refactor
17997 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17998 soname_spec='$libname$release$shared_ext$major'
17999 shlibpath_var=LD_LIBRARY_PATH
18006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18007 $as_echo "$dynamic_linker" >&6; }
18008 test no = "$dynamic_linker" && can_build_shared=no
18010 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18011 if test yes = "$GCC"; then
18012 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18015 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
18016 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
18019 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
18020 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
18023 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
18024 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
18026 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
18027 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
18029 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
18030 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
18071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18072 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18073 hardcode_action_CXX=
18074 if test -n "$hardcode_libdir_flag_spec_CXX" ||
18075 test -n "$runpath_var_CXX" ||
18076 test yes = "$hardcode_automatic_CXX"; then
18078 # We can hardcode non-existent directories.
18079 if test no != "$hardcode_direct_CXX" &&
18080 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18081 # have to relink, otherwise we might link with an installed library
18082 # when we should be linking with a yet-to-be-installed one
18083 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
18084 test no != "$hardcode_minus_L_CXX"; then
18085 # Linking always hardcodes the temporary library directory.
18086 hardcode_action_CXX=relink
18088 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18089 hardcode_action_CXX=immediate
18092 # We cannot hardcode anything, or else we can only hardcode existing
18094 hardcode_action_CXX=unsupported
18096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18097 $as_echo "$hardcode_action_CXX" >&6; }
18099 if test relink = "$hardcode_action_CXX" ||
18100 test yes = "$inherit_rpath_CXX"; then
18101 # Fast installation is not supported
18102 enable_fast_install=no
18103 elif test yes = "$shlibpath_overrides_runpath" ||
18104 test no = "$enable_shared"; then
18105 # Fast installation is not necessary
18106 enable_fast_install=needless
18115 fi # test -n "$compiler"
18118 CFLAGS=$lt_save_CFLAGS
18122 with_gnu_ld=$lt_save_with_gnu_ld
18123 lt_cv_path_LDCXX=$lt_cv_path_LD
18124 lt_cv_path_LD=$lt_save_path_LD
18125 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18126 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18127 fi # test yes != "$_lt_caught_CXX_error"
18130 ac_cpp='$CPP $CPPFLAGS'
18131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18136 # Check whether --enable-largefile was given.
18137 if test "${enable_largefile+set}" = set; then :
18138 enableval=$enable_largefile;
18141 if test "$enable_largefile" != no; then
18143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
18144 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
18145 if ${ac_cv_sys_largefile_CC+:} false; then :
18146 $as_echo_n "(cached) " >&6
18148 ac_cv_sys_largefile_CC=no
18149 if test "$GCC" != yes; then
18152 # IRIX 6.2 and later do not support large files by default,
18153 # so use the C compiler's -n32 option if that helps.
18154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18155 /* end confdefs.h. */
18156 #include <sys/types.h>
18157 /* Check that off_t can represent 2**63 - 1 correctly.
18158 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18159 since some C++ compilers masquerading as C compilers
18160 incorrectly reject 9223372036854775807. */
18161 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
18162 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18163 && LARGE_OFF_T % 2147483647 == 1)
18173 if ac_fn_c_try_compile "$LINENO"; then :
18176 rm -f core conftest.err conftest.$ac_objext
18178 if ac_fn_c_try_compile "$LINENO"; then :
18179 ac_cv_sys_largefile_CC=' -n32'; break
18181 rm -f core conftest.err conftest.$ac_objext
18185 rm -f conftest.$ac_ext
18188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
18189 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
18190 if test "$ac_cv_sys_largefile_CC" != no; then
18191 CC=$CC$ac_cv_sys_largefile_CC
18194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18195 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
18196 if ${ac_cv_sys_file_offset_bits+:} false; then :
18197 $as_echo_n "(cached) " >&6
18200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18201 /* end confdefs.h. */
18202 #include <sys/types.h>
18203 /* Check that off_t can represent 2**63 - 1 correctly.
18204 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18205 since some C++ compilers masquerading as C compilers
18206 incorrectly reject 9223372036854775807. */
18207 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
18208 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18209 && LARGE_OFF_T % 2147483647 == 1)
18219 if ac_fn_c_try_compile "$LINENO"; then :
18220 ac_cv_sys_file_offset_bits=no; break
18222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18224 /* end confdefs.h. */
18225 #define _FILE_OFFSET_BITS 64
18226 #include <sys/types.h>
18227 /* Check that off_t can represent 2**63 - 1 correctly.
18228 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18229 since some C++ compilers masquerading as C compilers
18230 incorrectly reject 9223372036854775807. */
18231 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
18232 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18233 && LARGE_OFF_T % 2147483647 == 1)
18243 if ac_fn_c_try_compile "$LINENO"; then :
18244 ac_cv_sys_file_offset_bits=64; break
18246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18247 ac_cv_sys_file_offset_bits=unknown
18251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
18252 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
18253 case $ac_cv_sys_file_offset_bits in #(
18256 cat >>confdefs.h <<_ACEOF
18257 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18262 if test $ac_cv_sys_file_offset_bits = unknown; then
18263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
18264 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
18265 if ${ac_cv_sys_large_files+:} false; then :
18266 $as_echo_n "(cached) " >&6
18269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18270 /* end confdefs.h. */
18271 #include <sys/types.h>
18272 /* Check that off_t can represent 2**63 - 1 correctly.
18273 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18274 since some C++ compilers masquerading as C compilers
18275 incorrectly reject 9223372036854775807. */
18276 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
18277 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18278 && LARGE_OFF_T % 2147483647 == 1)
18288 if ac_fn_c_try_compile "$LINENO"; then :
18289 ac_cv_sys_large_files=no; break
18291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18293 /* end confdefs.h. */
18294 #define _LARGE_FILES 1
18295 #include <sys/types.h>
18296 /* Check that off_t can represent 2**63 - 1 correctly.
18297 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18298 since some C++ compilers masquerading as C compilers
18299 incorrectly reject 9223372036854775807. */
18300 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
18301 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18302 && LARGE_OFF_T % 2147483647 == 1)
18312 if ac_fn_c_try_compile "$LINENO"; then :
18313 ac_cv_sys_large_files=1; break
18315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18316 ac_cv_sys_large_files=unknown
18320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
18321 $as_echo "$ac_cv_sys_large_files" >&6; }
18322 case $ac_cv_sys_large_files in #(
18325 cat >>confdefs.h <<_ACEOF
18326 #define _LARGE_FILES $ac_cv_sys_large_files
18338 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18339 if test -n "$ac_tool_prefix"; then
18340 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18341 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18343 $as_echo_n "checking for $ac_word... " >&6; }
18344 if ${ac_cv_path_PKG_CONFIG+:} false; then :
18345 $as_echo_n "(cached) " >&6
18347 case $PKG_CONFIG in
18349 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18353 for as_dir in $PATH
18356 test -z "$as_dir" && as_dir=.
18357 for ac_exec_ext in '' $ac_executable_extensions; do
18358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18359 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18370 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18371 if test -n "$PKG_CONFIG"; then
18372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18373 $as_echo "$PKG_CONFIG" >&6; }
18375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18376 $as_echo "no" >&6; }
18381 if test -z "$ac_cv_path_PKG_CONFIG"; then
18382 ac_pt_PKG_CONFIG=$PKG_CONFIG
18383 # Extract the first word of "pkg-config", so it can be a program name with args.
18384 set dummy pkg-config; ac_word=$2
18385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18386 $as_echo_n "checking for $ac_word... " >&6; }
18387 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
18388 $as_echo_n "(cached) " >&6
18390 case $ac_pt_PKG_CONFIG in
18392 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18396 for as_dir in $PATH
18399 test -z "$as_dir" && as_dir=.
18400 for ac_exec_ext in '' $ac_executable_extensions; do
18401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18402 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18413 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18414 if test -n "$ac_pt_PKG_CONFIG"; then
18415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
18416 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
18418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18419 $as_echo "no" >&6; }
18422 if test "x$ac_pt_PKG_CONFIG" = x; then
18425 case $cross_compiling:$ac_tool_warned in
18427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18428 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18429 ac_tool_warned=yes ;;
18431 PKG_CONFIG=$ac_pt_PKG_CONFIG
18434 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18438 if test -n "$PKG_CONFIG"; then
18439 _pkg_min_version=0.20
18440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
18441 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
18442 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18444 $as_echo "yes" >&6; }
18446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18447 $as_echo "no" >&6; }
18453 RAGEL=${RAGEL-"${am_missing_run}ragel"}
18456 GIT=${GIT-"${am_missing_run}git"}
18478 HB_LIBTOOL_VERSION_INFO=10800:1:10800
18482 # Check whether --with-libstdc++ was given.
18483 if test "${with_libstdc__+set}" = set; then :
18484 withval=$with_libstdc__; with_libstdcxx=$withval
18489 if test "x$with_libstdcxx" = "xyes"; then
18490 WITH_LIBSTDCXX_TRUE=
18491 WITH_LIBSTDCXX_FALSE='#'
18493 WITH_LIBSTDCXX_TRUE='#'
18494 WITH_LIBSTDCXX_FALSE=
18504 gtk_doc_requires="gtk-doc >= 1.15"
18505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk-doc" >&5
18506 $as_echo_n "checking for gtk-doc... " >&6; }
18507 if test -n "$PKG_CONFIG" && \
18508 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gtk_doc_requires\""; } >&5
18509 ($PKG_CONFIG --exists --print-errors "$gtk_doc_requires") 2>&5
18511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18512 test $ac_status = 0; }; then
18517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gtk_doc" >&5
18518 $as_echo "$have_gtk_doc" >&6; }
18520 if test "$have_gtk_doc" = "no"; then
18521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18522 You will not be able to create source packages with 'make dist'
18523 because $gtk_doc_requires is not found." >&5
18524 $as_echo "$as_me: WARNING:
18525 You will not be able to create source packages with 'make dist'
18526 because $gtk_doc_requires is not found." >&2;}
18529 # Extract the first word of "gtkdoc-check", so it can be a program name with args.
18530 set dummy gtkdoc-check; ac_word=$2
18531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18532 $as_echo_n "checking for $ac_word... " >&6; }
18533 if ${ac_cv_prog_GTKDOC_CHECK+:} false; then :
18534 $as_echo_n "(cached) " >&6
18536 if test -n "$GTKDOC_CHECK"; then
18537 ac_cv_prog_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test.
18539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18540 for as_dir in $PATH
18543 test -z "$as_dir" && as_dir=.
18544 for ac_exec_ext in '' $ac_executable_extensions; do
18545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18546 ac_cv_prog_GTKDOC_CHECK="gtkdoc-check.test"
18547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18556 GTKDOC_CHECK=$ac_cv_prog_GTKDOC_CHECK
18557 if test -n "$GTKDOC_CHECK"; then
18558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
18559 $as_echo "$GTKDOC_CHECK" >&6; }
18561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18562 $as_echo "no" >&6; }
18566 # Extract the first word of "gtkdoc-check", so it can be a program name with args.
18567 set dummy gtkdoc-check; ac_word=$2
18568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18569 $as_echo_n "checking for $ac_word... " >&6; }
18570 if ${ac_cv_path_GTKDOC_CHECK_PATH+:} false; then :
18571 $as_echo_n "(cached) " >&6
18573 case $GTKDOC_CHECK_PATH in
18575 ac_cv_path_GTKDOC_CHECK_PATH="$GTKDOC_CHECK_PATH" # Let the user override the test with a path.
18578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18579 for as_dir in $PATH
18582 test -z "$as_dir" && as_dir=.
18583 for ac_exec_ext in '' $ac_executable_extensions; do
18584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18585 ac_cv_path_GTKDOC_CHECK_PATH="$as_dir/$ac_word$ac_exec_ext"
18586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18596 GTKDOC_CHECK_PATH=$ac_cv_path_GTKDOC_CHECK_PATH
18597 if test -n "$GTKDOC_CHECK_PATH"; then
18598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK_PATH" >&5
18599 $as_echo "$GTKDOC_CHECK_PATH" >&6; }
18601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18602 $as_echo "no" >&6; }
18606 for ac_prog in gtkdoc-rebase
18608 # Extract the first word of "$ac_prog", so it can be a program name with args.
18609 set dummy $ac_prog; ac_word=$2
18610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18611 $as_echo_n "checking for $ac_word... " >&6; }
18612 if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
18613 $as_echo_n "(cached) " >&6
18615 case $GTKDOC_REBASE in
18617 ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
18620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18621 for as_dir in $PATH
18624 test -z "$as_dir" && as_dir=.
18625 for ac_exec_ext in '' $ac_executable_extensions; do
18626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18627 ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
18628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18638 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
18639 if test -n "$GTKDOC_REBASE"; then
18640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
18641 $as_echo "$GTKDOC_REBASE" >&6; }
18643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18644 $as_echo "no" >&6; }
18648 test -n "$GTKDOC_REBASE" && break
18650 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
18652 # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
18653 set dummy gtkdoc-mkpdf; ac_word=$2
18654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18655 $as_echo_n "checking for $ac_word... " >&6; }
18656 if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
18657 $as_echo_n "(cached) " >&6
18659 case $GTKDOC_MKPDF in
18661 ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
18664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18665 for as_dir in $PATH
18668 test -z "$as_dir" && as_dir=.
18669 for ac_exec_ext in '' $ac_executable_extensions; do
18670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18671 ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
18672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18682 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
18683 if test -n "$GTKDOC_MKPDF"; then
18684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
18685 $as_echo "$GTKDOC_MKPDF" >&6; }
18687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18688 $as_echo "no" >&6; }
18694 # Check whether --with-html-dir was given.
18695 if test "${with_html_dir+set}" = set; then :
18696 withval=$with_html_dir;
18698 with_html_dir='${datadir}/gtk-doc/html'
18701 HTML_DIR="$with_html_dir"
18704 # Check whether --enable-gtk-doc was given.
18705 if test "${enable_gtk_doc+set}" = set; then :
18706 enableval=$enable_gtk_doc;
18712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
18713 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
18714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
18715 $as_echo "$enable_gtk_doc" >&6; }
18717 if test "x$enable_gtk_doc" = "xyes" && test "$have_gtk_doc" = "no"; then
18719 You must have $gtk_doc_requires installed to build documentation for
18720 $PACKAGE_NAME. Please install gtk-doc or disable building the
18721 documentation by adding '--disable-gtk-doc' to '$0'." "$LINENO" 5
18724 if test "x$PACKAGE_NAME" != "xglib"; then
18727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5
18728 $as_echo_n "checking for GTKDOC_DEPS... " >&6; }
18730 if test -n "$PKG_CONFIG"; then
18731 if test -n "$GTKDOC_DEPS_CFLAGS"; then
18732 pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
18734 if test -n "$PKG_CONFIG" && \
18735 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0\""; } >&5
18736 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5
18738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18739 test $ac_status = 0; }; then
18740 pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null`
18748 if test -n "$PKG_CONFIG"; then
18749 if test -n "$GTKDOC_DEPS_LIBS"; then
18750 pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
18752 if test -n "$PKG_CONFIG" && \
18753 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0\""; } >&5
18754 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5
18756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18757 test $ac_status = 0; }; then
18758 pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null`
18769 if test $pkg_failed = yes; then
18771 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18772 _pkg_short_errors_supported=yes
18774 _pkg_short_errors_supported=no
18776 if test $_pkg_short_errors_supported = yes; then
18777 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0"`
18779 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0"`
18781 # Put the nasty error message in config.log where it belongs
18782 echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
18784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18785 $as_echo "no" >&6; }
18787 elif test $pkg_failed = untried; then
18790 GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
18791 GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
18792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18793 $as_echo "yes" >&6; }
18798 # Check whether --enable-gtk-doc-html was given.
18799 if test "${enable_gtk_doc_html+set}" = set; then :
18800 enableval=$enable_gtk_doc_html;
18802 enable_gtk_doc_html=yes
18805 # Check whether --enable-gtk-doc-pdf was given.
18806 if test "${enable_gtk_doc_pdf+set}" = set; then :
18807 enableval=$enable_gtk_doc_pdf;
18809 enable_gtk_doc_pdf=no
18813 if test -z "$GTKDOC_MKPDF"; then
18814 enable_gtk_doc_pdf=no
18817 if test -z "$AM_DEFAULT_VERBOSITY"; then
18818 AM_DEFAULT_VERBOSITY=1
18822 if test x$have_gtk_doc = xyes; then
18824 HAVE_GTK_DOC_FALSE='#'
18826 HAVE_GTK_DOC_TRUE='#'
18827 HAVE_GTK_DOC_FALSE=
18830 if test x$enable_gtk_doc = xyes; then
18831 ENABLE_GTK_DOC_TRUE=
18832 ENABLE_GTK_DOC_FALSE='#'
18834 ENABLE_GTK_DOC_TRUE='#'
18835 ENABLE_GTK_DOC_FALSE=
18838 if test x$enable_gtk_doc_html = xyes; then
18839 GTK_DOC_BUILD_HTML_TRUE=
18840 GTK_DOC_BUILD_HTML_FALSE='#'
18842 GTK_DOC_BUILD_HTML_TRUE='#'
18843 GTK_DOC_BUILD_HTML_FALSE=
18846 if test x$enable_gtk_doc_pdf = xyes; then
18847 GTK_DOC_BUILD_PDF_TRUE=
18848 GTK_DOC_BUILD_PDF_FALSE='#'
18850 GTK_DOC_BUILD_PDF_TRUE='#'
18851 GTK_DOC_BUILD_PDF_FALSE=
18854 if test -n "$LIBTOOL"; then
18855 GTK_DOC_USE_LIBTOOL_TRUE=
18856 GTK_DOC_USE_LIBTOOL_FALSE='#'
18858 GTK_DOC_USE_LIBTOOL_TRUE='#'
18859 GTK_DOC_USE_LIBTOOL_FALSE=
18862 if test -n "$GTKDOC_REBASE"; then
18863 GTK_DOC_USE_REBASE_TRUE=
18864 GTK_DOC_USE_REBASE_FALSE='#'
18866 GTK_DOC_USE_REBASE_TRUE='#'
18867 GTK_DOC_USE_REBASE_FALSE=
18871 if test "x$enable_gtk_doc" = xyes; then
18876 # Functions and headers
18877 for ac_func in atexit mprotect sysconf getpagesize mmap isatty newlocale strtod_l
18879 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18880 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18881 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18882 cat >>confdefs.h <<_ACEOF
18883 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18892 for ac_func in round
18894 ac_fn_c_check_func "$LINENO" "round" "ac_cv_func_round"
18895 if test "x$ac_cv_func_round" = xyes; then :
18896 cat >>confdefs.h <<_ACEOF
18897 #define HAVE_ROUND 1
18901 ac_fn_c_check_decl "$LINENO" "round" "ac_cv_have_decl_round" "#include <math.h>
18903 if test "x$ac_cv_have_decl_round" = xyes; then :
18909 cat >>confdefs.h <<_ACEOF
18910 #define HAVE_DECL_ROUND $ac_have_decl
18918 for ac_header in unistd.h sys/mman.h xlocale.h stdbool.h
18920 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18921 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18922 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18923 cat >>confdefs.h <<_ACEOF
18924 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18934 # The cast to long int works around a bug in the HP C Compiler,
18935 # see AC_CHECK_SIZEOF for more information.
18936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of struct{char;}" >&5
18937 $as_echo_n "checking alignment of struct{char;}... " >&6; }
18938 if ${ac_cv_alignof_struct_char__+:} false; then :
18939 $as_echo_n "(cached) " >&6
18941 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_struct_char__" "$ac_includes_default
18943 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
18945 typedef struct { char x; struct{char;} y; } ac__type_alignof_;"; then :
18948 if test "$ac_cv_type_struct_char__" = yes; then
18949 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18950 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18951 as_fn_error 77 "cannot compute alignment of struct{char;}
18952 See \`config.log' for more details" "$LINENO" 5; }
18954 ac_cv_alignof_struct_char__=0
18959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_struct_char__" >&5
18960 $as_echo "$ac_cv_alignof_struct_char__" >&6; }
18964 cat >>confdefs.h <<_ACEOF
18965 #define ALIGNOF_STRUCT_CHAR__ $ac_cv_alignof_struct_char__
18969 if test "x$GCC" = "xyes"; then
18971 # Make symbols link locally
18972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Bsymbolic-functions" >&5
18973 $as_echo_n "checking whether the linker accepts -Bsymbolic-functions... " >&6; }
18974 if ${ax_cv_check_ldflags___Bsymbolic_functions+:} false; then :
18975 $as_echo_n "(cached) " >&6
18978 ax_check_save_flags=$LDFLAGS
18979 LDFLAGS="$LDFLAGS -Bsymbolic-functions"
18980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18981 /* end confdefs.h. */
18991 if ac_fn_c_try_link "$LINENO"; then :
18992 ax_cv_check_ldflags___Bsymbolic_functions=yes
18994 ax_cv_check_ldflags___Bsymbolic_functions=no
18996 rm -f core conftest.err conftest.$ac_objext \
18997 conftest$ac_exeext conftest.$ac_ext
18998 LDFLAGS=$ax_check_save_flags
19000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Bsymbolic_functions" >&5
19001 $as_echo "$ax_cv_check_ldflags___Bsymbolic_functions" >&6; }
19002 if test "x$ax_cv_check_ldflags___Bsymbolic_functions" = xyes; then :
19003 LDFLAGS="$LDFLAGS -Bsymbolic-functions"
19009 # Make it possible to not link to libstdc++
19010 # No threadsafe statics in C++ as we do it ourselves.
19011 # We don't use these features, so it's safe to disable them
19012 # even in the cases where we DO link to libstdc++.
19013 # Put -fno-rtti before $CXXFLAGS such that users can re-enable it
19014 # by overriding CXXFLAGS.
19015 CXXFLAGS="-fno-rtti $CXXFLAGS -fno-exceptions -fno-threadsafe-statics"
19017 # Assorted warnings
19018 CXXFLAGS="$CXXFLAGS -Wcast-align"
19024 # Hide inline methods
19025 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
19031 if test "x$ac_cv_alignof_struct_char__" != x1; then
19032 # Request byte alignment
19033 CXXFLAGS="$CXXFLAGS -mstructure-size-boundary=8"
19039 if test "x$GCC" = "xyes"; then
19049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native Win32" >&5
19050 $as_echo_n "checking for native Win32... " >&6; }
19056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hb_os_win32" >&5
19057 $as_echo "$hb_os_win32" >&6; }
19058 if test "$hb_os_win32" = "yes"; then
19068 if test "$hb_os_win32" = no; then
19074 ac_cpp='$CPP $CPPFLAGS'
19075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19081 # We used to check for pthread.h first, but this fails if pthread.h
19082 # requires special compiler flags (e.g. on Tru64 or Sequent).
19083 # It gets checked for in the link test anyway.
19085 # First of all, check if the user has set any of the PTHREAD_LIBS,
19086 # etcetera environment variables, and if threads linking works using
19088 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
19089 ax_pthread_save_CC="$CC"
19090 ax_pthread_save_CFLAGS="$CFLAGS"
19091 ax_pthread_save_LIBS="$LIBS"
19092 if test "x$PTHREAD_CC" != "x"; then :
19095 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19096 LIBS="$PTHREAD_LIBS $LIBS"
19097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
19098 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
19099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19100 /* end confdefs.h. */
19102 /* Override any GCC internal prototype to avoid an error.
19103 Use char because int might match the return type of a GCC
19104 builtin and then its argument prototype would still apply. */
19108 char pthread_join ();
19112 return pthread_join ();
19117 if ac_fn_c_try_link "$LINENO"; then :
19120 rm -f core conftest.err conftest.$ac_objext \
19121 conftest$ac_exeext conftest.$ac_ext
19122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
19123 $as_echo "$ax_pthread_ok" >&6; }
19124 if test "x$ax_pthread_ok" = "xno"; then
19128 CC="$ax_pthread_save_CC"
19129 CFLAGS="$ax_pthread_save_CFLAGS"
19130 LIBS="$ax_pthread_save_LIBS"
19133 # We must check for the threads library under a number of different
19134 # names; the ordering is very important because some systems
19135 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
19136 # libraries is broken (non-POSIX).
19138 # Create a list of thread flags to try. Items starting with a "-" are
19139 # C compiler flags, and other items are library names, except for "none"
19140 # which indicates that we try without any flags at all, and "pthread-config"
19141 # which is a program returning the flags for the Pth emulation library.
19143 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
19145 # The ordering *is* (sometimes) important. Some notes on the
19146 # individual items follow:
19148 # pthreads: AIX (must check this before -lpthread)
19149 # none: in case threads are in libc; should be tried before -Kthread and
19150 # other compiler flags to prevent continual compiler warnings
19151 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
19152 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
19153 # (Note: HP C rejects this with "bad form for `-t' option")
19154 # -pthreads: Solaris/gcc (Note: HP C also rejects)
19155 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
19156 # doesn't hurt to check since this sometimes defines pthreads and
19157 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
19158 # is present but should not be used directly; and before -mthreads,
19159 # because the compiler interprets this as "-mt" + "-hreads")
19160 # -mthreads: Mingw32/gcc, Lynx/gcc
19161 # pthread: Linux, etcetera
19162 # --thread-safe: KAI C++
19163 # pthread-config: use pthread-config program (for GNU Pth library)
19169 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
19170 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
19172 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
19177 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
19178 # multi-threading and also sets -lpthread."
19180 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
19185 # IBM z/OS requires a feature-test macro to be defined in order to
19186 # enable POSIX threads at all, so give the user a hint if this is
19187 # not set. (We don't define these ourselves, as they can affect
19188 # other portions of the system API in unpredictable ways.)
19190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19191 /* end confdefs.h. */
19193 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
19194 AX_PTHREAD_ZOS_MISSING
19198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19199 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
19200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
19201 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
19209 # On Solaris (at least, for some versions), libc contains stubbed
19210 # (non-functional) versions of the pthreads routines, so link-based
19211 # tests will erroneously succeed. (N.B.: The stubs are missing
19212 # pthread_cleanup_push, or rather a function called by this macro,
19213 # so we could check for that, but who knows whether they'll stub
19214 # that too in a future libc.) So we'll check first for the
19215 # standard Solaris way of linking pthreads (-mt -lpthread).
19217 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
19221 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
19223 if test "x$GCC" = "xyes"; then :
19224 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
19227 # The presence of a feature test macro requesting re-entrant function
19228 # definitions is, on some systems, a strong hint that pthreads support is
19229 # correctly enabled
19232 darwin* | hpux* | linux* | osf* | solaris*)
19233 ax_pthread_check_macro="_REENTRANT"
19237 ax_pthread_check_macro="_THREAD_SAFE"
19241 ax_pthread_check_macro="--"
19244 if test "x$ax_pthread_check_macro" = "x--"; then :
19245 ax_pthread_check_cond=0
19247 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
19250 # Are we compiling with Clang?
19252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
19253 $as_echo_n "checking whether $CC is Clang... " >&6; }
19254 if ${ax_cv_PTHREAD_CLANG+:} false; then :
19255 $as_echo_n "(cached) " >&6
19257 ax_cv_PTHREAD_CLANG=no
19258 # Note that Autoconf sets GCC=yes for Clang as well as GCC
19259 if test "x$GCC" = "xyes"; then
19260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19261 /* end confdefs.h. */
19262 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
19263 # if defined(__clang__) && defined(__llvm__)
19264 AX_PTHREAD_CC_IS_CLANG
19268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19269 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
19270 ax_cv_PTHREAD_CLANG=yes
19277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
19278 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
19279 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
19281 ax_pthread_clang_warning=no
19283 # Clang needs special handling, because older versions handle the -pthread
19284 # option in a rather... idiosyncratic way
19286 if test "x$ax_pthread_clang" = "xyes"; then
19288 # Clang takes -pthread; it has never supported any other flag
19290 # (Note 1: This will need to be revisited if a system that Clang
19291 # supports has POSIX threads in a separate library. This tends not
19292 # to be the way of modern systems, but it's conceivable.)
19294 # (Note 2: On some systems, notably Darwin, -pthread is not needed
19295 # to get POSIX threads support; the API is always present and
19296 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
19297 # -pthread does define _REENTRANT, and while the Darwin headers
19298 # ignore this macro, third-party headers might not.)
19300 PTHREAD_CFLAGS="-pthread"
19305 # However, older versions of Clang make a point of warning the user
19306 # that, in an invocation where only linking and no compilation is
19307 # taking place, the -pthread option has no effect ("argument unused
19308 # during compilation"). They expect -pthread to be passed in only
19309 # when source code is being compiled.
19311 # Problem is, this is at odds with the way Automake and most other
19312 # C build frameworks function, which is that the same flags used in
19313 # compilation (CFLAGS) are also used in linking. Many systems
19314 # supported by AX_PTHREAD require exactly this for POSIX threads
19315 # support, and in fact it is often not straightforward to specify a
19316 # flag that is used only in the compilation phase and not in
19317 # linking. Such a scenario is extremely rare in practice.
19319 # Even though use of the -pthread flag in linking would only print
19320 # a warning, this can be a nuisance for well-run software projects
19321 # that build with -Werror. So if the active version of Clang has
19322 # this misfeature, we search for an option to squash it.
19324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
19325 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
19326 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
19327 $as_echo_n "(cached) " >&6
19329 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
19330 # Create an alternate version of $ac_link that compiles and
19331 # links in two steps (.c -> .o, .o -> exe) instead of one
19332 # (.c -> exe), because the warning occurs only in the second
19334 ax_pthread_save_ac_link="$ac_link"
19335 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
19336 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
19337 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
19338 ax_pthread_save_CFLAGS="$CFLAGS"
19339 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
19340 if test "x$ax_pthread_try" = "xunknown"; then :
19343 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
19344 ac_link="$ax_pthread_save_ac_link"
19345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19346 /* end confdefs.h. */
19347 int main(void){return 0;}
19349 if ac_fn_c_try_link "$LINENO"; then :
19350 ac_link="$ax_pthread_2step_ac_link"
19351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19352 /* end confdefs.h. */
19353 int main(void){return 0;}
19355 if ac_fn_c_try_link "$LINENO"; then :
19358 rm -f core conftest.err conftest.$ac_objext \
19359 conftest$ac_exeext conftest.$ac_ext
19362 rm -f core conftest.err conftest.$ac_objext \
19363 conftest$ac_exeext conftest.$ac_ext
19365 ac_link="$ax_pthread_save_ac_link"
19366 CFLAGS="$ax_pthread_save_CFLAGS"
19367 if test "x$ax_pthread_try" = "x"; then :
19370 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
19373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
19374 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
19376 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
19378 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
19381 fi # $ax_pthread_clang = yes
19383 if test "x$ax_pthread_ok" = "xno"; then
19384 for ax_pthread_try_flag in $ax_pthread_flags; do
19386 case $ax_pthread_try_flag in
19388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
19389 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
19393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
19394 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
19395 PTHREAD_CFLAGS="-mt"
19396 PTHREAD_LIBS="-lpthread"
19400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
19401 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
19402 PTHREAD_CFLAGS="$ax_pthread_try_flag"
19406 # Extract the first word of "pthread-config", so it can be a program name with args.
19407 set dummy pthread-config; ac_word=$2
19408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19409 $as_echo_n "checking for $ac_word... " >&6; }
19410 if ${ac_cv_prog_ax_pthread_config+:} false; then :
19411 $as_echo_n "(cached) " >&6
19413 if test -n "$ax_pthread_config"; then
19414 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
19416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19417 for as_dir in $PATH
19420 test -z "$as_dir" && as_dir=.
19421 for ac_exec_ext in '' $ac_executable_extensions; do
19422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19423 ac_cv_prog_ax_pthread_config="yes"
19424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19431 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
19434 ax_pthread_config=$ac_cv_prog_ax_pthread_config
19435 if test -n "$ax_pthread_config"; then
19436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
19437 $as_echo "$ax_pthread_config" >&6; }
19439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19440 $as_echo "no" >&6; }
19444 if test "x$ax_pthread_config" = "xno"; then :
19447 PTHREAD_CFLAGS="`pthread-config --cflags`"
19448 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
19452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
19453 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
19454 PTHREAD_LIBS="-l$ax_pthread_try_flag"
19458 ax_pthread_save_CFLAGS="$CFLAGS"
19459 ax_pthread_save_LIBS="$LIBS"
19460 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19461 LIBS="$PTHREAD_LIBS $LIBS"
19463 # Check for various functions. We must include pthread.h,
19464 # since some functions may be macros. (On the Sequent, we
19465 # need a special flag -Kthread to make this header compile.)
19466 # We check for pthread_join because it is in -lpthread on IRIX
19467 # while pthread_create is in libc. We check for pthread_attr_init
19468 # due to DEC craziness with -lpthreads. We check for
19469 # pthread_cleanup_push because it is one of the few pthread
19470 # functions on Solaris that doesn't have a non-functional libc stub.
19471 # We try pthread_create on general principles.
19473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19474 /* end confdefs.h. */
19475 #include <pthread.h>
19476 # if $ax_pthread_check_cond
19477 # error "$ax_pthread_check_macro must be defined"
19479 static void routine(void *a) { a = 0; }
19480 static void *start_routine(void *a) { return a; }
19484 pthread_t th; pthread_attr_t attr;
19485 pthread_create(&th, 0, start_routine, 0);
19486 pthread_join(th, 0);
19487 pthread_attr_init(&attr);
19488 pthread_cleanup_push(routine, 0);
19489 pthread_cleanup_pop(0) /* ; */
19494 if ac_fn_c_try_link "$LINENO"; then :
19497 rm -f core conftest.err conftest.$ac_objext \
19498 conftest$ac_exeext conftest.$ac_ext
19500 CFLAGS="$ax_pthread_save_CFLAGS"
19501 LIBS="$ax_pthread_save_LIBS"
19503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
19504 $as_echo "$ax_pthread_ok" >&6; }
19505 if test "x$ax_pthread_ok" = "xyes"; then :
19514 # Various other checks:
19515 if test "x$ax_pthread_ok" = "xyes"; then
19516 ax_pthread_save_CFLAGS="$CFLAGS"
19517 ax_pthread_save_LIBS="$LIBS"
19518 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19519 LIBS="$PTHREAD_LIBS $LIBS"
19521 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
19522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
19523 $as_echo_n "checking for joinable pthread attribute... " >&6; }
19524 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
19525 $as_echo_n "(cached) " >&6
19527 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
19528 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
19529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19530 /* end confdefs.h. */
19531 #include <pthread.h>
19535 int attr = $ax_pthread_attr; return attr /* ; */
19540 if ac_fn_c_try_link "$LINENO"; then :
19541 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
19543 rm -f core conftest.err conftest.$ac_objext \
19544 conftest$ac_exeext conftest.$ac_ext
19548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
19549 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
19550 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
19551 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
19552 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
19554 cat >>confdefs.h <<_ACEOF
19555 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
19558 ax_pthread_joinable_attr_defined=yes
19562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
19563 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
19564 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
19565 $as_echo_n "(cached) " >&6
19567 ax_cv_PTHREAD_SPECIAL_FLAGS=no
19570 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
19575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
19576 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
19577 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
19578 test "x$ax_pthread_special_flags_added" != "xyes"; then :
19579 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
19580 ax_pthread_special_flags_added=yes
19583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
19584 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
19585 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
19586 $as_echo_n "(cached) " >&6
19588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19589 /* end confdefs.h. */
19590 #include <pthread.h>
19594 int i = PTHREAD_PRIO_INHERIT;
19599 if ac_fn_c_try_link "$LINENO"; then :
19600 ax_cv_PTHREAD_PRIO_INHERIT=yes
19602 ax_cv_PTHREAD_PRIO_INHERIT=no
19604 rm -f core conftest.err conftest.$ac_objext \
19605 conftest$ac_exeext conftest.$ac_ext
19608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
19609 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
19610 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
19611 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
19613 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
19615 ax_pthread_prio_inherit_defined=yes
19619 CFLAGS="$ax_pthread_save_CFLAGS"
19620 LIBS="$ax_pthread_save_LIBS"
19622 # More AIX lossage: compile with *_r variant
19623 if test "x$GCC" != "xyes"; then
19627 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
19628 #handle absolute path differently from PATH based program lookup
19631 if as_fn_executable_p ${CC}_r; then :
19632 PTHREAD_CC="${CC}_r"
19635 for ac_prog in ${CC}_r
19637 # Extract the first word of "$ac_prog", so it can be a program name with args.
19638 set dummy $ac_prog; ac_word=$2
19639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19640 $as_echo_n "checking for $ac_word... " >&6; }
19641 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
19642 $as_echo_n "(cached) " >&6
19644 if test -n "$PTHREAD_CC"; then
19645 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
19647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19648 for as_dir in $PATH
19651 test -z "$as_dir" && as_dir=.
19652 for ac_exec_ext in '' $ac_executable_extensions; do
19653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19654 ac_cv_prog_PTHREAD_CC="$ac_prog"
19655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19664 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
19665 if test -n "$PTHREAD_CC"; then
19666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
19667 $as_echo "$PTHREAD_CC" >&6; }
19669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19670 $as_echo "no" >&6; }
19674 test -n "$PTHREAD_CC" && break
19676 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
19687 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
19693 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
19694 if test "x$ax_pthread_ok" = "xyes"; then
19702 ac_cpp='$CPP $CPPFLAGS'
19703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19709 if $have_pthread; then
19711 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
19714 if $have_pthread; then
19716 HAVE_PTHREAD_FALSE='#'
19718 HAVE_PTHREAD_TRUE='#'
19719 HAVE_PTHREAD_FALSE=
19727 $as_echo "#define HAVE_OT 1" >>confdefs.h
19740 if $have_fallback; then
19742 $as_echo "#define HAVE_FALLBACK 1" >>confdefs.h
19745 if $have_fallback; then
19746 HAVE_FALLBACK_TRUE=
19747 HAVE_FALLBACK_FALSE='#'
19749 HAVE_FALLBACK_TRUE='#'
19750 HAVE_FALLBACK_FALSE=
19756 # Check whether --with-glib was given.
19757 if test "${with_glib+set}" = set; then :
19758 withval=$with_glib;
19764 GLIB_DEPS="glib-2.0 >= 2.19.1"
19766 if test "x$with_glib" = "xyes" -o "x$with_glib" = "xauto"; then
19769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
19770 $as_echo_n "checking for GLIB... " >&6; }
19772 if test -n "$PKG_CONFIG"; then
19773 if test -n "$GLIB_CFLAGS"; then
19774 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
19776 if test -n "$PKG_CONFIG" && \
19777 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLIB_DEPS\""; } >&5
19778 ($PKG_CONFIG --exists --print-errors "$GLIB_DEPS") 2>&5
19780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19781 test $ac_status = 0; }; then
19782 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "$GLIB_DEPS" 2>/dev/null`
19790 if test -n "$PKG_CONFIG"; then
19791 if test -n "$GLIB_LIBS"; then
19792 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
19794 if test -n "$PKG_CONFIG" && \
19795 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLIB_DEPS\""; } >&5
19796 ($PKG_CONFIG --exists --print-errors "$GLIB_DEPS") 2>&5
19798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19799 test $ac_status = 0; }; then
19800 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "$GLIB_DEPS" 2>/dev/null`
19811 if test $pkg_failed = yes; then
19813 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19814 _pkg_short_errors_supported=yes
19816 _pkg_short_errors_supported=no
19818 if test $_pkg_short_errors_supported = yes; then
19819 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$GLIB_DEPS"`
19821 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GLIB_DEPS"`
19823 # Put the nasty error message in config.log where it belongs
19824 echo "$GLIB_PKG_ERRORS" >&5
19826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19827 $as_echo "no" >&6; }
19829 elif test $pkg_failed = untried; then
19832 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
19833 GLIB_LIBS=$pkg_cv_GLIB_LIBS
19834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19835 $as_echo "yes" >&6; }
19839 if test "x$with_glib" = "xyes" -a "x$have_glib" != "xtrue"; then
19840 as_fn_error $? "glib support requested but glib-2.0 not found" "$LINENO" 5
19842 if $have_glib; then
19844 $as_echo "#define HAVE_GLIB 1" >>confdefs.h
19847 if $have_glib; then
19849 HAVE_GLIB_FALSE='#'
19858 # Check whether --with-gobject was given.
19859 if test "${with_gobject+set}" = set; then :
19860 withval=$with_gobject;
19866 if test "x$with_gobject" = "xyes" -o "x$with_gobject" = "xauto"; then
19869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOBJECT" >&5
19870 $as_echo_n "checking for GOBJECT... " >&6; }
19872 if test -n "$PKG_CONFIG"; then
19873 if test -n "$GOBJECT_CFLAGS"; then
19874 pkg_cv_GOBJECT_CFLAGS="$GOBJECT_CFLAGS"
19876 if test -n "$PKG_CONFIG" && \
19877 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 glib-2.0\""; } >&5
19878 ($PKG_CONFIG --exists --print-errors "gobject-2.0 glib-2.0") 2>&5
19880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19881 test $ac_status = 0; }; then
19882 pkg_cv_GOBJECT_CFLAGS=`$PKG_CONFIG --cflags "gobject-2.0 glib-2.0" 2>/dev/null`
19890 if test -n "$PKG_CONFIG"; then
19891 if test -n "$GOBJECT_LIBS"; then
19892 pkg_cv_GOBJECT_LIBS="$GOBJECT_LIBS"
19894 if test -n "$PKG_CONFIG" && \
19895 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 glib-2.0\""; } >&5
19896 ($PKG_CONFIG --exists --print-errors "gobject-2.0 glib-2.0") 2>&5
19898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19899 test $ac_status = 0; }; then
19900 pkg_cv_GOBJECT_LIBS=`$PKG_CONFIG --libs "gobject-2.0 glib-2.0" 2>/dev/null`
19911 if test $pkg_failed = yes; then
19913 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19914 _pkg_short_errors_supported=yes
19916 _pkg_short_errors_supported=no
19918 if test $_pkg_short_errors_supported = yes; then
19919 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gobject-2.0 glib-2.0"`
19921 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gobject-2.0 glib-2.0"`
19923 # Put the nasty error message in config.log where it belongs
19924 echo "$GOBJECT_PKG_ERRORS" >&5
19926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19927 $as_echo "no" >&6; }
19929 elif test $pkg_failed = untried; then
19932 GOBJECT_CFLAGS=$pkg_cv_GOBJECT_CFLAGS
19933 GOBJECT_LIBS=$pkg_cv_GOBJECT_LIBS
19934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19935 $as_echo "yes" >&6; }
19939 if test "x$with_gobject" = "xyes" -a "x$have_gobject" != "xtrue"; then
19940 as_fn_error $? "gobject support requested but gobject-2.0 / glib-2.0 not found" "$LINENO" 5
19942 if $have_gobject; then
19944 $as_echo "#define HAVE_GOBJECT 1" >>confdefs.h
19946 GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
19949 if $have_gobject; then
19951 HAVE_GOBJECT_FALSE='#'
19953 HAVE_GOBJECT_TRUE='#'
19954 HAVE_GOBJECT_FALSE=
19961 # Gobject-Introspection
19962 have_introspection=false
19964 if $have_gobject; then
19968 # Check whether --enable-introspection was given.
19969 if test "${enable_introspection+set}" = set; then :
19970 enableval=$enable_introspection;
19972 enable_introspection=auto
19976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5
19977 $as_echo_n "checking for gobject-introspection... " >&6; }
19979 case $enable_introspection in #(
19981 found_introspection="no (disabled, use --enable-introspection to enable)"
19984 if test -n "$PKG_CONFIG" && \
19985 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5
19986 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5
19988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19989 test $ac_status = 0; }; then
19992 as_fn_error $? "gobject-introspection-1.0 is not installed" "$LINENO" 5
19994 if test -n "$PKG_CONFIG" && \
19995 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 1.34.0\""; } >&5
19996 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 1.34.0") 2>&5
19998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19999 test $ac_status = 0; }; then
20000 found_introspection=yes
20002 as_fn_error $? "You need to have gobject-introspection >= 1.34.0 installed to build HarfBuzz" "$LINENO" 5
20006 if test -n "$PKG_CONFIG" && \
20007 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 1.34.0\""; } >&5
20008 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 1.34.0") 2>&5
20010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20011 test $ac_status = 0; }; then
20012 found_introspection=yes
20014 found_introspection=no
20016 enable_introspection=$found_introspection
20019 as_fn_error $? "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5
20022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5
20023 $as_echo "$found_introspection" >&6; }
20025 INTROSPECTION_SCANNER=
20026 INTROSPECTION_COMPILER=
20027 INTROSPECTION_GENERATE=
20028 INTROSPECTION_GIRDIR=
20029 INTROSPECTION_TYPELIBDIR=
20030 if test "x$found_introspection" = "xyes"; then
20031 INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
20032 INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
20033 INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
20034 INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
20035 INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
20036 INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
20037 INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
20038 INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
20049 if test "x$found_introspection" = "xyes"; then
20050 HAVE_INTROSPECTION_TRUE=
20051 HAVE_INTROSPECTION_FALSE='#'
20053 HAVE_INTROSPECTION_TRUE='#'
20054 HAVE_INTROSPECTION_FALSE=
20059 if test "x$found_introspection" = xyes; then
20060 have_introspection=true
20064 HAVE_INTROSPECTION_TRUE=
20065 HAVE_INTROSPECTION_FALSE='#'
20067 HAVE_INTROSPECTION_TRUE='#'
20068 HAVE_INTROSPECTION_FALSE=
20076 # Check whether --with-cairo was given.
20077 if test "${with_cairo+set}" = set; then :
20078 withval=$with_cairo;
20084 if test "x$with_cairo" = "xyes" -o "x$with_cairo" = "xauto"; then
20087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO" >&5
20088 $as_echo_n "checking for CAIRO... " >&6; }
20090 if test -n "$PKG_CONFIG"; then
20091 if test -n "$CAIRO_CFLAGS"; then
20092 pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
20094 if test -n "$PKG_CONFIG" && \
20095 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.8.0\""; } >&5
20096 ($PKG_CONFIG --exists --print-errors "cairo >= 1.8.0") 2>&5
20098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20099 test $ac_status = 0; }; then
20100 pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo >= 1.8.0" 2>/dev/null`
20108 if test -n "$PKG_CONFIG"; then
20109 if test -n "$CAIRO_LIBS"; then
20110 pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
20112 if test -n "$PKG_CONFIG" && \
20113 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.8.0\""; } >&5
20114 ($PKG_CONFIG --exists --print-errors "cairo >= 1.8.0") 2>&5
20116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20117 test $ac_status = 0; }; then
20118 pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo >= 1.8.0" 2>/dev/null`
20129 if test $pkg_failed = yes; then
20131 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20132 _pkg_short_errors_supported=yes
20134 _pkg_short_errors_supported=no
20136 if test $_pkg_short_errors_supported = yes; then
20137 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo >= 1.8.0"`
20139 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo >= 1.8.0"`
20141 # Put the nasty error message in config.log where it belongs
20142 echo "$CAIRO_PKG_ERRORS" >&5
20144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20145 $as_echo "no" >&6; }
20147 elif test $pkg_failed = untried; then
20150 CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
20151 CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
20152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20153 $as_echo "yes" >&6; }
20157 if test "x$with_cairo" = "xyes" -a "x$have_cairo" != "xtrue"; then
20158 as_fn_error $? "cairo support requested but not found" "$LINENO" 5
20160 if $have_cairo; then
20162 $as_echo "#define HAVE_CAIRO 1" >>confdefs.h
20165 if $have_cairo; then
20167 HAVE_CAIRO_FALSE='#'
20169 HAVE_CAIRO_TRUE='#'
20174 have_cairo_ft=false
20175 if $have_cairo; then
20178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_FT" >&5
20179 $as_echo_n "checking for CAIRO_FT... " >&6; }
20181 if test -n "$PKG_CONFIG"; then
20182 if test -n "$CAIRO_FT_CFLAGS"; then
20183 pkg_cv_CAIRO_FT_CFLAGS="$CAIRO_FT_CFLAGS"
20185 if test -n "$PKG_CONFIG" && \
20186 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-ft\""; } >&5
20187 ($PKG_CONFIG --exists --print-errors "cairo-ft") 2>&5
20189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20190 test $ac_status = 0; }; then
20191 pkg_cv_CAIRO_FT_CFLAGS=`$PKG_CONFIG --cflags "cairo-ft" 2>/dev/null`
20199 if test -n "$PKG_CONFIG"; then
20200 if test -n "$CAIRO_FT_LIBS"; then
20201 pkg_cv_CAIRO_FT_LIBS="$CAIRO_FT_LIBS"
20203 if test -n "$PKG_CONFIG" && \
20204 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-ft\""; } >&5
20205 ($PKG_CONFIG --exists --print-errors "cairo-ft") 2>&5
20207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20208 test $ac_status = 0; }; then
20209 pkg_cv_CAIRO_FT_LIBS=`$PKG_CONFIG --libs "cairo-ft" 2>/dev/null`
20220 if test $pkg_failed = yes; then
20222 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20223 _pkg_short_errors_supported=yes
20225 _pkg_short_errors_supported=no
20227 if test $_pkg_short_errors_supported = yes; then
20228 CAIRO_FT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo-ft"`
20230 CAIRO_FT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo-ft"`
20232 # Put the nasty error message in config.log where it belongs
20233 echo "$CAIRO_FT_PKG_ERRORS" >&5
20235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20236 $as_echo "no" >&6; }
20238 elif test $pkg_failed = untried; then
20241 CAIRO_FT_CFLAGS=$pkg_cv_CAIRO_FT_CFLAGS
20242 CAIRO_FT_LIBS=$pkg_cv_CAIRO_FT_LIBS
20243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20244 $as_echo "yes" >&6; }
20248 if $have_cairo_ft; then
20250 $as_echo "#define HAVE_CAIRO_FT 1" >>confdefs.h
20253 if $have_cairo_ft; then
20254 HAVE_CAIRO_FT_TRUE=
20255 HAVE_CAIRO_FT_FALSE='#'
20257 HAVE_CAIRO_FT_TRUE='#'
20258 HAVE_CAIRO_FT_FALSE=
20264 # Check whether --with-fontconfig was given.
20265 if test "${with_fontconfig+set}" = set; then :
20266 withval=$with_fontconfig;
20268 with_fontconfig=auto
20271 have_fontconfig=false
20272 if test "x$with_fontconfig" = "xyes" -o "x$with_fontconfig" = "xauto"; then
20275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
20276 $as_echo_n "checking for FONTCONFIG... " >&6; }
20278 if test -n "$PKG_CONFIG"; then
20279 if test -n "$FONTCONFIG_CFLAGS"; then
20280 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
20282 if test -n "$PKG_CONFIG" && \
20283 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig\""; } >&5
20284 ($PKG_CONFIG --exists --print-errors "fontconfig") 2>&5
20286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20287 test $ac_status = 0; }; then
20288 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig" 2>/dev/null`
20296 if test -n "$PKG_CONFIG"; then
20297 if test -n "$FONTCONFIG_LIBS"; then
20298 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
20300 if test -n "$PKG_CONFIG" && \
20301 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig\""; } >&5
20302 ($PKG_CONFIG --exists --print-errors "fontconfig") 2>&5
20304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20305 test $ac_status = 0; }; then
20306 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig" 2>/dev/null`
20317 if test $pkg_failed = yes; then
20319 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20320 _pkg_short_errors_supported=yes
20322 _pkg_short_errors_supported=no
20324 if test $_pkg_short_errors_supported = yes; then
20325 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "fontconfig"`
20327 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
20329 # Put the nasty error message in config.log where it belongs
20330 echo "$FONTCONFIG_PKG_ERRORS" >&5
20332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20333 $as_echo "no" >&6; }
20335 elif test $pkg_failed = untried; then
20338 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
20339 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
20340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20341 $as_echo "yes" >&6; }
20342 have_fontconfig=true
20345 if test "x$with_fontconfig" = "xyes" -a "x$have_fontconfig" != "xtrue"; then
20346 as_fn_error $? "fontconfig support requested but not found" "$LINENO" 5
20348 if $have_fontconfig; then
20350 $as_echo "#define HAVE_FONTCONFIG 1" >>confdefs.h
20353 if $have_fontconfig; then
20354 HAVE_FONTCONFIG_TRUE=
20355 HAVE_FONTCONFIG_FALSE='#'
20357 HAVE_FONTCONFIG_TRUE='#'
20358 HAVE_FONTCONFIG_FALSE=
20364 # Check whether --with-icu was given.
20365 if test "${with_icu+set}" = set; then :
20372 if test "x$with_icu" = "xyes" -o "x$with_icu" = "xbuiltin" -o "x$with_icu" = "xauto"; then
20375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU" >&5
20376 $as_echo_n "checking for ICU... " >&6; }
20378 if test -n "$PKG_CONFIG"; then
20379 if test -n "$ICU_CFLAGS"; then
20380 pkg_cv_ICU_CFLAGS="$ICU_CFLAGS"
20382 if test -n "$PKG_CONFIG" && \
20383 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc\""; } >&5
20384 ($PKG_CONFIG --exists --print-errors "icu-uc") 2>&5
20386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20387 test $ac_status = 0; }; then
20388 pkg_cv_ICU_CFLAGS=`$PKG_CONFIG --cflags "icu-uc" 2>/dev/null`
20396 if test -n "$PKG_CONFIG"; then
20397 if test -n "$ICU_LIBS"; then
20398 pkg_cv_ICU_LIBS="$ICU_LIBS"
20400 if test -n "$PKG_CONFIG" && \
20401 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc\""; } >&5
20402 ($PKG_CONFIG --exists --print-errors "icu-uc") 2>&5
20404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20405 test $ac_status = 0; }; then
20406 pkg_cv_ICU_LIBS=`$PKG_CONFIG --libs "icu-uc" 2>/dev/null`
20417 if test $pkg_failed = yes; then
20419 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20420 _pkg_short_errors_supported=yes
20422 _pkg_short_errors_supported=no
20424 if test $_pkg_short_errors_supported = yes; then
20425 ICU_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "icu-uc"`
20427 ICU_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "icu-uc"`
20429 # Put the nasty error message in config.log where it belongs
20430 echo "$ICU_PKG_ERRORS" >&5
20432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20433 $as_echo "no" >&6; }
20435 elif test $pkg_failed = untried; then
20438 ICU_CFLAGS=$pkg_cv_ICU_CFLAGS
20439 ICU_LIBS=$pkg_cv_ICU_LIBS
20440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20441 $as_echo "yes" >&6; }
20445 if test "$have_icu" != "true"; then
20446 if test -n "$ac_tool_prefix"; then
20447 # Extract the first word of "${ac_tool_prefix}icu-config", so it can be a program name with args.
20448 set dummy ${ac_tool_prefix}icu-config; ac_word=$2
20449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20450 $as_echo_n "checking for $ac_word... " >&6; }
20451 if ${ac_cv_prog_ICU_CONFIG+:} false; then :
20452 $as_echo_n "(cached) " >&6
20454 if test -n "$ICU_CONFIG"; then
20455 ac_cv_prog_ICU_CONFIG="$ICU_CONFIG" # Let the user override the test.
20457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20458 for as_dir in $PATH
20461 test -z "$as_dir" && as_dir=.
20462 for ac_exec_ext in '' $ac_executable_extensions; do
20463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20464 ac_cv_prog_ICU_CONFIG="${ac_tool_prefix}icu-config"
20465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20474 ICU_CONFIG=$ac_cv_prog_ICU_CONFIG
20475 if test -n "$ICU_CONFIG"; then
20476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICU_CONFIG" >&5
20477 $as_echo "$ICU_CONFIG" >&6; }
20479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20480 $as_echo "no" >&6; }
20485 if test -z "$ac_cv_prog_ICU_CONFIG"; then
20486 ac_ct_ICU_CONFIG=$ICU_CONFIG
20487 # Extract the first word of "icu-config", so it can be a program name with args.
20488 set dummy icu-config; ac_word=$2
20489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20490 $as_echo_n "checking for $ac_word... " >&6; }
20491 if ${ac_cv_prog_ac_ct_ICU_CONFIG+:} false; then :
20492 $as_echo_n "(cached) " >&6
20494 if test -n "$ac_ct_ICU_CONFIG"; then
20495 ac_cv_prog_ac_ct_ICU_CONFIG="$ac_ct_ICU_CONFIG" # Let the user override the test.
20497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20498 for as_dir in $PATH
20501 test -z "$as_dir" && as_dir=.
20502 for ac_exec_ext in '' $ac_executable_extensions; do
20503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20504 ac_cv_prog_ac_ct_ICU_CONFIG="icu-config"
20505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20514 ac_ct_ICU_CONFIG=$ac_cv_prog_ac_ct_ICU_CONFIG
20515 if test -n "$ac_ct_ICU_CONFIG"; then
20516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_ICU_CONFIG" >&5
20517 $as_echo "$ac_ct_ICU_CONFIG" >&6; }
20519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20520 $as_echo "no" >&6; }
20523 if test "x$ac_ct_ICU_CONFIG" = x; then
20526 case $cross_compiling:$ac_tool_warned in
20528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20529 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20530 ac_tool_warned=yes ;;
20532 ICU_CONFIG=$ac_ct_ICU_CONFIG
20535 ICU_CONFIG="$ac_cv_prog_ICU_CONFIG"
20538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU by using icu-config fallback" >&5
20539 $as_echo_n "checking for ICU by using icu-config fallback... " >&6; }
20540 if test "$ICU_CONFIG" != "no" && "$ICU_CONFIG" --version >/dev/null; then
20542 # We don't use --cflags as this gives us a lot of things that we don't
20543 # necessarily want, like debugging and optimization flags
20544 # See man (1) icu-config for more info.
20545 ICU_CFLAGS=`$ICU_CONFIG --cppflags`
20546 ICU_LIBS=`$ICU_CONFIG --ldflags-searchpath --ldflags-libsonly`
20549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20550 $as_echo "yes" >&6; }
20552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20553 $as_echo "no" >&6; }
20557 if test \( "x$with_icu" = "xyes" -o "x$with_icu" = "xbuiltin" \) -a "x$have_icu" != "xtrue"; then
20558 as_fn_error $? "icu support requested but icu-uc not found" "$LINENO" 5
20562 CXXFLAGS="$CXXFLAGS `$PKG_CONFIG --variable=CXXFLAGS icu-uc`"
20564 $as_echo "#define HAVE_ICU 1" >>confdefs.h
20566 if test "x$with_icu" = "xbuiltin"; then
20568 $as_echo "#define HAVE_ICU_BUILTIN 1" >>confdefs.h
20580 if $have_icu && test "x$with_icu" = "xbuiltin"; then
20581 HAVE_ICU_BUILTIN_TRUE=
20582 HAVE_ICU_BUILTIN_FALSE='#'
20584 HAVE_ICU_BUILTIN_TRUE='#'
20585 HAVE_ICU_BUILTIN_FALSE=
20591 # Check whether --with-ucdn was given.
20592 if test "${with_ucdn+set}" = set; then :
20593 withval=$with_ucdn;
20599 if test "x$with_ucdn" = "xyes"; then
20602 if $have_ucdn; then
20604 $as_echo "#define HAVE_UCDN 1" >>confdefs.h
20607 if $have_ucdn; then
20609 HAVE_UCDN_FALSE='#'
20618 # Check whether --with-graphite2 was given.
20619 if test "${with_graphite2+set}" = set; then :
20620 withval=$with_graphite2;
20625 have_graphite2=false
20626 GRAPHITE2_DEPS="graphite2"
20628 if test "x$with_graphite2" = "xyes" -o "x$with_graphite2" = "xauto"; then
20631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GRAPHITE2" >&5
20632 $as_echo_n "checking for GRAPHITE2... " >&6; }
20634 if test -n "$PKG_CONFIG"; then
20635 if test -n "$GRAPHITE2_CFLAGS"; then
20636 pkg_cv_GRAPHITE2_CFLAGS="$GRAPHITE2_CFLAGS"
20638 if test -n "$PKG_CONFIG" && \
20639 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GRAPHITE2_DEPS\""; } >&5
20640 ($PKG_CONFIG --exists --print-errors "$GRAPHITE2_DEPS") 2>&5
20642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20643 test $ac_status = 0; }; then
20644 pkg_cv_GRAPHITE2_CFLAGS=`$PKG_CONFIG --cflags "$GRAPHITE2_DEPS" 2>/dev/null`
20652 if test -n "$PKG_CONFIG"; then
20653 if test -n "$GRAPHITE2_LIBS"; then
20654 pkg_cv_GRAPHITE2_LIBS="$GRAPHITE2_LIBS"
20656 if test -n "$PKG_CONFIG" && \
20657 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GRAPHITE2_DEPS\""; } >&5
20658 ($PKG_CONFIG --exists --print-errors "$GRAPHITE2_DEPS") 2>&5
20660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20661 test $ac_status = 0; }; then
20662 pkg_cv_GRAPHITE2_LIBS=`$PKG_CONFIG --libs "$GRAPHITE2_DEPS" 2>/dev/null`
20673 if test $pkg_failed = yes; then
20675 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20676 _pkg_short_errors_supported=yes
20678 _pkg_short_errors_supported=no
20680 if test $_pkg_short_errors_supported = yes; then
20681 GRAPHITE2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$GRAPHITE2_DEPS"`
20683 GRAPHITE2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GRAPHITE2_DEPS"`
20685 # Put the nasty error message in config.log where it belongs
20686 echo "$GRAPHITE2_PKG_ERRORS" >&5
20688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20689 $as_echo "no" >&6; }
20691 elif test $pkg_failed = untried; then
20694 GRAPHITE2_CFLAGS=$pkg_cv_GRAPHITE2_CFLAGS
20695 GRAPHITE2_LIBS=$pkg_cv_GRAPHITE2_LIBS
20696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20697 $as_echo "yes" >&6; }
20698 have_graphite2=true
20700 if test "x$have_graphite2" != "xtrue"; then
20701 # If pkg-config is not available, graphite2 can still be there
20702 ac_save_CFLAGS="$CFLAGS"
20703 ac_save_CPPFLAGS="$CPPFLAGS"
20704 CFLAGS="$CFLAGS $GRAPHITE2_CFLAGS"
20705 CPPFLAGS="$CPPFLAGS $GRAPHITE2_CFLAGS"
20706 ac_fn_c_check_header_mongrel "$LINENO" "graphite2/Segment.h" "ac_cv_header_graphite2_Segment_h" "$ac_includes_default"
20707 if test "x$ac_cv_header_graphite2_Segment_h" = xyes; then :
20708 have_graphite2=true
20714 CPPFLAGS="$ac_save_CPPFLAGS"
20715 CFLAGS="$ac_save_CFLAGS"
20718 if test "x$with_graphite2" = "xyes" -a "x$have_graphite2" != "xtrue"; then
20719 as_fn_error $? "graphite2 support requested but libgraphite2 not found" "$LINENO" 5
20721 if $have_graphite2; then
20723 $as_echo "#define HAVE_GRAPHITE2 1" >>confdefs.h
20726 if $have_graphite2; then
20727 HAVE_GRAPHITE2_TRUE=
20728 HAVE_GRAPHITE2_FALSE='#'
20730 HAVE_GRAPHITE2_TRUE='#'
20731 HAVE_GRAPHITE2_FALSE=
20737 # Check whether --with-freetype was given.
20738 if test "${with_freetype+set}" = set; then :
20739 withval=$with_freetype;
20744 have_freetype=false
20745 FREETYPE_DEPS="freetype2 >= 12.0.6"
20747 if test "x$with_freetype" = "xyes" -o "x$with_freetype" = "xauto"; then
20748 # See freetype/docs/VERSION.DLL; 12.0.6 means freetype-2.4.2
20751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
20752 $as_echo_n "checking for FREETYPE... " >&6; }
20754 if test -n "$PKG_CONFIG"; then
20755 if test -n "$FREETYPE_CFLAGS"; then
20756 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
20758 if test -n "$PKG_CONFIG" && \
20759 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$FREETYPE_DEPS\""; } >&5
20760 ($PKG_CONFIG --exists --print-errors "$FREETYPE_DEPS") 2>&5
20762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20763 test $ac_status = 0; }; then
20764 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "$FREETYPE_DEPS" 2>/dev/null`
20772 if test -n "$PKG_CONFIG"; then
20773 if test -n "$FREETYPE_LIBS"; then
20774 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
20776 if test -n "$PKG_CONFIG" && \
20777 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$FREETYPE_DEPS\""; } >&5
20778 ($PKG_CONFIG --exists --print-errors "$FREETYPE_DEPS") 2>&5
20780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20781 test $ac_status = 0; }; then
20782 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "$FREETYPE_DEPS" 2>/dev/null`
20793 if test $pkg_failed = yes; then
20795 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20796 _pkg_short_errors_supported=yes
20798 _pkg_short_errors_supported=no
20800 if test $_pkg_short_errors_supported = yes; then
20801 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$FREETYPE_DEPS"`
20803 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$FREETYPE_DEPS"`
20805 # Put the nasty error message in config.log where it belongs
20806 echo "$FREETYPE_PKG_ERRORS" >&5
20808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20809 $as_echo "no" >&6; }
20811 elif test $pkg_failed = untried; then
20814 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
20815 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
20816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20817 $as_echo "yes" >&6; }
20821 if test "x$with_freetype" = "xyes" -a "x$have_freetype" != "xtrue"; then
20822 as_fn_error $? "FreeType support requested but libfreetype2 not found" "$LINENO" 5
20824 if $have_freetype; then
20826 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
20829 LIBS="$LIBS $FREETYPE_LIBS"
20830 for ac_func in FT_Get_Var_Blend_Coordinates FT_Set_Var_Blend_Coordinates FT_Done_MM_Var
20832 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20833 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20834 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20835 cat >>confdefs.h <<_ACEOF
20836 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20844 if $have_freetype; then
20845 HAVE_FREETYPE_TRUE=
20846 HAVE_FREETYPE_FALSE='#'
20848 HAVE_FREETYPE_TRUE='#'
20849 HAVE_FREETYPE_FALSE=
20855 # Check whether --with-uniscribe was given.
20856 if test "${with_uniscribe+set}" = set; then :
20857 withval=$with_uniscribe;
20862 have_uniscribe=false
20863 if test "x$with_uniscribe" = "xyes" -o "x$with_uniscribe" = "xauto"; then
20864 for ac_header in usp10.h windows.h
20866 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20867 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20868 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20869 cat >>confdefs.h <<_ACEOF
20870 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20872 have_uniscribe=true
20878 if test "x$with_uniscribe" = "xyes" -a "x$have_uniscribe" != "xtrue"; then
20879 as_fn_error $? "uniscribe support requested but not found" "$LINENO" 5
20881 if $have_uniscribe; then
20883 UNISCRIBE_LIBS="-lusp10 -lgdi32 -lrpcrt4"
20887 $as_echo "#define HAVE_UNISCRIBE 1" >>confdefs.h
20890 if $have_uniscribe; then
20891 HAVE_UNISCRIBE_TRUE=
20892 HAVE_UNISCRIBE_FALSE='#'
20894 HAVE_UNISCRIBE_TRUE='#'
20895 HAVE_UNISCRIBE_FALSE=
20901 # Check whether --with-directwrite was given.
20902 if test "${with_directwrite+set}" = set; then :
20903 withval=$with_directwrite;
20905 with_directwrite=no
20908 have_directwrite=false
20910 ac_cpp='$CXXCPP $CPPFLAGS'
20911 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20912 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20913 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20915 if test "x$with_directwrite" = "xyes" -o "x$with_directwrite" = "xauto"; then
20917 for ac_header in dwrite.h
20919 ac_fn_cxx_check_header_mongrel "$LINENO" "dwrite.h" "ac_cv_header_dwrite_h" "$ac_includes_default"
20920 if test "x$ac_cv_header_dwrite_h" = xyes; then :
20921 cat >>confdefs.h <<_ACEOF
20922 #define HAVE_DWRITE_H 1
20924 have_directwrite=true
20931 ac_cpp='$CPP $CPPFLAGS'
20932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20936 if test "x$with_directwrite" = "xyes" -a "x$have_directwrite" != "xtrue"; then
20937 as_fn_error $? "directwrite support requested but not found" "$LINENO" 5
20939 if $have_directwrite; then
20940 DIRECTWRITE_CXXFLAGS=
20941 DIRECTWRITE_LIBS="-ldwrite"
20945 $as_echo "#define HAVE_DIRECTWRITE 1" >>confdefs.h
20948 if $have_directwrite; then
20949 HAVE_DIRECTWRITE_TRUE=
20950 HAVE_DIRECTWRITE_FALSE='#'
20952 HAVE_DIRECTWRITE_TRUE='#'
20953 HAVE_DIRECTWRITE_FALSE=
20959 # Check whether --with-coretext was given.
20960 if test "${with_coretext+set}" = set; then :
20961 withval=$with_coretext;
20966 have_coretext=false
20967 if test "x$with_coretext" = "xyes" -o "x$with_coretext" = "xauto"; then
20968 ac_fn_c_check_type "$LINENO" "CTFontRef" "ac_cv_type_CTFontRef" "#include <ApplicationServices/ApplicationServices.h>
20970 if test "x$ac_cv_type_CTFontRef" = xyes; then :
20975 if $have_coretext; then
20977 CORETEXT_LIBS="-framework ApplicationServices"
20981 # On iOS CoreText and CoreGraphics are stand-alone frameworks
20982 if test "x$have_coretext" != "xtrue"; then
20983 # Check for a different symbol to avoid getting cached result.
20984 ac_fn_c_check_type "$LINENO" "CTRunRef" "ac_cv_type_CTRunRef" "#include <CoreText/CoreText.h>
20986 if test "x$ac_cv_type_CTRunRef" = xyes; then :
20992 if $have_coretext; then
20994 CORETEXT_LIBS="-framework CoreText -framework CoreGraphics -framework CoreFoundation"
21000 if test "x$with_coretext" = "xyes" -a "x$have_coretext" != "xtrue"; then
21001 as_fn_error $? "CoreText support requested but libcoretext not found" "$LINENO" 5
21003 if $have_coretext; then
21005 $as_echo "#define HAVE_CORETEXT 1" >>confdefs.h
21008 if $have_coretext; then
21009 HAVE_CORETEXT_TRUE=
21010 HAVE_CORETEXT_FALSE='#'
21012 HAVE_CORETEXT_TRUE='#'
21013 HAVE_CORETEXT_FALSE=
21018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Intel atomic primitives" >&5
21019 $as_echo_n "checking for Intel atomic primitives... " >&6; }
21020 if ${hb_cv_have_intel_atomic_primitives+:} false; then :
21021 $as_echo_n "(cached) " >&6
21024 hb_cv_have_intel_atomic_primitives=false
21025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21026 /* end confdefs.h. */
21028 void memory_barrier (void) { __sync_synchronize (); }
21029 int atomic_add (int *i) { return __sync_fetch_and_add (i, 1); }
21030 int mutex_trylock (int *m) { return __sync_lock_test_and_set (m, 1); }
21031 void mutex_unlock (int *m) { __sync_lock_release (m); }
21041 if ac_fn_c_try_link "$LINENO"; then :
21042 hb_cv_have_intel_atomic_primitives=true
21045 rm -f core conftest.err conftest.$ac_objext \
21046 conftest$ac_exeext conftest.$ac_ext
21049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hb_cv_have_intel_atomic_primitives" >&5
21050 $as_echo "$hb_cv_have_intel_atomic_primitives" >&6; }
21051 if $hb_cv_have_intel_atomic_primitives; then
21053 $as_echo "#define HAVE_INTEL_ATOMIC_PRIMITIVES 1" >>confdefs.h
21058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris atomic operations" >&5
21059 $as_echo_n "checking for Solaris atomic operations... " >&6; }
21060 if ${hb_cv_have_solaris_atomic_ops+:} false; then :
21061 $as_echo_n "(cached) " >&6
21064 hb_cv_have_solaris_atomic_ops=false
21065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21066 /* end confdefs.h. */
21068 #include <atomic.h>
21069 /* This requires Solaris Studio 12.2 or newer: */
21070 #include <mbarrier.h>
21071 void memory_barrier (void) { __machine_rw_barrier (); }
21072 int atomic_add (volatile unsigned *i) { return atomic_add_int_nv (i, 1); }
21073 void *atomic_ptr_cmpxchg (volatile void **target, void *cmp, void *newval) { return atomic_cas_ptr (target, cmp, newval); }
21083 if ac_fn_c_try_link "$LINENO"; then :
21084 hb_cv_have_solaris_atomic_ops=true
21087 rm -f core conftest.err conftest.$ac_objext \
21088 conftest$ac_exeext conftest.$ac_ext
21091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hb_cv_have_solaris_atomic_ops" >&5
21092 $as_echo "$hb_cv_have_solaris_atomic_ops" >&6; }
21093 if $hb_cv_have_solaris_atomic_ops; then
21095 $as_echo "#define HAVE_SOLARIS_ATOMIC_OPS 1" >>confdefs.h
21099 if test "$os_win32" = no && ! $have_pthread; then
21100 for ac_header in sched.h
21102 ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
21103 if test "x$ac_cv_header_sched_h" = xyes; then :
21104 cat >>confdefs.h <<_ACEOF
21105 #define HAVE_SCHED_H 1
21112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
21113 $as_echo_n "checking for library containing sched_yield... " >&6; }
21114 if ${ac_cv_search_sched_yield+:} false; then :
21115 $as_echo_n "(cached) " >&6
21117 ac_func_search_save_LIBS=$LIBS
21118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21119 /* end confdefs.h. */
21121 /* Override any GCC internal prototype to avoid an error.
21122 Use char because int might match the return type of a GCC
21123 builtin and then its argument prototype would still apply. */
21127 char sched_yield ();
21131 return sched_yield ();
21136 for ac_lib in '' rt; do
21137 if test -z "$ac_lib"; then
21138 ac_res="none required"
21141 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21143 if ac_fn_c_try_link "$LINENO"; then :
21144 ac_cv_search_sched_yield=$ac_res
21146 rm -f core conftest.err conftest.$ac_objext \
21148 if ${ac_cv_search_sched_yield+:} false; then :
21152 if ${ac_cv_search_sched_yield+:} false; then :
21155 ac_cv_search_sched_yield=no
21157 rm conftest.$ac_ext
21158 LIBS=$ac_func_search_save_LIBS
21160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
21161 $as_echo "$ac_cv_search_sched_yield" >&6; }
21162 ac_res=$ac_cv_search_sched_yield
21163 if test "$ac_res" != no; then :
21164 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21166 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
21173 ac_config_files="$ac_config_files Makefile src/Makefile src/harfbuzz-config.cmake src/hb-ucdn/Makefile util/Makefile test/Makefile test/api/Makefile test/fuzzing/Makefile test/shaping/Makefile test/shaping/data/Makefile test/shaping/data/in-house/Makefile test/shaping/data/text-rendering-tests/Makefile test/subset/Makefile test/subset/data/Makefile docs/Makefile docs/version.xml"
21176 cat >confcache <<\_ACEOF
21177 # This file is a shell script that caches the results of configure
21178 # tests run on this system so they can be shared between configure
21179 # scripts and configure runs, see configure's option --config-cache.
21180 # It is not useful on other systems. If it contains results you don't
21181 # want to keep, you may remove or edit it.
21183 # config.status only pays attention to the cache file if you give it
21184 # the --recheck option to rerun configure.
21186 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21187 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21188 # following values.
21192 # The following way of writing the cache mishandles newlines in values,
21193 # but we know of no workaround that is simple, portable, and efficient.
21194 # So, we kill variables containing newlines.
21195 # Ultrix sh set writes to stderr and can't be redirected directly,
21196 # and sets the high bit in the cache file unless we assign to the vars.
21198 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21199 eval ac_val=\$$ac_var
21203 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21204 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21207 _ | IFS | as_nl) ;; #(
21208 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21209 *) { eval $ac_var=; unset $ac_var;} ;;
21215 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21216 *${as_nl}ac_space=\ *)
21217 # `set' does not quote correctly, so add quotes: double-quote
21218 # substitution turns \\\\ into \\, and sed turns \\ into \.
21221 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21224 # `set' quotes correctly as required by POSIX, so do not add quotes.
21225 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21234 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21236 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21238 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21239 if test -w "$cache_file"; then
21240 if test "x$cache_file" != "x/dev/null"; then
21241 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21242 $as_echo "$as_me: updating cache $cache_file" >&6;}
21243 if test ! -f "$cache_file" || test -h "$cache_file"; then
21244 cat confcache >"$cache_file"
21246 case $cache_file in #(
21248 mv -f confcache "$cache_file"$$ &&
21249 mv -f "$cache_file"$$ "$cache_file" ;; #(
21251 mv -f confcache "$cache_file" ;;
21256 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21257 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21262 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21263 # Let make expand exec_prefix.
21264 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21266 DEFS=-DHAVE_CONFIG_H
21271 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21272 # 1. Remove the extension, and $U if already installed.
21273 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21274 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21275 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21276 # will be set to the directory where LIBOBJS objects are built.
21277 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21278 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21280 LIBOBJS=$ac_libobjs
21282 LTLIBOBJS=$ac_ltlibobjs
21285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21286 $as_echo_n "checking that generated files are newer than configure... " >&6; }
21287 if test -n "$am_sleep_pid"; then
21288 # Hide warnings about reused PIDs.
21289 wait $am_sleep_pid 2>/dev/null
21291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
21292 $as_echo "done" >&6; }
21293 if test -n "$EXEEXT"; then
21295 am__EXEEXT_FALSE='#'
21297 am__EXEEXT_TRUE='#'
21301 if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
21302 as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
21303 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21305 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21306 as_fn_error $? "conditional \"AMDEP\" was never defined.
21307 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21309 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21310 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21311 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21313 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21314 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21315 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21317 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21318 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
21319 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21321 if test -z "${WITH_LIBSTDCXX_TRUE}" && test -z "${WITH_LIBSTDCXX_FALSE}"; then
21322 as_fn_error $? "conditional \"WITH_LIBSTDCXX\" was never defined.
21323 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21325 if test -z "${HAVE_GTK_DOC_TRUE}" && test -z "${HAVE_GTK_DOC_FALSE}"; then
21326 as_fn_error $? "conditional \"HAVE_GTK_DOC\" was never defined.
21327 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21329 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
21330 as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
21331 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21333 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
21334 as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
21335 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21337 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
21338 as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
21339 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21341 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
21342 as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
21343 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21345 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
21346 as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
21347 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21349 if test -z "${HAVE_GCC_TRUE}" && test -z "${HAVE_GCC_FALSE}"; then
21350 as_fn_error $? "conditional \"HAVE_GCC\" was never defined.
21351 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21353 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
21354 as_fn_error $? "conditional \"OS_WIN32\" was never defined.
21355 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21357 if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then
21358 as_fn_error $? "conditional \"HAVE_PTHREAD\" was never defined.
21359 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21361 if test -z "${HAVE_OT_TRUE}" && test -z "${HAVE_OT_FALSE}"; then
21362 as_fn_error $? "conditional \"HAVE_OT\" was never defined.
21363 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21365 if test -z "${HAVE_FALLBACK_TRUE}" && test -z "${HAVE_FALLBACK_FALSE}"; then
21366 as_fn_error $? "conditional \"HAVE_FALLBACK\" was never defined.
21367 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21369 if test -z "${HAVE_GLIB_TRUE}" && test -z "${HAVE_GLIB_FALSE}"; then
21370 as_fn_error $? "conditional \"HAVE_GLIB\" was never defined.
21371 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21373 if test -z "${HAVE_GOBJECT_TRUE}" && test -z "${HAVE_GOBJECT_FALSE}"; then
21374 as_fn_error $? "conditional \"HAVE_GOBJECT\" was never defined.
21375 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21377 if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
21378 as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
21379 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21381 if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
21382 as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
21383 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21385 if test -z "${HAVE_CAIRO_TRUE}" && test -z "${HAVE_CAIRO_FALSE}"; then
21386 as_fn_error $? "conditional \"HAVE_CAIRO\" was never defined.
21387 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21389 if test -z "${HAVE_CAIRO_FT_TRUE}" && test -z "${HAVE_CAIRO_FT_FALSE}"; then
21390 as_fn_error $? "conditional \"HAVE_CAIRO_FT\" was never defined.
21391 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21393 if test -z "${HAVE_FONTCONFIG_TRUE}" && test -z "${HAVE_FONTCONFIG_FALSE}"; then
21394 as_fn_error $? "conditional \"HAVE_FONTCONFIG\" was never defined.
21395 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21397 if test -z "${HAVE_ICU_TRUE}" && test -z "${HAVE_ICU_FALSE}"; then
21398 as_fn_error $? "conditional \"HAVE_ICU\" was never defined.
21399 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21401 if test -z "${HAVE_ICU_BUILTIN_TRUE}" && test -z "${HAVE_ICU_BUILTIN_FALSE}"; then
21402 as_fn_error $? "conditional \"HAVE_ICU_BUILTIN\" was never defined.
21403 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21405 if test -z "${HAVE_UCDN_TRUE}" && test -z "${HAVE_UCDN_FALSE}"; then
21406 as_fn_error $? "conditional \"HAVE_UCDN\" was never defined.
21407 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21409 if test -z "${HAVE_GRAPHITE2_TRUE}" && test -z "${HAVE_GRAPHITE2_FALSE}"; then
21410 as_fn_error $? "conditional \"HAVE_GRAPHITE2\" was never defined.
21411 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21413 if test -z "${HAVE_FREETYPE_TRUE}" && test -z "${HAVE_FREETYPE_FALSE}"; then
21414 as_fn_error $? "conditional \"HAVE_FREETYPE\" was never defined.
21415 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21417 if test -z "${HAVE_UNISCRIBE_TRUE}" && test -z "${HAVE_UNISCRIBE_FALSE}"; then
21418 as_fn_error $? "conditional \"HAVE_UNISCRIBE\" was never defined.
21419 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21421 if test -z "${HAVE_DIRECTWRITE_TRUE}" && test -z "${HAVE_DIRECTWRITE_FALSE}"; then
21422 as_fn_error $? "conditional \"HAVE_DIRECTWRITE\" was never defined.
21423 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21425 if test -z "${HAVE_CORETEXT_TRUE}" && test -z "${HAVE_CORETEXT_FALSE}"; then
21426 as_fn_error $? "conditional \"HAVE_CORETEXT\" was never defined.
21427 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21430 : "${CONFIG_STATUS=./config.status}"
21432 ac_clean_files_save=$ac_clean_files
21433 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21434 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21435 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21437 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21439 # Generated by $as_me.
21440 # Run this file to recreate the current configuration.
21441 # Compiler output produced by configure, useful for debugging
21442 # configure, is in config.log if it exists.
21445 ac_cs_recheck=false
21448 SHELL=\${CONFIG_SHELL-$SHELL}
21451 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21452 ## -------------------- ##
21453 ## M4sh Initialization. ##
21454 ## -------------------- ##
21456 # Be more Bourne compatible
21457 DUALCASE=1; export DUALCASE # for MKS sh
21458 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21461 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21462 # is contrary to our usage. Disable this feature.
21463 alias -g '${1+"$@"}'='"$@"'
21464 setopt NO_GLOB_SUBST
21466 case `(set -o) 2>/dev/null` in #(
21478 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21479 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21480 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21481 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21482 # Prefer a ksh shell builtin over an external printf program on Solaris,
21483 # but without wasting forks for bash or zsh.
21484 if test -z "$BASH_VERSION$ZSH_VERSION" \
21485 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21486 as_echo='print -r --'
21487 as_echo_n='print -rn --'
21488 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21489 as_echo='printf %s\n'
21490 as_echo_n='printf %s'
21492 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21493 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21494 as_echo_n='/usr/ucb/echo -n'
21496 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21497 as_echo_n_body='eval
21501 expr "X$arg" : "X\\(.*\\)$as_nl";
21502 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21504 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21506 export as_echo_n_body
21507 as_echo_n='sh -c $as_echo_n_body as_echo'
21509 export as_echo_body
21510 as_echo='sh -c $as_echo_body as_echo'
21513 # The user is always right.
21514 if test "${PATH_SEPARATOR+set}" != set; then
21516 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21517 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21524 # We need space, tab and new line, in precisely that order. Quoting is
21525 # there to prevent editors from complaining about space-tab.
21526 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21527 # splitting by setting IFS to empty value.)
21530 # Find who we are. Look in the path if we contain no directory separator.
21533 *[\\/]* ) as_myself=$0 ;;
21534 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21535 for as_dir in $PATH
21538 test -z "$as_dir" && as_dir=.
21539 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21545 # We did not find ourselves, most probably we were run as `sh COMMAND'
21546 # in which case we are not to be found in the path.
21547 if test "x$as_myself" = x; then
21550 if test ! -f "$as_myself"; then
21551 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21555 # Unset variables that we do not need and which cause bugs (e.g. in
21556 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
21557 # suppresses any "Segmentation fault" message there. '((' could
21558 # trigger a bug in pdksh 5.2.14.
21559 for as_var in BASH_ENV ENV MAIL MAILPATH
21560 do eval test x\${$as_var+set} = xset \
21561 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21574 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21577 # as_fn_error STATUS ERROR [LINENO LOG_FD]
21578 # ----------------------------------------
21579 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21580 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21581 # script with STATUS, using 1 if that was 0.
21584 as_status=$1; test $as_status -eq 0 && as_status=1
21586 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21587 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21589 $as_echo "$as_me: error: $2" >&2
21590 as_fn_exit $as_status
21594 # as_fn_set_status STATUS
21595 # -----------------------
21596 # Set $? to STATUS, without forking.
21597 as_fn_set_status ()
21600 } # as_fn_set_status
21602 # as_fn_exit STATUS
21603 # -----------------
21604 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21608 as_fn_set_status $1
21614 # Portably unset VAR.
21617 { eval $1=; unset $1;}
21619 as_unset=as_fn_unset
21620 # as_fn_append VAR VALUE
21621 # ----------------------
21622 # Append the text in VALUE to the end of the definition contained in VAR. Take
21623 # advantage of any shell optimizations that allow amortized linear growth over
21624 # repeated appends, instead of the typical quadratic growth present in naive
21626 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
21627 eval 'as_fn_append ()
21638 # as_fn_arith ARG...
21639 # ------------------
21640 # Perform arithmetic evaluation on the ARGs, and store the result in the
21641 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21642 # must be portable across $(()) and expr.
21643 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
21644 eval 'as_fn_arith ()
21651 as_val=`expr "$@" || test $? -eq 1`
21656 if expr a : '\(a\)' >/dev/null 2>&1 &&
21657 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21663 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21664 as_basename=basename
21669 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21675 as_me=`$as_basename -- "$0" ||
21676 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21677 X"$0" : 'X\(//\)$' \| \
21678 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21680 sed '/^.*\/\([^/][^/]*\)\/*$/{
21694 # Avoid depending upon Character Ranges.
21695 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21696 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21697 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21698 as_cr_digits='0123456789'
21699 as_cr_alnum=$as_cr_Letters$as_cr_digits
21701 ECHO_C= ECHO_N= ECHO_T=
21702 case `echo -n x` in #(((((
21704 case `echo 'xy\c'` in
21705 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21707 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21714 rm -f conf$$ conf$$.exe conf$$.file
21715 if test -d conf$$.dir; then
21716 rm -f conf$$.dir/conf$$.file
21719 mkdir conf$$.dir 2>/dev/null
21721 if (echo >conf$$.file) 2>/dev/null; then
21722 if ln -s conf$$.file conf$$ 2>/dev/null; then
21724 # ... but there are two gotchas:
21725 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21726 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21727 # In both cases, we have to default to `cp -pR'.
21728 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21730 elif ln conf$$.file conf$$ 2>/dev/null; then
21738 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21739 rmdir conf$$.dir 2>/dev/null
21744 # Create "$as_dir" as a directory, including parents if necessary.
21749 -*) as_dir=./$as_dir;;
21751 test -d "$as_dir" || eval $as_mkdir_p || {
21755 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21756 *) as_qdir=$as_dir;;
21758 as_dirs="'$as_qdir' $as_dirs"
21759 as_dir=`$as_dirname -- "$as_dir" ||
21760 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21761 X"$as_dir" : 'X\(//\)[^/]' \| \
21762 X"$as_dir" : 'X\(//\)$' \| \
21763 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21764 $as_echo X"$as_dir" |
21765 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21769 /^X\(\/\/\)[^/].*/{
21782 test -d "$as_dir" && break
21784 test -z "$as_dirs" || eval "mkdir $as_dirs"
21785 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21789 if mkdir -p . 2>/dev/null; then
21790 as_mkdir_p='mkdir -p "$as_dir"'
21792 test -d ./-p && rmdir ./-p
21797 # as_fn_executable_p FILE
21798 # -----------------------
21799 # Test if FILE is an executable regular file.
21800 as_fn_executable_p ()
21802 test -f "$1" && test -x "$1"
21803 } # as_fn_executable_p
21804 as_test_x='test -x'
21805 as_executable_p=as_fn_executable_p
21807 # Sed expression to map a string onto a valid CPP name.
21808 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21810 # Sed expression to map a string onto a valid variable name.
21811 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21815 ## ----------------------------------- ##
21816 ## Main body of $CONFIG_STATUS script. ##
21817 ## ----------------------------------- ##
21819 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21821 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21822 # Save the log message, to keep $0 and so on meaningful, and to
21823 # report actual input values of CONFIG_FILES etc. instead of their
21824 # values after options handling.
21826 This file was extended by HarfBuzz $as_me 1.8.1, which was
21827 generated by GNU Autoconf 2.69. Invocation command line was
21829 CONFIG_FILES = $CONFIG_FILES
21830 CONFIG_HEADERS = $CONFIG_HEADERS
21831 CONFIG_LINKS = $CONFIG_LINKS
21832 CONFIG_COMMANDS = $CONFIG_COMMANDS
21835 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21840 case $ac_config_files in *"
21841 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21844 case $ac_config_headers in *"
21845 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21849 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21850 # Files that config.status was made for.
21851 config_files="$ac_config_files"
21852 config_headers="$ac_config_headers"
21853 config_commands="$ac_config_commands"
21857 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21859 \`$as_me' instantiates files and other configuration actions
21860 from templates according to the current configuration. Unless the files
21861 and actions are specified as TAGs, all are instantiated by default.
21863 Usage: $0 [OPTION]... [TAG]...
21865 -h, --help print this help, then exit
21866 -V, --version print version number and configuration settings, then exit
21867 --config print configuration, then exit
21868 -q, --quiet, --silent
21869 do not print progress messages
21870 -d, --debug don't remove temporary files
21871 --recheck update $as_me by reconfiguring in the same conditions
21872 --file=FILE[:TEMPLATE]
21873 instantiate the configuration file FILE
21874 --header=FILE[:TEMPLATE]
21875 instantiate the configuration header FILE
21877 Configuration files:
21880 Configuration headers:
21883 Configuration commands:
21886 Report bugs to <https://github.com/harfbuzz/harfbuzz/issues/new>.
21887 HarfBuzz home page: <http://harfbuzz.org/>."
21890 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21891 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21893 HarfBuzz config.status 1.8.1
21894 configured by $0, generated by GNU Autoconf 2.69,
21895 with options \\"\$ac_cs_config\\"
21897 Copyright (C) 2012 Free Software Foundation, Inc.
21898 This config.status script is free software; the Free Software Foundation
21899 gives unlimited permission to copy, distribute and modify it."
21906 test -n "\$AWK" || AWK=awk
21909 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21910 # The default lists apply if the user does not specify any file.
21916 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21917 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21921 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21933 # Handling of the options.
21934 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21936 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21937 $as_echo "$ac_cs_version"; exit ;;
21938 --config | --confi | --conf | --con | --co | --c )
21939 $as_echo "$ac_cs_config"; exit ;;
21940 --debug | --debu | --deb | --de | --d | -d )
21942 --file | --fil | --fi | --f )
21945 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21946 '') as_fn_error $? "missing file argument" ;;
21948 as_fn_append CONFIG_FILES " '$ac_optarg'"
21949 ac_need_defaults=false;;
21950 --header | --heade | --head | --hea )
21953 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21955 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21956 ac_need_defaults=false;;
21958 # Conflict between --help and --header
21959 as_fn_error $? "ambiguous option: \`$1'
21960 Try \`$0 --help' for more information.";;
21961 --help | --hel | -h )
21962 $as_echo "$ac_cs_usage"; exit ;;
21963 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21964 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21967 # This is an error.
21968 -*) as_fn_error $? "unrecognized option: \`$1'
21969 Try \`$0 --help' for more information." ;;
21971 *) as_fn_append ac_config_targets " $1"
21972 ac_need_defaults=false ;;
21978 ac_configure_extra_args=
21980 if $ac_cs_silent; then
21982 ac_configure_extra_args="$ac_configure_extra_args --silent"
21986 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21987 if \$ac_cs_recheck; then
21988 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21990 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21991 CONFIG_SHELL='$SHELL'
21992 export CONFIG_SHELL
21997 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22001 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22002 ## Running $as_me. ##
22008 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22012 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22015 # The HP-UX ksh and POSIX shell print the target directory to stdout
22016 # if CDPATH is set.
22017 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22019 sed_quote_subst='$sed_quote_subst'
22020 double_quote_subst='$double_quote_subst'
22021 delay_variable_subst='$delay_variable_subst'
22022 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22023 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22024 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22025 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22026 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22027 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22028 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
22029 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22030 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22031 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22032 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22033 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22034 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22035 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22036 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22037 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22038 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22039 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22040 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22041 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22042 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22043 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22044 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22045 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22046 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22047 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22048 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22049 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22050 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22051 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22052 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22053 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22054 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22055 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22056 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22057 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22058 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22059 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22060 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22061 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22062 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22063 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22064 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22065 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22066 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22067 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22068 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22069 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22070 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22071 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22072 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22073 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22074 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22075 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22076 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22077 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22078 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
22079 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22080 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"`'
22081 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
22082 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22083 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22084 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
22085 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22086 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22087 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22088 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22089 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22090 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22091 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22092 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22093 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22094 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22095 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22096 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22097 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22098 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22099 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22100 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22101 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22102 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22103 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22104 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22105 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22106 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22107 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22108 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22109 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22110 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22111 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22112 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22113 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22114 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22115 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22116 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22117 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22118 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22119 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22120 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22121 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22122 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22123 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22124 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22125 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22126 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22127 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22128 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22129 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22130 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22131 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22132 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22133 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22134 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22135 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22136 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22137 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22138 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22139 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22140 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22141 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22142 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22143 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22144 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22145 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22146 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22147 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22148 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22149 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22150 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22151 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22152 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22153 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22154 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22155 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22156 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22157 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
22158 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
22159 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
22160 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
22161 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
22162 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
22163 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
22164 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
22165 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22166 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22167 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
22168 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
22169 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
22170 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
22171 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
22172 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
22173 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
22174 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
22175 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
22176 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22177 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22178 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
22179 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22180 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22181 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22182 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22183 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22184 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22185 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
22186 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22187 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22188 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22189 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
22190 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
22191 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
22192 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
22193 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
22194 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
22195 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
22196 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
22197 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
22198 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22199 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22200 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22201 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22202 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22203 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
22204 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
22205 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
22206 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22207 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22208 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
22209 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
22210 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
22213 LTCFLAGS='$LTCFLAGS'
22214 compiler='$compiler_DEFAULT'
22216 # A function that is used when there is no print builtin or printf.
22217 func_fallback_echo ()
22219 eval 'cat <<_LTECHO_EOF
22224 # Quote evaled strings.
22239 deplibs_check_method \
22244 sharedlib_from_linklib_cmd \
22247 archiver_list_spec \
22253 lt_cv_sys_global_symbol_pipe \
22254 lt_cv_sys_global_symbol_to_cdecl \
22255 lt_cv_sys_global_symbol_to_import \
22256 lt_cv_sys_global_symbol_to_c_name_address \
22257 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22258 lt_cv_nm_interface \
22259 nm_file_list_spec \
22260 lt_cv_truncate_bin \
22261 lt_prog_compiler_no_builtin_flag \
22262 lt_prog_compiler_pic \
22263 lt_prog_compiler_wl \
22264 lt_prog_compiler_static \
22265 lt_cv_prog_compiler_c_o \
22274 export_dynamic_flag_spec \
22275 whole_archive_flag_spec \
22276 compiler_needs_object \
22278 allow_undefined_flag \
22279 no_undefined_flag \
22280 hardcode_libdir_flag_spec \
22281 hardcode_libdir_separator \
22285 variables_saved_for_relink \
22287 library_names_spec \
22289 install_override_mode \
22293 compiler_lib_search_dirs \
22298 compiler_lib_search_path \
22302 lt_prog_compiler_no_builtin_flag_CXX \
22303 lt_prog_compiler_pic_CXX \
22304 lt_prog_compiler_wl_CXX \
22305 lt_prog_compiler_static_CXX \
22306 lt_cv_prog_compiler_c_o_CXX \
22307 export_dynamic_flag_spec_CXX \
22308 whole_archive_flag_spec_CXX \
22309 compiler_needs_object_CXX \
22311 allow_undefined_flag_CXX \
22312 no_undefined_flag_CXX \
22313 hardcode_libdir_flag_spec_CXX \
22314 hardcode_libdir_separator_CXX \
22315 exclude_expsyms_CXX \
22316 include_expsyms_CXX \
22317 file_list_spec_CXX \
22318 compiler_lib_search_dirs_CXX \
22319 predep_objects_CXX \
22320 postdep_objects_CXX \
22323 compiler_lib_search_path_CXX; do
22324 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22325 *[\\\\\\\`\\"\\\$]*)
22326 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22329 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22334 # Double-quote double-evaled strings.
22335 for var in reload_cmds \
22336 old_postinstall_cmds \
22337 old_postuninstall_cmds \
22339 extract_expsyms_cmds \
22340 old_archive_from_new_cmds \
22341 old_archive_from_expsyms_cmds \
22343 archive_expsym_cmds \
22345 module_expsym_cmds \
22346 export_symbols_cmds \
22350 postuninstall_cmds \
22352 sys_lib_search_path_spec \
22353 configure_time_dlsearch_path \
22354 configure_time_lt_sys_library_path \
22356 old_archive_cmds_CXX \
22357 old_archive_from_new_cmds_CXX \
22358 old_archive_from_expsyms_cmds_CXX \
22360 archive_expsym_cmds_CXX \
22362 module_expsym_cmds_CXX \
22363 export_symbols_cmds_CXX \
22365 postlink_cmds_CXX; do
22366 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22367 *[\\\\\\\`\\"\\\$]*)
22368 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22371 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22376 ac_aux_dir='$ac_aux_dir'
22378 # See if we are running on zsh, and set the options that allow our
22379 # commands through without removal of \ escapes INIT.
22380 if test -n "\${ZSH_VERSION+set}"; then
22381 setopt NO_GLOB_SUBST
22397 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22399 # Handling of arguments.
22400 for ac_config_target in $ac_config_targets
22402 case $ac_config_target in
22403 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22404 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22405 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22406 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22407 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22408 "src/harfbuzz-config.cmake") CONFIG_FILES="$CONFIG_FILES src/harfbuzz-config.cmake" ;;
22409 "src/hb-ucdn/Makefile") CONFIG_FILES="$CONFIG_FILES src/hb-ucdn/Makefile" ;;
22410 "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
22411 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
22412 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
22413 "test/fuzzing/Makefile") CONFIG_FILES="$CONFIG_FILES test/fuzzing/Makefile" ;;
22414 "test/shaping/Makefile") CONFIG_FILES="$CONFIG_FILES test/shaping/Makefile" ;;
22415 "test/shaping/data/Makefile") CONFIG_FILES="$CONFIG_FILES test/shaping/data/Makefile" ;;
22416 "test/shaping/data/in-house/Makefile") CONFIG_FILES="$CONFIG_FILES test/shaping/data/in-house/Makefile" ;;
22417 "test/shaping/data/text-rendering-tests/Makefile") CONFIG_FILES="$CONFIG_FILES test/shaping/data/text-rendering-tests/Makefile" ;;
22418 "test/subset/Makefile") CONFIG_FILES="$CONFIG_FILES test/subset/Makefile" ;;
22419 "test/subset/data/Makefile") CONFIG_FILES="$CONFIG_FILES test/subset/data/Makefile" ;;
22420 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
22421 "docs/version.xml") CONFIG_FILES="$CONFIG_FILES docs/version.xml" ;;
22423 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22428 # If the user did not use the arguments to specify the items to instantiate,
22429 # then the envvar interface is used. Set only those that are not.
22430 # We use the long form for the default assignment because of an extremely
22431 # bizarre bug on SunOS 4.1.3.
22432 if $ac_need_defaults; then
22433 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22434 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22435 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22438 # Have a temporary directory for convenience. Make it in the build tree
22439 # simply because there is no reason against having it here, and in addition,
22440 # creating and moving files from /tmp can sometimes cause problems.
22441 # Hook for its removal unless debugging.
22442 # Note that there is a small window in which the directory will not be cleaned:
22443 # after its creation but before its name has been assigned to `$tmp'.
22447 trap 'exit_status=$?
22448 : "${ac_tmp:=$tmp}"
22449 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22451 trap 'as_fn_exit 1' 1 2 13 15
22453 # Create a (secure) tmp directory for tmp files.
22456 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22460 tmp=./conf$$-$RANDOM
22461 (umask 077 && mkdir "$tmp")
22462 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22465 # Set up the scripts for CONFIG_FILES section.
22466 # No need to generate them if there are no CONFIG_FILES.
22467 # This happens for instance with `./config.status config.h'.
22468 if test -n "$CONFIG_FILES"; then
22471 ac_cr=`echo X | tr X '\015'`
22472 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22473 # But we know of no other shell where ac_cr would be empty at this
22474 # point, so we can use a bashism as a fallback.
22475 if test "x$ac_cr" = x; then
22476 eval ac_cr=\$\'\\r\'
22478 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22479 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22482 ac_cs_awk_cr=$ac_cr
22485 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22490 echo "cat >conf$$subs.awk <<_ACEOF" &&
22491 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22493 } >conf$$subs.sh ||
22494 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22495 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22497 for ac_last_try in false false false false false :; do
22498 . ./conf$$subs.sh ||
22499 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22501 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22502 if test $ac_delim_n = $ac_delim_num; then
22504 elif $ac_last_try; then
22505 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22507 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22510 rm -f conf$$subs.sh
22512 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22513 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22517 s/^/S["/; s/!.*/"]=/
22527 s/\(.\{148\}\)..*/\1/
22529 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22534 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22541 s/\(.\{148\}\)..*/\1/
22543 s/["\\]/\\&/g; s/^/"/; s/$/"/
22547 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22552 ' <conf$$subs.awk | sed '
22557 ' >>$CONFIG_STATUS || ac_write_fail=1
22558 rm -f conf$$subs.awk
22559 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22561 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22562 for (key in S) S_is_set[key] = 1
22568 nfields = split(line, field, "@")
22570 len = length(field[1])
22571 for (i = 2; i < nfields; i++) {
22573 keylen = length(key)
22574 if (S_is_set[key]) {
22576 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22577 len += length(value) + length(field[++i])
22588 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22589 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22590 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22593 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22594 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22597 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22598 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22599 # trailing colons and then remove the whole line if VPATH becomes empty
22600 # (actually we leave an empty line to preserve line numbers).
22601 if test "x$srcdir" = x.; then
22602 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
22620 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22621 fi # test -n "$CONFIG_FILES"
22623 # Set up the scripts for CONFIG_HEADERS section.
22624 # No need to generate them if there are no CONFIG_HEADERS.
22625 # This happens for instance with `./config.status Makefile'.
22626 if test -n "$CONFIG_HEADERS"; then
22627 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22631 # Transform confdefs.h into an awk script `defines.awk', embedded as
22632 # here-document in config.status, that substitutes the proper values into
22633 # config.h.in to produce config.h.
22635 # Create a delimiter string that does not exist in confdefs.h, to ease
22636 # handling of long lines.
22638 for ac_last_try in false false :; do
22639 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22640 if test -z "$ac_tt"; then
22642 elif $ac_last_try; then
22643 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22645 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22649 # For the awk script, D is an array of macro values keyed by name,
22650 # likewise P contains macro parameters if any. Preserve backslash
22651 # newline sequences.
22653 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22655 s/.\{148\}/&'"$ac_delim"'/g
22658 s/^[ ]*#[ ]*define[ ][ ]*/ /
22665 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22667 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22671 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22672 D["\1"]=" \3\\\\\\n"\\/p
22674 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22679 s/.\{148\}/&'"$ac_delim"'/g
22684 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22687 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22689 ' <confdefs.h | sed '
22690 s/'"$ac_delim"'/"\\\
22691 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22693 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22694 for (key in D) D_is_set[key] = 1
22697 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22699 split(line, arg, " ")
22700 if (arg[1] == "#") {
22704 defundef = substr(arg[1], 2)
22707 split(mac1, mac2, "(") #)
22709 prefix = substr(line, 1, index(line, defundef) - 1)
22710 if (D_is_set[macro]) {
22711 # Preserve the white space surrounding the "#".
22712 print prefix "define", macro P[macro] D[macro]
22715 # Replace #undef with comments. This is necessary, for example,
22716 # in the case of _POSIX_SOURCE, which is predefined and required
22717 # on some systems where configure will not decide to define it.
22718 if (defundef == "undef") {
22719 print "/*", prefix defundef, macro, "*/"
22727 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22728 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22729 fi # test -n "$CONFIG_HEADERS"
22732 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22737 :[FHLC]) ac_mode=$ac_tag; continue;;
22739 case $ac_mode$ac_tag in
22741 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22742 :[FH]-) ac_tag=-:-;;
22743 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22760 -) ac_f="$ac_tmp/stdin";;
22761 *) # Look for the file first in the build tree, then in the source tree
22762 # (if the path is not absolute). The absolute path cannot be DOS-style,
22763 # because $ac_f cannot contain `:'.
22767 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22769 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22771 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22772 as_fn_append ac_file_inputs " '$ac_f'"
22775 # Let's still pretend it is `configure' which instantiates (i.e., don't
22776 # use $as_me), people would be surprised to read:
22777 # /* config.h. Generated by config.status. */
22778 configure_input='Generated from '`
22779 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22781 if test x"$ac_file" != x-; then
22782 configure_input="$ac_file. $configure_input"
22783 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22784 $as_echo "$as_me: creating $ac_file" >&6;}
22786 # Neutralize special characters interpreted by sed in replacement strings.
22787 case $configure_input in #(
22788 *\&* | *\|* | *\\* )
22789 ac_sed_conf_input=`$as_echo "$configure_input" |
22790 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22791 *) ac_sed_conf_input=$configure_input;;
22795 *:-:* | *:-) cat >"$ac_tmp/stdin" \
22796 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22801 ac_dir=`$as_dirname -- "$ac_file" ||
22802 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22803 X"$ac_file" : 'X\(//\)[^/]' \| \
22804 X"$ac_file" : 'X\(//\)$' \| \
22805 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22806 $as_echo X"$ac_file" |
22807 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22811 /^X\(\/\/\)[^/].*/{
22824 as_dir="$ac_dir"; as_fn_mkdir_p
22828 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22830 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22831 # A ".." for each directory in $ac_dir_suffix.
22832 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22833 case $ac_top_builddir_sub in
22834 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22835 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22838 ac_abs_top_builddir=$ac_pwd
22839 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22840 # for backward compatibility:
22841 ac_top_builddir=$ac_top_build_prefix
22844 .) # We are building in place.
22846 ac_top_srcdir=$ac_top_builddir_sub
22847 ac_abs_top_srcdir=$ac_pwd ;;
22848 [\\/]* | ?:[\\/]* ) # Absolute name.
22849 ac_srcdir=$srcdir$ac_dir_suffix;
22850 ac_top_srcdir=$srcdir
22851 ac_abs_top_srcdir=$srcdir ;;
22852 *) # Relative name.
22853 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22854 ac_top_srcdir=$ac_top_build_prefix$srcdir
22855 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22857 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22867 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22868 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22870 ac_MKDIR_P=$MKDIR_P
22872 [\\/$]* | ?:[\\/]* ) ;;
22873 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22877 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22878 # If the template does not know about datarootdir, expand it.
22879 # FIXME: This hack should be removed a few years after 2.60.
22880 ac_datarootdir_hack=; ac_datarootdir_seen=
22891 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22892 *datarootdir*) ac_datarootdir_seen=yes;;
22893 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22895 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22897 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22898 ac_datarootdir_hack='
22899 s&@datadir@&$datadir&g
22900 s&@docdir@&$docdir&g
22901 s&@infodir@&$infodir&g
22902 s&@localedir@&$localedir&g
22903 s&@mandir@&$mandir&g
22904 s&\\\${datarootdir}&$datarootdir&g' ;;
22908 # Neutralize VPATH when `$srcdir' = `.'.
22909 # Shell code in configure.ac might set extrasub.
22910 # FIXME: do we really want to maintain this feature?
22911 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22912 ac_sed_extra="$ac_vpsub
22915 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22917 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22918 s|@configure_input@|$ac_sed_conf_input|;t t
22919 s&@top_builddir@&$ac_top_builddir_sub&;t t
22920 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22921 s&@srcdir@&$ac_srcdir&;t t
22922 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22923 s&@top_srcdir@&$ac_top_srcdir&;t t
22924 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22925 s&@builddir@&$ac_builddir&;t t
22926 s&@abs_builddir@&$ac_abs_builddir&;t t
22927 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22928 s&@INSTALL@&$ac_INSTALL&;t t
22929 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22930 $ac_datarootdir_hack
22932 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22933 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22935 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22936 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22937 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
22938 "$ac_tmp/out"`; test -z "$ac_out"; } &&
22939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22940 which seems to be undefined. Please make sure it is defined" >&5
22941 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22942 which seems to be undefined. Please make sure it is defined" >&2;}
22944 rm -f "$ac_tmp/stdin"
22946 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22947 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22949 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22955 if test x"$ac_file" != x-; then
22957 $as_echo "/* $configure_input */" \
22958 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22959 } >"$ac_tmp/config.h" \
22960 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22961 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22962 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22963 $as_echo "$as_me: $ac_file is unchanged" >&6;}
22966 mv "$ac_tmp/config.h" "$ac_file" \
22967 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22970 $as_echo "/* $configure_input */" \
22971 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22972 || as_fn_error $? "could not create -" "$LINENO" 5
22974 # Compute "$ac_file"'s index in $config_headers.
22977 for _am_header in $config_headers :; do
22978 case $_am_header in
22979 $_am_arg | $_am_arg:* )
22982 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22985 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22986 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22987 X"$_am_arg" : 'X\(//\)[^/]' \| \
22988 X"$_am_arg" : 'X\(//\)$' \| \
22989 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22990 $as_echo X"$_am_arg" |
22991 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22995 /^X\(\/\/\)[^/].*/{
23007 s/.*/./; q'`/stamp-h$_am_stamp_count
23010 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23011 $as_echo "$as_me: executing $ac_file commands" >&6;}
23016 case $ac_file$ac_mode in
23017 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23018 # Older Autoconf quotes --file arguments for eval, but not when files
23019 # are listed without --file. Let's play safe and only enable the eval
23020 # if we detect the quoting.
23021 case $CONFIG_FILES in
23022 *\'*) eval set x "$CONFIG_FILES" ;;
23023 *) set x $CONFIG_FILES ;;
23028 # Strip MF so we end up with the name of the file.
23029 mf=`echo "$mf" | sed -e 's/:.*$//'`
23030 # Check whether this is an Automake generated Makefile or not.
23031 # We used to match only the files named 'Makefile.in', but
23032 # some people rename them; so instead we look at the file content.
23033 # Grep'ing the first line is not enough: some people post-process
23034 # each Makefile.in and add a new line on top of each file to say so.
23035 # Grep'ing the whole file is not good either: AIX grep has a line
23036 # limit of 2048, but all sed's we know have understand at least 4000.
23037 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23038 dirpart=`$as_dirname -- "$mf" ||
23039 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23040 X"$mf" : 'X\(//\)[^/]' \| \
23041 X"$mf" : 'X\(//\)$' \| \
23042 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23044 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23048 /^X\(\/\/\)[^/].*/{
23064 # Extract the definition of DEPDIR, am__include, and am__quote
23065 # from the Makefile without running 'make'.
23066 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23067 test -z "$DEPDIR" && continue
23068 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23069 test -z "$am__include" && continue
23070 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23071 # Find all dependency output files, they are included files with
23072 # $(DEPDIR) in their names. We invoke sed twice because it is the
23073 # simplest approach to changing $(DEPDIR) to its actual value in the
23075 for file in `sed -n "
23076 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23077 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
23078 # Make sure the directory exists.
23079 test -f "$dirpart/$file" && continue
23080 fdir=`$as_dirname -- "$file" ||
23081 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23082 X"$file" : 'X\(//\)[^/]' \| \
23083 X"$file" : 'X\(//\)$' \| \
23084 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23085 $as_echo X"$file" |
23086 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23090 /^X\(\/\/\)[^/].*/{
23103 as_dir=$dirpart/$fdir; as_fn_mkdir_p
23104 # echo "creating $dirpart/$file"
23105 echo '# dummy' > "$dirpart/$file"
23112 # See if we are running on zsh, and set the options that allow our
23113 # commands through without removal of \ escapes.
23114 if test -n "${ZSH_VERSION+set}"; then
23115 setopt NO_GLOB_SUBST
23119 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23122 cat <<_LT_EOF >> "$cfgfile"
23124 # Generated automatically by $as_me ($PACKAGE) $VERSION
23125 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23127 # Provide generalized library-building support services.
23128 # Written by Gordon Matzigkeit, 1996
23130 # Copyright (C) 2014 Free Software Foundation, Inc.
23131 # This is free software; see the source for copying conditions. There is NO
23132 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23134 # GNU Libtool is free software; you can redistribute it and/or modify
23135 # it under the terms of the GNU General Public License as published by
23136 # the Free Software Foundation; either version 2 of of the License, or
23137 # (at your option) any later version.
23139 # As a special exception to the GNU General Public License, if you
23140 # distribute this file as part of a program or library that is built
23141 # using GNU Libtool, you may include this file under the same
23142 # distribution terms that you use for the rest of that program.
23144 # GNU Libtool is distributed in the hope that it will be useful, but
23145 # WITHOUT ANY WARRANTY; without even the implied warranty of
23146 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23147 # GNU General Public License for more details.
23149 # You should have received a copy of the GNU General Public License
23150 # along with this program. If not, see <http://www.gnu.org/licenses/>.
23153 # The names of the tagged configurations supported by this script.
23154 available_tags='CXX '
23156 # Configured defaults for sys_lib_dlsearch_path munging.
23157 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
23159 # ### BEGIN LIBTOOL CONFIG
23161 # Which release of libtool.m4 was used?
23162 macro_version=$macro_version
23163 macro_revision=$macro_revision
23165 # Whether or not to build static libraries.
23166 build_old_libs=$enable_static
23168 # Whether or not to build shared libraries.
23169 build_libtool_libs=$enable_shared
23171 # What type of objects to build.
23174 # Whether or not to optimize for fast installation.
23175 fast_install=$enable_fast_install
23177 # Shared archive member basename,for filename based shared library versioning on AIX.
23178 shared_archive_member_spec=$shared_archive_member_spec
23180 # Shell to use when invoking shell scripts.
23183 # An echo program that protects backslashes.
23186 # The PATH separator for the build system.
23187 PATH_SEPARATOR=$lt_PATH_SEPARATOR
23190 host_alias=$host_alias
23194 # The build system.
23195 build_alias=$build_alias
23199 # A sed program that does not truncate output.
23202 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23203 Xsed="\$SED -e 1s/^X//"
23205 # A grep program that handles long lines.
23211 # A literal string matcher.
23214 # A BSD- or MS-compatible name lister.
23217 # Whether we need soft or hard links.
23220 # What is the maximum length of a command?
23221 max_cmd_len=$max_cmd_len
23223 # Object file suffix (normally "o").
23226 # Executable file suffix (normally "").
23229 # whether the shell understands "unset".
23232 # turn spaces into newlines.
23235 # turn newlines into spaces.
23238 # convert \$build file names to \$host format.
23239 to_host_file_cmd=$lt_cv_to_host_file_cmd
23241 # convert \$build files to toolchain format.
23242 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23244 # An object symbol dumper.
23245 OBJDUMP=$lt_OBJDUMP
23247 # Method to check whether dependent libraries are shared objects.
23248 deplibs_check_method=$lt_deplibs_check_method
23250 # Command to use when deplibs_check_method = "file_magic".
23251 file_magic_cmd=$lt_file_magic_cmd
23253 # How to find potential files when deplibs_check_method = "file_magic".
23254 file_magic_glob=$lt_file_magic_glob
23256 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23257 want_nocaseglob=$lt_want_nocaseglob
23259 # DLL creation program.
23260 DLLTOOL=$lt_DLLTOOL
23262 # Command to associate shared and link libraries.
23263 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23268 # Flags to create an archive.
23269 AR_FLAGS=$lt_AR_FLAGS
23271 # How to feed a file listing to the archiver.
23272 archiver_list_spec=$lt_archiver_list_spec
23274 # A symbol stripping program.
23277 # Commands used to install an old-style archive.
23279 old_postinstall_cmds=$lt_old_postinstall_cmds
23280 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23282 # Whether to use a lock for old archive extraction.
23283 lock_old_archive_extraction=$lock_old_archive_extraction
23288 # LTCC compiler flags.
23289 LTCFLAGS=$lt_CFLAGS
23291 # Take the output of nm and produce a listing of raw symbols and C names.
23292 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23294 # Transform the output of nm in a proper C declaration.
23295 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23297 # Transform the output of nm into a list of symbols to manually relocate.
23298 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23300 # Transform the output of nm in a C name address pair.
23301 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23303 # Transform the output of nm in a C name address pair when lib prefix is needed.
23304 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23306 # The name lister interface.
23307 nm_interface=$lt_lt_cv_nm_interface
23309 # Specify filename containing input files for \$NM.
23310 nm_file_list_spec=$lt_nm_file_list_spec
23312 # The root where to search for dependent libraries,and where our libraries should be installed.
23313 lt_sysroot=$lt_sysroot
23315 # Command to truncate a binary pipe.
23316 lt_truncate_bin=$lt_lt_cv_truncate_bin
23318 # The name of the directory that contains temporary libtool files.
23321 # Used to examine libraries when file_magic_cmd begins with "file".
23322 MAGIC_CMD=$MAGIC_CMD
23324 # Must we lock files when doing compilation?
23325 need_locks=$lt_need_locks
23328 MANIFEST_TOOL=$lt_MANIFEST_TOOL
23330 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23331 DSYMUTIL=$lt_DSYMUTIL
23333 # Tool to change global to local symbols on Mac OS X.
23336 # Tool to manipulate fat objects and archives on Mac OS X.
23339 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23342 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23343 OTOOL64=$lt_OTOOL64
23345 # Old archive suffix (normally "a").
23348 # Shared library suffix (normally ".so").
23349 shrext_cmds=$lt_shrext_cmds
23351 # The commands to extract the exported symbol list from a shared archive.
23352 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23354 # Variables whose values should be saved in libtool wrapper scripts and
23355 # restored at link time.
23356 variables_saved_for_relink=$lt_variables_saved_for_relink
23358 # Do we need the "lib" prefix for modules?
23359 need_lib_prefix=$need_lib_prefix
23361 # Do we need a version for libraries?
23362 need_version=$need_version
23364 # Library versioning type.
23365 version_type=$version_type
23367 # Shared library runtime path variable.
23368 runpath_var=$runpath_var
23370 # Shared library path variable.
23371 shlibpath_var=$shlibpath_var
23373 # Is shlibpath searched before the hard-coded library search path?
23374 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23376 # Format of library name prefix.
23377 libname_spec=$lt_libname_spec
23379 # List of archive names. First name is the real one, the rest are links.
23380 # The last name is the one that the linker finds with -lNAME
23381 library_names_spec=$lt_library_names_spec
23383 # The coded name of the library, if different from the real name.
23384 soname_spec=$lt_soname_spec
23386 # Permission mode override for installation of shared libraries.
23387 install_override_mode=$lt_install_override_mode
23389 # Command to use after installation of a shared archive.
23390 postinstall_cmds=$lt_postinstall_cmds
23392 # Command to use after uninstallation of a shared archive.
23393 postuninstall_cmds=$lt_postuninstall_cmds
23395 # Commands used to finish a libtool library installation in a directory.
23396 finish_cmds=$lt_finish_cmds
23398 # As "finish_cmds", except a single script fragment to be evaled but
23400 finish_eval=$lt_finish_eval
23402 # Whether we should hardcode library paths into libraries.
23403 hardcode_into_libs=$hardcode_into_libs
23405 # Compile-time system search path for libraries.
23406 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23408 # Detected run-time system search path for libraries.
23409 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
23411 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
23412 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
23414 # Whether dlopen is supported.
23415 dlopen_support=$enable_dlopen
23417 # Whether dlopen of programs is supported.
23418 dlopen_self=$enable_dlopen_self
23420 # Whether dlopen of statically linked programs is supported.
23421 dlopen_self_static=$enable_dlopen_self_static
23423 # Commands to strip libraries.
23424 old_striplib=$lt_old_striplib
23425 striplib=$lt_striplib
23428 # The linker used to build libraries.
23431 # How to create reloadable object files.
23432 reload_flag=$lt_reload_flag
23433 reload_cmds=$lt_reload_cmds
23435 # Commands used to build an old-style archive.
23436 old_archive_cmds=$lt_old_archive_cmds
23438 # A language specific compiler.
23441 # Is the compiler the GNU compiler?
23444 # Compiler flag to turn off builtin functions.
23445 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23447 # Additional compiler flags for building library objects.
23448 pic_flag=$lt_lt_prog_compiler_pic
23450 # How to pass a linker flag through the compiler.
23451 wl=$lt_lt_prog_compiler_wl
23453 # Compiler flag to prevent dynamic linking.
23454 link_static_flag=$lt_lt_prog_compiler_static
23456 # Does compiler simultaneously support -c and -o options?
23457 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23459 # Whether or not to add -lc for building shared libraries.
23460 build_libtool_need_lc=$archive_cmds_need_lc
23462 # Whether or not to disallow shared libs when runtime libs are static.
23463 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23465 # Compiler flag to allow reflexive dlopens.
23466 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23468 # Compiler flag to generate shared objects directly from archives.
23469 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23471 # Whether the compiler copes with passing no objects directly.
23472 compiler_needs_object=$lt_compiler_needs_object
23474 # Create an old-style archive from a shared archive.
23475 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23477 # Create a temporary old-style archive to link instead of a shared archive.
23478 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23480 # Commands used to build a shared archive.
23481 archive_cmds=$lt_archive_cmds
23482 archive_expsym_cmds=$lt_archive_expsym_cmds
23484 # Commands used to build a loadable module if different from building
23485 # a shared archive.
23486 module_cmds=$lt_module_cmds
23487 module_expsym_cmds=$lt_module_expsym_cmds
23489 # Whether we are building with GNU ld or not.
23490 with_gnu_ld=$lt_with_gnu_ld
23492 # Flag that allows shared libraries with undefined symbols to be built.
23493 allow_undefined_flag=$lt_allow_undefined_flag
23495 # Flag that enforces no undefined symbols.
23496 no_undefined_flag=$lt_no_undefined_flag
23498 # Flag to hardcode \$libdir into a binary during linking.
23499 # This must work even if \$libdir does not exist
23500 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23502 # Whether we need a single "-rpath" flag with a separated argument.
23503 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23505 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23506 # DIR into the resulting binary.
23507 hardcode_direct=$hardcode_direct
23509 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23510 # DIR into the resulting binary and the resulting library dependency is
23511 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
23512 # library is relocated.
23513 hardcode_direct_absolute=$hardcode_direct_absolute
23515 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23516 # into the resulting binary.
23517 hardcode_minus_L=$hardcode_minus_L
23519 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23520 # into the resulting binary.
23521 hardcode_shlibpath_var=$hardcode_shlibpath_var
23523 # Set to "yes" if building a shared library automatically hardcodes DIR
23524 # into the library and all subsequent libraries and executables linked
23526 hardcode_automatic=$hardcode_automatic
23528 # Set to yes if linker adds runtime paths of dependent libraries
23529 # to runtime path list.
23530 inherit_rpath=$inherit_rpath
23532 # Whether libtool must link a program against all its dependency libraries.
23533 link_all_deplibs=$link_all_deplibs
23535 # Set to "yes" if exported symbols are required.
23536 always_export_symbols=$always_export_symbols
23538 # The commands to list exported symbols.
23539 export_symbols_cmds=$lt_export_symbols_cmds
23541 # Symbols that should not be listed in the preloaded symbols.
23542 exclude_expsyms=$lt_exclude_expsyms
23544 # Symbols that must always be exported.
23545 include_expsyms=$lt_include_expsyms
23547 # Commands necessary for linking programs (against libraries) with templates.
23548 prelink_cmds=$lt_prelink_cmds
23550 # Commands necessary for finishing linking programs.
23551 postlink_cmds=$lt_postlink_cmds
23553 # Specify filename containing input files.
23554 file_list_spec=$lt_file_list_spec
23556 # How to hardcode a shared library path into an executable.
23557 hardcode_action=$hardcode_action
23559 # The directories searched by this compiler when creating a shared library.
23560 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
23562 # Dependencies to place before and after the objects being linked to
23563 # create a shared library.
23564 predep_objects=$lt_predep_objects
23565 postdep_objects=$lt_postdep_objects
23566 predeps=$lt_predeps
23567 postdeps=$lt_postdeps
23569 # The library search path used internally by the compiler when linking
23570 # a shared library.
23571 compiler_lib_search_path=$lt_compiler_lib_search_path
23573 # ### END LIBTOOL CONFIG
23577 cat <<'_LT_EOF' >> "$cfgfile"
23579 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
23581 # func_munge_path_list VARIABLE PATH
23582 # -----------------------------------
23583 # VARIABLE is name of variable containing _space_ separated list of
23584 # directories to be munged by the contents of PATH, which is string
23587 # string "DIR[ DIR]" will be prepended to VARIABLE
23589 # string "DIR[ DIR]" will be appended to VARIABLE
23590 # "DIRP[:DIRP]::[DIRA:]DIRA"
23591 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23592 # "DIRA[ DIRA]" will be appended to VARIABLE
23594 # VARIABLE will be replaced by "DIR[ DIR]"
23595 func_munge_path_list ()
23601 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23604 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23607 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23608 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23611 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23617 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
23618 func_cc_basename ()
23620 for cc_temp in $*""; do
23622 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23623 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23628 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23632 # ### END FUNCTIONS SHARED WITH CONFIGURE
23638 cat <<\_LT_EOF >> "$cfgfile"
23639 # AIX sometimes has problems with the GCC collect2 program. For some
23640 # reason, if we set the COLLECT_NAMES environment variable, the problems
23641 # vanish in a puff of smoke.
23642 if test set != "${COLLECT_NAMES+set}"; then
23644 export COLLECT_NAMES
23651 ltmain=$ac_aux_dir/ltmain.sh
23654 # We use sed instead of cat because bash on DJGPP gets confused if
23655 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23656 # text mode, it properly converts lines to CR/LF. This bash problem
23657 # is reportedly fixed, but why not run on old versions too?
23658 sed '$q' "$ltmain" >> "$cfgfile" \
23659 || (rm -f "$cfgfile"; exit 1)
23661 mv -f "$cfgfile" "$ofile" ||
23662 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23666 cat <<_LT_EOF >> "$ofile"
23668 # ### BEGIN LIBTOOL TAG CONFIG: CXX
23670 # The linker used to build libraries.
23673 # How to create reloadable object files.
23674 reload_flag=$lt_reload_flag_CXX
23675 reload_cmds=$lt_reload_cmds_CXX
23677 # Commands used to build an old-style archive.
23678 old_archive_cmds=$lt_old_archive_cmds_CXX
23680 # A language specific compiler.
23681 CC=$lt_compiler_CXX
23683 # Is the compiler the GNU compiler?
23686 # Compiler flag to turn off builtin functions.
23687 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
23689 # Additional compiler flags for building library objects.
23690 pic_flag=$lt_lt_prog_compiler_pic_CXX
23692 # How to pass a linker flag through the compiler.
23693 wl=$lt_lt_prog_compiler_wl_CXX
23695 # Compiler flag to prevent dynamic linking.
23696 link_static_flag=$lt_lt_prog_compiler_static_CXX
23698 # Does compiler simultaneously support -c and -o options?
23699 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
23701 # Whether or not to add -lc for building shared libraries.
23702 build_libtool_need_lc=$archive_cmds_need_lc_CXX
23704 # Whether or not to disallow shared libs when runtime libs are static.
23705 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
23707 # Compiler flag to allow reflexive dlopens.
23708 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
23710 # Compiler flag to generate shared objects directly from archives.
23711 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
23713 # Whether the compiler copes with passing no objects directly.
23714 compiler_needs_object=$lt_compiler_needs_object_CXX
23716 # Create an old-style archive from a shared archive.
23717 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
23719 # Create a temporary old-style archive to link instead of a shared archive.
23720 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
23722 # Commands used to build a shared archive.
23723 archive_cmds=$lt_archive_cmds_CXX
23724 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
23726 # Commands used to build a loadable module if different from building
23727 # a shared archive.
23728 module_cmds=$lt_module_cmds_CXX
23729 module_expsym_cmds=$lt_module_expsym_cmds_CXX
23731 # Whether we are building with GNU ld or not.
23732 with_gnu_ld=$lt_with_gnu_ld_CXX
23734 # Flag that allows shared libraries with undefined symbols to be built.
23735 allow_undefined_flag=$lt_allow_undefined_flag_CXX
23737 # Flag that enforces no undefined symbols.
23738 no_undefined_flag=$lt_no_undefined_flag_CXX
23740 # Flag to hardcode \$libdir into a binary during linking.
23741 # This must work even if \$libdir does not exist
23742 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
23744 # Whether we need a single "-rpath" flag with a separated argument.
23745 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
23747 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23748 # DIR into the resulting binary.
23749 hardcode_direct=$hardcode_direct_CXX
23751 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23752 # DIR into the resulting binary and the resulting library dependency is
23753 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
23754 # library is relocated.
23755 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
23757 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23758 # into the resulting binary.
23759 hardcode_minus_L=$hardcode_minus_L_CXX
23761 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23762 # into the resulting binary.
23763 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
23765 # Set to "yes" if building a shared library automatically hardcodes DIR
23766 # into the library and all subsequent libraries and executables linked
23768 hardcode_automatic=$hardcode_automatic_CXX
23770 # Set to yes if linker adds runtime paths of dependent libraries
23771 # to runtime path list.
23772 inherit_rpath=$inherit_rpath_CXX
23774 # Whether libtool must link a program against all its dependency libraries.
23775 link_all_deplibs=$link_all_deplibs_CXX
23777 # Set to "yes" if exported symbols are required.
23778 always_export_symbols=$always_export_symbols_CXX
23780 # The commands to list exported symbols.
23781 export_symbols_cmds=$lt_export_symbols_cmds_CXX
23783 # Symbols that should not be listed in the preloaded symbols.
23784 exclude_expsyms=$lt_exclude_expsyms_CXX
23786 # Symbols that must always be exported.
23787 include_expsyms=$lt_include_expsyms_CXX
23789 # Commands necessary for linking programs (against libraries) with templates.
23790 prelink_cmds=$lt_prelink_cmds_CXX
23792 # Commands necessary for finishing linking programs.
23793 postlink_cmds=$lt_postlink_cmds_CXX
23795 # Specify filename containing input files.
23796 file_list_spec=$lt_file_list_spec_CXX
23798 # How to hardcode a shared library path into an executable.
23799 hardcode_action=$hardcode_action_CXX
23801 # The directories searched by this compiler when creating a shared library.
23802 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
23804 # Dependencies to place before and after the objects being linked to
23805 # create a shared library.
23806 predep_objects=$lt_predep_objects_CXX
23807 postdep_objects=$lt_postdep_objects_CXX
23808 predeps=$lt_predeps_CXX
23809 postdeps=$lt_postdeps_CXX
23811 # The library search path used internally by the compiler when linking
23812 # a shared library.
23813 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
23815 # ### END LIBTOOL TAG CONFIG: CXX
23826 ac_clean_files=$ac_clean_files_save
23828 test $ac_write_fail = 0 ||
23829 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23832 # configure is writing to config.log, and then calls config.status.
23833 # config.status does its own redirection, appending to config.log.
23834 # Unfortunately, on DOS this fails, as config.log is still kept open
23835 # by configure, so config.status won't be able to write to it; its
23836 # output is simply discarded. So we exec the FD to /dev/null,
23837 # effectively closing config.log, so it can be properly (re)opened and
23838 # appended to by config.status. When coming back to configure, we
23839 # need to make the FD available again.
23840 if test "$no_create" != yes; then
23842 ac_config_status_args=
23843 test "$silent" = yes &&
23844 ac_config_status_args="$ac_config_status_args --quiet"
23846 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23848 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23849 # would make configure fail if this is the last instruction.
23850 $ac_cs_success || as_fn_exit 1
23852 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23854 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23858 { $as_echo "$as_me:${as_lineno-$LINENO}:
23860 Build configuration:
23862 Unicode callbacks (you want at least one):
23863 Builtin (UCDN): ${have_ucdn}
23867 Font callbacks (the more the merrier):
23868 FreeType: ${have_freetype}
23870 Tools used for command-line utilities:
23871 Cairo: ${have_cairo}
23872 Fontconfig: ${have_fontconfig}
23874 Additional shapers (the more the merrier):
23875 Graphite2: ${have_graphite2}
23877 Platform shapers (not normally needed):
23878 CoreText: ${have_coretext}
23879 DirectWrite: ${have_directwrite}
23880 Uniscribe: ${have_uniscribe}
23883 Documentation: ${enable_gtk_doc}
23884 GObject bindings: ${have_gobject}
23885 Introspection: ${have_introspection}
23889 Build configuration:
23891 Unicode callbacks (you want at least one):
23892 Builtin (UCDN): ${have_ucdn}
23896 Font callbacks (the more the merrier):
23897 FreeType: ${have_freetype}
23899 Tools used for command-line utilities:
23900 Cairo: ${have_cairo}
23901 Fontconfig: ${have_fontconfig}
23903 Additional shapers (the more the merrier):
23904 Graphite2: ${have_graphite2}
23906 Platform shapers (not normally needed):
23907 CoreText: ${have_coretext}
23908 DirectWrite: ${have_directwrite}
23909 Uniscribe: ${have_uniscribe}
23912 Documentation: ${enable_gtk_doc}
23913 GObject bindings: ${have_gobject}
23914 Introspection: ${have_introspection}